/* Solaris Player — cores da logo: preto carvão e dourado do sol */
:root {
  --bg: #0c0c0d;
  --bg2: #161617;
  --bg3: #212022;
  --line: rgba(255, 255, 255, .08);
  --txt: #f3f1ec;
  --mut: #9a9cab;
  --acc: #d4a843;      /* dourado da logo */
  --acc-txt: #1a1203;
  --live: #c4161c;     /* vermelho do play da logo */
  --marca: "Playfair Display", Georgia, serif;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --ui: "Manrope", "Segoe UI", system-ui, sans-serif;
  --pad: clamp(16px, 4vw, 56px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; }
body { background: var(--bg); color: var(--txt); font: 15px/1.5 var(--ui); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button, input { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
img { display: block; }
/* capas não são "imagens" para o navegador: sem menu de pesquisa visual do Edge, sem salvar/arrastar */
img, video { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
img { pointer-events: none; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.marca { font: 700 25px/1 var(--marca); letter-spacing: -.2px; display: inline-flex; align-items: center; gap: 9px; color: var(--acc);
  background: linear-gradient(180deg, #f0d48a 0%, #d4a843 55%, #a87f2c 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.marca i { flex: none; width: 1.15em; height: 1.15em; background: url(/assets/sol.svg) center / contain no-repeat; }
.logo-grande { width: 150px; height: 150px; border-radius: 18px; object-fit: cover; box-shadow: 0 20px 60px rgba(0,0,0,.6); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 8px; padding: 12px 22px; font-weight: 700; font-size: 16px; transition: background .15s, transform .08s; }
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; }
.btn-acc { background: var(--acc); color: var(--acc-txt); }
.btn-acc:hover { background: #e6bd5c; }
.btn-acc svg { fill: currentColor; stroke: none; }
.btn-vidro { background: rgba(120, 124, 145, .35); backdrop-filter: blur(8px); }
.btn-vidro:hover { background: rgba(120, 124, 145, .5); }
.icone { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); transition: border-color .15s, background .15s; }
.icone:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ---------------------------------------------------------- login */
.entrada { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.entrada-arte { position: relative; overflow: hidden; background: #0f0f10; }
.entrada-arte .mosaico { position: absolute; inset: -10%; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; transform: rotate(-8deg); opacity: .55; }
.entrada-arte .mosaico span { aspect-ratio: 2/3; border-radius: 8px; background: linear-gradient(160deg, var(--c1), var(--c2)); }
.entrada-arte::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 40%, var(--bg)), linear-gradient(0deg, var(--bg), transparent 40%); }
.entrada-arte h1 { position: absolute; left: var(--pad); bottom: 12vh; z-index: 1; font: 800 clamp(40px, 6vw, 84px)/.92 var(--display); letter-spacing: -2.5px; max-width: 9ch; }
.entrada-form { display: flex; flex-direction: column; justify-content: center; padding: 48px var(--pad); max-width: 480px; }
.entrada-form h2 { font: 700 28px/1.2 var(--display); margin: 42px 0 6px; letter-spacing: -.5px; }
.entrada-form p { color: var(--mut); margin-bottom: 26px; }
.campo { position: relative; margin-bottom: 14px; }
.campo input { width: 100%; background: var(--bg2); border: 1.5px solid var(--line); border-radius: 10px; padding: 22px 16px 8px; font-size: 16px; transition: border-color .15s; }
.campo input:focus { border-color: var(--acc); outline: none; }
.campo label { position: absolute; left: 17px; top: 15px; color: var(--mut); pointer-events: none; transition: all .15s; }
.campo input:focus + label, .campo input:not(:placeholder-shown) + label { top: 7px; font-size: 12px; }
.campo .olho { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--mut); padding: 6px; }
.entrada-form .btn { width: 100%; margin-top: 10px; padding: 15px; }
.entrada-erro { color: #ff7a85; min-height: 22px; margin-top: 14px; font-size: 14px; }
.lembrar { display: flex; align-items: center; gap: 8px; color: var(--mut); font-size: 14px; margin-top: 4px; }
.lembrar input { accent-color: var(--acc); width: 16px; height: 16px; }
@media (max-width: 860px) {
  .entrada { grid-template-columns: 1fr; }
  .entrada-arte { position: fixed; inset: 0; opacity: .35; }
  .entrada-arte h1 { display: none; }
  .entrada-form { position: relative; margin: 0 auto; width: 100%; }
}

/* ---------------------------------------------------------- perfis */
.perfis { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; text-align: center; }
.perfis h1 { font: 700 clamp(28px, 4vw, 48px)/1.1 var(--display); letter-spacing: -1px; margin-bottom: 40px; }
.perfis-grade { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(16px, 3vw, 32px); }
.perfil { width: clamp(96px, 12vw, 150px); color: var(--mut); transition: color .15s; }
.perfil .ava { width: 100%; aspect-ratio: 1; border-radius: 12px; margin-bottom: 12px; border: 3px solid transparent; transition: border-color .15s, transform .15s; }
.perfil:hover, .perfil:focus-visible { color: var(--txt); }
.perfil:hover .ava, .perfil:focus-visible .ava { border-color: var(--txt); }
.perfil .nome { font-weight: 600; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.perfil.novo .ava { display: grid; place-items: center; border: 2px dashed rgba(255,255,255,.25); }
.perfil.novo .ava svg { width: 40%; height: 40%; }
.perfis .btn-gerenciar { margin-top: 48px; border: 1.5px solid var(--mut); color: var(--mut); padding: 10px 26px; letter-spacing: 1px; border-radius: 4px; }
.perfis .btn-gerenciar:hover { color: var(--txt); border-color: var(--txt); }
.perfis.editando .ava { position: relative; opacity: .6; }
.perfis.editando .perfil:not(.novo) .ava::after { content: "✎"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; color: #fff; }

/* avatar: "cabecinha" desenhada com CSS — rosto simples sobre a cor do perfil */
.ava { position: relative; overflow: hidden; background: var(--cor); }
.ava .rosto { position: absolute; inset: 0; }
.ava .rosto::before, .ava .rosto::after { content: ""; position: absolute; top: 36%; width: 11%; height: 11%; border-radius: 50%; background: #0c0d12; }
.ava .rosto::before { left: 30%; }
.ava .rosto::after { right: 30%; }
.ava .boca { position: absolute; left: 30%; right: 30%; top: 56%; height: 16%; border: 0 solid #0c0d12; border-bottom-width: max(3px, .9vmin); border-radius: 0 0 60% 60%; }
.ava.mini { width: 34px; height: 34px; border-radius: 6px; }
.ava.mini .boca { border-bottom-width: 2px; }

/* ---------------------------------------------------------- topo */
.topo { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; align-items: center; gap: clamp(14px, 2.6vw, 36px); padding: 14px var(--pad); background: linear-gradient(180deg, rgba(12,12,13,.88), transparent); transition: background .3s; }
.topo.solido { background: rgba(12, 12, 13, .96); }
.topo nav { display: flex; gap: clamp(12px, 1.8vw, 26px); }
.topo nav a { color: #c9cad3; text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; transition: color .15s; display: inline-flex; align-items: center; gap: 7px; }
.topo nav a:hover { color: #fff; }
.topo nav a.ativo { color: #fff; }
.topo nav a.ativo::after { content: ""; display: block; }
.topo nav a .ponto { width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
.topo .esp { flex: 1; }
.busca { display: flex; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 8px; padding: 6px 8px; transition: all .2s; }
.busca.aberta { border-color: rgba(255,255,255,.4); background: rgba(0,0,0,.6); }
.busca input { width: 0; outline: none; transition: width .25s; }
.busca.aberta input { width: clamp(120px, 18vw, 240px); }
.conta { position: relative; }
.conta > button { display: flex; align-items: center; gap: 8px; }
.conta-menu { position: absolute; right: 0; top: calc(100% + 12px); width: 260px; background: rgba(14, 15, 22, .98); border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: none; box-shadow: 0 20px 50px rgba(0,0,0,.6); }
.conta.aberta .conta-menu { display: block; }
.conta-menu .info { padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; font-size: 13px; color: var(--mut); }
.conta-menu .info b { color: var(--txt); font-size: 14px; display: block; margin-bottom: 2px; }
.conta-menu button { width: 100%; text-align: left; padding: 9px 10px; border-radius: 6px; display: flex; align-items: center; gap: 10px; font-size: 14px; }
.conta-menu button:hover { background: var(--bg3); }
.conta-menu .ava.mini { width: 26px; height: 26px; }
.abas-mobile { display: none; }
@media (max-width: 820px) {
  .topo nav { display: none; }
  .abas-mobile { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: rgba(12,12,13,.97); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .abas-mobile a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--mut); text-decoration: none; font-size: 11px; font-weight: 600; }
  .abas-mobile a.ativo { color: var(--txt); }
  .abas-mobile svg { width: 22px; height: 22px; }
  body { padding-bottom: 64px; }
}

/* ---------------------------------------------------------- aviso revenda */
.aviso { position: relative; z-index: 2; margin: 0 var(--pad) 10px; padding: 12px 44px 12px 16px; border-left: 3px solid var(--acc); background: var(--bg2); border-radius: 6px; font-size: 14px; color: #d8d9e0; }
.aviso button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--mut); padding: 4px 8px; }

/* ---------------------------------------------------------- destaque (hero) */
.hero { position: relative; height: min(82vh, 760px); min-height: 460px; display: flex; align-items: flex-end; padding: 0 var(--pad) clamp(70px, 12vh, 130px); overflow: hidden; }
.hero-fundo { position: absolute; inset: 0; background-size: cover; background-position: center 20%; }
.hero-fundo.poster { filter: blur(28px) saturate(1.3); transform: scale(1.2); opacity: .7; }
.hero::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(12,12,13,.92) 0%, rgba(12,12,13,.55) 38%, transparent 70%),
  linear-gradient(0deg, var(--bg) 0%, rgba(12,12,13,.4) 26%, transparent 50%); }
.hero-poster { position: absolute; right: var(--pad); bottom: 18%; height: 58%; aspect-ratio: 2/3; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.7); object-fit: cover; z-index: 1; }
.hero-txt { position: relative; z-index: 2; max-width: min(620px, 92vw); }
.hero-tipo { color: var(--acc); font-weight: 700; font-size: 14px; letter-spacing: .3px; margin-bottom: 10px; }
.hero h1 { font: 800 clamp(38px, 6.4vw, 92px)/.9 var(--display); letter-spacing: -.035em; margin-bottom: 18px; text-wrap: balance; text-shadow: 0 4px 40px rgba(0,0,0,.5); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: #cfd0d8; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.meta .nota { color: #7be495; }
.meta .sel { border: 1px solid rgba(255,255,255,.4); padding: 0 6px; border-radius: 3px; font-size: 12px; }
.hero p { color: #d7d8de; font-size: clamp(14px, 1.25vw, 17px); max-width: 56ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 24px; }
.hero .acoes { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 820px) { .hero-poster { display: none; } .hero { height: 70vh; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-fundo:not(.poster) { animation: kenburns 24s ease-out both; }
  @keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
}

/* ---------------------------------------------------------- fileiras */
.fileiras { position: relative; z-index: 3; margin-top: -60px; padding-bottom: 60px; }
.pagina-sem-hero .fileiras { margin-top: 0; padding-top: 90px; }
.fileira { margin-bottom: clamp(26px, 3.4vw, 44px); }
.fileira h2 { font: 700 clamp(17px, 1.5vw, 22px)/1.2 var(--display); letter-spacing: -.2px; padding: 0 var(--pad); margin-bottom: 12px; display: flex; align-items: baseline; gap: 12px; }
.fileira h2 a { font: 600 13px var(--ui); color: var(--acc); text-decoration: none; opacity: 0; transition: opacity .2s; }
.fileira:hover h2 a, .fileira h2 a:focus-visible { opacity: 1; }
.trilho-wrap { position: relative; }
.trilho { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 var(--pad); padding: 6px var(--pad) 16px; scrollbar-width: none; }
.trilho::-webkit-scrollbar { display: none; }
.seta { position: absolute; top: 6px; bottom: 16px; width: var(--pad); min-width: 36px; z-index: 4; display: grid; place-items: center; background: rgba(12,12,13,.6); opacity: 0; transition: opacity .2s; }
.seta svg { width: 30px; height: 30px; }
.seta.esq { left: 0; } .seta.dir { right: 0; }
.trilho-wrap:hover .seta { opacity: 1; }
@media (hover: none) { .seta { display: none; } }

.card { flex: 0 0 auto; width: clamp(120px, 13.2vw, 200px); scroll-snap-align: start; position: relative; border-radius: 6px; overflow: hidden; background: var(--bg2); transition: transform .22s ease, box-shadow .22s; text-align: left; }
.card .capa { aspect-ratio: 2/3; width: 100%; object-fit: cover; background: var(--bg3); }
.card:hover, .card:focus-visible { transform: scale(1.06); z-index: 5; box-shadow: 0 14px 40px rgba(0,0,0,.6); }
.card .sem-capa { aspect-ratio: 2/3; display: flex; align-items: flex-end; padding: 12px; font: 700 15px/1.15 var(--display); background: linear-gradient(160deg, #2a2829, #161617); }
.card .sobre { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 10px 9px; background: linear-gradient(0deg, rgba(0,0,0,.92), transparent); opacity: 0; transition: opacity .2s; font-size: 13px; font-weight: 600; line-height: 1.25; }
.card:hover .sobre, .card:focus-visible .sobre { opacity: 1; }
.card .sobre small { display: block; color: #7be495; font-weight: 700; margin-top: 3px; }
.card.largo { width: clamp(220px, 22vw, 330px); }
.card.largo .capa, .card.largo .sem-capa { aspect-ratio: 16/9; }
.card .barra { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.25); }
.card .barra i { display: block; height: 100%; background: var(--acc); }
.card.largo .rotulo { position: absolute; left: 10px; bottom: 12px; right: 10px; font-weight: 700; font-size: 14px; text-shadow: 0 2px 8px #000; }
.card.largo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.7), transparent 55%); pointer-events: none; }
.card.largo .rotulo, .card.largo .barra { z-index: 1; }
.card .tira { position: absolute; top: 8px; right: 8px; z-index: 1; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,.7); display: grid; place-items: center; opacity: 0; transition: opacity .15s; }
.card .tira svg { width: 14px; height: 14px; }
.card:hover .tira { opacity: 1; }

/* canal (logo sobre fundo) */
.card.canal { width: clamp(150px, 14vw, 210px); background: var(--bg2); border: 1px solid var(--line); }
.card.canal .logo { aspect-ratio: 16/10; display: grid; place-items: center; padding: 16%; background: radial-gradient(circle at 50% 40%, #242223, #161617); }
.card.canal .logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.card.canal .logo span { font: 800 20px var(--display); color: var(--mut); text-align: center; }
.card.canal .nome-canal { padding: 8px 10px; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 7px; }
.card.canal .nome-canal::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--live); }

.esqueleto { flex: 0 0 auto; width: clamp(120px, 13.2vw, 200px); aspect-ratio: 2/3; border-radius: 6px; background: linear-gradient(100deg, var(--bg2) 40%, var(--bg3) 50%, var(--bg2) 60%) 0 0/200% 100%; animation: brilho 1.4s linear infinite; }
@keyframes brilho { to { background-position: -200% 0; } }

/* grade (categoria / busca) */
.cabeca-pagina { padding: 96px var(--pad) 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.cabeca-pagina h1 { font: 800 clamp(30px, 4vw, 52px)/1 var(--display); letter-spacing: -1.2px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px var(--pad); scrollbar-width: none; position: sticky; top: 60px; z-index: 10; background: linear-gradient(var(--bg) 70%, transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 7px 14px; border-radius: 99px; border: 1px solid rgba(255,255,255,.2); font-size: 14px; font-weight: 600; color: #cfd0d8; white-space: nowrap; transition: all .15s; }
.chip:hover { border-color: #fff; color: #fff; }
.chip.ativo { background: var(--txt); color: var(--bg); border-color: var(--txt); }
.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(110px, 12vw, 180px), 1fr)); gap: 18px 10px; padding: 10px var(--pad) 60px; }
.grade .card { width: auto; }
.grade-titulo { font: 700 20px var(--display); padding: 18px var(--pad) 0; }
.vazio { padding: 60px var(--pad); color: var(--mut); text-align: center; }
.vazio b { display: block; color: var(--txt); font: 700 20px var(--display); margin-bottom: 6px; }

/* ---------------------------------------------------------- ao vivo */
.aovivo { display: grid; grid-template-columns: 220px minmax(260px, 340px) 1fr; gap: 0; height: 100vh; padding-top: 70px; }
.av-cats, .av-canais { overflow-y: auto; border-right: 1px solid var(--line); }
.av-cats { padding: 10px 8px; }
.av-cats button { width: 100%; text-align: left; padding: 9px 12px; border-radius: 6px; font-size: 14px; color: #c9cad3; display: flex; justify-content: space-between; gap: 8px; }
.av-cats button:hover { background: var(--bg2); color: #fff; }
.av-cats button.ativo { background: var(--bg3); color: #fff; box-shadow: inset 3px 0 0 var(--live); }
.av-cats small { color: var(--mut); }
.av-canais .filtro { position: sticky; top: 0; background: var(--bg); padding: 10px; border-bottom: 1px solid var(--line); z-index: 1; }
.av-canais .filtro input { width: 100%; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; outline: none; }
.av-canais .filtro input:focus { border-color: var(--acc); }
.canal-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 12px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.03); }
.canal-item:hover { background: var(--bg2); }
.canal-item.ativo { background: var(--bg3); }
.canal-item .num { width: 30px; color: var(--mut); font-size: 12px; text-align: right; flex: none; }
.canal-item .lg { width: 46px; height: 32px; flex: none; display: grid; place-items: center; background: #1d1c1d; border-radius: 4px; overflow: hidden; }
.canal-item .lg img { max-width: 90%; max-height: 90%; object-fit: contain; }
.canal-item .nm { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.canal-item .fav { color: var(--acc); font-size: 13px; }
.av-tela { display: flex; flex-direction: column; min-width: 0; overflow-y: auto; }
.av-video { position: relative; background: #000; aspect-ratio: 16/9; width: 100%; max-height: 62vh; }
.av-video video { width: 100%; height: 100%; display: block; background: #000; }
.av-video .selo { position: absolute; top: 14px; left: 14px; background: var(--live); color: #fff; font-weight: 800; font-size: 12px; padding: 3px 8px; border-radius: 4px; letter-spacing: .5px; pointer-events: none; }
.av-video .msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--mut); pointer-events: none; }
.av-info { padding: 18px 22px; }
.av-info h2 { font: 700 24px var(--display); display: flex; align-items: center; gap: 12px; }
.av-info .acoes-canal { display: flex; gap: 8px; margin: 12px 0 18px; }
.epg { display: grid; gap: 2px; }
.epg-item { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 10px 12px; border-radius: 6px; background: var(--bg2); }
.epg-item.agora { background: var(--bg3); box-shadow: inset 3px 0 0 var(--acc); }
.epg-item time { color: var(--mut); font-size: 13px; font-variant-numeric: tabular-nums; }
.epg-item b { font-size: 14px; }
.epg-item p { color: var(--mut); font-size: 13px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.epg-item .prog { height: 3px; background: rgba(255,255,255,.15); margin-top: 8px; border-radius: 2px; }
.epg-item .prog i { display: block; height: 100%; background: var(--acc); border-radius: 2px; }
@media (max-width: 1000px) {
  .aovivo { grid-template-columns: 1fr; height: auto; padding-top: 64px; }
  .av-tela { order: -1; position: sticky; top: 56px; z-index: 5; background: var(--bg); }
  .av-info { display: none; }
  .av-cats { display: flex; gap: 6px; overflow-x: auto; padding: 10px; border: 0; }
  .av-cats button { width: auto; white-space: nowrap; flex: none; }
  .av-canais { border: 0; overflow: visible; }
}

/* ---------------------------------------------------------- detalhe */
.detalhe-bg { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.72); overflow-y: auto; padding: 4vh 12px; }
.detalhe { position: relative; max-width: 900px; margin: 0 auto; background: var(--bg2); border-radius: 12px; overflow: hidden; box-shadow: 0 40px 120px rgba(0,0,0,.8); }
@media (prefers-reduced-motion: no-preference) { .detalhe { animation: sobe .28s cubic-bezier(.2,.8,.2,1); } @keyframes sobe { from { transform: translateY(30px) scale(.97); opacity: 0; } } }
.detalhe .fechar { position: absolute; top: 14px; right: 14px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; background: rgba(12,12,13,.85); display: grid; place-items: center; }
.det-topo { position: relative; aspect-ratio: 16/8; background-size: cover; background-position: center 25%; display: flex; align-items: flex-end; padding: 32px 40px; }
.det-topo.poster { background-size: 60%; background-repeat: no-repeat; }
.det-topo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg2) 0%, rgba(22,22,23,.4) 45%, transparent 70%); }
.det-topo > * { position: relative; z-index: 1; }
.det-topo h1 { font: 800 clamp(28px, 4.4vw, 54px)/.95 var(--display); letter-spacing: -1.4px; margin-bottom: 18px; max-width: 14ch; }
.det-topo .acoes { display: flex; gap: 10px; align-items: center; }
.det-corpo { padding: 6px 40px 36px; display: grid; grid-template-columns: 1.7fr 1fr; gap: 30px; }
.det-corpo p.sinopse { color: #dcdde3; line-height: 1.6; }
.det-corpo .lado { font-size: 14px; color: var(--mut); display: grid; gap: 10px; align-content: start; }
.det-corpo .lado b { color: #c9cad3; font-weight: 500; }
.det-continua { margin: 14px 0 0; font-size: 13px; color: var(--mut); }
.det-continua .barra { height: 4px; background: rgba(255,255,255,.2); border-radius: 2px; margin-top: 6px; max-width: 260px; }
.det-continua .barra i { display: block; height: 100%; background: var(--acc); border-radius: 2px; }
.temporadas { padding: 0 40px 40px; }
.temporadas-topo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; }
.temporadas-topo h3 { font: 700 22px var(--display); }
.temporadas select { background: var(--bg3); border: 1px solid var(--line); color: var(--txt); padding: 9px 14px; border-radius: 6px; font: 600 15px var(--ui); }
.ep { width: 100%; display: grid; grid-template-columns: 34px 150px 1fr; gap: 16px; align-items: center; text-align: left; padding: 16px 12px; border-bottom: 1px solid var(--line); border-radius: 6px; }
.ep:hover { background: var(--bg3); }
.ep .n { font: 700 22px var(--display); color: var(--mut); text-align: center; }
.ep .th { position: relative; aspect-ratio: 16/9; border-radius: 4px; overflow: hidden; background: var(--bg3); }
.ep .th img { width: 100%; height: 100%; object-fit: cover; }
.ep .th .barra { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.3); }
.ep .th .barra i { display: block; height: 100%; background: var(--acc); }
.ep b { display: block; margin-bottom: 4px; }
.ep p { color: var(--mut); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep .dur { color: var(--mut); font-size: 13px; float: right; margin-left: 10px; }
@media (max-width: 700px) {
  .det-topo { padding: 24px 20px; aspect-ratio: 4/3; }
  .det-corpo { grid-template-columns: 1fr; padding: 6px 20px 26px; gap: 16px; }
  .temporadas { padding: 0 12px 30px; }
  .ep { grid-template-columns: 110px 1fr; } .ep .n { display: none; }
}

/* ---------------------------------------------------------- player */
.player { position: fixed; inset: 0; z-index: 80; background: #000; }
.player video { width: 100%; height: 100%; background: #000; }
.player-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 16px; padding: 18px 22px 40px; background: linear-gradient(180deg, rgba(0,0,0,.8), transparent); transition: opacity .3s; }
.player.quieto:not(.pausado) .player-top, .player.quieto:not(.pausado) .p-baixo { opacity: 0; pointer-events: none; }
.player.quieto:not(.pausado) { cursor: none; }
.player video { pointer-events: none; }
.p-toque { position: absolute; inset: 0; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* aviso do pulo de 10 s (dois toques) */
.p-pulo { position: absolute; top: 0; bottom: 0; width: 38%; display: grid; place-content: center; justify-items: center; gap: 4px; pointer-events: none; opacity: 0; color: #fff; }
.p-pulo.esq { left: 0; border-radius: 0 50% 50% 0 / 0 50% 50% 0; }
.p-pulo.dir { right: 0; border-radius: 50% 0 0 50% / 50% 0 0 50%; }
.p-pulo span { font-size: 34px; line-height: 1; }
.p-pulo b { font: 600 14px var(--ui); }
.p-pulo.on { opacity: 1; background: rgba(255,255,255,.08); }
@media (prefers-reduced-motion: no-preference) { .p-pulo { transition: opacity .35s; } .p-pulo.on { transition: none; } }

.p-gira { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px; border-radius: 50%; border: 4px solid rgba(255,255,255,.2); border-top-color: var(--acc); pointer-events: none; animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }

/* barra de baixo */
.p-baixo { position: absolute; left: 0; right: 0; bottom: 0; padding: 50px 22px max(14px, env(safe-area-inset-bottom)); background: linear-gradient(0deg, rgba(0,0,0,.85), transparent); transition: opacity .3s; }
.p-barra { position: relative; height: 22px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.p-barra .trilha { position: relative; flex: 1; height: 4px; background: rgba(255,255,255,.25); border-radius: 2px; transition: height .12s; }
.p-barra:hover .trilha, .p-barra.arrasta .trilha, .p-barra:focus-visible .trilha { height: 7px; }
.p-barra .buf, .p-barra .foi { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; }
.p-barra .buf { background: rgba(255,255,255,.4); }
.p-barra .foi { background: var(--acc); }
.p-barra .bola { position: absolute; top: 50%; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; border-radius: 50%; background: var(--acc); transform: scale(0); transition: transform .12s; }
.p-barra:hover .bola, .p-barra.arrasta .bola, .p-barra:focus-visible .bola { transform: scale(1); }
@media (hover: none) { .p-barra .bola { transform: scale(1); } }
.p-barra .dica { position: absolute; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.p-barra .dica span { background: rgba(20,20,22,.92); color: #fff; font: 700 13px var(--ui); font-variant-numeric: tabular-nums; padding: 5px 9px; border-radius: 5px; white-space: nowrap; }
.p-barra:focus-visible { outline: none; }

.p-botoes { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.p-botoes button { height: 42px; min-width: 42px; display: grid; place-items: center; border-radius: 50%; position: relative; color: #fff; }
.p-botoes button:hover { background: rgba(255,255,255,.12); }
.p-botoes svg { width: 24px; height: 24px; }
.p-botoes button small { position: absolute; font: 700 8.5px var(--ui); top: 50%; left: 50%; transform: translate(-50%, 1px); }
.p-botoes .p-tempo { border-radius: 6px; padding: 0 10px; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 14px; white-space: nowrap; }
.p-botoes .esp { flex: 1; }
.p-vol { display: flex; align-items: center; }
.p-vol input { width: 0; opacity: 0; transition: width .2s, opacity .2s; accent-color: var(--acc); }
.p-vol:hover input, .p-vol:focus-within input { width: 90px; opacity: 1; margin-right: 6px; }
@media (hover: none) { .p-vol input { display: none; } }
@media (max-width: 560px) {
  .p-baixo { padding-left: 12px; padding-right: 12px; }
  .p-botoes .p-tempo { font-size: 12.5px; padding: 0 6px; }
}
.player-titulo { flex: 1; min-width: 0; }
.player-titulo b { display: block; font: 700 18px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-titulo span { color: var(--mut); font-size: 14px; }
.btn-prox { background: var(--txt); color: var(--bg); font-weight: 700; padding: 10px 18px; border-radius: 6px; }
.player-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 30px; color: #ddd; font-size: 17px; max-width: 560px; margin: auto; pointer-events: none; }

/* ---------------------------------------------------------- diálogos e toast */
.dialogo-bg { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.8); display: grid; place-items: center; padding: 20px; }
.dialogo { width: 100%; max-width: 420px; background: var(--bg2); border-radius: 12px; padding: 28px; }
.dialogo h2 { font: 700 24px var(--display); margin-bottom: 18px; }
.dialogo .ava { width: 96px; height: 96px; border-radius: 10px; margin: 0 auto 18px; }
.dialogo .cores { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 14px 0 22px; }
.dialogo .cores button { width: 32px; height: 32px; border-radius: 50%; border: 3px solid transparent; }
.dialogo .cores button.sel { border-color: #fff; }
.dialogo .linha { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.dialogo input[type=text] { width: 100%; background: var(--bg); border: 1.5px solid var(--line); border-radius: 8px; padding: 12px 14px; outline: none; }
.dialogo input[type=text]:focus { border-color: var(--acc); }
.btn-perigo { color: #ff7a85; margin-right: auto; padding: 12px 6px; font-weight: 600; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translate(-50%, 120px); background: var(--txt); color: var(--bg); font-weight: 700; padding: 12px 20px; border-radius: 8px; transition: transform .25s; pointer-events: none; }
.toast.on { transform: translate(-50%, 0); }
@media (max-width: 820px) { .toast { bottom: 84px; } }

.carregando { min-height: 100vh; display: grid; place-items: center; }
.carregando .marca { font-size: 40px; }
@media (prefers-reduced-motion: no-preference) { .carregando .marca i { animation: pisca 1s ease-in-out infinite alternate; } @keyframes pisca { to { opacity: .2; } } }

/* controles do ao vivo: sem barra de tempo (ao vivo é sempre "agora") */
.av-ctrl { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 26px 14px 12px; background: linear-gradient(0deg, rgba(0,0,0,.75), transparent); opacity: 0; transition: opacity .2s; }
.av-video:hover .av-ctrl, .av-ctrl:focus-within { opacity: 1; }
@media (hover: none) { .av-ctrl { opacity: 1; } }
.av-ctrl button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; }
.av-ctrl button:hover { background: rgba(255,255,255,.12); }
.av-ctrl input[type=range] { width: 110px; accent-color: var(--acc); }
.av-ctrl .esp { flex: 1; }
.av-video:fullscreen { max-height: none; aspect-ratio: auto; }

/* ---------------------------------------------------------- celular / tablet (toque) */
.p-centro { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none; align-items: center; gap: clamp(28px, 9vw, 70px); pointer-events: none; transition: opacity .3s; }
.p-centro button { pointer-events: auto; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; position: relative; }
.p-centro button svg { width: 28px; height: 28px; }
.p-centro button small { position: absolute; font: 700 9px var(--ui); top: 50%; left: 50%; transform: translate(-50%, 2px); }
.p-centro .grande { width: 72px; height: 72px; }
.p-centro .grande svg { width: 34px; height: 34px; }
.player.quieto:not(.pausado) .p-centro { opacity: 0; }
.player.quieto:not(.pausado) .p-centro button { pointer-events: none; }
@media (hover: none) and (pointer: coarse) {
  .p-centro { display: flex; }
  .p-botoes [data-c=play], .p-botoes [data-c=volta], .p-botoes [data-c=avanca], .p-vol { display: none; }
  .av-ctrl input[type=range] { display: none; }
}
/* celular deitado: menos espaço em cima e embaixo */
@media (max-height: 500px) {
  .player-top { padding: 10px 16px 24px; }
  .p-baixo { padding-top: 24px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .p-botoes { margin-top: 2px; }
  .player-top, .p-baixo { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
}

/* ---------------------------------------------------------- TV (telas grandes, vistas de longe) */
@media (min-width: 1800px) { html { zoom: 1.3; } }
@media (min-width: 2500px) { html { zoom: 1.8; } }
