/* PlayTobit Web — interface (W2). 1rem = 10dp (ver app/main.js: escala TV ~960dp de largura). */
:root {
  --bg: #000; --surface: #0E0E12; --surface-high: #16161C; --surface-highest: #202028;
  --divider: rgba(255,255,255,.08); --outline: rgba(255,255,255,.12); --scrim: rgba(0,0,0,.8);
  --orange: #FF9F1C; --coral: #FF6A3D; --pink: #D1209A; --purple: #7B2FF7; --blue: #0A6CFF;
  --text: #F4F5FA; --text2: #9AA0B4; --muted: #62667A;
  --success: #22C55E; --danger: #FF4D5E; --warning: #FFC145; --glow: #B0249E;
  --brand: linear-gradient(135deg, #FF9F1C, #FF6A3D, #D1209A, #7B2FF7, #0A6CFF);
  --brand-h: linear-gradient(90deg, #FF9F1C, #FF6A3D, #D1209A, #7B2FF7, #0A6CFF);
  --brand-v: linear-gradient(180deg, #FF9F1C, #FF6A3D, #D1209A, #7B2FF7, #0A6CFF);
  --brand-soft: linear-gradient(90deg, rgba(123,47,247,.28), rgba(209,32,154,.16), transparent);
  /* Medidas (celular por padrao; .wide = TV) */
  --gutter: 1.6rem; --spacing: 1rem; --poster-w: 11.2rem; --wide-w: 22rem; --logo: 4.8rem; --cat-w: 22rem;
  --rail-w: 7.6rem; --rail-x: 22rem; --fscale: 1.05; --safe-v: 0rem; --bottom-bar: 0px;
  /* Tipografia (sp) */
  --t-title-m: 1.6rem; --t-title-s: 1.4rem; --t-label-l: 1.4rem; --t-body-m: 1.4rem; --t-body-s: 1.2rem; --t-label-m: 1.2rem; --t-label-s: 1.1rem;
  color-scheme: dark;
}
html.wide {
  --gutter: 4.8rem; --spacing: 1.6rem; --poster-w: 14rem; --wide-w: 26rem; --logo: 5.6rem; --cat-w: 26rem;
  --rail-w: 8.4rem; --rail-x: 24rem; --fscale: 1.08;
  --t-title-m: 1.7rem; --t-title-s: 1.5rem; --t-label-l: 1.5rem; --t-body-m: 1.5rem; --t-body-s: 1.3rem; --t-label-m: 1.3rem; --t-label-s: 1.2rem;
}
html.tv { --safe-v: 2.7rem; }
/* Computador/notebook (escala de mesa, 1rem ≈ 9–11px): colunas um pouco mais largas que na TV */
html.desk { --cat-w: 24rem; --poster-w: 15rem; --wide-w: 28rem; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); overflow: hidden; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--t-body-m); line-height: 1.43; -webkit-font-smoothing: antialiased; text-rendering: optimizeSpeed;
  overscroll-behavior: none; user-select: none; -webkit-user-select: none;
}
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; }
img { display: block; }
:focus { outline: none; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ico { width: 2.4rem; height: 2.4rem; fill: currentColor; flex: none; }
.grow { flex: 1 1 auto; min-width: 0; }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Tipos */
.h-display { font-size: 3.2rem; line-height: 3.8rem; font-weight: 800; }
.h-large { font-size: 2.8rem; line-height: 3.4rem; font-weight: 800; }
.h-medium { font-size: 2.4rem; line-height: 3rem; font-weight: 800; }
.h-small { font-size: 2rem; line-height: 2.6rem; font-weight: 700; }
.t-large { font-size: 2rem; line-height: 2.6rem; font-weight: 700; }
.t-medium { font-size: var(--t-title-m); line-height: 1.38; font-weight: 700; }
.t-small { font-size: var(--t-title-s); line-height: 1.38; font-weight: 600; }
.b-large { font-size: 1.6rem; line-height: 2.4rem; }
.b-medium { font-size: var(--t-body-m); line-height: 1.43; }
.b-small { font-size: var(--t-body-s); line-height: 1.36; color: var(--text2); }
.l-large { font-size: var(--t-label-l); line-height: 1.38; font-weight: 700; letter-spacing: .02rem; }
.l-medium { font-size: var(--t-label-m); line-height: 1.36; font-weight: 600; letter-spacing: .03rem; }
.l-small { font-size: var(--t-label-s); line-height: 1.3; font-weight: 600; letter-spacing: .04rem; }
.c2 { color: var(--text2); } .cm { color: var(--muted); } .cp { color: var(--pink); } .co { color: var(--orange); }

/* ---------- Estrutura ---------- */
#app { position: fixed; inset: 0; background: var(--bg); }
.screen { position: absolute; inset: 0; overflow: hidden; contain: strict; }
.content { position: absolute; inset: 0; }
html.wide .shell .content { left: var(--rail-w); }
html:not(.wide) .shell .content { bottom: calc(6.5rem + env(safe-area-inset-bottom)); }
.scroll-y { overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; scrollbar-width: none; }
.scroll-x { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: none; }
.scroll-y::-webkit-scrollbar, .scroll-x::-webkit-scrollbar { display: none; }
/* Chrome 121+: scrollbar-width desliga o ::-webkit-scrollbar (e mostra setas) → só no Firefox */
@supports not selector(::-webkit-scrollbar) { html.mouse .scroll-y { scrollbar-width: thin; scrollbar-color: #34343F transparent; } }
html.mouse .scroll-y { scrollbar-width: auto; }
html.mouse .scroll-y::-webkit-scrollbar-button { display: none; height: 0; }
html.mouse .scroll-y::-webkit-scrollbar { display: block; width: .8rem; }
html.mouse .scroll-y::-webkit-scrollbar-thumb { background: #34343F; border-radius: .4rem; }

/* Páginas (uma por tela; os layouts 2–4 reposicionam as regiões .pt-*) */
.pt-page { position: absolute; inset: 0; }
html.mouse [data-focusable]:hover > .fc { transform: scale(var(--fs, var(--fscale))); z-index: 2; }
html.mouse [data-focusable]:hover > .fc::before { opacity: 1; }
html.mouse [data-focusable]:hover > .fc::after { opacity: 0; }
[data-focusable] { cursor: pointer; }

/* ---------- Trilho lateral ---------- */
.rail {
  position: absolute; left: 0; top: 0; bottom: 0; width: var(--rail-w); z-index: 20;
  background: var(--bg); padding: calc(1.2rem + var(--safe-v)) 1.2rem calc(1.2rem + var(--safe-v)) 1.6rem;
  display: flex; flex-direction: column; gap: .4rem; overflow: hidden auto; scrollbar-width: none;
  transition: width .22s cubic-bezier(.2,.8,.2,1), background-color .22s;
}
.rail::-webkit-scrollbar { display: none; }
.rail::after { content: ""; position: absolute; top: 0; right: 0; width: 1px; height: 100%; background: linear-gradient(180deg, transparent, var(--purple), var(--pink), transparent); opacity: .25; transition: opacity .2s; }
.rail.open { width: var(--rail-x); background: var(--surface); }
.rail.open::after { opacity: .7; }
.rail-logo { height: 4.8rem; flex: none; display: flex; align-items: center; padding-left: 1rem; margin-bottom: .8rem; position: relative; }
.rail-logo .mark { height: 3.4rem; width: auto; }
.rail-logo .full { display: none; height: 3.3rem; align-items: center; gap: .66rem; }
.rail.open .rail-logo .mark { display: none; }
.rail.open .rail-logo .full { display: flex; }
.rail-item {
  position: relative; height: 4.4rem; flex: none; display: flex; align-items: center; gap: 1.4rem; padding: 0 1.4rem;
  border-radius: 1.4rem; color: var(--text2); white-space: nowrap; overflow: hidden; transition: transform .15s;
}
.rail-item .lbl { opacity: 0; transition: opacity .15s; font-size: var(--t-title-s); font-weight: 600; }
.rail.open .rail-item .lbl { opacity: 1; }
.rail-item.sel { background: var(--brand-soft); color: var(--text); }
.rail-item.sel::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: .3rem; border-radius: .2rem; background: var(--brand-v); }
.rail-item:focus, html.mouse .rail-item:hover { background: var(--brand-h); color: #fff; transform: scale(1.04); }
.rail-item:focus::before, html.mouse .rail-item:hover::before { display: none; }
.rail-sep { height: 1px; margin: .6rem 1rem; background: var(--brand-h); opacity: .25; flex: none; }

/* ---------- Barra inferior (celular) ---------- */
.bottombar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--bg);
  display: flex; height: calc(6.5rem + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
}
.bottombar::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--brand-h); opacity: .35; }
.bb-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; color: var(--text2); font-size: 1.1rem; min-width: 0; }
.bb-item .pill { width: 5.6rem; height: 3rem; border-radius: 1.5rem; display: flex; align-items: center; justify-content: center; }
.bb-item .ico { width: 2.2rem; height: 2.2rem; }
.bb-item.sel { color: var(--text); }
.bb-item.sel .pill { background: var(--brand-h); color: #fff; }
.bb-item:focus-visible .pill { outline: 2px solid var(--text); }

/* Folha "Mais" */
.sheet-scrim { position: absolute; inset: 0; z-index: 60; background: rgba(0,0,0,.55); animation: fade .18s; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 61; background: var(--surface); border-radius: 2.8rem 2.8rem 0 0; padding: 1.2rem 0 calc(2.4rem + env(safe-area-inset-bottom)); animation: up .22s cubic-bezier(.2,.8,.2,1); }
.sheet .grip { width: 3.2rem; height: .4rem; border-radius: .2rem; background: #4a4a55; margin: 0 auto 1.2rem; }
.sheet-item { display: flex; align-items: center; gap: 1.8rem; width: 100%; padding: 1.6rem 2.4rem; font-size: var(--t-title-m); font-weight: 700; }
.sheet-item .ico { color: var(--text2); }
.sheet-item.sel .ico { color: var(--orange); }
.sheet-item:focus, html.mouse .sheet-item:hover { background: var(--surface-highest); }
@keyframes fade { from { opacity: 0 } }
@keyframes up { from { transform: translateY(100%) } }

/* ---------- Cartões focáveis (escala + anel em gradiente) ---------- */
.fc {
  position: relative; display: block; border-radius: 1.2rem; background: var(--surface); overflow: hidden; isolation: isolate;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s; transform: translateZ(0); cursor: pointer;
}
.fc::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  box-shadow: inset 0 0 0 1px var(--outline); transition: opacity .15s;
}
.fc::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 4; padding: .25rem;
  background: var(--brand); opacity: 0; transition: opacity .15s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.fc:focus, :focus > .fc, html.mouse .fc:hover { transform: scale(var(--fs, var(--fscale))); z-index: 2; }
.fc:focus::before, :focus > .fc::before, html.mouse .fc:hover::before { opacity: 1; }
.fc:focus::after, :focus > .fc::after, html.mouse .fc:hover::after { opacity: 0; }
/* Itens de listas/grades virtuais: o foco fica no .vl-item e a superfície .fc pode estar mais abaixo (ex.: .poster > .fc). */
.vl-item:focus { z-index: 2; }
.vl-item:focus .fc { transform: scale(var(--fs, var(--fscale))); z-index: 2; }
.vl-item:focus .fc::before { opacity: 1; }
.vl-item:focus .fc::after { opacity: 0; }
html.rich .vl-item:focus .fc,
html.rich .fc:focus, html.rich :focus > .fc { box-shadow: 0 .6rem 1.8rem rgba(176,36,158,.45), 0 0 1.2rem rgba(123,47,247,.35); }
.fc:active { transform: scale(.97); }
.fc.f102 { --fs: 1.02; }

.img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s; }
.img.ok { opacity: 1; }
.img.fit { object-fit: contain; }
.ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; padding: .8rem; text-align: center;
  background: linear-gradient(135deg, rgba(255,159,28,.22), rgba(209,32,154,.22), rgba(123,47,247,.25), rgba(10,108,255,.2)), var(--surface-high); }
.ph b { font-size: 2.2rem; font-weight: 800; color: rgba(255,255,255,.92); letter-spacing: .05rem; }
.ph span { font-size: 1.1rem; color: rgba(255,255,255,.75); }

/* Poster 2:3 */
.poster { width: var(--poster-w); flex: none; }
.poster .fc { aspect-ratio: 2/3; width: 100%; }
@supports not (aspect-ratio: 1) { .poster .fc { height: calc(var(--poster-w) * 1.5); } }
.poster .ttl { margin: .8rem .2rem 0; color: rgba(244,245,250,.86); font-size: var(--t-title-s); font-weight: 600; line-height: 1.38; min-height: 2.76em; }
.poster:focus-within .ttl, :focus > .poster .ttl { color: var(--text); }
.poster .sub { margin: .2rem .2rem 0; }
.badge-r { position: absolute; top: .6rem; right: .6rem; z-index: 2; display: flex; align-items: center; gap: .3rem; padding: .3rem .6rem; border-radius: .8rem; background: rgba(0,0,0,.8); font-size: 1.1rem; font-weight: 700; line-height: 1.2rem; }
.badge-r .ico { width: 1.2rem; height: 1.2rem; color: var(--orange); }
.tag { display: inline-block; padding: .3rem .6rem; border-radius: .6rem; background: var(--brand-h); color: #fff; font-size: 1rem; line-height: 1.2rem; font-weight: 800; letter-spacing: .05rem; white-space: nowrap; }
.poster .tag { position: absolute; top: .6rem; left: .6rem; z-index: 2; }
.pbar { position: relative; height: .3rem; border-radius: .2rem; background: rgba(255,255,255,.18); overflow: hidden; }
.pbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: .2rem; background: var(--brand-h); }
.fc > .pbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; border-radius: 0; }

/* Cartão largo 16:9 */
.widecard { width: var(--wide-w); flex: none; aspect-ratio: 16/9; }
.widecard .scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 0, rgba(0,0,0,.4) 55%, rgba(0,0,0,.95) 100%); }
.widecard .txt { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; z-index: 2; }
.widecard .ttl { font-size: var(--t-title-s); font-weight: 600; }

/* Cartão de canal (Início) */
.chcard { width: 13.6rem; flex: none; }
html.wide .chcard { width: 17.6rem; }
.chcard .fc { aspect-ratio: 16/10; background: var(--surface-high); }
.chcard .fc .img { padding: 1.4rem; object-fit: contain; }
.chcard .star { position: absolute; top: .6rem; right: .6rem; z-index: 2; width: 1.6rem; height: 1.6rem; color: var(--orange); }
.chcard .ttl { margin: .6rem .2rem 0; font-size: var(--t-label-l); font-weight: 700; }

/* Logo de canal */
.chlogo { position: relative; flex: none; width: var(--logo); height: var(--logo); border-radius: 1rem; background: var(--surface-high); box-shadow: inset 0 0 0 1px var(--outline); overflow: hidden; }
.chlogo .img { padding: .6rem; object-fit: contain; }
.chlogo .ph b { font-size: 1.5rem; }

/* ---------- Botões ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .8rem; height: 4.8rem; min-width: 12rem; padding: 0 2.2rem;
  border-radius: 2.4rem; background: var(--brand-h); color: #fff; font-size: var(--t-label-l); font-weight: 700; letter-spacing: .02rem; white-space: nowrap;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s; flex: none;
}
.btn .ico { width: 2rem; height: 2rem; }
.btn.sec { background: var(--surface-high); box-shadow: inset 0 0 0 1px var(--outline); }
.btn:focus, html.mouse .btn:hover { transform: scale(1.06); box-shadow: 0 0 0 .2rem #fff; }
.btn.sec:focus, html.mouse .btn.sec:hover { box-shadow: none; }
.btn.sec::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: .2rem; background: var(--brand-h); opacity: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.btn.sec:focus::before, html.mouse .btn.sec:hover::before { opacity: 1; }
html.rich .btn:focus { box-shadow: 0 0 0 .2rem #fff, 0 .4rem 1.4rem rgba(176,36,158,.45); }
.btn:active { transform: scale(.96); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.full { width: 100%; }
.btnrow { display: flex; flex-wrap: wrap; gap: 1rem 1.2rem; }

/* Chips */
.chip {
  display: inline-flex; align-items: center; gap: .6rem; height: 3.8rem; padding: .6rem 1.6rem; border-radius: 1.9rem; flex: none;
  background: var(--surface-high); color: var(--text2); font-size: var(--t-label-l); font-weight: 600; white-space: nowrap; transition: transform .15s;
}
.chip.compact { height: 3.4rem; padding: .6rem 1.2rem; font-size: var(--t-label-m); }
.chip .ico { width: 1.6rem; height: 1.6rem; color: var(--text); }
.chip.sel { background: var(--brand-h); color: var(--text); font-weight: 700; }
.chip:focus, html.mouse .chip:hover { background-color: var(--surface-highest); color: var(--text); box-shadow: inset 0 0 0 .2rem var(--text); transform: scale(1.06); }
.chip.sel:focus { background: var(--brand-h); }
.chips { display: flex; gap: .8rem; padding: .4rem var(--gutter); }

/* Campo de busca/filtro compacto */
.sfield { position: relative; display: flex; align-items: center; height: 4.4rem; border-radius: 2.2rem; background: var(--surface-high); padding: 0 .6rem 0 1.4rem; flex: none; }
html.wide .sfield.qf { height: 4.2rem; }
html:not(.wide) .sfield.qf { height: 4.8rem; }
.sfield:focus-within { box-shadow: inset 0 0 0 .2rem transparent; }
.sfield::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: .2rem; background: var(--brand-h); opacity: 0; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.sfield:focus-within::before { opacity: 1; }
.sfield > .ico { width: 2rem; height: 2rem; color: var(--text2); }
.sfield input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; padding: 0 .8rem 0 1rem; font-size: var(--t-body-m); color: var(--text); caret-color: var(--pink); user-select: text; -webkit-user-select: text; }
.sfield input::placeholder { color: var(--muted); }
.sfield input::-webkit-search-cancel-button { display: none; }
.sfield .clr { width: 3.2rem; height: 3.2rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text2); }
.sfield .clr .ico { width: 1.8rem; height: 1.8rem; }
.sfield .clr:focus, html.mouse .sfield .clr:hover { background: var(--surface-highest); color: var(--text); }

/* Cabeçalho de tela */
.shead .h-medium { font-weight: 700; }
.shead .bar { width: 4rem; height: .3rem; border-radius: .2rem; background: var(--brand-h); margin-top: .6rem; }
.shead .sub { margin-top: .6rem; }

/* Seção horizontal */
.section { padding-top: .2rem; }
.section-h { display: flex; align-items: center; padding: 0 var(--gutter) .2rem; }
.section-h .acc { width: .4rem; height: 2rem; border-radius: .2rem; background: var(--brand-v); margin-right: 1rem; flex: none; }
.section-row { display: flex; gap: var(--spacing); padding: 1.2rem var(--gutter); }

/* ---------- Lista de categorias ---------- */
.catlist { position: relative; }
.cat {
  position: absolute; left: .8rem; right: .8rem; display: flex; align-items: center; min-height: 4.8rem; border-radius: 1.2rem; color: var(--text2);
}
.cat .bar { width: .4rem; align-self: stretch; margin: 1rem 0; border-radius: .2rem; flex: none; }
.cat .nm { flex: 1; min-width: 0; padding: 1rem .8rem 1rem 1rem; font-size: 1.6rem; line-height: 2.2rem; font-weight: 500; }
.cat .ct { padding-right: 1.4rem; font-size: var(--t-label-m); font-weight: 600; color: var(--muted); }
.cat.sel { background: var(--surface-high); color: var(--text); }
.cat.sel .nm, .cat:focus .nm, :focus > .cat .nm { font-weight: 700; }
.cat.sel .ct { color: var(--pink); }
.cat.sel .bar, .cat:focus .bar, :focus > .cat .bar, html.mouse .cat:hover .bar { background: var(--brand-v); }
.cat:focus, :focus > .cat, html.mouse .cat:hover { background: var(--surface-highest); color: var(--text); }
.cat:focus::after, :focus > .cat::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: .15rem; background: var(--brand-h); pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }

/* ---------- Estados ---------- */
.state { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 2.4rem; }
.state.inline { position: relative; inset: auto; min-height: 24rem; }
.state-box { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; max-width: 42rem; text-align: center; }
.state-ico { position: relative; width: 7.2rem; height: 7.2rem; border-radius: 50%; background: var(--surface-high); display: flex; align-items: center; justify-content: center; color: var(--coral); }
.state-ico::before { content: ""; position: absolute; inset: 0; border-radius: 50%; padding: .15rem; background: var(--brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.state-ico .ico { width: 3.4rem; height: 3.4rem; }
.spinner { width: 4.4rem; height: 4.4rem; border-radius: 50%; position: relative; flex: none; }
.spinner::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: .3rem solid var(--surface-highest); }
.spinner::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 15%, var(--orange), var(--coral), var(--pink), var(--purple), var(--blue) 83%, transparent 83%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - .3rem), #000 calc(100% - .3rem)); mask: radial-gradient(farthest-side, transparent calc(100% - .3rem), #000 calc(100% - .3rem));
  animation: spin .9s linear infinite; }
.spinner.sm { width: 2rem; height: 2rem; }
.spinner.sm::before { border-width: .2rem; }
.spinner.sm::after { -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - .2rem), #000 calc(100% - .2rem)); mask: radial-gradient(farthest-side, transparent calc(100% - .2rem), #000 calc(100% - .2rem)); }
@keyframes spin { to { transform: rotate(360deg) } }
.shimmer { background: linear-gradient(90deg, var(--surface-high) 25%, var(--surface-highest) 50%, var(--surface-high) 75%); background-size: 200% 100%; animation: shim 1.4s linear infinite; border-radius: .8rem; }
@keyframes shim { from { background-position: 100% 0 } to { background-position: -100% 0 } }
html.low .shimmer { animation: none; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--bottom-bar) + 3.2rem); transform: translateX(-50%); z-index: 200; max-width: min(56rem, 90vw);
  display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.8rem; border-radius: 2.4rem; background: var(--surface-highest); box-shadow: inset 0 0 0 1px var(--divider), 0 .8rem 2.4rem rgba(0,0,0,.6);
  animation: toastIn .2s; pointer-events: none; }
.toast .ico { width: 2rem; height: 2rem; color: var(--success); }
.toast.err { box-shadow: inset 0 0 0 1px var(--danger); }
.toast.err .ico { color: var(--danger); }
html:not(.wide) { --bottom-bar: 6.5rem; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 1rem) } }

/* Diálogo */
.dlg-scrim { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center; padding: 2.4rem; animation: fade .15s; }
.dlg { width: 100%; max-width: 52rem; max-height: 100%; overflow: auto; border-radius: 1.6rem; background: var(--surface); box-shadow: inset 0 0 0 1px var(--divider); padding: 2.4rem; display: flex; flex-direction: column; gap: 1.4rem; }
.dlg .btnrow { justify-content: flex-end; margin-top: .6rem; }
.choice { display: flex; align-items: center; gap: 1.2rem; width: 100%; padding: 1.2rem 1.4rem; border-radius: 1.4rem; background: var(--surface-high); position: relative; }
.choice:focus, html.mouse .choice:hover { background: var(--surface-highest); }
.choice:focus::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: .2rem; background: var(--brand-h); pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.radio { width: 2rem; height: 2rem; border-radius: 50%; border: .2rem solid var(--text2); flex: none; position: relative; }
.choice.sel .radio { border-color: var(--pink); }
.choice.sel .radio::after { content: ""; position: absolute; inset: .3rem; border-radius: 50%; background: var(--pink); }

/* ---------- Splash ---------- */
.splash { display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 50%, rgba(255,106,61,.16), transparent 55vmin), var(--bg); }
.splash-in { display: flex; flex-direction: column; align-items: center; gap: 1.8rem; animation: splashIn .52s cubic-bezier(.4,0,.2,1) both; }
html.wide .splash-in { gap: 2.2rem; }
.splash-in .sym { width: 12.8rem; height: 12.8rem; object-fit: contain; }
.splash-in .wm { height: 4.8rem; }
html.wide .splash-in .sym { width: 16.8rem; height: 16.8rem; }
html.wide .splash-in .wm { height: 6.4rem; }
.splash-in .line { width: 11rem; height: .3rem; border-radius: .2rem; background: var(--brand-h); }
html.wide .splash-in .line { width: 14rem; }
@keyframes splashIn { from { opacity: 0; transform: scale(.86) } }

/* ---------- Login ---------- */
.backdrop { background: radial-gradient(circle at 12% 0, rgba(255,159,28,.10), transparent 55vmax), radial-gradient(circle at 95% 100%, rgba(123,47,247,.12), transparent 55vmax), var(--bg); }
.login { display: flex; align-items: center; gap: 4.8rem; padding: 2.4rem 5.6rem; height: 100%; }
.login .brandpanel { flex: 1; display: flex; flex-direction: column; gap: 1.4rem; }
.login .formwrap { flex: 1; display: flex; justify-content: center; max-height: 100%; }
.login .formwrap > div { width: 100%; max-width: 52rem; }
html:not(.wide) .login { flex-direction: column; align-items: center; gap: 0; padding: 2.4rem 2rem; overflow-y: auto; }
html:not(.wide) .login .formwrap { width: 100%; flex: none; }
.lockup { display: flex; align-items: center; }
.lockup.v { flex-direction: column; }
.feature { display: flex; align-items: center; gap: 1.2rem; color: var(--text2); font-size: 1.6rem; }
.feature .ic { width: 3.6rem; height: 3.6rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.feature .ico { width: 2rem; height: 2rem; }
.accent { height: .3rem; border-radius: .2rem; background: var(--brand-h); }
.card { border-radius: 1.6rem; background: var(--surface); box-shadow: inset 0 0 0 1px var(--outline); padding: 0 2.4rem 2.4rem; display: flex; flex-direction: column; gap: 1.4rem; }
.card > .accent { margin: 0 4rem; }
.tfield { position: relative; padding: .3rem; border-radius: 1.4rem; }
.tfield::before { content: ""; position: absolute; inset: 0; border-radius: 1.7rem; padding: .2rem; background: var(--brand-h); opacity: 0; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.tfield:focus-within:not(.err)::before { opacity: 1; }
.tbox { position: relative; display: flex; align-items: center; height: 5.6rem; border-radius: 1.4rem; background: var(--surface); box-shadow: inset 0 0 0 1px var(--surface-highest); padding: 0 .4rem 0 1.2rem; color: var(--text2); }
.tfield:focus-within .tbox { background: var(--surface-high); box-shadow: inset 0 0 0 2px var(--coral); color: var(--orange); }
.tfield.err .tbox { box-shadow: inset 0 0 0 2px var(--danger); color: var(--danger); }
.tbox > .ico { margin-right: 1.2rem; }
.tbox .in { flex: 1; min-width: 0; position: relative; height: 100%; }
.tbox label { position: absolute; left: 0; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--text2); transition: all .15s; pointer-events: none; }
.tbox input { position: absolute; inset: 0; width: 100%; background: none; border: 0; padding: 2rem 0 .6rem; font-size: 1.6rem; color: var(--text); caret-color: var(--orange); user-select: text; -webkit-user-select: text; }
.tbox input::placeholder { color: transparent; }
.tfield:focus-within input::placeholder { color: var(--muted); }
.tfield:focus-within label, .tbox input:not(:placeholder-shown) + label { top: 1.4rem; font-size: 1.2rem; }
.tfield:focus-within label { color: var(--orange); }
.tfield.err label { color: var(--danger); }
.tbox .eye { width: 4.8rem; height: 4.8rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text2); }
.tbox .eye:focus, html.mouse .tbox .eye:hover { background: var(--surface-highest); color: var(--text); }
.tbox input:-webkit-autofill { -webkit-text-fill-color: var(--text); transition: background-color 9999s; }
.errbox { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; border-radius: 1.4rem; background: rgba(255,77,94,.12); box-shadow: inset 0 0 0 1px rgba(255,77,94,.45); }
.errbox .ico { color: var(--danger); }
.lprog { height: .3rem; border-radius: .2rem; background: var(--surface-high); overflow: hidden; position: relative; }
.lprog::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; background: var(--orange); border-radius: .2rem; animation: lp 1.2s ease-in-out infinite; }
@keyframes lp { from { left: -40% } to { left: 100% } }
.prow { display: flex; align-items: center; gap: 1.2rem; padding: 1.2rem 1.4rem; border-radius: 1.4rem; background: var(--surface-high); }
.prow > .ico:first-child { color: var(--orange); width: 2.2rem; height: 2.2rem; }
.prow .ok { color: var(--success); width: 2.2rem; height: 2.2rem; }

/* ---------- Início ---------- */
.topbar > .lockup { flex: none; }
.topbar { display: flex; align-items: center; gap: 1.2rem; padding: max(1.4rem, var(--safe-v)) var(--gutter) .6rem; }
html:not(.wide) .topbar { padding-right: .4rem; }
.acct { min-width: 0; flex-shrink: 1; display: flex; align-items: center; gap: .6rem; max-width: 24rem; padding: .6rem 1rem; border-radius: 2rem; background: var(--surface-high); }
html:not(.wide) .acct { max-width: 12rem; min-width: 8rem; }
@media (max-width: 439px) { html:not(.wide) .acct { display: none; } }
.acct .ico { width: 1.6rem; height: 1.6rem; color: var(--text2); }
.iconbtn { width: 4.8rem; height: 4.8rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; color: var(--text); }
.iconbtn:focus, html.mouse .iconbtn:hover { background: var(--surface-highest); }
.sync { display: flex; align-items: center; gap: .8rem; color: var(--text2); }
.sync.err { color: var(--danger); padding: .6rem .8rem; border-radius: 2rem; }
.sync.err:focus { background: var(--surface-highest); }
.hero { position: relative; height: min(44rem, 62vh); }
html.wide .hero { height: min(38rem, 62vh); }
html.desk .hero { height: clamp(34rem, 54vh, 60rem); }
.hero .img { object-fit: cover; }
.hero .s1 { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.95), rgba(0,0,0,.6) 50%, transparent); }
html:not(.wide) .hero .s1 { display: none; }
.hero .s2 { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55), transparent 25%); }
.hero .s3 { position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,.3) 45%, rgba(0,0,0,.85) 80%, #000); }
.hero .info { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 1.2rem; max-width: 60rem; display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.hero .meta { display: flex; align-items: center; gap: .4rem; }
.hero .meta .ico { width: 1.6rem; height: 1.6rem; color: var(--orange); }
.hero .plot { -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- TV ao vivo ---------- */
.live-wide { display: flex; height: 100%; padding: max(1.2rem, var(--safe-v)) var(--gutter) var(--safe-v) calc(var(--gutter) / 2); }
.live-wide .col-cat { width: 15.6rem; display: flex; flex-direction: column; flex: none; }
.live-wide .col-ch { flex: 1; min-width: 0; display: flex; flex-direction: column; margin-left: 1.2rem; }
.live-wide .col-pv { flex: none; width: 23rem; margin: .8rem 0 1.6rem 1.6rem; min-width: 0; }
.live-wide .col-cat .cat .nm { font-size: 1.5rem; }
.live-wide .col-cat .shead .h-medium { white-space: normal; }
.chtitle { display: flex; align-items: baseline; gap: 1.2rem; min-width: 0; }
.chtitle > .t-large { flex: 0 1 auto; min-width: 0; }
.chtitle > .cnt { flex: none; white-space: nowrap; }
.chhead { display: flex; align-items: center; gap: 1.2rem; padding: .8rem .4rem .8rem .8rem; min-width: 0; }
.vbox { position: relative; flex: 1; min-height: 0; }
.chrow { position: absolute; left: .4rem; right: .4rem; top: 0; display: flex; align-items: center; gap: 1rem; padding: 0 1rem 0 .6rem; }
.chrow > .grow { min-width: 0; }
.chrow .chlogo { --logo: 4.8rem; }
.chrow .num { width: 3.2rem; text-align: center; color: var(--text2); flex: none; }
.chrow .nm { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.chrow .nm .ico { width: 1.6rem; height: 1.6rem; color: var(--orange); }
.chrow .nm .ico.h { color: var(--text2); width: 1.5rem; }
.chrow .now { margin-top: .2rem; }
.chrow .pbar { margin: .4rem .8rem 0 0; }
.chrow .nx { margin-top: .3rem; color: var(--muted); }
.preview { height: 100%; border-radius: 1.6rem; background: var(--surface); box-shadow: inset 0 0 0 1px var(--outline); padding: 2rem; display: flex; flex-direction: column; overflow: hidden; }
.preview .chlogo { --logo: 7.2rem; }
.preview > * { flex-shrink: 0; min-width: 0; }
.preview .pv-title { margin-top: .6rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.preview .pv-desc { margin-top: 1rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.preview > .upl { flex-shrink: 1; min-height: 0; }
.chhead.stack { flex-direction: column; align-items: stretch; gap: .8rem; }
.chhead.stack .sfield { width: auto !important; }
.livedot { width: .8rem; height: .8rem; border-radius: 50%; background: var(--pink); flex: none; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35 } }
.hr { height: 1px; background: var(--divider); margin: 1.6rem 0; flex: none; }
.uprow { display: flex; gap: 1rem; }
.uprow .t { width: 5.2rem; flex: none; }
.live-phone { display: flex; flex-direction: column; height: 100%; }

/* ---------- Guia ---------- */
.guide { display: flex; flex-direction: column; height: 100%; }
.guide-top { display: flex; align-items: center; padding: max(1.6rem, var(--safe-v)) var(--gutter) 0; }
.gwrap { position: relative; flex: 1; min-height: 0; margin: 0 var(--gutter); overflow: hidden; }
.gscroll { position: absolute; inset: 0; overflow: auto; scrollbar-width: none; }
.gscroll::-webkit-scrollbar { display: none; }
.ghead { position: sticky; top: 0; z-index: 5; display: flex; height: 3.4rem; background: var(--bg); }
.ghead .corner { position: sticky; left: 0; z-index: 6; background: var(--bg); display: flex; align-items: center; padding-left: 1.6rem; flex: none; }
.ruler { position: relative; height: 100%; }
.ruler .slot { position: absolute; top: 0; height: 100%; border-left: 1px solid var(--divider); padding: .4rem .6rem; color: var(--text2); white-space: nowrap; }
.grow-row { position: absolute; left: 0; display: flex; }
.gch { position: sticky; left: 0; z-index: 3; flex: none; padding: .3rem .6rem .3rem .8rem; background: var(--bg); }
.gch .fc { height: 100%; display: flex; align-items: center; gap: .8rem; padding: 0 .6rem; background: var(--surface-high); --fs: 1; }
.gch .chlogo { --logo: 3.4rem; }
html.wide .gch .chlogo { --logo: 4.4rem; }
.gch .n { width: 3.4rem; text-align: center; color: var(--text2); flex: none; }
.gprogs { position: relative; height: 100%; }
.gp { position: absolute; top: .3rem; bottom: .3rem; padding: .5rem .8rem; border-radius: .8rem; background: var(--surface-high); overflow: hidden; display: flex; flex-direction: column; justify-content: center; margin-right: .3rem; }
.gp.past { background: var(--surface); color: var(--muted); }
.gp.live { background: rgba(123,47,247,.22); }
.gp.live::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: .3rem; background: var(--brand-v); }
.gp.none { color: var(--muted); }
.gp .tt { font-size: var(--t-label-l); font-weight: 600; }
.gp.live .tt { font-weight: 700; }
.gp .tm { font-size: var(--t-label-s); color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; }
.gp.live .tm { color: var(--pink); }
.gp:focus, html.mouse .gp:hover { background: var(--surface-highest); color: var(--text); }
.gp:focus::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: .25rem; background: var(--brand); pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.nowline { position: absolute; top: 0; bottom: 0; width: .2rem; background: var(--pink); z-index: 4; pointer-events: none; }
.nowline::before { content: ""; position: absolute; top: 2.4rem; left: -.4rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--pink); }

/* ---------- Filmes/Séries ---------- */
.browse-wide { display: flex; height: 100%; padding: calc(1.2rem + var(--safe-v)) 0 0 calc(var(--gutter) / 2); }
.browse-wide .col-cat { width: var(--cat-w); flex: none; display: flex; flex-direction: column; padding-bottom: var(--safe-v); }
.browse-wide .col-grid { flex: 1; min-width: 0; display: flex; flex-direction: column; margin-left: 1.2rem; }
.bhead { display: flex; align-items: center; gap: 1.2rem; padding: .8rem var(--gutter) .4rem 0; }
.sorts { display: flex; gap: .6rem; }
.grid-cell { position: absolute; top: 0; left: 0; }
.vl-item > .poster { width: 100%; }
.bhead > .grow { min-width: 14rem; }
.bhead > .sfield { flex-shrink: 1; min-width: 16rem; }
.browse-phone { display: flex; flex-direction: column; height: 100%; }

/* ---------- Detalhe ---------- */
.detail { background: var(--bg); }
.dback { position: absolute; left: 0; right: 0; top: 0; height: 80%; }
html:not(.wide) .dback { height: 32rem; }
.dback .w { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.95), rgba(0,0,0,.7) 45%, rgba(0,0,0,.2) 75%, transparent); }
html:not(.wide) .dback .w { display: none; }
.dback .b { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.45) 45%, rgba(0,0,0,.92) 80%, #000); }
.dscroll { position: absolute; inset: 0; }
.dhead { display: flex; gap: 3.2rem; padding: 0 var(--gutter); }
.dposter { position: relative; width: 23rem; flex: none; aspect-ratio: 2/3; border-radius: 1.6rem; overflow: hidden; box-shadow: inset 0 0 0 1px var(--outline); background: var(--surface-high); align-self: flex-start; }
.dposter::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--outline); }
.dbody { flex: 1; min-width: 0; max-width: 82rem; }
html:not(.wide) .dhead { flex-direction: column; gap: 1.8rem; }
html:not(.wide) .dtop { display: flex; align-items: flex-end; gap: 1.6rem; }
html:not(.wide) .dposter { width: 11.2rem; }
.metarow { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .8rem; }
.gtags { display: flex; flex-wrap: wrap; gap: .6rem .8rem; margin-top: 1rem; }
.gtag { padding: .4rem 1.2rem; border-radius: 2rem; background: rgba(22,22,28,.85); box-shadow: inset 0 0 0 1px var(--outline); font-size: var(--t-label-l); font-weight: 700; color: rgba(244,245,250,.9); }
.synopsis { color: rgba(244,245,250,.86); }
html.wide .synopsis { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.people { display: flex; flex-wrap: wrap; gap: .8rem 1rem; }
.person { display: flex; align-items: center; padding: .4rem 1.4rem .4rem .4rem; border-radius: 2.4rem; background: rgba(14,14,18,.9); box-shadow: inset 0 0 0 1px var(--outline); }
.person .av { width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--brand); display: flex; align-items: center; justify-content: center; font-size: var(--t-label-m); font-weight: 700; flex: none; }
html.wide .person .av { width: 3.2rem; height: 3.2rem; }
.person span { margin-left: .8rem; color: rgba(244,245,250,.9); }
.backbtn { position: absolute; left: .8rem; top: calc(.6rem + env(safe-area-inset-top)); z-index: 10; width: 4.8rem; height: 4.8rem; border-radius: 50%; background: var(--scrim); display: flex; align-items: center; justify-content: center; }
.backbtn .ico { width: 2.2rem; height: 2.2rem; }
.backbtn:focus, html.mouse .backbtn:hover { background: var(--surface-highest); }
.inlineerr { display: flex; align-items: center; gap: 1.2rem; padding: 1rem 1.4rem; border-radius: 1.2rem; background: rgba(255,77,94,.12); }
.linkbtn { padding: .6rem 1.2rem; border-radius: 2rem; color: var(--pink); font-weight: 700; font-size: var(--t-label-l); }
.linkbtn:focus, html.mouse .linkbtn:hover { background: var(--pink); color: var(--text); }
.eprow { display: flex; align-items: center; padding: 1rem; }
.eprow .th { position: relative; width: 14rem; aspect-ratio: 16/9; border-radius: .8rem; overflow: hidden; background: var(--surface-high); flex: none; }
html.wide .eprow .th { width: 22rem; }
.eprow .en { position: absolute; top: .6rem; left: .6rem; z-index: 2; padding: .2rem .6rem; border-radius: .8rem; background: var(--scrim); }
.eprow .wt { position: absolute; inset: 0; z-index: 2; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; }
.eprow .wt .ico { color: var(--success); width: 2.6rem; height: 2.6rem; background: rgba(0,0,0,.6); border-radius: 50%; padding: .5rem; box-sizing: content-box; }
.eprow .tx { flex: 1; min-width: 0; padding: 0 .6rem 0 1.4rem; }
.eprow .pl { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: .6rem; }

/* ---------- Busca ---------- */
.bigsearch { position: relative; display: flex; align-items: center; max-width: 72rem; height: 5.6rem; border-radius: 2.8rem; background: var(--surface-high); padding: 0 .6rem 0 1.8rem; }
.bigsearch::before { content: ""; position: absolute; inset: -.2rem; border-radius: inherit; border: .2rem solid transparent; pointer-events: none; }
.bigsearch:focus-within::before { border-color: var(--pink); }
.bigsearch > .ico { color: var(--text2); }
.bigsearch input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; padding: 0 1.2rem; font-size: 1.6rem; color: var(--text); caret-color: var(--pink); user-select: text; -webkit-user-select: text; }
.bigsearch input::placeholder { color: var(--muted); }
.bigsearch input::-webkit-search-cancel-button { display: none; }
.chres { width: calc(var(--poster-w) + 2.4rem); flex: none; }
.chres .fc { padding: .8rem; display: flex; flex-direction: column; gap: .8rem; }
.chres .lg { position: relative; aspect-ratio: 16/10; border-radius: .8rem; background: var(--surface-high); overflow: hidden; }
.chres .lg .img { object-fit: contain; padding: 1rem; }

/* ---------- Ajustes ---------- */
.settings { max-width: 86rem; margin: 0 auto; padding: calc(2.4rem + var(--safe-v)) var(--gutter); }
.acard { display: flex; align-items: center; gap: 1.6rem; padding: 1.8rem; border-radius: 1.6rem; background: var(--surface-high); box-shadow: inset 0 0 0 1px var(--divider); }
.acard .av { width: 5.6rem; height: 5.6rem; border-radius: 50%; background: var(--brand); display: flex; align-items: center; justify-content: center; flex: none; }
.status { padding: .4rem 1rem; border-radius: 2rem; font-weight: 700; }
.ip { display: flex; gap: 1.8rem; margin-top: .4rem; }
.shdr { display: flex; align-items: center; gap: .8rem; padding: 2.6rem 0 1rem .6rem; color: var(--text2); text-transform: uppercase; }
.shdr i { width: .3rem; height: 1.4rem; border-radius: .2rem; background: var(--brand-v); }
.sgroup { display: flex; flex-direction: column; gap: .2rem; }
.sitem { position: relative; display: flex; align-items: center; gap: 1.4rem; min-height: 6rem; padding: 1.2rem 1.6rem; background: var(--surface); border-radius: .4rem; width: 100%; }
.sgroup > .sitem:first-child { border-top-left-radius: 1.6rem; border-top-right-radius: 1.6rem; }
.sgroup > .sitem:last-child { border-bottom-left-radius: 1.6rem; border-bottom-right-radius: 1.6rem; }
.sitem .si { width: 3.8rem; height: 3.8rem; border-radius: 50%; background: rgba(209,32,154,.12); color: var(--pink); display: flex; align-items: center; justify-content: center; flex: none; }
.sitem .si .ico { width: 2rem; height: 2rem; }
.sitem.danger .si { background: rgba(255,77,94,.12); color: var(--danger); }
.sitem.danger .t-small { color: var(--danger); }
.sitem .val { color: var(--text2); max-width: 22rem; text-align: right; }
.sitem:focus, html.mouse button.sitem:hover { background: var(--surface-highest); }
.sitem:focus .si { background: rgba(209,32,154,.22); }
.sitem:focus .val { color: var(--text); }
.sitem:focus::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: .2rem; background: var(--brand-h); pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.switch { width: 5.2rem; height: 3.2rem; border-radius: 1.6rem; background: var(--surface-high); box-shadow: inset 0 0 0 .2rem var(--surface-highest); position: relative; flex: none; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: .8rem; left: .8rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--text2); transition: transform .15s, width .15s, height .15s, top .15s; }
.switch.on { background: var(--purple); box-shadow: none; }
.switch.on::after { top: .4rem; width: 2.4rem; height: 2.4rem; transform: translateX(2rem); background: var(--text); }

/* ---------- Listas virtuais: barra de rolagem discreta (mouse) ou oculta ---------- */
.vl-v { scrollbar-width: none; }
.vl-v::-webkit-scrollbar { display: none; }
@supports not selector(::-webkit-scrollbar) { html.mouse .vl-v { scrollbar-width: thin; scrollbar-color: #34343F transparent; } }
html.mouse .vl-v { scrollbar-width: auto; }
html.mouse .vl-v::-webkit-scrollbar { display: block; width: .8rem; }
html.mouse .vl-v::-webkit-scrollbar-thumb { background: #34343F; border-radius: .4rem; }
html.mouse .vl-v::-webkit-scrollbar-button { display: none; height: 0; }
html.desk .live-wide .col-cat { width: 20rem; }
html.desk .live-wide .col-pv { width: 30rem; }

/* ---------- Início: carrossel de destaques ---------- */
.hero-carousel { overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.hero-slide.on { opacity: 1; }
.hero-slide .img.blur { filter: blur(2.4rem) saturate(1.2); transform: scale(1.15); opacity: .55; }
.hero-slide .img.blur:not(.ok) { opacity: 0; }
.hero-ph { position: absolute; inset: 0; background: radial-gradient(120% 90% at 85% 10%, rgba(123,47,247,.45), transparent 60%), radial-gradient(90% 80% at 60% 100%, rgba(209,32,154,.35), transparent 65%), linear-gradient(135deg, #1a0f24, #07070b); }
.hero-ph b { position: absolute; right: 8%; top: 50%; transform: translateY(-50%); font-size: 22rem; line-height: 1; font-weight: 900; color: rgba(255,255,255,.06); }
.hero-poster { position: absolute; right: calc(var(--gutter) + 2rem); top: 50%; transform: translateY(-50%); height: 78%; aspect-ratio: 2/3; border-radius: 1.4rem; overflow: hidden; box-shadow: 0 2rem 5rem rgba(0,0,0,.7); background: var(--surface); }
html:not(.wide) .hero-poster { display: none; }
.hero .info { z-index: 2; bottom: 2rem; }
.hero .hero-title { text-shadow: 0 .2rem 1.6rem rgba(0,0,0,.6); }
.hero .dot-sep { width: 1rem; }
.hero-dots { position: absolute; z-index: 3; right: var(--gutter); bottom: 2.6rem; display: flex; gap: .4rem; }
html:not(.wide) .hero-dots { left: 0; right: 0; bottom: .6rem; justify-content: center; }
.hero-dot { width: 2.8rem; height: 2.8rem; display: flex; align-items: center; justify-content: center; border-radius: 1.4rem; }
.hero-dot i { width: .8rem; height: .8rem; border-radius: .4rem; background: rgba(255,255,255,.35); transition: width .25s, background .25s; }
.hero-dot.sel i { width: 2.4rem; background: var(--brand-h); }
.hero-dot:focus { background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 .2rem rgba(255,255,255,.6); }
.hero-dot:focus i { background: #fff; }
html.mouse .hero-dot:hover i { background: rgba(255,255,255,.7); }
.hero-arrow { position: absolute; z-index: 3; top: 50%; width: 4.4rem; height: 4.4rem; margin-top: -2.2rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.45); color: #fff; opacity: 0; transition: opacity .2s, background .2s; }
.hero-arrow.prev { left: 1.2rem; }
.hero-arrow.next { right: 1.2rem; }
.hero-arrow.next .ico { transform: scaleX(-1); }
html:not(.mouse) .hero-arrow { display: none; }
html.mouse .hero:hover .hero-arrow { opacity: 1; }
html.mouse .hero-arrow:hover { background: rgba(0,0,0,.75); }
html:not(.wide) .hero .info { bottom: 3.6rem; }

/* ---------- Início: Jogos de hoje ---------- */
.pt-games { padding-top: .8rem; }
.tag.live { background: #E3173E; }
.games-card { display: flex; width: 100%; min-height: 22rem; cursor: pointer; --fs: 1.01;
  background: radial-gradient(120% 140% at 0% 0%, rgba(34,197,94,.16), transparent 55%), linear-gradient(120deg, #101a14, var(--surface) 55%); }
.games-card .gside { flex: 1 1 55%; min-width: 0; display: flex; flex-direction: column; gap: 1.2rem; padding: 2rem 2.4rem; }
.games-card .gside > .chlogo { --logo: 6.4rem; }
.games-card .gside { position: relative; }
.games-card .gside > .chlogo { position: absolute; right: 2.4rem; top: 2rem; }
.games-card .gchn { display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; padding-right: 8rem; min-width: 0; max-width: 100%; }
.games-card .gchn .t-medium { max-width: 100%; }
.games-card .glabel { display: flex; align-items: center; gap: .6rem; font-size: var(--t-label-m); font-weight: 800; letter-spacing: .06rem; color: #4ADE80; }
.games-card .gnow { display: flex; flex-direction: column; gap: .8rem; }
.games-card .gnow .pbar { max-width: 40rem; }
.games-card .gtitle { font-size: 2.4rem; line-height: 3rem; }
.games-card .gplay { margin-top: auto; display: inline-flex; align-items: center; gap: .6rem; align-self: flex-start; padding: .8rem 1.6rem .8rem 1.2rem; border-radius: 2.4rem; background: rgba(255,255,255,.08); font-weight: 700; }
.games-card .gplay .ico { width: 2rem; height: 2rem; }
.games-card:focus .gplay, html.mouse .games-card:hover .gplay { background: var(--brand-h); }
.games-card .gsched { flex: 1 1 45%; min-width: 0; display: flex; flex-direction: column; padding: 2rem 2rem 1.2rem; background: rgba(0,0,0,.28); border-left: 1px solid var(--divider); }
.games-card .gsh { margin-bottom: .8rem; }
.games-card .glist { flex: 1; max-height: 22rem; overflow-y: auto; display: flex; flex-direction: column; gap: .2rem; }
.games-card .glist.empty { justify-content: center; }
.games-card .gitem { display: flex; align-items: center; gap: 1.2rem; padding: .7rem .8rem; border-radius: .8rem; }
.games-card .gitem:nth-child(odd) { background: rgba(255,255,255,.03); }
.games-card .gt { flex: none; min-width: 5rem; font-weight: 800; color: #4ADE80; font-variant-numeric: tabular-nums; }
.games-card .gn { flex: 1; min-width: 0; }
html:not(.wide) .games-card { flex-direction: column; }
html:not(.wide) .games-card .gside { padding: 1.6rem; }
html:not(.wide) .games-card .gsched { border-left: 0; border-top: 1px solid var(--divider); padding: 1.4rem 1.6rem; }
html:not(.wide) .games-card .gtitle { font-size: 2rem; line-height: 2.6rem; }
html:not(.wide) .games-card .glist { max-height: 18rem; }
.games-card .glist::-webkit-scrollbar { width: .6rem; }
.games-card .glist::-webkit-scrollbar-thumb { background: #34343F; border-radius: .3rem; }
.games-card .glist::-webkit-scrollbar-button { display: none; height: 0; }
.gcard { width: 30rem; flex: none; }
html:not(.wide) .gcard { width: 26rem; }
.gcard .fc { display: flex; align-items: center; gap: 1.2rem; padding: 1.2rem; min-height: 9rem; }
.gcard .chlogo { --logo: 5.6rem; }
.gcard .grow { display: flex; flex-direction: column; gap: .4rem; }
.gcard .gnowt { color: var(--text); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- Layout 1: transições leves ao trocar de tela (só opacidade) ---------- */
html[data-layout="1"] .pt-content > .page:not(.hidden) { animation: fade .18s ease-out; }
html[data-layout="1"] #app > .pt-detail { animation: fade .2s ease-out; }
html.low .pt-content > .page:not(.hidden), html.low #app > .pt-detail { animation: none; }
