/* Cubo Player — web/TV. Tela desenhada em 1280x720 e ampliada para caber (js/main.js → fitStage). */
:root {
  --bg: #0b1020;
  --bg2: #121a33;
  --bg3: #1b2547;
  --text: #e8ecf8;
  --muted: #8d97b5;
  --accent: #22d3ee;
  --danger: #ef4444;
  --warn: #f59e0b;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; }
body { font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--text); }

#stage {
  position: absolute; left: 0; top: 0; width: 1280px; height: 720px;
  transform-origin: 0 0; background: var(--bg); overflow: hidden;
}
#screen, #layers { position: absolute; inset: 0; }
#screen { z-index: 0; }
.detail { z-index: 4; }
#layers:empty { display: none; }
#layers > * { position: absolute; inset: 0; }

/* Vídeo único: a miniatura e a tela cheia usam o mesmo elemento (só muda o tamanho) */
#video { position: absolute; background: #000; display: none; z-index: 1; object-fit: contain; }
#video.show { display: block; }
#video.full { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; z-index: 5; }
.full-mode #screen { visibility: hidden; }

/* Foco do controle remoto */
.f { outline: none; cursor: pointer; transition: transform .08s, background .08s, border-color .08s; }
.f.focused { box-shadow: 0 0 0 3px var(--accent); }

/* ── Ativação ── */
.act { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 14px; text-align: center;
  background: radial-gradient(circle at 50% 30%, #1a2a5a 0%, var(--bg) 70%); }
.act .brand { font-size: 40px; font-weight: 700; letter-spacing: .5px; }
.act .brand b { color: var(--accent); }
.act .label { color: var(--muted); font-size: 20px; }
.act .code { font: 700 88px/1 "Consolas", "Courier New", monospace; letter-spacing: 14px; color: var(--accent);
  background: var(--bg2); padding: 22px 40px 22px 54px; border-radius: 18px; border: 2px solid var(--bg3); }
.act .hint { color: var(--muted); font-size: 18px; max-width: 760px; }
.act .state { font-size: 18px; }
.act .state.bad { color: var(--danger); }

/* ── Topo ── */
.top { position: absolute; left: 0; right: 0; top: 0; height: 64px; display: flex; align-items: center; gap: 6px; padding: 0 28px;
  background: linear-gradient(#0b1020, rgba(11,16,32,.85)); z-index: 2; }
.top .logo { font-weight: 700; font-size: 22px; margin-right: 22px; white-space: nowrap; }
.top .logo b { color: var(--accent); }
.tab { padding: 8px 18px; border-radius: 20px; font-size: 18px; color: var(--muted); white-space: nowrap; }
.tab.sel { color: var(--text); background: var(--bg3); }
.tab.focused { background: var(--accent); color: #001018; box-shadow: none; }
.top .spacer { flex: 1; }
.top .clock { font-size: 20px; color: var(--muted); }
.top .badge { font-size: 15px; padding: 4px 10px; border-radius: 12px; background: var(--warn); color: #1a1200; margin-right: 12px; }
.top .badge.red { background: var(--danger); color: #fff; }
.body { position: absolute; left: 0; right: 0; top: 64px; bottom: 0; }

/* ── Listas (categorias, canais) ── */
.col { position: absolute; top: 8px; bottom: 16px; overflow: hidden; }
.scroll { overflow-y: auto; scrollbar-width: none; height: 100%; padding: 4px 6px; position: relative; }
.btn.sel { outline: 2px solid var(--accent); }
.scroll::-webkit-scrollbar { display: none; }
.item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 17px; color: #cfd6ea;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; min-height: 42px; }
.item .t { overflow: hidden; text-overflow: ellipsis; flex: 1; }
.item .n { color: var(--muted); font-size: 14px; min-width: 34px; }
.item .cnt { color: var(--muted); font-size: 14px; }
.item.sel { background: var(--bg2); color: #fff; }
.item.playing .t { color: var(--accent); }
.item.focused { background: var(--accent); color: #001018; box-shadow: none; }
.item.focused .n, .item.focused .cnt, .item.focused.playing .t { color: #003040; }
.item img { width: 46px; height: 30px; object-fit: contain; flex: none; }
.empty { color: var(--muted); padding: 16px; font-size: 17px; }

/* ── TV ao vivo ── */
.live-cats { left: 16px; width: 250px; }
.live-chans { left: 276px; width: 390px; border-left: 1px solid var(--bg3); }
.live-side { position: absolute; left: 690px; right: 24px; top: 12px; bottom: 16px; }
.preview { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 12px; position: relative; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 16px; }
.preview.focused { box-shadow: 0 0 0 3px var(--accent); }
.now { margin-top: 14px; }
.now .ch { font-size: 22px; font-weight: 600; }
.now .prog { font-size: 18px; margin-top: 8px; }
.now .next { font-size: 16px; color: var(--muted); margin-top: 6px; }
.bar { height: 4px; background: var(--bg3); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); }

/* ── Tela cheia (ao vivo) ── */
.osd { position: absolute; left: 40px; right: 40px; bottom: 30px; padding: 18px 24px; border-radius: 16px;
  background: linear-gradient(rgba(8,12,26,.80), rgba(8,12,26,.92)); display: flex; gap: 20px; align-items: center; z-index: 6; }
.osd .num { font-size: 34px; font-weight: 700; color: var(--accent); min-width: 70px; text-align: center; }
.osd img { width: 90px; height: 56px; object-fit: contain; }
.osd .info { flex: 1; min-width: 0; }
.osd .name { font-size: 24px; font-weight: 600; }
.osd .prog { font-size: 18px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.osd .next { font-size: 15px; color: var(--muted); margin-top: 4px; }
.osd .clock { font-size: 20px; color: var(--muted); align-self: flex-start; }
.full-list { position: absolute; left: 0; top: 0; bottom: 0; width: 660px; z-index: 6;
  background: linear-gradient(90deg, rgba(8,12,26,.95) 70%, rgba(8,12,26,0)); }
.full-list .live-cats { top: 20px; }
.full-list .live-chans { top: 20px; }
.msg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 7; background: rgba(8,12,26,.88);
  padding: 16px 26px; border-radius: 12px; font-size: 18px; text-align: center; max-width: 760px; }
.spinner { width: 42px; height: 42px; border: 4px solid rgba(255,255,255,.2); border-top-color: var(--accent); border-radius: 50%;
  animation: spin 0.9s linear infinite; position: absolute; left: 50%; top: 50%; margin: -21px; z-index: 7; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Filmes / Séries ── */
.vod-cats { left: 16px; width: 250px; }
.grid-wrap { position: absolute; left: 280px; right: 0; top: 0; bottom: 0; }
.grid-title { font-size: 20px; padding: 14px 8px 6px; color: var(--muted); }
.grid-title b { color: var(--text); }
.grid { position: absolute; top: 48px; left: 0; right: 0; bottom: 0; overflow-y: auto; scrollbar-width: none; padding: 8px 20px 30px 8px;
  display: flex; flex-wrap: wrap; gap: 16px; align-content: flex-start; }
.grid::-webkit-scrollbar { display: none; }
.poster { width: 144px; border-radius: 10px; overflow: hidden; background: var(--bg2); position: relative; }
.poster .img { width: 144px; height: 212px; background: var(--bg3) center/cover no-repeat; }
.poster .cap { font-size: 14px; padding: 6px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #cfd6ea; }
.poster.focused { transform: scale(1.06); z-index: 1; }
.poster .star { position: absolute; right: 6px; top: 6px; color: #ffd166; font-size: 18px; text-shadow: 0 1px 3px #000; }

/* ── Detalhe ── */
.detail { background: var(--bg) center/cover no-repeat; }
.detail .shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,16,32,.97) 40%, rgba(11,16,32,.55)); }
.detail .in { position: absolute; left: 60px; top: 60px; right: 60px; bottom: 30px; display: flex; gap: 36px; }
.detail .cover { width: 240px; height: 354px; border-radius: 14px; background: var(--bg3) center/cover no-repeat; flex: none; }
.detail .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.detail h1 { margin: 0 0 8px; font-size: 34px; }
.detail .meta { color: var(--muted); font-size: 17px; margin-bottom: 12px; }
.detail .plot { font-size: 17px; line-height: 1.45; max-height: 150px; overflow: hidden; color: #cfd6ea; }
.btns { display: flex; gap: 12px; margin: 18px 0 10px; }
.btn { padding: 12px 26px; border-radius: 26px; background: var(--bg3); font-size: 18px; white-space: nowrap; }
.btn.focused { background: var(--accent); color: #001018; box-shadow: none; }
.seasons { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.eps { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; margin-top: 6px; }
.eps::-webkit-scrollbar { display: none; }

/* ── Player de filmes ── */
.vctl { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 50px 30px; z-index: 6;
  background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.85)); }
.vctl .title { font-size: 24px; font-weight: 600; margin-bottom: 14px; }
.vctl .bar { height: 6px; }
.vctl .times { display: flex; justify-content: space-between; font-size: 16px; color: var(--muted); margin-top: 8px; }

/* ── Ajustes e diálogos ── */
.settings { padding: 24px 40px; }
.settings h2 { font-size: 22px; margin: 0 0 12px; color: var(--muted); font-weight: 500; }
.settings .devcode { font: 700 44px "Consolas", monospace; color: var(--accent); letter-spacing: 6px; margin-bottom: 22px; }
.settings .row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.dialog { background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 9; }
.dialog .box { background: var(--bg2); border-radius: 16px; padding: 26px 30px; min-width: 460px; max-width: 760px; max-height: 600px; display: flex; flex-direction: column; }
.dialog h3 { margin: 0 0 14px; font-size: 22px; }
.dialog .scroll { max-height: 440px; }

#toast { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 20; background: rgba(8,12,26,.95);
  border: 1px solid var(--bg3); padding: 12px 22px; border-radius: 12px; font-size: 18px; display: none; }
#toast.show { display: block; }

/* Detalhe com logo do título, notas, elenco e episódios com imagem */
.detail .logo-title { max-width: 420px; max-height: 120px; object-fit: contain; object-position: left; margin-bottom: 10px; }
.detail .meta { display: flex; align-items: center; gap: 10px; }
.detail .age { background: #f5c518; color: #111; font-weight: 700; border-radius: 6px; padding: 1px 8px; font-size: 15px; }
.detail .rates { font-size: 16px; color: #f5c518; margin-bottom: 4px; }
.detail .people { font-size: 15px; color: var(--muted); margin-top: 10px; line-height: 1.5; max-height: 70px; overflow: hidden; }
.detail .people b { color: #cfd6ea; font-weight: 600; }
.detail .in.series { bottom: 250px; }
.detail .in.series .cover { width: 200px; height: 295px; }
.detail .in.series .plot { max-height: 75px; }
.eps-area { position: absolute; left: 60px; right: 0; bottom: 16px; height: 226px; }
.btn.sm { padding: 7px 16px; font-size: 16px; }
.eprow { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 10px 40px 10px 4px; margin-top: 6px; }
.eprow::-webkit-scrollbar { display: none; }
.ep { flex: none; width: 236px; border-radius: 10px; background: var(--bg2); overflow: hidden; }
.ep.focused { transform: scale(1.05); }
.ep .eimg { height: 120px; background: var(--bg3) center/cover no-repeat; position: relative; }
.ep .enum { position: absolute; left: 8px; top: 8px; background: rgba(0,0,0,.7); border-radius: 6px; padding: 2px 8px; font-size: 14px; }
.ep .eimg .bar { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; border-radius: 0; }
.ep .et { font-size: 15px; padding: 7px 10px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep .ed { font-size: 13px; color: var(--muted); padding: 2px 10px 8px; min-height: 22px; }

/* Lupa dentro da categoria */
.grid-title { display: flex; align-items: center; gap: 8px; }
.grid-title .cnt { color: var(--muted); }
.grid-title .gsearch { margin-left: auto; margin-right: 24px; padding: 4px 14px; border-radius: 16px; background: var(--bg3); font-size: 15px; color: #cfd6ea; }
.grid-title .gsearch.focused { background: var(--accent); color: #001018; box-shadow: none; }

/* ── Páginas com fileiras (Início, Kids, Minha lista, busca) ── */
.vpage { position: absolute; inset: 0; overflow-y: auto; scrollbar-width: none; padding: 6px 0 40px; }
.vpage::-webkit-scrollbar { display: none; }
.shelf { margin: 4px 0 6px; }
.shelf h2 { font-size: 20px; font-weight: 600; margin: 8px 32px 2px; }
.shelf h2 .sub { color: var(--muted); font-weight: 400; font-size: 16px; }
.hrow { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 10px 32px 12px; }
.hrow::-webkit-scrollbar { display: none; }
.hrow > * { flex: none; }
.hrow .poster { width: 132px; }
.hrow .poster .img { width: 132px; height: 194px; }
.poster.more .img, .poster.loading .img { display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--muted); }
.poster .pbar { position: absolute; left: 0; right: 0; bottom: 30px; margin: 0; border-radius: 0; }
.chcard { width: 168px; border-radius: 10px; background: var(--bg2); overflow: hidden; }
.chcard .logo { height: 96px; display: flex; align-items: center; justify-content: center; background: #10172d; }
.chcard .logo img { max-width: 120px; max-height: 70px; object-fit: contain; }
.chcard .cap { font-size: 14px; padding: 7px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chcard.focused { transform: scale(1.06); }
.promos .hrow { padding-top: 6px; }
.promo { width: 440px; height: 220px; border-radius: 14px; background: var(--bg3) center/cover no-repeat; position: relative; overflow: hidden; }
.promo .ptitle { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 16px 12px; font-size: 18px; font-weight: 600;
  background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.8)); }
.promo.focused { transform: scale(1.03); }
.empty.big { padding: 60px 32px; font-size: 20px; }

/* ── Busca geral ── */
.search-bar { padding: 14px 32px 4px; }
.search-input { width: 100%; font-size: 22px; padding: 12px 18px; border-radius: 12px; border: 2px solid var(--bg3); background: var(--bg2); color: #fff; outline: none; }
.search-input.focused { border-color: var(--accent); box-shadow: none; }

/* ── Senha dos pais (teclado ao lado do texto) ── */
.pin-box { flex-direction: row !important; gap: 30px; align-items: center; }
.pin-left { width: 260px; }
.pin-msg { color: var(--muted); font-size: 16px; margin-bottom: 18px; }
.pin-dots { display: flex; gap: 14px; }
.pin-dots span { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--muted); }
.pin-dots span.on { background: var(--accent); border-color: var(--accent); }
.pin-pad { display: grid; grid-template-columns: repeat(3, 70px); gap: 10px; }
.pin-key { height: 56px; border-radius: 12px; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.pin-key.focused { background: var(--accent); color: #001018; box-shadow: none; }

.dialog .notice { font-size: 18px; line-height: 1.5; white-space: pre-wrap; max-width: 620px; }
.settings h2 { margin-top: 8px; }
.top .tab { padding: 8px 14px; }

/* ── Guia do canal (ao lado da miniatura) ── */
.now { position: absolute; left: 0; right: 0; top: 330px; bottom: 0; display: flex; flex-direction: column; margin-top: 0; }
.now .ch { font-size: 19px; margin-bottom: 6px; }
.guide { flex: 1; min-height: 0; height: auto; padding: 0; }
.gi { background: var(--bg2); border-radius: 10px; padding: 8px 12px; margin-bottom: 6px; }
.gi.on { background: #18234a; }
.gh { display: flex; align-items: center; gap: 8px; }
.gt { flex: 1; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin-top: 2px; }
.gd { font-size: 13px; color: #b9c2dc; margin-top: 6px; max-height: 54px; overflow: hidden; line-height: 1.35; }
.tag.live { background: #dc2626; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.osd .name .q { font-size: 15px; color: var(--muted); font-weight: 400; margin-left: 12px; }
.osd .desc { font-size: 14px; color: #b9c2dc; margin-top: 6px; max-height: 40px; overflow: hidden; line-height: 1.4; }

/* ── Destaque do Início ── */
.hero { position: relative; height: 330px; margin: 6px 32px 8px; border-radius: 16px; overflow: hidden; background: var(--bg2) center/cover no-repeat; }
.hshade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,16,32,.96) 30%, rgba(11,16,32,.4) 70%, rgba(11,16,32,.1)); }
.htxt { position: absolute; left: 36px; top: 30px; width: 560px; }
.htxt h1 { font-size: 34px; margin: 0 0 10px; }
.hlogo { max-width: 380px; max-height: 110px; object-fit: contain; object-position: left; display: block; margin-bottom: 12px; }
.hmeta { font-size: 16px; color: #cfd6ea; display: flex; gap: 16px; }
.hmeta .hr { color: #f5c518; }
.hplot { font-size: 16px; line-height: 1.45; color: #b9c2dc; margin: 10px 0 16px; max-height: 70px; overflow: hidden; }
.hero .dots { position: absolute; right: 24px; bottom: 16px; display: flex; gap: 6px; }
.hero .dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); }
.hero .dots span.on { background: var(--accent); width: 22px; border-radius: 4px; }

/* ── Termos de uso ── */
.terms { display: flex; align-items: center; justify-content: center; height: 100%; background: radial-gradient(circle at 50% 20%, #1a2a5a 0%, var(--bg) 70%); }
.terms-box { width: 900px; height: 600px; background: var(--bg2); border-radius: 18px; padding: 28px 34px; display: flex; flex-direction: column; }
.terms-box h1 { margin: 0 0 12px; font-size: 30px; }
.terms-text { flex: 1; height: auto; min-height: 0; font-size: 17px; line-height: 1.55; color: #cfd6ea; padding-right: 10px; }
.terms-box .btns { justify-content: flex-end; margin-bottom: 0; }

/* ── Informações da conta (Ajustes) ── */
.infobox { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 24px; background: var(--bg2); border-radius: 12px; padding: 14px 18px; margin-bottom: 16px; max-width: 1100px; }
.infobox div { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; color: var(--muted); }
.infobox b { color: var(--text); font-weight: 600; }
.hero-btn { display: inline-block; }

/* Botões do mouse na tela cheia */
.mbar { position: absolute; top: 18px; right: 22px; display: flex; gap: 10px; z-index: 8; opacity: 0; transition: opacity .2s; pointer-events: none; }
.mbar.show { opacity: 1; pointer-events: auto; }
.mbar .mb { background: rgba(8,12,26,.85); border: 1px solid #2a3560; padding: 8px 16px; border-radius: 20px; font-size: 16px; cursor: pointer; }
.mbar .mb:hover { background: var(--accent); color: #001018; }
#video { cursor: pointer; }

/* Miniatura + guia em coluna (não se sobrepõem em telas largas) */
.live-side { display: flex; flex-direction: column; }
.live-side .preview { flex: none; height: 50%; width: auto; max-width: 100%; aspect-ratio: 16 / 9; align-self: flex-start; }
.now { position: static; flex: 1; min-height: 0; margin-top: 12px; }

/* Aviso "Conectando…" por cima do vídeo (o player cuida dele) */
#vload { position: absolute; z-index: 2; display: none; align-items: center; justify-content: center; flex-direction: column; gap: 12px;
  background: rgba(0,0,0,.45); pointer-events: none; text-align: center; }
#vload.show { display: flex; }
#vload.full { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; z-index: 6; }
#vload .vl-spin { width: 40px; height: 40px; border: 4px solid rgba(255,255,255,.2); border-top-color: var(--accent); border-radius: 50%; animation: spin .9s linear infinite; }
#vload .vl-text { font-size: 16px; color: #e8ecf8; background: rgba(8,12,26,.75); padding: 6px 14px; border-radius: 10px; }
#vload.full .vl-text { font-size: 20px; }
#layers .spinner { display: none !important; }

/* Player de filmes: dica, botão de áudio/legendas e o "+40 s" */
.vctl .vhint { display: flex; align-items: center; gap: 16px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.seekmsg { font-size: 26px; font-weight: 600; }
.box.tracks { flex-direction: row !important; gap: 28px; min-width: 640px; }
.box.tracks .tcol { flex: 1; min-width: 260px; }
.box.tracks .scroll { max-height: 360px; height: auto; }
video::cue { font-size: 28px; background: rgba(0,0,0,.55); }
/* volume (só no navegador; na TV o volume é o da própria TV) */
.volbox { display: inline-flex; align-items: center; gap: 8px; }
.volrange { width: 110px; accent-color: var(--accent); cursor: pointer; }
.mbar .volbox { background: rgba(8,12,26,.85); border: 1px solid #2a3560; border-radius: 20px; padding-right: 14px; }
.mbar .volbox .mb { border: 0; background: transparent; }
/* teste de internet (Ajustes) */
.speedbox .sp-main { text-align: center; margin-top: 8px; }
.speedbox .sp-phase { font-size: 14px; letter-spacing: 2px; color: var(--muted); }
.speedbox .sp-num { font-size: 52px; font-weight: 700; color: var(--accent); }
.speedbox .sp-unit { font-size: 18px; color: var(--accent); }
.speedbox .sp-graph { width: 70%; height: 70px; display: block; margin: 4px auto 10px; border-bottom: 2px solid rgba(34,211,238,.25); }
.speedbox .sp-graph polyline { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.speedbox .sp-tiles { display: flex; background: rgba(0,0,0,.25); border-radius: 10px; }
.speedbox .sp-tile { flex: 1; padding: 10px 0 0; border-bottom: 3px solid transparent; }
.speedbox .sp-tile.on { border-bottom-color: var(--accent); }
.speedbox .sp-tile.on .sp-l { color: var(--accent); }
.speedbox .sp-l { font-size: 15px; }
.speedbox .sp-v { font-size: 18px; font-weight: 700; color: var(--accent); }
.speedbox .sp-x { font-size: 12px; color: var(--muted); min-height: 16px; margin-bottom: 6px; white-space: pre; }
.speedbox .sp-msg { font-size: 15px; margin-top: 10px; }
/* Ajustes em cartões (3 por linha, cabem os 6 na tela) — vidro escuro com brilho da marca e borda fina */
.settings { padding: 14px 64px 20px; }
.sgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.scard { position: relative; border-radius: 14px; padding: 12px 16px 14px; border: 1px solid rgba(34,211,238,.35);
  background: linear-gradient(180deg, rgba(34,211,238,.13), rgba(18,26,51,.55) 45%, rgba(18,26,51,.35)); min-height: 250px; }
.scard-t { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.scard-i { width: 30px; height: 30px; border-radius: 50%; background: rgba(34,211,238,.18); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.scard .small { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.scard .devcode { font-size: 30px; letter-spacing: 4px; margin: 0 0 4px; }
.scard .kv { display: flex; font-size: 15px; margin: 3px 0; }
.scard .kv span { width: 110px; color: var(--muted); }
.scard .row { gap: 8px; margin: 10px 0 0; }
.scard .btn { padding: 9px 16px; font-size: 15px; }
.scard .infobox { margin: 0; padding: 0; background: none; font-size: 14px; }
.scard .speedbox { background: none; padding: 0; max-width: none; }
.scard .speedbox .sp-num { font-size: 38px; }
.scard .speedbox .sp-graph { height: 44px; }
.scard .infobox { grid-template-columns: 1fr; gap: 4px; max-width: none; }
/* ativação: painel de vidro escuro com borda da marca */
.act .act-card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 40px 28px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(11,16,32,.92), rgba(11,16,32,.85)); border: 1px solid rgba(34,211,238,.55);
  box-shadow: 0 0 60px rgba(34,211,238,.10); }
.act .act-title { font-size: 30px; font-weight: 700; }
.act .steps { display: flex; gap: 8px; }
.act .steps span { font-size: 14px; padding: 5px 12px; border-radius: 20px; background: rgba(34,211,238,.14); border: 1px solid rgba(34,211,238,.35); }
.act .label { font-size: 14px; letter-spacing: 2px; color: var(--accent); font-weight: 600; margin-top: 6px; }
.act .code { padding: 10px 26px; border: 2px solid var(--accent); border-radius: 14px; background: linear-gradient(180deg, rgba(34,211,238,.22), #0b1020); color: #fff; font-size: 72px; }
.act .act-row { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.act .state { padding: 9px 16px; border-radius: 24px; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.2); font-size: 16px; }
/* ícones de lupa e engrenagem no menu do topo */
.tabicon { display: inline-flex; align-items: center; }
.tabicon svg { width: 22px; height: 22px; display: block; }
.tabicon .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* teste de internet: linha e valores do upload em laranja */
.speedbox .sp-graph polyline.up { stroke: #fb923c; }
.speedbox .sp-main.is-up .sp-num, .speedbox .sp-main.is-up .sp-unit { color: #fb923c; }
.speedbox .sp-tile:nth-child(3) .sp-v { color: #fb923c; }
.speedbox .sp-tile:nth-child(3).on { border-bottom-color: #fb923c; }
.speedbox .sp-tile:nth-child(3).on .sp-l { color: #fb923c; }
/* "← Voltar" no canto do detalhe de filme/série */
.backbtn { position: absolute; top: 18px; left: 24px; z-index: 3; padding: 8px 18px; font-size: 16px;
  background: rgba(8,12,26,.75); border: 1px solid rgba(34,211,238,.4); }
