/* smarters-linux: Content Store no topo; launcher TechTudo sobreposto na base. */
.sl-sidebar {
  display: none; position: fixed; inset: 0 auto 0 0; z-index: 1100;
  width: var(--sl-rail); background: var(--sl-sidebar); overflow: hidden;
  padding: 4vh 1vw 2vh; flex-direction: column; gap: .7vh;
  transition: width var(--sl-motion) var(--sl-ease), box-shadow var(--sl-motion) var(--sl-ease);
}
.sl-authenticated .sl-sidebar { display: flex; }
/* smarters-linux: recolhida mostra só os ícones; abre por largura, sem mover os itens. */
/* sl-open: posta por app/js/webos-ui.js (foco, mouse ou item marcado na barra). :has() não era reavaliado no
   WebView do Fire TV e a barra ficava aberta depois que o foco saía. */
.sl-sidebar.sl-open { width: var(--sl-rail-expanded); }
.sl-brand { display: flex; align-items: center; gap: .8vw; margin: 0 .7vw 4vh; font-size: var(--sl-type); font-weight: 650; letter-spacing: -.04em; white-space: nowrap; }
.sl-brand[role='button'] { cursor: pointer; }
.sl-brand[role='button']:focus-visible { outline: 2px solid var(--sl-text); outline-offset: 2px; }
.sl-brand b { flex: 0 0 1.5em; text-align: center; color: var(--sl-yellow); }
.sl-brand small { display: block; color: var(--sl-muted); font-size: var(--sl-small); letter-spacing: .14em; font-weight: 400; }
.sl-brand span, .sl-nav span { opacity: 0; transition: opacity var(--sl-motion) var(--sl-ease); }
.sl-sidebar.sl-open :is(.sl-brand span, .sl-nav span) { opacity: 1; }
.sl-nav { border: 0; background: var(--sl-clear); color: var(--sl-muted); display: flex; align-items: center; gap: .9vw; width: 100%; padding: 1.5vh .8vw; text-align: left; white-space: nowrap; font-size: clamp(16px, 1.15vw, 28px); border-left: 4px solid var(--sl-clear); }
.sl-nav i { flex: 0 0 1.6em; text-align: center; font-size: 1.15em; }
.sl-nav:is(:hover, :focus-visible), .sl-nav[aria-current='page'] { color: var(--sl-text); background: var(--sl-surface); border-left-color: var(--sl-yellow); }
.sl-nav[data-destination='settingTile'] { margin-top: auto; }
.sl-home { position: relative; height: 100vh; display: flex; flex-direction: column; padding: 3vh 3vw 2vh; overflow: hidden; }
.sl-home-head { position: relative; z-index: 1; display: flex; align-items: center; gap: 1.5vw; }
.sl-home-head > img { width: clamp(130px, 14vw, 300px); }
.sl-home-clock { order: 2; margin-left: 0; text-align: right; color: var(--sl-muted); font-size: var(--sl-small); }
.sl-home-clock time { display: block; font-size: clamp(26px, 2.8vw, 64px); color: var(--sl-text); font-weight: 300; }
.sl-home-clock .timeOnAllPages { font-size: clamp(26px, 2.8vw, 64px) !important; }
.sl-profile-button { flex-shrink: 0; background: var(--sl-surface); border: 0; color: var(--sl-text); width: 2.6em !important; height: 2.6em !important; transform: none !important; overflow: hidden; padding: .6em; border-radius: 50%; }
.sl-home-head > .sl-profile-button:first-of-type { margin-left: auto; }
.sl-profile-button img { width: 100% !important; height: 100% !important; object-fit: contain; }
.sl-home-idle { flex: 1; min-height: 0; display: grid; place-items: center; }
.sl-home-idle { place-items: center start; align-content: center; padding-left: 1vw; }
.sl-home-idle h1 { margin: 0; font-size: clamp(40px, 4.4vw, 104px); font-weight: 300; letter-spacing: -.02em; }
.sl-home-idle p { margin: 1vh 0 0; color: var(--sl-muted); font-size: var(--sl-type); }
.sl-home-hero { position: relative; flex: 1; min-height: 0; margin: 2vh -3vw -7vh; padding: 2vh 4vw 9vh; background: var(--sl-surface); }
.sl-hero-art { position: absolute; inset: 0 0 0 auto; width: 62%; height: 100%; object-fit: cover; opacity: .55; }
.sl-home-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--sl-surface) 20%, var(--sl-clear)), linear-gradient(0deg, var(--sl-bg), var(--sl-clear) 55%); }
.sl-hero-copy { position: relative; z-index: 1; max-width: 70%; }
.sl-hero-copy h1 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: .5vh 0 1vh; font-size: clamp(34px, 3.8vw, 86px); line-height: 1.1; font-weight: 350; letter-spacing: -.04em; text-wrap: balance; }
.sl-hero-copy p { margin: 0 0 1vh; font-size: var(--sl-small); color: var(--sl-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-hero-action { margin-top: 1vh; border: 0; padding: 1.4vh 1.8vw; background: var(--sl-cyan); color: var(--sl-text); font-size: var(--sl-small); }
.sl-launcher-shell { position: relative; z-index: 2; display: flex; align-items: center; margin: 0 -2vw; }
.sl-launcher { display: flex; flex: 1; min-width: 0; gap: .45vw; padding: 4vh 2.5vw 3vh; overflow-x: auto; overflow-y: hidden; align-items: end; scrollbar-width: none; }
.sl-launcher::-webkit-scrollbar { display: none; }
.sl-launch-card { position: relative; flex: 1 0 clamp(130px, 10.5vw, 260px); min-width: 0; min-height: 27vh; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3vh; padding: 3vh 1vw 2.5vh; border: 0; border-radius: 0; transform: skewX(var(--sl-skew)); background: var(--sl-cyan); color: var(--sl-text); font-size: var(--sl-small); font-weight: 500; }
.sl-launch-card > * { transform: skewX(var(--sl-unskew)); }
.sl-launch-card i { font-size: clamp(32px, 3.6vw, 80px); margin-bottom: auto; margin-top: 2vh; }
.sl-launch-card span { white-space: nowrap; }
#moviesTile { background: var(--sl-red); }
#seriesTile { background: var(--sl-green); }
#continueTile { background: var(--sl-blue); }
#favoritesTile { background: var(--sl-pink); }
#downloadsTile { background: var(--sl-green); }
#salaTile { background: var(--sl-cyan); } /* entre o rosa e o amarelo; branco sobre ciano: 4,6:1 */
#settingTile, #accountTile { background: var(--sl-yellow); color: var(--sl-ink); }
html:not(.sl-mobile) .sl-home .sl-launch-card:is(:hover, :focus-visible),
html:not(.sl-mobile) .sl-home .sl-launcher:not(:hover) .sl-launch-card.imageFocus,
html:not(.sl-mobile) .sl-launcher:not(:hover):not(:has(:focus-visible, .imageFocus)) .sl-launch-card:first-child {
  background: var(--sl-text) !important; color: var(--sl-ink) !important; z-index: 5; /* !important: o fundo por id (#seriesTile...) vencia e o texto ficava escuro sobre a cor */
  transform: skewX(var(--sl-skew)) translateY(-1.4vh) scale(1.06); box-shadow: var(--sl-shadow);
}
.sl-home-footer { display: flex; justify-content: space-between; gap: 2vw; font-size: var(--sl-small); color: var(--sl-muted); }
.sl-home-footer span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.sl-player-open .sl-sidebar { display: none; }
/* smarters-linux: barra aberta flutua sobre a tela com sombra; foco por clique não a deixa aberta. */
.sl-sidebar.sl-open { box-shadow: 1.5vw 0 3vw rgb(0 0 0 / .6); }
/* smarters-linux: cabeçalho reserva a região do Voltar, inclusive com quebra. */
.sl-home-head { padding-right: clamp(140px, 9.5vw, 230px); /* espaço do Voltar fixo no canto */ flex-wrap: wrap; gap: 16px; }
.sl-home-clock { margin-left: auto; }
/* smarters-linux: abertura do rail desloca o conteúdo; ativo e foco têm papéis distintos. */
.sl-nav:is(:hover, :focus-visible):not([aria-current='page']) { border-left-color: var(--sl-clear); }
@media (max-width: 650px) {
  .sl-home-head { padding-right: 96px; }
  .sl-home-head > img { width: 96px; }
  .sl-home-clock { flex-basis: 100%; text-align: left; }
  .sl-home-footer { flex-wrap: wrap; }
  .sl-home-head > .sl-profile-button:first-of-type { margin-left: 0; }
}
/* smarters-linux: itens da barra ocupam a largura toda; o ícone fica centrado na faixa recolhida. */
.sl-sidebar { padding-left: 0; padding-right: 0; }
.sl-nav { gap: 0; padding: 1.5vh 0; }
.sl-nav i { flex: 0 0 calc(var(--sl-rail) - 4px); }
.sl-brand { margin-left: 0; margin-right: 0; gap: 0; }
.sl-brand b { flex: 0 0 var(--sl-rail); }
/* smarters-linux: com o mouse na faixa, o cartão que tinha o foco volta ao normal, inclinado e alinhado. */
html:not(.sl-mobile) .sl-home .sl-launcher:hover .sl-launch-card.imageFocus:not(:hover) { transform: skewX(var(--sl-skew)); box-shadow: none; outline: 0 !important; border-color: transparent; }
/* smarters-linux: marca TV na barra lateral, no lugar do "S". */
.sl-brand b img { width: clamp(30px, 2.4vw, 56px); height: auto; display: block; margin: 0 auto; }
/* smarters-linux: submenu do perfil (validade, conta, troca). Abre no mouse, no clique e quando o teclado do app foca um item. */
.sl-profile-menu { position: relative; margin-left: 1.5vw; order: 3; }
.sl-profile-toggle { display: flex; align-items: center; gap: .6vw; padding: .5vh 1vw .5vh .5vh; border: 0; border-radius: 99px; background: var(--sl-surface); color: var(--sl-text); font-size: var(--sl-small); }
.sl-profile-toggle img { width: 2.2em; height: 2.2em; padding: .35em; border-radius: 50%; background: var(--sl-raised); }
.sl-profile-pop { position: absolute; right: 0; top: calc(100% + 1vh); min-width: clamp(240px, 17vw, 400px); padding: 1vh 0; background: var(--sl-surface); box-shadow: var(--sl-shadow); display: none; z-index: 20; }
.sl-profile-menu:is(:hover, :focus-within, :has(.imageFocus), .open) .sl-profile-pop { display: block; animation: sl-search-in 200ms var(--sl-ease); }
.sl-profile-info { margin: 0; padding: 1vh 1.2vw 1.4vh; border-bottom: 1px solid var(--sl-line); }
.sl-profile-info b { display: block; font-size: var(--sl-type); font-weight: 500; }
.sl-profile-info span { color: var(--sl-muted); font-size: var(--sl-small); white-space: nowrap; }
.sl-profile-pop .sl-profile-item { display: flex; align-items: center; gap: .8vw; width: 100% !important; height: auto !important; padding: 1.2vh 1.2vw; border-radius: 0; background: var(--sl-clear); font-size: var(--sl-small); text-align: left; }
.sl-profile-pop .sl-profile-item img { width: 1.6em !important; height: 1.6em !important; }
.sl-profile-pop .sl-profile-item:is(:hover, :focus-visible, .imageFocus) { background: var(--sl-raised); outline: 0; box-shadow: inset 4px 0 0 var(--sl-yellow); }
.sl-home-head .sl-home-clock { order: 2; }
body.sl-on-home #backArrow { display: none !important; }
.sl-home-head { padding-right: 0; }
/* smarters-linux: destaque sem capa não vira uma placa cinza colada na barra lateral; fica só o texto. */
.sl-home-hero:not(:has(.sl-hero-art)) { background: var(--sl-clear); }
.sl-home-hero:not(:has(.sl-hero-art))::after { content: none; }
