/* Mesmo visual do app do celular (Theme.kt): medidas em "dp"; a tela inteira escala com a janela (zoom no body). */
@font-face { font-family: Manrope; src: url(manrope_medium.ttf); font-weight: 400 500; }
@font-face { font-family: Manrope; src: url(manrope_semibold.ttf); font-weight: 600; }
@font-face { font-family: Manrope; src: url(manrope_bold.ttf); font-weight: 700 900; }
@font-face { font-family: "Space Grotesk"; src: url(spacegrotesk_semibold.ttf); font-weight: 400 600; }
@font-face { font-family: "Space Grotesk"; src: url(spacegrotesk_bold.ttf); font-weight: 700 900; }

:root {
  --bg: #0D0620; --bgElev: #150B30; --surface: #1E1240; --surfaceHi: #2A1A4E; --line: #3A2A60;
  --textHi: #F4F2FA; --muted: #B3A7CF; --soft: #E6DEFA; --accent: #5B21B6; --accentHi: #A78BFA; --red: #FF0000;
  --accentBrush: linear-gradient(180deg, #6D28D9, #3B1A8A);
  --steel: linear-gradient(180deg, #2A1A4E, #1B0F38, #120A28);
  --outlineEdge: rgba(255,255,255,.30); --outlineFill: rgba(21,11,48,.60);
  --panel: rgba(14,7,36,.55); --channels: rgba(10,5,26,.55); --divider: rgba(255,255,255,.08);
  --display: "Space Grotesk", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0D0620; }
body { color: #fff; font: 500 14px Manrope, "Segoe UI", sans-serif; user-select: none; -webkit-user-drag: none; }
#app, .screen { position: absolute; inset: 0; }
.metal { background: radial-gradient(ellipse at center, #3B1A7A 0%, #1E0E45 45%, #0D0620 100%); }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
input { font: 700 14px Manrope; color: #fff; }
img { -webkit-user-drag: none; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(167,139,250,.30); border-radius: 6px; }
.scroll { overflow-y: auto; overflow-x: hidden; }

/* logo */
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; letter-spacing: .5px; white-space: nowrap; }
.logo img { border-radius: 22%; }
.logo span { color: var(--accentHi); } .logo b { color: #fff; font-weight: 700; }

/* rodapé MAC */
.devfoot { position: absolute; left: 0; right: 0; bottom: 4px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; text-align: center; font: 600 12px var(--font, inherit); color: #fff; }
.licfoot { justify-self: start; display: flex; align-items: center; gap: 8px; padding-left: 14px; font: inherit; color: #fff; white-space: nowrap; }
.licfoot .lf { height: 22px; padding: 0 10px; border-radius: 6px; font-weight: 700; font-size: 12px; color: #fff; background: var(--accentBrush); }
.devfoot span { cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.devfoot span:hover { background: rgba(255,255,255,.08); }
.reload { margin-top: 14px; padding: 8px 18px; font-size: 13px; }

/* botões e superfícies */
.steel { background: var(--steel); border: 1px solid rgba(255,255,255,.22); }
.fill { background: var(--accentBrush); }
.outline { background: var(--outlineFill); border: 1px solid var(--outlineEdge); }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 8px; font-weight: 700; font-size: 14px; color: #fff; white-space: nowrap; }
.pill:hover { filter: brightness(1.15); }
.pill svg { width: 20px; height: 20px; }
.back { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 10px; border-radius: 10px; background: rgba(21,11,48,.75); border: 1px solid var(--outlineEdge); font-weight: 600; font-size: 15px; }
.back svg { width: 22px; height: 22px; }
.back:hover { background: rgba(60,30,120,.6); }
svg { fill: currentColor; flex: none; }

/* login */
.login { overflow-y: auto; }
.login .col { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 24px 48px; }
.card { width: 100%; max-width: 380px; border-radius: 14px; padding: 18px; background: var(--steel); border: 1px solid rgba(255,255,255,.25); }
.tabs3 { display: flex; gap: 10px; margin-bottom: 14px; }
.tabs3 button { flex: 1; height: 38px; border-radius: 9px; font: 700 14px var(--display); background: rgba(13,6,32,.6); border: 1px solid rgba(255,255,255,.18); }
.tabs3 button.on { background: var(--accentBrush); border-color: transparent; }
.field { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; margin-bottom: 10px; border-radius: 9px; background: #12082A; border: 1px solid rgba(255,255,255,.18); }
.field:focus-within { border: 2px solid #fff; background: #2C2442; }
.field svg { width: 20px; height: 20px; color: var(--muted); }
.field input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; }
.field input::placeholder { color: var(--muted); font-weight: 500; }
.field .eye { color: var(--muted); }
/* colar: só aparece com o campo vazio */
.field .paste { color: var(--muted); display: grid; place-items: center; padding: 4px; border-radius: 6px; }
.field .paste:hover { color: #fff; background: rgba(255,255,255,.08); }
.field input:not(:placeholder-shown) ~ .paste { display: none; }
.enter { width: 100%; height: 44px; border-radius: 9px; font-weight: 700; font-size: 15px; background: #12082A; border: 1px solid rgba(255,255,255,.18); color: var(--soft); }
.enter.ready { background: var(--accentBrush); border-color: rgba(167,139,250,.6); color: #fff; }
.trial { margin-top: 18px; text-align: center; color: var(--soft); font-size: 15px; }
.trial button { color: var(--accentHi); font-weight: 700; margin-left: 6px; }

/* início */
.dash { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 36px; }
.exp { margin-top: 10px; font-size: 14px; color: var(--soft); }
.exp.red { color: var(--red); font-weight: 600; }
.warn { margin-top: 4px; font-size: 13px; color: var(--red); font-weight: 500; }
.tiles { margin-top: 16px; width: min(620px, 80%); display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; gap: 10px; }
.tile { position: relative; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: var(--steel); border: 1px solid rgba(255,255,255,.22); font: 600 14px var(--display); overflow: hidden; }
.tile::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(255,255,255,.35); }
.tile svg { width: 36px; height: 36px; }
.tile:hover { border-color: rgba(255,255,255,.75); background: linear-gradient(180deg, #3a2470, #22124a); }
.cont { width: min(620px, 80%); margin-top: 12px; }
.cont h4 { margin: 0 0 6px; font: 700 13px var(--display); color: var(--soft); }
.cont .row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.citem { flex: none; width: 210px; height: 56px; display: flex; align-items: center; border-radius: 6px; overflow: hidden; background: var(--outlineFill); border: 1px solid var(--outlineEdge); text-align: left; }
.citem:hover { border-color: #fff; }
.citem .th { position: relative; width: 40px; height: 100%; background: var(--surface); flex: none; }
.citem .th img { width: 100%; height: 100%; object-fit: cover; }
.citem .th i { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--accentHi); }
.citem .tx { padding: 0 8px; min-width: 0; }
.citem b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.citem small { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* conteúdo (canais, filmes, séries) */
.content { display: flex; flex-direction: column; background: radial-gradient(ellipse at 60% 40%, #2a1260 0%, #160a36 55%, #0D0620 100%); }
.topbar { flex: none; height: 52px; display: flex; align-items: center; padding: 0 12px 0 6px; border-bottom: 1px solid var(--divider); background: rgba(10,5,26,.35); }
.topbar .home { width: 44px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 10px; }
.topbar .home svg { width: 26px; height: 26px; }
.topbar .home:hover { background: rgba(255,255,255,.08); }
.tabsTop { display: flex; align-items: center; margin-left: 6px; }
.tabsTop .sep { width: 1px; height: 22px; margin: 0 6px; background: var(--divider); }
.tabsTop button { padding: 8px 18px; border-radius: 10px; font: 700 16px var(--display); color: var(--soft); }
.tabsTop button.on { background: var(--accentBrush); color: #fff; }
.tabsTop button:not(.on):hover { background: rgba(255,255,255,.06); }
.guia { margin-left: 10px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--outlineEdge); font-weight: 700; font-size: 13px; }
.guia:hover { border-color: #fff; }
.topbar .logo { margin-left: auto; font-size: 15px; } .topbar .logo img { width: 26px; height: 26px; }
.cbody { flex: 1; min-height: 0; display: flex; }
.side { width: clamp(250px, 19vw, 320px); flex: none;   /* tela larga: categorias e canais ganham espaço, a prévia não precisa de tudo */
  display: flex; flex-direction: column; background: var(--panel); }
.sbar { display: flex; gap: 6px; padding: 8px; }
.sbar .field { height: 40px; margin: 0; flex: 1; min-width: 0; padding: 0 10px; gap: 8px; border-radius: 8px; }
.sbar .field svg { width: 18px; height: 18px; }
.sbar .field input { font-size: 13px; font-weight: 600; }
.mic { width: 40px; height: 40px; flex: none; border-radius: 8px; background: var(--accentBrush); display: flex; align-items: center; justify-content: center; }
.mic:hover { filter: brightness(1.2); }
.cats { flex: 1; border-top: 1px solid var(--divider); }
.cat { display: flex; align-items: center; width: 100%; height: 43px; padding: 0 12px; border-bottom: 1px solid var(--divider); text-align: left; font-size: 13px; font-weight: 600; color: var(--soft); }
.cat span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat small { font-size: 12px; font-weight: 700; margin-left: 8px; }
.cat.on { background: var(--accentBrush); color: #fff; }
.cat:not(.on):hover { background: rgba(255,255,255,.05); }
.cat.adult { color: var(--accentHi); font-weight: 700; }
.mainc { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ghead { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 10px 14px 6px; }
.ghead h3 { margin: 0; font: 600 17px var(--display); color: var(--textHi); }
.ghead .clr { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; margin-right: auto; }
.grid { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 14px 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); grid-auto-rows: max-content; gap: 10px; align-content: start; }
.post { position: relative; display: flex; flex-direction: column; width: 100%; border-radius: 10px; overflow: hidden; background: rgba(21,11,48,.75); text-align: left; }
.post .im { position: relative; width: 100%; aspect-ratio: 0.72; background: var(--surface); flex: none; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0; font-size: 11px; color: var(--muted); overflow: hidden; }
.post .im img { width: 100%; height: 100%; object-fit: cover; }
.post .im i { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--accentHi); }
.post .t { padding: 7px 9px 9px; font-size: 12.5px; font-weight: 600; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Seleção: moldura branca por cima do cartão inteiro (não é cortada pela grade nem coberta pela imagem). */
.post::after, .ecard .th::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid transparent; pointer-events: none; z-index: 2; }
.post:hover::after, .ecard:hover .th::after { border-color: #fff; }
.post:hover .im i, .ecard:hover .th i { left: 2px; bottom: 2px; max-width: calc(100% - 4px); }   /* barra de "já assistido" fica dentro da moldura */
.star { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; color: #fff; }
.star svg { width: 17px; height: 17px; }
.empty { grid-column: 1/-1; padding: 40px 0; text-align: center; color: var(--muted); font-size: 13px; }
.more { grid-column: 1/-1; height: 1px; }

/* canais */
.chs { width: clamp(240px, 22vw, 380px); flex: none; overflow-y: auto; background: var(--channels); }
.ch { display: flex; align-items: center; width: 100%; min-height: 55px; padding: 6px 8px 6px 6px; margin-bottom: 1px; text-align: left; background: rgba(21,11,48,.45); }
.ch .n { width: 26px; flex: none; font-size: 11px; font-weight: 700; color: var(--muted); }
.ch .tx { flex: 1; min-width: 0; }
.ch b { display: block; font-size: 13px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch small { display: block; font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.ch .star { position: static; background: none; width: 26px; color: #fff; }
.ch.on { background: var(--accentBrush); } .ch.on b, .ch.on .n { color: #fff; } .ch.on small { color: rgba(255,255,255,.85); }
.ch:not(.on):hover { background: rgba(255,255,255,.06); }
.prev { flex: 1; min-width: 0; display: flex; flex-direction: column; border-left: 3px solid rgba(10,5,26,.55); }
.vbox { position: relative; background: #000; flex: none; aspect-ratio: 16/9; max-height: 64%; }
.vbox video { width: 100%; height: 100%; display: block; background: #000; }
.vbox .ovl { position: absolute; left: 0; right: 0; top: 0; padding: 12px 16px 26px; background: linear-gradient(180deg, rgba(0,0,0,.85), transparent); pointer-events: none; transition: opacity .25s; }
.vbox .ovl b { display: block; font: 700 19px var(--display); } .vbox .ovl small { font-size: 14px; color: var(--soft); }
.vbox .hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); pointer-events: none; }
.vbox.idle .ovl, .vbox.idle .vctl, .vbox.idle .vfs { opacity: 0; } .vbox.idle { cursor: none; }
.vctl { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); display: flex; align-items: center; gap: 26px; transition: opacity .25s; }
.vctl button { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.35); }
.vctl button.big { width: 64px; height: 64px; background: rgba(255,255,255,.92); color: #000; }
.vctl button:hover { transform: scale(1.06); }
.vfs { position: absolute; right: 12px; bottom: 12px; width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.4); transition: opacity .25s; }
.vfs:hover { background: rgba(255,255,255,.15); }
.epg { flex: 1; overflow-y: auto; padding: 10px 16px; }
.epg h5 { margin: 0 0 6px; color: var(--accentHi); font-size: 13px; font-weight: 700; }
.ep1 { display: flex; padding: 3px 0; font-size: 12px; } .ep1 .h { width: 108px; color: var(--muted); flex: none; } .ep1 .p { color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep1.now .h, .ep1.now .p { color: #fff; font-weight: 700; }

/* filme / série */
.info { display: flex; flex-direction: column; padding: 16px; background: radial-gradient(ellipse at center, #3B1A7A 0%, #1E0E45 45%, #0D0620 100%); }
.info > .back { align-self: flex-start; }   /* Voltar do tamanho do texto, não da largura toda */
.info .row { flex: 1; min-height: 0; display: flex; gap: 20px; margin-top: 12px; }
.info .cover { position: relative; width: 240px; aspect-ratio: .68; border-radius: 12px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); flex: none; align-self: flex-start; }
.info .cover img { width: 100%; height: 100%; object-fit: cover; }
.info .cover i { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--accentHi); }
.info .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.info h1 { margin: 0; font: 700 28px var(--display); color: var(--textHi); }
.info .plot { max-height: 45%; overflow-y: auto; margin-top: 10px; font-size: 15px; max-width: 900px; color: var(--muted); line-height: 1.5; }
.info .btns { display: flex; align-items: center; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.info .btns small { color: var(--muted); font-size: 13px; }
.eps { display: flex; flex-direction: column; padding: 12px; background: radial-gradient(ellipse at center, #3B1A7A 0%, #1E0E45 45%, #0D0620 100%); }
.eps .head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.eps .head h2 { margin: 0; font: 700 19px var(--display); color: var(--textHi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seasons { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 10px; flex: none; }
.seasons button { flex: none; padding: 7px 14px; border-radius: 10px; background: var(--surface); font-weight: 600; font-size: 13px; color: var(--textHi); }
.seasons button.on { background: var(--accent); }
.egrid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); grid-auto-rows: max-content; gap: 10px; padding-bottom: 16px; }
.ecard { text-align: left; border-radius: 10px; }
.ecard .th { position: relative; aspect-ratio: 1.6; border-radius: 10px; overflow: hidden; background: var(--surface); }
.ecard .th img { width: 100%; height: 100%; object-fit: cover; }
.ecard .th .pl { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; }
.ecard .th .pl svg { width: 24px; height: 24px; }
.ecard .th i { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--accent); }
.ecard p { margin: 4px 0 0; font-size: 12px; color: var(--textHi); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* player */
.player { position: fixed; inset: 0; background: #000; z-index: 50; }
.player video { width: 100%; height: 100%; display: block; background: #000; }
.player .tbar { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 12px; padding: 12px 16px 30px; background: linear-gradient(180deg, rgba(0,0,0,.7), transparent); transition: opacity .25s; }
.player .tbar h3 { margin: 0; flex: 1; font: 700 19px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .tbar small { color: var(--soft); font-size: 13px; }
.player .ib { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.player .ib:hover { background: rgba(255,255,255,.12); }
.player .ib svg { width: 26px; height: 26px; }
.player.idle .tbar, .player.idle .pctl, .player.idle .pbar, .player.idle .scrim { opacity: 0; } .player.idle { cursor: none; }
/* Mesmo desenho do player do celular: vídeo escurecido, ícones brancos soltos e o pausar num círculo branco. */
.player .scrim { position: absolute; inset: 0; background: rgba(0,0,0,.55); pointer-events: none; transition: opacity .25s; }
.player .tbar { background: none; }
.player .pctl { gap: 36px; }
.player .pctl button { width: 64px; height: 64px; background: none; }
.player .pctl button svg { width: 44px; height: 44px; }
.player .pctl button.big { width: 72px; height: 72px; background: #fff; color: #000; }
.player .pctl button.big svg { width: 40px; height: 40px; }
.player.err .pctl { display: none; }
.player .ovlc .rec { transform: translateY(96px); }
.player .pctl button.off { opacity: .4; cursor: default; transform: none; }
/* barra de baixo do player: tempo do filme, som e tela cheia (como no celular) */
.player .pbar { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 16px 8px; transition: opacity .25s; }
.player .seek { position: relative; height: 18px; cursor: pointer; touch-action: none; }
.player .seek::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.3); }
.player .seek .done { position: absolute; left: 0; top: 7px; height: 4px; border-radius: 2px; background: #fff; width: 0; }
.player .seek .knob { position: absolute; top: 2px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; left: 0; }
.player .prow { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.player .prow .tm { font-size: 15px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.ovlc { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.rec { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 10px; background: rgba(30,18,64,.95); border: 1px solid var(--outlineEdge); }
.rec b { display: block; font-size: 14px; } .rec small { font-size: 12px; color: var(--muted); }
.errbox { pointer-events: auto; text-align: center; padding: 24px; max-width: 460px; }
.errbox h3 { margin: 0 0 6px; font: 700 18px var(--display); } .errbox p { margin: 0 0 16px; color: var(--soft); font-size: 13px; }
.errbox .b { display: flex; gap: 10px; justify-content: center; }
.spin { display: inline-block; vertical-align: middle; box-sizing: border-box; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(167,139,250,.3); border-top-color: var(--accentHi); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* guia (grade) */
.guide { display: flex; flex-direction: column; background: #12082c; }
.gtop { flex: none; height: 37%; display: flex; gap: 22px; padding: 14px 16px 10px; background: radial-gradient(ellipse at 30% 30%, #2a1260, #160a36); }
.gtop .gv { position: relative; height: 100%; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #000; flex: none; }
.gtop .gv video { width: 100%; height: 100%; object-fit: cover; }
.gtop .gi { flex: 1; min-width: 0; overflow: hidden; }
.gtop h2 { margin: 0 0 6px; font: 700 26px var(--display); }
.gtop .now { color: var(--accentHi); font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.gtop .pt { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.gtop .pd { color: var(--soft); font-size: 14px; }
.gtop .play { position: absolute; top: 0; right: 0; }
.live { display: inline-block; padding: 6px 10px; border-radius: 6px; background: #e00; font: 800 13px Manrope; letter-spacing: .5px; }
.gwrap { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ghdr { flex: none; display: flex; height: 50px; border-bottom: 1px solid var(--divider); background: #0f0624; }
.ghdr .lft { width: 150px; flex: none; display: flex; align-items: center; padding-left: 8px; }
.ghdr .times { flex: 1; position: relative; overflow: hidden; }
.ghdr .times span { position: absolute; top: 14px; font: 700 14px Manrope; color: var(--soft); transform: translateX(-50%); }
.grows { flex: 1; overflow-y: auto; }
.grow { display: flex; height: 46px; border-bottom: 1px solid rgba(255,255,255,.04); }
.grow .cn { width: 150px; flex: none; display: flex; align-items: center; padding: 0 10px; font: 700 14px Manrope; background: #170b33; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.grow.on .cn { color: var(--accentHi); }
.grow .pr { flex: 1; position: relative; overflow: hidden; }
.grow .pr button { position: absolute; top: 4px; bottom: 4px; padding: 0 10px; border-radius: 6px; background: #22123f; text-align: left; font-size: 13px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grow .pr button.now { background: #5b21b6; color: #fff; font-weight: 700; }
.grow .pr button:hover { outline: 2px solid #fff; }
.nowline { position: absolute; top: 0; bottom: 0; width: 2px; background: #e00; pointer-events: none; z-index: 2; }

/* playlists, configurações, caixas */
.center { display: flex; align-items: center; justify-content: center; }
.plbox { width: min(560px, 74%); height: 82%; display: flex; flex-direction: column; border-radius: 10px; padding: 18px; background: var(--steel); border: 1px solid rgba(255,255,255,.25); }
.plbox .hd { display: flex; align-items: center; margin-bottom: 12px; }
.plbox .hd h2 { flex: 1; margin: 0; font: 700 20px var(--display); }
.plrow { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; background: var(--outlineFill); border: 1px solid var(--outlineEdge); margin-bottom: 6px; }
.plrow.on { background: rgba(59,26,138,.6); border-color: var(--accentHi); }
.plrow .tx { flex: 1; min-width: 0; }
.plrow b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plrow small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plrow.on small { color: var(--accentHi); }
.sm { padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 700; }
.settings { display: flex; flex-direction: column; padding: 18px 28px; }
.settings .hd { display: flex; align-items: center; gap: 16px; }
.settings .hd h1 { margin: 0; font: 700 26px var(--display); }
.settings .bd { flex: 1; min-height: 0; display: flex; gap: 18px; margin-top: 14px; }
.menu { width: 250px; flex: none; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.menu button { padding: 11px 14px; border-radius: 8px; text-align: left; font-weight: 700; font-size: 14px; background: var(--outlineFill); border: 1px solid var(--outlineEdge); }
.menu button.on { background: var(--accentBrush); border-color: transparent; }
.menu button.danger:not(.on) { color: #FF8A8A; }
.opt { flex: 1; overflow-y: auto; }
.opt h3 { margin: 0 0 8px; font: 700 17px var(--display); }
.opt .hint { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.irow { display: flex; align-items: center; padding: 9px 14px; margin-bottom: 4px; border-radius: 6px; background: var(--outlineFill); font-size: 14px; }
.irow span { flex: 1; color: var(--soft); font-weight: 500; } .irow b { font-weight: 700; }
.choice { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; margin-bottom: 6px; border-radius: 8px; text-align: left; background: var(--outlineFill); border: 1px solid var(--outlineEdge); }
.choice.on { background: rgba(59,26,138,.55); border-color: var(--accentHi); }
.choice .rd { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--muted); display: flex; align-items: center; justify-content: center; flex: none; }
.choice.on .rd { border-color: var(--accentHi); } .choice.on .rd::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accentHi); }
.choice b { display: block; font-size: 14px; } .choice small { font-size: 12px; color: var(--muted); }
.act { display: inline-block; margin: 0 6px 6px 0; padding: 10px 20px; border-radius: 8px; font-weight: 700; font-size: 14px; background: var(--accentBrush); }
.act.danger { background: #5A1020; border: 1px solid rgba(255,0,0,.6); }
.dim { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.65); display: flex; align-items: center; justify-content: center; }
.dlg { width: min(440px, 86%); border-radius: 10px; padding: 22px; background: var(--steel); border: 1px solid rgba(255,255,255,.25); }
.dlg h3 { margin: 0 0 10px; font: 700 20px var(--display); }
.dlg p { margin: 0 0 18px; color: var(--soft); font-size: 15px; line-height: 1.5; white-space: pre-line; }
.dlg .b { display: flex; justify-content: flex-end; gap: 10px; }
.dlg .field { margin-bottom: 10px; }
.dlg .err { color: #ff8a8a; font-size: 13px; margin: -2px 0 10px; }
.acc { width: min(640px, 86%); display: flex; gap: 22px; align-items: center; }
.acc .l { flex: 1; display: flex; flex-direction: column; align-items: center; }
.acc .l svg { width: 36px; height: 36px; }
.acc h3 { margin: 4px 0 16px; }
.acc .ln { display: flex; width: 100%; margin-bottom: 10px; font-size: 15px; } .acc .ln span { color: var(--soft); } .acc .ln b { flex: 1; text-align: right; margin-left: 16px; font-weight: 600; }
.acc .r { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.acc .r p { font-size: 12px; color: var(--soft); margin: 8px 0 10px; }
.qrbox { background: #fff; padding: 8px; border-radius: 8px; margin-top: 8px; } .qrbox img, .qrbox canvas { display: block; width: 150px; height: 150px; }
.loading { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(0,0,0,.45); color: var(--soft); }
.loading .spin { width: 40px; height: 40px; border-width: 4px; }
#toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 99; padding: 10px 16px; border-radius: 10px; background: #2A1A4E; border: 1px solid rgba(167,139,250,.4); font-weight: 700; opacity: 0; transition: opacity .2s; pointer-events: none; }
#toast.on { opacity: 1; }

/* tela "Preparando suas listas…" (LoadingScreen do celular) */
.lbox { width: min(440px, 88%); display: flex; flex-direction: column; align-items: center; padding: 24px; border-radius: 10px; background: var(--steel); border: 1px solid rgba(255,255,255,.25); }
.lbox h2 { margin: 18px 0 2px; font: 700 20px var(--display); }
.lbox .sub { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.lline { display: flex; align-items: center; gap: 12px; width: 100%; padding: 5px 0; font-size: 14px; color: var(--soft); }
.lline .ic { width: 20px; height: 20px; flex: none; display: flex; align-items: center; justify-content: center; }
.lline.done .ic { color: var(--accentHi); } .lline.fail .ic { color: var(--red); }
.lline.wait { color: var(--muted); } .lline.wait .ic i { width: 6px; height: 6px; border-radius: 3px; background: var(--muted); }
.lline .spin { width: 16px; height: 16px; }

/* Player no desenho da Netflix (igual ao do celular e ao player completo): título no meio, pausar grande sem círculo, barra roxa. */
.player .tbar > div { text-align: center; }
.player .tbar h3 { font: 700 18px var(--body, Manrope); }
.player .pctl { gap: 90px; }
.player .pctl button { width: 80px; height: 80px; }
.player .pctl button svg { width: 52px; height: 52px; }
.player .pctl button.big { width: 100px; height: 100px; background: none; color: #fff; }
.player .pctl button.big svg { width: 84px; height: 84px; }
.player .seek .done, .player .seek .knob { background: #8B5CF6; }
.player .seek .knob { width: 16px; height: 16px; margin-left: -8px; top: 1px; }

/* Player pequeno no canto (picture-in-picture): só o essencial, em tamanho menor. */
body.mini .player .tbar { padding: 4px 6px; }
body.mini .player .tbar h3 { font-size: 13px; }
body.mini .player .tbar small, body.mini .player .pbar .prow .tm { display: none; }
body.mini .player .ib { width: 30px; height: 30px; }
body.mini .player .ib svg { width: 20px; height: 20px; }
body.mini .player .pctl { gap: 26px; }
body.mini .player .pctl button { width: 44px; height: 44px; }
body.mini .player .pctl button svg { width: 30px; height: 30px; }
body.mini .player .pctl button.big { width: 56px; height: 56px; }
body.mini .player .pctl button.big svg { width: 48px; height: 48px; }
body.mini .player .pbar { padding: 0 6px 2px; }

/* Brilho do player (só escurece o vídeo), à esquerda como no celular. */
.player .bright { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px; cursor: ns-resize; transition: opacity .25s; touch-action: none; }
.player .bright svg { width: 22px; height: 22px; }
.player .bright .trk { position: relative; width: 4px; height: 140px; border-radius: 2px; background: rgba(255,255,255,.3); }
.player .bright .trk i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 2px; background: #fff; }
.player.idle .bright, body.mini .player .bright { opacity: 0; pointer-events: none; }

/* ---------- ativação do aparelho (teste grátis / Pix / QR do site) ---------- */
.activ { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 24px 36px 34px; overflow-y: auto; }
.activ::before, .activ::after { content: ""; flex: 1 0 0; }   /* centraliza quando cabe; quando não cabe, rola sem cortar o topo */
.aback { position: absolute; left: 16px; top: 16px; }
.acard { width: min(900px, 100%); border-radius: 14px; border: 1px solid rgba(255,255,255,.22); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.25)); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
/* TV (lojas): esquerda textos, direita QR — igual à Roku */
.acard.tv { margin-top: 18px; padding: 34px 40px; display: grid; grid-template-columns: 1fr auto; gap: 0 48px; align-items: center; }
.acard.tv h1 { margin: 0; font: 700 26px var(--display); letter-spacing: -.3px; }
.acard.tv .asub { margin: 6px 0 22px; color: var(--soft); font-size: 14px; line-height: 1.5; }
.acard.tv .alab { display: block; color: var(--soft); font-size: 12px; font-weight: 600; }
.amacv { display: block; margin: 2px 0 4px; padding: 0; border: 0; background: none; color: var(--accentHi, #b9a3ff); font: 700 34px var(--display); letter-spacing: 2px; cursor: pointer; text-align: left; }
.amacv:hover, .amacv:focus { outline: 2px solid rgba(255,255,255,.6); outline-offset: 4px; border-radius: 6px; }
.acard.tv .akey { display: block; color: var(--soft); font-size: 12.5px; }
.acard.tv .ago { margin: 20px 0 10px; font-weight: 700; font-size: 16px; }
.acard.tv .ahint2 { margin: 0; color: var(--soft); font-size: 13.5px; line-height: 1.5; }
.acard.tv .ar { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.acard.tv .aqcap { color: var(--soft); font-size: 12.5px; text-align: center; max-width: 230px; }
.acard.tv .alink { color: var(--accentHi, #b9a3ff); font-weight: 700; font-size: 14px; text-decoration: none; }
/* PC / APK do site: cartão central com Pix */
.acard.pc { margin-top: 8px; padding: 26px 36px 28px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.acard.pc h1 { margin: 2px 0 0; font: 700 28px var(--display); letter-spacing: -.3px; } .acard.pc h1.red { color: #ff3b3b; }
.acard.pc .aprice2 { margin: 0; font-size: 17px; color: #fff; }
.amac { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 34px; border-radius: 10px; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.22); color: #fff; cursor: pointer; }
.amac small { color: var(--soft); font-size: 12.5px; font-weight: 600; } .amac b { font: 700 30px var(--display); letter-spacing: 2px; }
.amac:hover, .amac:focus { border-color: rgba(255,255,255,.7); }
.apixarea { width: min(520px, 100%); display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.pill.big { height: 46px; font-size: 15px; width: 100%; }
.ahint { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; } .ahint.alt a { color: #fff; font-weight: 700; }
.aqr { background: #fff; padding: 8px; border-radius: 10px; width: 216px; height: 216px; flex: none; display: flex; align-items: center; justify-content: center; color: #000; font-weight: 700; font-size: 12px; text-align: center; }
.aqr img, .aqr canvas { display: block; width: 200px; height: 200px; }
.apixw { display: flex; gap: 22px; align-items: center; text-align: left; width: min(760px, 100%); }
.apixt { display: flex; flex-direction: column; gap: 10px; min-width: 0; flex: 1; }
.apixtx { margin: 0; font-size: 14.5px; line-height: 1.55; color: #fff; }
.acopy { font: 600 11px monospace; word-break: break-all; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.15); border-radius: 8px; padding: 10px; max-height: 64px; overflow: auto; color: #d8cff5; }
.apixb { display: flex; gap: 10px; flex-wrap: wrap; }
.ast { min-height: 20px; font-size: 14px; font-weight: 600; color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; } .ast.err { color: var(--red); } .ast.ok { color: #7be0b5; }
@media (max-width: 760px) { .acard.tv { grid-template-columns: 1fr; justify-items: center; text-align: center; } .amacv { text-align: center; } .apixw { flex-direction: column; } }
@media (max-height: 640px) { .acard.pc { padding: 16px 24px 18px; gap: 6px; } .acard.pc h1 { font-size: 22px; } .amac b { font-size: 24px; } .aqr { width: 166px; height: 166px; } .aqr img, .aqr canvas { width: 150px; height: 150px; } }
.acard.tv .ast { justify-content: flex-start; }

/* ---------- Player no desenho do APK: barra de baixo (Velocidade · Bloquear · Episódios · Idioma e legendas · Próx. ep.), Temporizador, volume ---------- */
.player .tl { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: #fff; font: 600 15px var(--body, Manrope); cursor: pointer; white-space: nowrap; }
.player .tl svg { width: 24px; height: 24px; fill: currentColor; } .player .tl:hover { background: rgba(255,255,255,.12); } .player .tl.on { color: #c4b5fd; }
.player .brow { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 34px; margin-top: 6px; }
.player .brow button { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: #fff; font: 600 15.5px var(--body, Manrope); cursor: pointer; white-space: nowrap; }
.player .brow button svg { width: 24px; height: 24px; fill: currentColor; } .player .brow button:hover { background: rgba(255,255,255,.12); }
.player.idle .brow, .player.idle .nxcard .nxx { opacity: 1; }
.player .bright.vol { left: auto; right: 18px; }
.player .bright .vi { display: flex; } .player .bright .vi svg { width: 22px; height: 22px; fill: currentColor; }
.player.idle .vol { opacity: 0; pointer-events: none; }
.tv .player .vol, body.mini .player .vol, body.mini .player .brow, body.mini .player .tl { display: none; }
/* próximo episódio (últimos 50 s) */
.player .nxcard { position: absolute; right: 24px; bottom: 150px; z-index: 3; display: flex; align-items: center; gap: 18px; padding: 16px 18px; border-radius: 14px; background: rgba(28,16,64,.95); border: 1px solid rgba(255,255,255,.22); cursor: pointer; max-width: 420px; }
.player .nxcard[hidden] { display: none; }
.player .nxcard small { display: block; color: #d6cdf5; font-size: 14px; } .player .nxcard b { display: block; font: 700 17px var(--body, Manrope); margin-top: 3px; }
.player .nxcard .cd { width: 54px; height: 54px; flex: none; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; font: 800 20px var(--body, Manrope); }
.player .nxx { width: 32px; height: 32px; flex: none; border: 0; border-radius: 8px; background: rgba(255,255,255,.08); color: #fff; font: 400 22px/1 var(--body, Manrope); cursor: pointer; display: grid; place-items: center; }
.player .nxx:hover { background: rgba(255,255,255,.18); }
/* tela bloqueada */
.player.locked .tbar, .player.locked .pctl, .player.locked .pbar, .player.locked .bright, .player.locked .nxcard { display: none !important; }
.player .lockv { position: absolute; left: 0; right: 0; bottom: 40px; z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 10px; color: #e9e3ff; font-size: 14px; }
.player .lockv[hidden] { display: none; }
.player .lockv button { width: 64px; height: 64px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; cursor: pointer; display: grid; place-items: center; }
.player .lockv button svg { width: 30px; height: 30px; fill: currentColor; }
/* painéis */
.player .ppanel { position: absolute; z-index: 5; background: rgba(20,10,46,.97); border: 1px solid rgba(255,255,255,.18); color: #fff; overflow: hidden; display: flex; flex-direction: column; }
.player .ppanel[hidden] { display: none; }
.player .ppanel.small { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100% - 32px)); max-height: 80%; border-radius: 14px; }
.player .ppanel.eps { right: 0; top: 0; bottom: 0; width: min(560px, 62%); border-radius: 0; border-width: 0 0 0 1px; }
.player .ppanel .pph { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 18px 10px; }
.player .ppanel .pph h3 { margin: 0; font: 700 20px var(--display); }
.player .ppanel .ppb { overflow-y: auto; padding: 4px 18px 18px; }
.player .ppanel h4 { margin: 12px 0 8px; font-size: 13px; color: #c4b5fd; text-transform: uppercase; letter-spacing: .6px; }
.player .ppanel .chs { display: flex; flex-wrap: wrap; gap: 8px; }
.player .ppanel .choice { padding: 10px 16px; border-radius: 10px; border: 0; background: rgba(255,255,255,.08); color: #fff; font: 600 14.5px var(--body, Manrope); cursor: pointer; }
.player .ppanel .choice.on { background: #8B5CF6; font-weight: 800; } .player .ppanel .choice:hover:not(.on) { background: rgba(255,255,255,.16); }
.player .ppanel .muted { color: #b9aedb; margin: 4px 0 0; }
.player .ppanel .seas { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; }
.player .ppanel .seas .choice { white-space: nowrap; }
.player .ppanel .epl { display: flex; flex-direction: column; gap: 10px; }
.player .ppanel .epi { display: flex; gap: 14px; align-items: center; padding: 10px; border: 0; border-radius: 12px; background: rgba(255,255,255,.04); color: #fff; text-align: left; cursor: pointer; font-family: var(--body, Manrope); }
.player .ppanel .epi.on { background: rgba(139,92,246,.28); } .player .ppanel .epi:hover:not(.on) { background: rgba(255,255,255,.1); }
.player .ppanel .epi .th { position: relative; width: 168px; aspect-ratio: 16 / 9; flex: none; border-radius: 8px; overflow: hidden; background: #1c1236; display: grid; place-items: center; }
.player .ppanel .epi .th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player .ppanel .epi .th i { position: relative; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.55); display: grid; place-items: center; }
.player .ppanel .epi .th i svg { width: 22px; height: 22px; fill: #fff; }
.player .ppanel .epi .th u { position: absolute; left: 0; bottom: 0; height: 4px; background: #8B5CF6; }
.player .ppanel .epi .tx b { display: block; font-size: 15px; } .player .ppanel .epi .tx small { display: block; color: #c4b5fd; font-size: 13px; margin-top: 4px; }
@media (max-width: 760px) { .player .brow { gap: 4px 10px; } .player .brow button span, .player .tl span { display: none; } .player .ppanel.eps { width: 100%; } .player .ppanel .epi .th { width: 120px; } }
