:root {
  --bg: #08080c;
  --bg-2: #101017;
  --surface: #15151e;
  --surface-2: #1d1d29;
  --surface-3: #262635;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f4f4f8;
  --text-2: #b7b7c6;
  --muted: #8a8a9c;
  --accent: #1fd1b4;
  --on-accent: #03241e;
  --accent-hover: #4fe0c7;
  --accent-soft: rgba(31, 209, 180, .16);
  --accent-text: #7ff0dc;
  --danger: #ff6b7a;
  --success: #3fd29a;
  --warn: #ffc15e;
  --gutter: clamp(16px, 4vw, 56px);
  --nav-h: 68px;
  --radius: 10px;
  --radius-lg: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --ring: 0 0 0 3px rgba(249, 249, 249, .92);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.locked { overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 14px; border-radius: 8px; background: var(--accent); color: var(--on-accent); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }

/* ---------- Marca ---------- */
.logo { font-weight: 800; font-size: 26px; letter-spacing: -.06em; line-height: 1; color: var(--text); }
.logo-dot { color: var(--accent); }
.logo-lg { font-size: 56px; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: var(--radius); font-weight: 600; font-size: 15px; white-space: nowrap; transition: background .2s, transform .15s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn i { font-size: 18px; }
.btn-primary { background: #fff; color: #0a0a10; }
.btn-primary:hover { background: #e6e6ee; }
.login-card .btn-primary { background: var(--accent); color: var(--on-accent); }
.login-card .btn-primary:hover { background: var(--accent-hover); }
.btn-glass { background: rgba(255, 255, 255, .14); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .22); }
.btn-glass.on { background: var(--accent-soft); color: var(--accent-text); }
.btn-round { width: 46px; padding: 0; border-radius: 50%; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: default; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--text); font-size: 20px; transition: background .2s; }
.icon-btn:hover { background: rgba(255, 255, 255, .1); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; display: none; }
.is-loading .spinner, .btn[disabled] .spinner { display: inline-block; }
.spinner-lg { display: block; width: 46px; height: 46px; border-width: 3px; color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Login ---------- */
.login-view { position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden; overflow: clip; display: flex; flex-direction: column; }
.login-wall { position: absolute; inset: -10%; transform: rotate(-8deg); opacity: .5; pointer-events: none; }
.wall-track { display: grid; grid-template-columns: repeat(9, minmax(110px, 1fr)); gap: 14px; animation: wall 80s linear infinite; }
.wall-tile { aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, hsl(var(--h, 250) 45% 28%), hsl(calc(var(--h, 250) + 40) 40% 12%)); }
.wall-tile img { width: 100%; height: 100%; object-fit: cover; }
@keyframes wall { to { transform: translateY(-50%); } }
.login-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(8, 8, 12, .55) 0%, rgba(8, 8, 12, .92) 65%, var(--bg) 100%); }
.login-top { position: relative; padding: 28px var(--gutter); }
.login-center { position: relative; flex: 1; display: grid; place-items: center; padding: 12px 16px 48px; }
.login-card { width: min(100%, 420px); padding: 36px 32px 28px; border-radius: 20px; background: rgba(16, 16, 23, .82); border: 1px solid var(--line); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); animation: rise .5s var(--ease) both; }
.login-card h1 { font-size: 30px; font-weight: 700; }
.login-lead { color: var(--text-2); margin: 6px 0 22px; }
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: var(--surface-2); margin-bottom: 20px; }
.seg-indicator { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 9px; background: var(--surface-3); transition: transform .3s var(--ease); }
.seg[data-active="m3u"] .seg-indicator { transform: translateX(100%); }
.seg-btn { position: relative; height: 38px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 14px; transition: color .2s; }
.seg-btn.active { color: var(--text); }
.fields { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span:first-child { font-size: 13px; font-weight: 500; color: var(--text-2); }
.input { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.input > i { color: var(--muted); font-size: 18px; }
.input input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; }
.input input::placeholder { color: #6b6b7c; }
.input-action { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--muted); font-size: 18px; }
.input-action:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.link-btn { display: inline-flex; align-items: center; gap: 6px; justify-self: start; font-size: 13px; color: var(--muted); }
.link-btn:hover { color: var(--text); }
.link-btn i { transition: transform .2s; }
.link-btn.expanded i { transform: rotate(90deg); }
.collapsible { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s var(--ease); }
.collapsible.open { grid-template-rows: 1fr; }
.collapsible-inner { overflow: hidden; }
.collapsible.open .collapsible-inner { overflow: visible; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.file-picker { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; padding: 12px; border-radius: var(--radius); border: 1px dashed var(--line-2); color: var(--text-2); cursor: pointer; transition: border-color .2s, background .2s; text-align: center; }
.file-picker:hover, .file-picker.has-file { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.file-picker input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.check { display: flex; align-items: center; gap: 10px; margin: 18px 0; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.form-message { font-size: 14px; color: var(--danger); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .25s, opacity .25s, margin .25s; }
.form-message.visible { max-height: 160px; opacity: 1; margin-top: 14px; }
.form-message.success { color: var(--success); }
.login-note { display: flex; gap: 8px; margin-top: 22px; font-size: 12px; color: var(--muted); }
.login-note i { font-size: 16px; flex: none; }

/* ---------- Carregando ---------- */
.boot-view { min-height: 100vh; min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 28px; padding: 24px; }
.boot-bar { width: 220px; height: 3px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.boot-bar span { display: block; width: 40%; height: 100%; border-radius: 3px; background: var(--accent); animation: bar 1.2s var(--ease) infinite; }
@keyframes bar { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.boot-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--muted); font-size: 14px; }
.boot-steps li { display: flex; align-items: center; gap: 10px; }
.step-icon { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--surface-3); }
[data-status="loading"] .step-icon { border-color: var(--accent); border-right-color: transparent; animation: spin .7s linear infinite; }
[data-status="loading"] { color: var(--text); }
[data-status="done"] { color: var(--text-2); }
[data-status="done"] .step-icon { border: 0; background: var(--success); box-shadow: inset 0 0 0 4px var(--success), inset 0 0 0 6px var(--bg); }
[data-status="error"] .step-icon { border-color: var(--danger); background: var(--danger); }

/* ---------- Navegação ---------- */
/* Barra no estilo Disney+: logo à esquerda, links com ícone no centro, busca e perfil à direita. */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 0 var(--gutter); background: linear-gradient(to bottom, rgba(8, 8, 12, .92), rgba(8, 8, 12, .6)); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); border-bottom: 1px solid transparent; transition: background .35s, border-color .35s; }
.nav > .logo { justify-self: start; }
.nav.over-hero:not(.scrolled) { background: linear-gradient(to bottom, rgba(8, 8, 12, .85), rgba(8, 8, 12, 0)); backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav.scrolled { background: rgba(8, 8, 12, .94); border-bottom-color: var(--line); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; color: var(--text-2); font-weight: 600; font-size: 14.5px; letter-spacing: .01em; transition: color .25s; }
.nav-links a i { font-size: 19px; transition: transform .35s var(--spring); }
.nav-links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--text); transform: scaleX(0); transition: transform .35s var(--ease-out); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover i { transform: translateY(-1px) scale(1.08); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { transform: scaleX(1); background: var(--accent); }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.search { display: flex; align-items: center; height: 40px; border-radius: 20px; border: 1px solid transparent; transition: background .25s, border-color .25s; }
.search input { width: 0; padding: 0; border: 0; outline: 0; background: none; transition: width .3s var(--ease), padding .3s; }
.search input::-webkit-search-cancel-button { display: none; }
.search.open { background: rgba(20, 20, 28, .9); border-color: var(--line-2); }
.search.open input { width: clamp(150px, 22vw, 280px); padding-right: 4px; }
.search-clear { display: none; width: 32px; height: 32px; font-size: 16px; }
.search.open.has-text .search-clear { display: inline-grid; }
.profile { position: relative; }
.profile-chip { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 4px 10px 4px 4px; border-radius: 26px; transition: background .25s; }
.profile-chip:hover, .profile-chip[aria-expanded="true"] { background: rgba(255, 255, 255, .08); }
.profile-chip .pav { transition: transform .35s var(--spring), box-shadow .3s; }
.profile-chip:hover .pav { transform: scale(1.06); box-shadow: var(--ring); }
.chip-name { max-width: 120px; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip-caret { font-size: 14px; color: var(--muted); transition: transform .3s var(--ease-out); }
.profile-chip[aria-expanded="true"] .chip-caret { transform: rotate(180deg); }
.profile-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 290px; padding: 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .55); animation: pop .22s var(--ease-out); transform-origin: top right; }
.menu-label { padding: 8px 10px 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.menu-sep { height: 1px; margin: 6px 4px; background: var(--line); }
.menu-profile { gap: 12px; }
.profile-head { display: flex; gap: 12px; align-items: center; padding: 10px; }
.profile-head strong { display: block; }
.profile-head span:not(.avatar) { display: block; font-size: 13px; color: var(--muted); word-break: break-all; }
.profile-info { margin: 4px 10px 8px; display: grid; gap: 6px; font-size: 13px; }
.profile-info div { display: flex; justify-content: space-between; gap: 12px; }
.profile-info dt { color: var(--muted); }
.profile-info dd { margin: 0; display: flex; align-items: center; gap: 6px; }
.profile-info .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 4px 4px 8px; }
.profile-stats span { display: grid; padding: 8px; border-radius: 10px; background: var(--surface-2); font-size: 12px; color: var(--muted); text-align: center; }
.profile-stats strong { font-size: 15px; color: var(--text); }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border-radius: 8px; font-size: 14px; text-align: left; }
.menu-item:hover { background: var(--surface-2); }
.menu-item i { font-size: 18px; color: var(--muted); }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.96); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.tabbar { display: none; }

/* ---------- Página ---------- */
.page { min-height: 100vh; padding-bottom: 64px; outline: none; animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: calc(var(--nav-h) + 28px) var(--gutter) 22px; }
.page-head h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; }
.page-head p { color: var(--muted); margin-top: 4px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.select { position: relative; display: inline-flex; align-items: center; }
.select select { appearance: none; height: 42px; max-width: min(78vw, 320px); padding: 0 40px 0 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-2); cursor: pointer; text-overflow: ellipsis; }
.select select:hover { border-color: rgba(255, 255, 255, .25); }
.select i { position: absolute; right: 13px; pointer-events: none; color: var(--muted); }
.group { padding: 0 var(--gutter); margin-bottom: 36px; }
.group h2 { font-size: 20px; font-weight: 650; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.count { font-size: 13px; font-weight: 500; color: var(--muted); padding: 2px 8px; border-radius: 20px; background: var(--surface-2); }
.more-hint { margin-top: 14px; color: var(--muted); font-size: 14px; }
.empty { display: grid; justify-items: center; gap: 8px; padding: 70px 24px; text-align: center; color: var(--muted); }
.empty i { font-size: 44px; color: var(--surface-3); margin-bottom: 6px; }
.empty strong { color: var(--text); font-size: 18px; }
.empty .btn { margin-top: 14px; }

/* ---------- Hero ---------- */
.hero, .detail-hero { position: relative; min-height: min(82vh, 760px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; background: var(--bg-2); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; animation: kenburns 24s ease-out both; }
.hero-media.is-poster img { filter: blur(30px) saturate(1.2); transform: scale(1.2); opacity: .55; animation: none; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to right, rgba(8, 8, 12, .92) 0%, rgba(8, 8, 12, .55) 40%, rgba(8, 8, 12, 0) 70%), linear-gradient(to top, var(--bg) 0%, rgba(8, 8, 12, .4) 30%, rgba(8, 8, 12, 0) 60%); }
.hero-content { position: relative; width: min(640px, 100%); padding: 0 var(--gutter) clamp(48px, 9vh, 96px); animation: rise .6s var(--ease) both; }
.kicker { display: inline-block; margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.hero-title { font-size: clamp(34px, 5.4vw, 64px); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; color: var(--text-2); font-size: 14px; }
.sep { color: var(--muted); }
.rating { display: inline-flex; align-items: center; gap: 4px; color: var(--warn); font-weight: 600; }
.hero-plot { margin-top: 14px; color: var(--text-2); font-size: 16px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-width: 560px; }
.hero-plot:empty { display: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.credits { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.credits span { color: var(--text-2); }
.credits:empty { display: none; }

/* ---------- Fileiras ---------- */
.rows { position: relative; margin-top: 30px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; }
/* As fileiras entram em sequência, de baixo para cima. */
.rows > .row { animation: rowIn .7s var(--ease-out) both; }
.rows > .row:nth-child(2) { animation-delay: .06s; } .rows > .row:nth-child(3) { animation-delay: .12s; } .rows > .row:nth-child(4) { animation-delay: .18s; }
.rows > .row:nth-child(5) { animation-delay: .24s; } .rows > .row:nth-child(n+6) { animation-delay: .3s; }
@keyframes rowIn { from { opacity: 0; transform: translateY(26px); } }
.label-short { display: none; }
.page > .rows:first-child { margin-top: 0; padding-top: calc(var(--nav-h) + 24px); }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 var(--gutter); margin-bottom: 12px; }
.row-head h2 { font-size: clamp(17px, 1.6vw, 21px); font-weight: 650; }
.row-link { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--muted); transition: color .2s; }
.row-link:hover { color: var(--text); }
.row-body { position: relative; }
/* Folga em cima e embaixo para o cartão crescer no hover sem ser cortado pela rolagem horizontal. */
.row-track { display: grid; grid-auto-flow: column; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 18px var(--gutter) 22px; margin: -12px 0 -14px; scrollbar-width: none; }
.row-track::-webkit-scrollbar { display: none; }
.row-track > * { scroll-snap-align: start; }
.row-track.poster { grid-auto-columns: clamp(124px, 13.2vw, 190px); }
.row-track.wide { grid-auto-columns: clamp(220px, 23vw, 330px); }
.row-nav { position: absolute; top: 6px; bottom: 54px; z-index: 4; width: calc(var(--gutter) - 4px); min-width: 40px; display: grid; place-items: center; font-size: 26px; color: #fff; background: rgba(8, 8, 12, .7); opacity: 0; transition: opacity .2s; }
.row-nav.prev { left: 0; border-radius: 0 10px 10px 0; }
.row-nav.next { right: 0; border-radius: 10px 0 0 10px; }
.row-body:hover .row-nav { opacity: 1; }
.row-body.at-start .row-nav.prev, .row-body.at-end .row-nav.next { opacity: 0; pointer-events: none; }

/* ---------- Cartões ---------- */
.card { position: relative; display: block; width: 100%; text-align: left; min-width: 0; }
.card-media { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 6px 14px -8px rgba(0, 0, 0, .7); transform: translateZ(0); transition: transform .42s var(--ease-out), box-shadow .42s var(--ease-out); will-change: transform; }
.card-media img { transition: transform .6s var(--ease-out), opacity .4s; }
.poster-card .card-media { aspect-ratio: 2 / 3; }
.live-card .card-media, .wide-card .card-media { aspect-ratio: 16 / 9; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-media img.logo { object-fit: contain; padding: 18% 22%; }
.live-card .card-media { background: linear-gradient(145deg, var(--surface-2), var(--surface)); }
.card-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; text-align: center; font-weight: 600; font-size: 14px; color: var(--muted); background: linear-gradient(160deg, var(--surface-2), var(--surface)); overflow: hidden; }
.live-initials { font-size: 26px; font-weight: 800; color: var(--surface-3); background: none; }
/* Hover estilo Disney+: o cartão cresce um pouco, ganha borda branca e sombra profunda. */
.card:hover, .card:focus-visible, .card-wrap:hover { z-index: 3; }
.card:hover .card-media, .card:focus-visible .card-media { transform: scale(1.06); box-shadow: 0 26px 48px -14px rgba(0, 0, 0, .85); }
/* Contorno branco desenhado por cima da imagem (e não em volta), para não sobrar uma fresta escura entre os dois. */
.card-media::before { content: ""; position: absolute; inset: 0; z-index: 6; border-radius: inherit; box-shadow: inset 0 0 0 3px rgba(249, 249, 249, .92); opacity: 0; transition: opacity .3s var(--ease-out); pointer-events: none; }
.card:hover .card-media::before, .card:focus-visible .card-media::before { opacity: 1; }
.card:hover .card-media img, .card:focus-visible .card-media img { transform: scale(1.03); }
.card:active .card-media { transform: scale(1.02); transition-duration: .15s; }
.card:focus-visible { outline: none; }
.card-title { display: block; margin-top: 10px; font-size: 14px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); transition: color .25s, transform .42s var(--ease-out); }
.card:hover .card-title, .card:focus-visible .card-title { color: var(--text); transform: translateY(4px); }
.card:hover .card-sub, .card:focus-visible .card-sub { transform: translateY(4px); }
.card-sub { transition: transform .42s var(--ease-out); }
/* Botão "remover de Continuar assistindo" (aparece no hover, sempre visível no toque). */
.card-wrap { position: relative; min-width: 0; scroll-snap-align: start; }
.card-x { position: absolute; top: 8px; right: 8px; z-index: 4; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(8, 8, 12, .72); border: 1px solid rgba(255, 255, 255, .28); color: #fff; font-size: 16px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transform: scale(.8); transition: opacity .25s, transform .35s var(--spring), background .2s; }
.card-wrap:hover .card-x, .card-x:focus-visible { opacity: 1; transform: scale(1.06) translate(4%, -4%); }
.card-x:hover { background: #fff; color: #0a0a10; }
.card-wrap.leaving { animation: leave .4s var(--ease-out) forwards; pointer-events: none; }
@keyframes leave { to { opacity: 0; transform: scale(.85); } }
@media (hover: none) { .card-x { opacity: 1; transform: none; } }
.card-sub { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-sub .rating { font-weight: 500; }
.card-flag { position: absolute; top: 0; right: 10px; font-size: 22px; color: var(--accent); filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .2s; }
.card.in-list .card-flag { opacity: 1; transform: none; }
.live-badge { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; background: rgba(8, 8, 12, .7); font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.live-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--danger); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.play-badge { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; color: #fff; opacity: 0; transition: opacity .3s; background: linear-gradient(to top, rgba(8, 8, 12, .55), rgba(8, 8, 12, .1)); }
.play-badge i { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(8, 8, 12, .6); border: 1.5px solid rgba(255, 255, 255, .8); transform: scale(.7); transition: transform .4s var(--spring); }
.card:hover .play-badge i, .card:focus-visible .play-badge i, .episode:hover .play-badge i { transform: scale(1); }
.card:hover .play-badge, .episode:hover .play-badge, .card:focus-visible .play-badge, .episode:focus-visible .play-badge { opacity: 1; }
.progress { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.progress-inline { position: static; margin-top: 16px; max-width: 320px; }

/* ---------- Grades ---------- */
.grid { display: grid; gap: 22px 14px; padding: 0 var(--gutter); }
.group .grid { padding: 0; }
.poster-grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); }
.wide-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid-sentinel { height: 1px; }

/* ---------- Página da série ---------- */
.detail-hero { min-height: min(72vh, 680px); }
.detail-content { position: relative; display: flex; align-items: flex-end; gap: 32px; width: 100%; padding: calc(var(--nav-h) + 40px) var(--gutter) 40px; }
.detail-poster { position: relative; flex: none; width: clamp(150px, 16vw, 230px); aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); animation: rise .5s var(--ease) both; }
.detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.detail-text { min-width: 0; max-width: 680px; animation: rise .6s .05s var(--ease) both; }
.episodes { padding: 8px var(--gutter) 0; }
.season-bar { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.season-bar h2 { font-size: 22px; font-weight: 700; }
.season-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding: 2px; }
.season-tabs::-webkit-scrollbar { display: none; }
.season-tab { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-weight: 550; font-size: 14px; transition: background .2s, color .2s, border-color .2s; }
.season-tab span { font-size: 12px; color: var(--muted); }
.season-tab:hover { color: var(--text); border-color: var(--line-2); }
.season-tab.active { background: var(--text); color: #0a0a10; border-color: var(--text); }
.season-tab.active span { color: #55556a; }
.episode-list { display: grid; gap: 4px; }
.episode { display: grid; grid-template-columns: clamp(140px, 18vw, 220px) 1fr; gap: 18px; align-items: center; width: 100%; padding: 12px; border-radius: 14px; text-align: left; transition: background .2s; }
.episode:hover, .episode:focus-visible { background: var(--surface); }
.episode:focus-visible { outline: 2px solid var(--accent-text); outline-offset: -2px; }
.ep-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.ep-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ep-thumb .card-fallback { font-size: 28px; font-weight: 800; color: var(--surface-3); }
.ep-body { display: grid; gap: 4px; min-width: 0; }
.ep-title { display: flex; align-items: baseline; gap: 10px; font-weight: 600; font-size: 16px; }
.ep-num { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 1.4em; }
.ep-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.ep-meta:empty { display: none; }
.watched { display: inline-flex; align-items: center; gap: 4px; color: var(--success); }
.ep-plot { color: var(--text-2); font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.episode.is-watched .ep-thumb img { opacity: .6; }
.skeleton, .skeleton-line, .skeleton-text { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton { height: 110px; border-radius: 14px; margin-bottom: 8px; }
.skeleton-line { height: 38px; width: 260px; border-radius: 20px; }
.skeleton-text { display: block; height: 14px; border-radius: 6px; margin-bottom: 8px; }
.skeleton-text.short { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Player ---------- */
.player { position: fixed; inset: 0; z-index: 200; background: #000; }
.player video { width: 100%; height: 100%; background: #000; }
.player-top { position: absolute; inset: 0 0 auto; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 16px clamp(12px, 3vw, 28px) 40px; background: linear-gradient(to bottom, rgba(0, 0, 0, .8), rgba(0, 0, 0, 0)); transition: opacity .3s; }
.player-top .icon-btn { flex: none; font-size: 24px; width: 44px; height: 44px; }
.player-titles { display: grid; min-width: 0; flex: 1; }
.player-titles strong { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-titles span { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player.idle .player-top { opacity: 0; pointer-events: none; }
.player.idle { cursor: none; }
.player-loading { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.player-error { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(90vw, 440px); display: grid; justify-items: center; gap: 12px; padding: 26px; border-radius: 16px; background: rgba(16, 16, 23, .94); border: 1px solid var(--line); text-align: center; color: var(--text-2); }
.player-error i { font-size: 36px; color: var(--danger); }
.next-up { position: absolute; right: clamp(16px, 3vw, 32px); bottom: 90px; width: min(90vw, 340px); display: grid; gap: 4px; padding: 18px; border-radius: 14px; background: rgba(16, 16, 23, .94); border: 1px solid var(--line); animation: rise .3s var(--ease) both; }
.next-label { font-size: 12px; color: var(--accent-text); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.next-up .actions { margin-top: 12px; }
.player-panel { position: absolute; z-index: 2; top: 0; right: 0; bottom: 0; width: min(88vw, 360px); display: flex; flex-direction: column; padding: 76px 10px 16px; background: rgba(10, 10, 15, .96); border-left: 1px solid var(--line); animation: slide .25s var(--ease) both; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.player-panel h3 { padding: 0 10px 10px; font-size: 16px; }
.panel-list { overflow-y: auto; display: grid; gap: 2px; align-content: start; }
.panel-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; text-align: left; font-size: 14px; color: var(--text-2); }
.panel-item:hover { background: var(--surface); color: var(--text); }
.panel-item.active { background: var(--accent-soft); color: var(--text); }
.panel-item i { color: var(--success); }
.panel-logo { position: relative; flex: none; display: grid; place-items: center; width: 52px; height: 32px; border-radius: 6px; background: var(--surface-2); font-size: 11px; font-weight: 700; color: var(--muted); overflow: hidden; }
.panel-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.panel-num { flex: none; width: 28px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.player-top .btn-glass { flex: none; }

/* ---------- Avisos ---------- */
.toasts { position: fixed; left: 50%; bottom: 24px; z-index: 400; transform: translateX(-50%); display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { padding: 12px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); font-size: 14px; text-align: center; animation: rise .25s var(--ease) both; transition: opacity .35s, transform .35s; }
.toast.warn { border-color: rgba(255, 193, 94, .4); }
.toast.error { border-color: rgba(255, 107, 122, .45); }
.toast.out { opacity: 0; transform: translateY(8px); }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  :root { --nav-h: 58px; }
  .nav { gap: 16px; }
  .nav-links { display: none; }
  .logo { font-size: 23px; }
  .logo-lg { font-size: 48px; }
  .tabbar { position: fixed; inset: auto 0 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(8, 8, 12, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; font-size: 11px; color: var(--muted); }
  .tabbar i { font-size: 23px; }
  .tabbar a.active { color: var(--text); }
  .tabbar a.active i { color: var(--accent-text); }
  .page { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .toasts { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .search.open input { width: clamp(120px, 42vw, 240px); }
  .row-nav { display: none; }
  .hero { min-height: min(78vh, 620px); }
  .hero-shade { background: linear-gradient(to top, var(--bg) 0%, rgba(8, 8, 12, .7) 40%, rgba(8, 8, 12, .1) 75%); }
  .hero-plot { font-size: 15px; -webkit-line-clamp: 2; }
  .detail-content { flex-direction: column; align-items: flex-start; gap: 20px; }
  .detail-poster { width: 120px; }
  .rows { margin-top: 22px; gap: 28px; }
  .poster-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 18px 10px; }
  .wide-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .episode { grid-template-columns: 132px 1fr; gap: 12px; padding: 10px 0; }
  .ep-title { font-size: 15px; }
  .ep-plot { -webkit-line-clamp: 2; font-size: 13px; }
}
@media (max-width: 520px) {
  .login-card { padding: 28px 20px 22px; border-radius: 18px; }
  .btn { height: 44px; padding: 0 18px; }
  .hero .actions { flex-wrap: nowrap; }
  .hero .actions .btn-glass:not(.btn-round) { padding: 0 16px; }
  .label-long { display: none; }
  .label-short { display: inline; }
  .filters, .select, .select select { width: 100%; max-width: none; }
  .ep-plot { display: none; }
  .profile-menu { position: fixed; left: 12px; right: 12px; top: calc(var(--nav-h) + 4px); width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .wall-track { animation: none; }
}

/* ---------- TV ao vivo: guia em grade ---------- */
.tv { padding: calc(var(--nav-h) + 20px) var(--gutter) 24px; }
.tv-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
.tv-preview { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; box-shadow: inset 0 0 0 1px var(--line), 0 20px 50px rgba(0, 0, 0, .45); }
.tv-preview video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.tv-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 4px; padding: 28px 10px 10px; background: linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0)); }
.tv-bar .live-badge { position: static; margin-right: auto; }
.tv-bar .icon-btn { background: rgba(0, 0, 0, .45); }
.tv-bar .icon-btn.pulse { box-shadow: 0 0 0 0 rgba(31, 209, 180, .7); animation: ring 1.8s ease-out infinite; }
/* Volume do Ao vivo: a barrinha abre ao lado do alto-falante quando o mouse passa (estilo YouTube). */
.tv-volume { display: flex; align-items: center; border-radius: 999px; transition: background .25s; }
.tv-volume:hover, .tv-volume:focus-within { background: rgba(0, 0, 0, .45); }
.tv-vol { width: 0; height: 4px; margin: 0; opacity: 0; border-radius: 4px; appearance: none; -webkit-appearance: none; cursor: pointer; background: linear-gradient(to right, var(--accent) var(--fill, 0%), rgba(255, 255, 255, .28) var(--fill, 0%)); transition: width .3s var(--ease-out), opacity .2s, margin .3s var(--ease-out); }
.tv-volume:hover .tv-vol, .tv-volume:focus-within .tv-vol { width: 90px; opacity: 1; margin: 0 14px 0 4px; }
.tv-vol::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(31, 209, 180, .35), 0 1px 6px rgba(0, 0, 0, .5); }
.tv-vol::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }
.tv-vol:focus-visible { outline: none; }
#tvPreview.is-full .tv-volume:hover .tv-vol, #tvPreview.is-full .tv-volume:focus-within .tv-vol { width: 120px; }
@media (hover: none) { .tv-vol { display: none; } } /* celular/tablet: o volume é o dos botões do aparelho */
@keyframes ring { 70% { box-shadow: 0 0 0 10px rgba(31, 209, 180, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 209, 180, 0); } }
.tv-msg { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 20px; text-align: center; color: var(--text-2); background: rgba(0, 0, 0, .7); }
.tv-msg i { font-size: 30px; color: var(--danger); }
.tv-ch-input, .ch-input { position: absolute; top: 14px; right: 16px; z-index: 4; padding: 2px 14px; border-radius: 10px; background: rgba(0, 0, 0, .7); font-size: 40px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .04em; color: #fff; }
.tv-info { min-width: 0; }
.tv-ch { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.tv-no { min-width: 44px; padding: 3px 9px; border-radius: 8px; background: var(--surface-2); font-weight: 750; font-size: 15px; text-align: center; font-variant-numeric: tabular-nums; }
.tv-logo { position: relative; display: grid; place-items: center; width: 52px; height: 34px; border-radius: 8px; background: var(--surface-2); overflow: hidden; font-size: 12px; font-weight: 700; color: var(--muted); }
.tv-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.tv-name { font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-title { font-size: clamp(22px, 2.6vw, 34px); font-weight: 750; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.tv-time { margin-top: 8px; color: var(--text-2); font-size: 14px; }
.tv-progress { height: 4px; max-width: 440px; margin-top: 12px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.tv-progress span { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.tv-desc { margin-top: 14px; color: var(--text-2); font-size: 14.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tv-next { margin-top: 12px; font-size: 14px; color: var(--text-2); }
.tv-next span, .osd-next span { margin-right: 8px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.tv-info .actions { margin-top: 20px; }
.tv-cats { display: flex; gap: 8px; margin: 26px 0 14px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.tv-cats::-webkit-scrollbar { display: none; }
.tv-cat { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-weight: 550; font-size: 14px; transition: background .2s, color .2s, border-color .2s; }
.tv-cat span { font-size: 12px; color: var(--muted); }
.tv-cat i { color: var(--warn); }
.tv-cat:hover { color: var(--text); border-color: var(--line-2); }
.tv-cat.active { background: var(--text); color: #0a0a10; border-color: var(--text); }
.tv-cat.active span { color: #55556a; }
.guide { position: relative; height: clamp(380px, 68vh, 760px); overflow: auto; overscroll-behavior: contain; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); scrollbar-color: var(--surface-3) transparent; }
.guide-inner { position: relative; min-width: 100%; }
.guide-head { position: sticky; top: 0; z-index: 5; display: flex; height: 42px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.guide-corner { position: sticky; left: 0; z-index: 6; flex: none; width: var(--ch-w); display: flex; align-items: center; padding: 0 14px; background: var(--bg-2); border-right: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--text-2); text-transform: capitalize; white-space: nowrap; overflow: hidden; }
.guide-times { position: relative; display: flex; flex: none; }
.guide-times span { flex: none; display: flex; align-items: center; padding: 0 10px; border-left: 1px solid var(--line); font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.now-mark { position: absolute; top: 9px; transform: translateX(-50%); padding: 2px 7px; border-radius: 5px; background: var(--danger); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.g-row { display: flex; height: 66px; border-bottom: 1px solid var(--line); }
.g-ch { position: sticky; left: 0; z-index: 3; flex: none; width: var(--ch-w); display: flex; align-items: center; gap: 10px; padding: 0 12px; background: var(--bg-2); border-right: 1px solid var(--line); text-align: left; transition: background .15s; }
.g-ch:hover { background: var(--surface); }
.g-ch:focus-visible { outline: 2px solid var(--accent-text); outline-offset: -2px; }
.g-row.sel .g-ch { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent); }
.g-no { flex: none; width: 34px; font-weight: 700; font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.g-row.sel .g-no { color: var(--text); }
.g-logo { position: relative; flex: none; display: grid; place-items: center; width: 46px; height: 32px; border-radius: 7px; background: var(--surface-2); overflow: hidden; font-size: 11px; font-weight: 700; color: var(--muted); }
.g-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.g-name { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-fav { display: none; flex: none; font-size: 13px; color: var(--warn); }
.g-row.is-fav .g-fav { display: inline; }
.g-line { position: relative; flex: none; }
.g-prog { position: absolute; top: 7px; bottom: 7px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 2px; padding: 0 11px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); text-align: left; white-space: nowrap; overflow: clip; cursor: pointer; transition: background .15s, border-color .15s; }
.g-prog > * { position: sticky; left: calc(var(--ch-w) + 10px); max-width: 100%; }
.g-prog strong { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.g-prog span { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.g-prog:hover { background: var(--surface-2); border-color: var(--line-2); }
.g-prog:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 1px; }
.g-prog.now { background: #1e1a3a; border-color: rgba(31, 209, 180, .45); }
.g-prog.past { opacity: .45; }
.g-row.sel .g-prog.now { background: var(--accent); border-color: var(--accent); }
.g-row.sel .g-prog.now span { color: rgba(255, 255, 255, .85); }
.g-prog.none { background: transparent; border-style: dashed; color: var(--muted); font-size: 13px; }
.g-prog.loading { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-color: transparent; }
.guide-now { position: absolute; top: 42px; bottom: 0; z-index: 2; width: 2px; margin-left: -1px; background: var(--danger); pointer-events: none; }
.guide-sentinel { height: 1px; }
.tv-hint { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.ch-no { margin-right: 6px; padding: 0 5px; border-radius: 4px; background: var(--surface-2); color: var(--text-2); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Player de TV: faixa do canal e zapping */
.osd { position: absolute; left: clamp(12px, 3vw, 32px); bottom: 76px; z-index: 3; display: flex; gap: 16px; align-items: center; width: min(92vw, 580px); padding: 14px 18px; border-radius: 16px; background: rgba(10, 10, 15, .9); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); animation: rise .25s var(--ease) both; pointer-events: none; }
.osd-logo { position: relative; flex: none; display: grid; place-items: center; width: 72px; height: 48px; border-radius: 10px; background: var(--surface-2); overflow: hidden; font-weight: 800; color: var(--muted); }
.osd-logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.osd-body { min-width: 0; flex: 1; }
.osd-ch { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.osd-ch strong { padding: 1px 7px; border-radius: 6px; background: var(--accent); color: var(--on-accent); font-variant-numeric: tabular-nums; }
.osd-title { margin-top: 4px; font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.osd-time { margin-top: 2px; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.osd .tv-progress { margin-top: 8px; }
.osd-next { margin-top: 8px; font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-input { top: 80px; right: clamp(16px, 3vw, 32px); font-size: 52px; }
.zap { position: absolute; right: clamp(10px, 2vw, 24px); top: 50%; z-index: 3; transform: translateY(-50%); display: grid; justify-items: center; gap: 6px; padding: 6px; border-radius: 30px; background: rgba(0, 0, 0, .45); transition: opacity .3s; }
.zap span { font-size: 11px; font-weight: 700; color: var(--text-2); letter-spacing: .08em; }
.zap .icon-btn { width: 44px; height: 44px; font-size: 22px; }
.player.idle .zap { opacity: 0; pointer-events: none; }
.player-panel:not(.hidden) ~ .zap { display: none; }

@media (max-width: 900px) {
  .tv { padding-top: calc(var(--nav-h) + 10px); }
  .tv-top { grid-template-columns: 1fr; gap: 16px; }
  .tv-preview { margin: 0 calc(var(--gutter) * -1); border-radius: 0; }
  .tv-desc { display: none; }
  .tv-info .actions { flex-wrap: nowrap; margin-top: 16px; }
  .tv-info .actions .btn { flex: 1; padding: 0 12px; }
  .tv-cats { margin-top: 18px; }
  .guide { height: 64vh; border-radius: 12px; }
  .g-ch { gap: 6px; padding: 0 8px; flex-wrap: wrap; align-content: center; }
  .g-name, .g-fav { display: none !important; }
  .g-no { width: auto; min-width: 26px; font-size: 13px; }
  .g-logo { width: 40px; height: 28px; }
  .guide-corner { padding: 0 8px; font-size: 12px; }
  .tv-hint { display: none; }
  .osd { bottom: 64px; padding: 10px 12px; gap: 12px; }
  .osd-logo { width: 56px; height: 38px; }
  .osd-title { font-size: 16px; }
}

/* ---------- Vitrine estilo Prime Video / Disney+ ---------- */
.carousel { position: relative; padding-top: calc(var(--nav-h) + 14px); --peek: clamp(16px, 5vw, 72px); }
.car-track { display: flex; gap: 18px; padding: 8px var(--peek); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--peek); scrollbar-width: none; }
.car-track::-webkit-scrollbar { display: none; }
.car-slide { position: relative; flex: 0 0 100%; height: clamp(340px, 40vw, 580px); border-radius: 14px; overflow: hidden; background: var(--surface); scroll-snap-align: start; opacity: .35; transform: scale(.97); transition: opacity .6s var(--ease-out), transform .7s var(--ease-out), box-shadow .35s var(--ease-out); }
.car-slide.active { opacity: 1; transform: none; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
/* Moldura branca dupla da Disney+ ao passar o mouse no destaque ativo. */
.car-slide.active:hover, .car-slide.active:focus-within { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px rgba(249, 249, 249, .92), 0 30px 60px -30px rgba(0, 0, 0, .9); }
.car-media { position: absolute; inset: 0; }
.car-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.car-slide.active .car-media img { animation: kenburns 14s ease-out both; }
.car-slide.is-poster .car-media img { filter: blur(28px) saturate(1.25); transform: scale(1.25); opacity: .6; animation: none; }
.car-poster { position: absolute; right: 7%; top: 50%; z-index: 1; height: 80%; aspect-ratio: 2 / 3; transform: translateY(-50%) rotate(2deg); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .65); }
.car-poster img { width: 100%; height: 100%; object-fit: cover; }
.car-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to right, rgba(8, 8, 12, .92) 0%, rgba(8, 8, 12, .6) 38%, rgba(8, 8, 12, 0) 72%), linear-gradient(to top, rgba(8, 8, 12, .75) 0%, rgba(8, 8, 12, 0) 45%); }
.car-content { position: absolute; left: clamp(22px, 4vw, 56px); bottom: clamp(26px, 4vw, 52px); z-index: 2; width: min(560px, 78%); }
/* Textos do destaque entram um depois do outro quando o slide fica ativo. */
.car-content > * { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease-out), transform .7s var(--ease-out); }
.car-slide.active .car-content > * { opacity: 1; transform: none; }
.car-slide.active .car-content > :nth-child(2) { transition-delay: .07s; } .car-slide.active .car-content > :nth-child(3) { transition-delay: .14s; }
.car-slide.active .car-content > :nth-child(4) { transition-delay: .21s; } .car-slide.active .car-content > :nth-child(5) { transition-delay: .28s; }
.car-slide.active .car-content > :nth-child(6) { transition-delay: .35s; }
.badge-new { display: table; margin-bottom: 12px; padding: 4px 9px; border-radius: 5px; background: #f9f9f9; color: #0a0a10; font-size: 13px; font-weight: 700; letter-spacing: .01em; }
.car-title { font-size: clamp(28px, 4vw, 54px); font-weight: 800; line-height: 1.03; letter-spacing: -.035em; text-wrap: balance; }
.car-plot { margin-top: 12px; color: var(--text-2); font-size: 15.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.car-plot:empty { display: none; }
.car-content .actions { margin-top: 20px; }
.car-nav { position: absolute; top: calc(var(--nav-h) + 22px); height: clamp(340px, 40vw, 580px); z-index: 3; width: var(--peek); display: grid; place-items: center; font-size: 32px; color: #fff; opacity: 0; transition: opacity .25s; }
.car-nav.prev { left: 0; }
.car-nav.next { right: 0; }
.carousel:hover .car-nav { opacity: .9; }
.car-dots { display: flex; justify-content: center; gap: 4px; margin-top: 12px; }
.car-dot { padding: 6px 3px; }
.car-dot span { position: relative; display: block; width: 8px; height: 4px; border-radius: 4px; overflow: hidden; background: rgba(255, 255, 255, .28); transition: width .45s var(--ease-out), background .35s; }
.car-dot:hover span { background: rgba(255, 255, 255, .55); }
.car-dot.active span { width: 34px; }
/* A barrinha do ponto ativo enche em 7 s; quando termina, o carrossel avança (ver mountCarousel). */
.car-dot span::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #fff; transform: scaleX(0); transform-origin: left; }
.car-dot.active span::after { transform: scaleX(1); }
.carousel.auto .car-dot.active span::after { animation: dotFill 7s linear both; }
.carousel.paused .car-dot.active span::after { animation-play-state: paused; }
@keyframes dotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.carousel + .rows { margin-top: 14px; }

.row-track.genre { grid-auto-columns: clamp(210px, 22vw, 290px); }
.genre-tile { position: relative; display: block; height: clamp(112px, 9.5vw, 140px); border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, hsl(var(--h) 55% 34%), hsl(calc(var(--h) + 45) 50% 13%)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); scroll-snap-align: start; transition: transform .3s var(--ease), box-shadow .3s; }
.genre-tile:hover, .genre-tile:focus-visible { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), 0 16px 34px rgba(0, 0, 0, .5); }
.genre-tile::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to right, hsl(var(--h) 50% 16% / .95) 30%, hsl(var(--h) 50% 16% / 0) 85%); }
.genre-art { position: absolute; right: 4px; top: 14px; bottom: -18px; display: flex; align-items: flex-start; }
.genre-art span { position: relative; width: 64px; aspect-ratio: 2 / 3; margin-left: -24px; border-radius: 8px; overflow: hidden; background: var(--surface); box-shadow: -6px 4px 16px rgba(0, 0, 0, .45); transition: transform .4s var(--ease); }
.genre-art span:nth-child(1) { transform: rotate(-8deg) translateY(12px); }
.genre-art span:nth-child(2) { transform: rotate(2deg); }
.genre-art span:nth-child(3) { transform: rotate(10deg) translateY(8px); }
.genre-tile:hover .genre-art span:nth-child(1) { transform: rotate(-12deg) translate(-6px, 8px); }
.genre-tile:hover .genre-art span:nth-child(3) { transform: rotate(14deg) translate(4px, 4px); }
.genre-art img { width: 100%; height: 100%; object-fit: cover; }
.genre-name { position: absolute; left: 16px; bottom: 34px; z-index: 2; max-width: 62%; font-size: 19px; font-weight: 750; line-height: 1.1; letter-spacing: -.01em; }
.genre-count { position: absolute; left: 16px; bottom: 13px; z-index: 2; font-size: 12.5px; color: rgba(255, 255, 255, .75); }
.genre-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.genre-grid .genre-tile { height: 132px; }

.row-track.top { grid-auto-columns: clamp(176px, 17vw, 250px); gap: 6px; }
.top-card { position: relative; display: flex; align-items: flex-end; }
.top-num { flex: none; width: 46%; margin-right: -7%; padding-right: 2px; font-size: clamp(110px, 11vw, 176px); font-weight: 800; line-height: .76; letter-spacing: -.09em; text-align: right; color: var(--bg); -webkit-text-stroke: 3px rgba(255, 255, 255, .5); user-select: none; transition: -webkit-text-stroke-color .3s; }
.top-card:hover .top-num { -webkit-text-stroke-color: var(--accent-text); }
.top-card .card-media { position: relative; z-index: 1; flex: 1; aspect-ratio: 2 / 3; }

.back-link { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 6px; font-size: 14px; color: var(--muted); transition: color .2s; }
.back-link:hover { color: var(--text); }
.browse-all { display: flex; justify-content: center; padding: 4px var(--gutter) 0; }
a.kicker:hover { text-decoration: underline; text-underline-offset: 3px; }

.tabs-bar { display: flex; gap: 30px; margin: 0 var(--gutter) 24px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs-bar::-webkit-scrollbar { display: none; }
.tab-btn { position: relative; flex: none; padding: 14px 0; font-size: 16px; font-weight: 600; color: var(--muted); transition: color .2s; }
.tab-btn:hover { color: var(--text-2); }
.tab-btn.active { color: var(--text); }
.tab-btn.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px; background: var(--accent); }
.tab-panel { min-height: 240px; padding: 0 var(--gutter); animation: fade .3s ease both; }
.tab-panel .grid { padding: 0; }
.details { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); max-width: 1180px; }
.details-plot { color: var(--text-2); font-size: 16px; line-height: 1.7; }
.details dl { display: grid; gap: 14px; margin: 0; }
.details dl div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; font-size: 14.5px; }
.details dt { color: var(--muted); }
.details dd { margin: 0; color: var(--text-2); }

@media (max-width: 900px) {
  .carousel { --peek: 16px; padding-top: calc(var(--nav-h) + 8px); }
  .car-track { gap: 10px; }
  .car-slide, .car-nav { height: min(68vh, 540px); }
  .car-slide.is-poster .car-media img { filter: none; transform: none; opacity: 1; }
  .car-poster { display: none; }
  .car-shade { background: linear-gradient(to top, rgba(8, 8, 12, .95) 0%, rgba(8, 8, 12, .6) 40%, rgba(8, 8, 12, 0) 70%); }
  .car-content { left: 18px; right: 18px; bottom: 22px; width: auto; }
  .car-plot { -webkit-line-clamp: 2; font-size: 14px; }
  .car-content .actions { flex-wrap: nowrap; }
  .car-content .actions .btn-glass:not(.btn-round) { padding: 0 14px; }
  .car-nav { display: none; }
  .row-track.genre { grid-auto-columns: 196px; }
  .row-track.top { grid-auto-columns: 150px; }
  .top-num { font-size: 104px; -webkit-text-stroke-width: 2px; }
  .tabs-bar { gap: 22px; margin-bottom: 18px; }
  .details { grid-template-columns: 1fr; }
  .genre-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .genre-grid .genre-tile { height: 110px; }
  .genre-name { font-size: 16px; max-width: 70%; }
}

.settled .detail-poster, .settled .detail-text, .settled .hero-media img, .settled .tab-panel { animation: none; }

/* ---------- Botões extras ---------- */
.btn-outline { background: transparent; color: var(--text-2); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.btn-outline:hover { color: var(--text); box-shadow: inset 0 0 0 1.5px #fff; }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, .08); }
.btn-danger { background: var(--danger); color: #1a0508; }
.btn-danger:hover { background: #ff8592; }
.btn-danger-ghost { background: transparent; color: var(--danger); }
.btn-danger-ghost:hover { background: rgba(255, 107, 122, .12); }
.btn.armed { background: var(--danger); color: #1a0508; animation: shake .4s var(--ease-out); }
@keyframes shake { 20%, 60% { transform: translateX(-3px); } 40%, 80% { transform: translateX(3px); } }
.btn-primary { transition: background .2s, transform .2s var(--spring), box-shadow .3s; }
.btn-primary:hover { box-shadow: 0 10px 26px -10px rgba(255, 255, 255, .45); }
.login-card .btn-primary:hover { box-shadow: 0 12px 28px -10px rgba(31, 209, 180, .8); }
.btn-glass { transition: background .2s, transform .2s var(--spring); }
.field-hint { margin: -6px 0 0; font-size: 12.5px; color: var(--muted); }

/* ---------- Telas de entrada (conta e vínculo) ---------- */
.login-card { animation: cardIn .7s var(--ease-out) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(22px) scale(.98); } }
.login-card .fields > *, .login-card .check, .login-card .btn-block { animation: rowIn .6s var(--ease-out) both; }
.login-card .fields > :nth-child(2) { animation-delay: .05s; } .login-card .fields > :nth-child(3) { animation-delay: .1s; }
.login-card .fields > :nth-child(4) { animation-delay: .15s; } .login-card .check { animation-delay: .18s; } .login-card .btn-block { animation-delay: .22s; }
#authSeg[data-active="signup"] .seg-indicator, #linkSeg[data-active="m3u"] .seg-indicator { transform: translateX(100%); }
.seg-indicator { transition: transform .45s var(--ease-out); }
#nameField { margin-bottom: -14px; transition: grid-template-rows .4s var(--ease-out), margin .4s var(--ease-out), opacity .3s; opacity: 0; }
#nameField.open { margin-bottom: 0; opacity: 1; }
.step-chip { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; padding: 5px 10px; border-radius: 20px; background: var(--accent-soft); color: var(--accent-text); font-size: 12.5px; font-weight: 600; }
.link-foot { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.link-foot #linkWho { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Avatares de perfil ---------- */
.pav { position: relative; flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; font-size: 18px; background: linear-gradient(145deg, var(--c1), var(--c2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -10px 20px rgba(0, 0, 0, .18); }
.pav i { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .25)); }
.pav-violet { --c1: #8b7cff; --c2: #4b37c9; } .pav-ocean { --c1: #46b4ff; --c2: #1f4fb8; }
.pav-sunset { --c1: #ffb15c; --c2: #e0532f; } .pav-mint { --c1: #48e0a8; --c2: #12806a; }
.pav-rose { --c1: #ff8ab8; --c2: #c42f6b; } .pav-gold { --c1: #ffd95c; --c2: #c7861c; }
.pav-slate { --c1: #9aa3b8; --c2: #3c4357; } .pav-ember { --c1: #ff7a6b; --c2: #a3192b; }
.pav-xs { width: 28px; height: 28px; font-size: 14px; }
.pav-sm { width: 36px; height: 36px; font-size: 18px; }
.pav-md { width: 46px; height: 46px; font-size: 22px; }
.pav-lg { width: clamp(96px, 12vw, 148px); height: clamp(96px, 12vw, 148px); font-size: clamp(42px, 5.4vw, 68px); }
.pav-xl { width: clamp(120px, 16vw, 176px); height: clamp(120px, 16vw, 176px); font-size: clamp(54px, 7vw, 80px); transition: background .4s; }
.pav-add { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .22); }

/* ---------- Quem está assistindo? ---------- */
.profiles-view { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: radial-gradient(ellipse 80% 60% at 50% 0%, #17142e 0%, var(--bg) 70%); overflow: hidden; }
.profiles-center { flex: 1; display: grid; place-content: center; justify-items: center; gap: 42px; padding: 20px 16px 72px; }
.profiles-center h1 { font-size: clamp(28px, 4vw, 46px); font-weight: 750; letter-spacing: -.03em; text-align: center; animation: rowIn .6s var(--ease-out) both; }
.profiles-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(18px, 3vw, 40px); }
.ptile { display: grid; justify-items: center; gap: 14px; width: clamp(104px, 13vw, 160px); animation: tileIn .6s var(--ease-out) both; animation-delay: calc(var(--i) * 70ms + 80ms); }
@keyframes tileIn { from { opacity: 0; transform: translateY(24px) scale(.92); } }
.ptile-av { position: relative; display: block; border-radius: 50%; transition: transform .45s var(--spring), box-shadow .35s; }
.ptile:hover .ptile-av, .ptile:focus-visible .ptile-av { transform: scale(1.08); box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px #f9f9f9, 0 24px 50px -16px rgba(0, 0, 0, .9); }
.ptile:focus-visible { outline: none; }
.ptile-name { font-size: 15px; font-weight: 600; color: var(--text-2); text-align: center; line-height: 1.3; transition: color .25s; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.ptile:hover .ptile-name, .ptile:focus-visible .ptile-name { color: var(--text); }
.ptile-edit { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: rgba(8, 8, 12, .55); font-size: 34px; opacity: 0; transform: scale(.85); transition: opacity .3s, transform .4s var(--spring); }
.managing .ptile-edit { opacity: 1; transform: none; }
.managing .ptile:not(.ptile-add) .ptile-av { animation: wiggle 2.4s ease-in-out infinite; }
@keyframes wiggle { 0%, 100% { rotate: 0deg; } 25% { rotate: -2deg; } 75% { rotate: 2deg; } }
.ptile-add:hover .pav-add { color: var(--text); box-shadow: inset 0 0 0 2px #fff; }
.profiles-actions { display: flex; gap: 10px; animation: rowIn .6s .3s var(--ease-out) both; }
/* Ao escolher: o avatar escolhido cresce e o resto some. */
.profiles-view.leaving .profiles-center > :not(.profiles-grid), .profiles-view.leaving .ptile:not(.chosen) { opacity: 0; transform: scale(.94); transition: opacity .3s, transform .35s var(--ease-out); }
.profiles-view.leaving .ptile.chosen .ptile-av { transform: scale(1.22); transition: transform .45s var(--ease-out); }

.profile-editor { flex: 1; align-self: center; width: min(100% - 32px, 760px); padding: 20px 0 72px; animation: rowIn .5s var(--ease-out) both; }
.profile-editor h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 750; letter-spacing: -.03em; margin-bottom: 28px; }
.editor-main { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); align-items: start; padding: 28px 0; border-block: 1px solid var(--line); }
.editor-fields { display: grid; gap: 20px; }
.editor-fields .field > span:first-child { font-size: 13px; font-weight: 500; color: var(--text-2); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(145deg, var(--c1), var(--c2)); transition: transform .3s var(--spring), box-shadow .25s; }
.swatch:hover { transform: scale(1.12); }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px #fff; transform: scale(1.06); }
.icon-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px; }
.icon-pick { display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; background: var(--surface); color: var(--text-2); font-size: 22px; transition: background .2s, color .2s, transform .3s var(--spring), box-shadow .2s; }
.icon-pick:hover { background: var(--surface-2); color: var(--text); transform: translateY(-2px); }
.icon-pick[aria-checked="true"] { background: var(--accent-soft); color: var(--accent-text); box-shadow: inset 0 0 0 1.5px var(--accent); }
.editor-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.editor-actions #editorDelete { margin-left: auto; }

/* ---------- Conta e configurações ---------- */
.settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 18px; padding: 0 var(--gutter); max-width: 1320px; }
.set-card { display: grid; gap: 16px; align-content: start; padding: 24px; border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)), var(--surface); border: 1px solid var(--line); animation: rowIn .6s var(--ease-out) both; }
.set-card:nth-child(2) { animation-delay: .05s; } .set-card:nth-child(3) { animation-delay: .1s; } .set-card:nth-child(4) { animation-delay: .15s; } .set-card:nth-child(n+5) { animation-delay: .2s; }
.set-card h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 650; }
.set-card h2 i { font-size: 20px; color: var(--accent-text); }
.set-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.set-note { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.set-profiles { display: flex; flex-wrap: wrap; gap: 10px; }
.set-profile { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 30px; background: var(--surface-2); font-weight: 600; font-size: 14px; transition: background .2s, transform .3s var(--spring); }
.set-profile:hover { background: var(--surface-3); transform: translateY(-2px); }
.set-profile em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--accent-text); }
.set-list { display: grid; gap: 10px; margin: 0; }
.set-list div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.set-list dt { color: var(--muted); }
.set-list dd { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--text-2); text-align: right; word-break: break-all; }
.set-list .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.secret { font-variant-numeric: tabular-nums; }
.set-form { display: grid; gap: 14px; justify-items: start; }
.set-form .field, .set-form .collapsible { width: 100%; }
.set-form .input { height: 46px; }
.set-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.set-danger { border-color: rgba(255, 107, 122, .22); }
.set-danger h2 i { color: var(--danger); }
.set-card .profile-stats { margin: 0; }

/* ---------- Transições entre telas ---------- */
/* Só opacidade: transform aqui mudaria a referência da barra fixa (position: fixed) durante a animação. */
.view-enter { animation: viewIn .5s var(--ease-out) both; }
@keyframes viewIn { from { opacity: 0; } }
.page { animation: pageIn .45s var(--ease-out) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1100px) {
  .nav-links a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav-links a { padding: 10px 12px; }
  .nav-links a i { font-size: 21px; }
}
@media (max-width: 900px) {
  .nav { grid-template-columns: auto 1fr; }
  .chip-name, .chip-caret { display: none; }
  .profile-chip { padding: 4px; }
  .tabbar a i { transition: transform .3s var(--spring); }
  .tabbar a.active i { transform: translateY(-2px); }
  .editor-main { grid-template-columns: 1fr; justify-items: center; }
  .editor-fields { width: 100%; }
  .editor-actions .btn { flex: 1; }
  .editor-actions #editorDelete { margin-left: 0; flex-basis: 100%; }
  .profiles-center { gap: 30px; }
  .card:hover .card-media { transform: none; box-shadow: inset 0 0 0 1px var(--line); }
  .card:hover .card-media::before { opacity: 0; }
  .card:active .card-media { transform: scale(.97); }
  .set-card { padding: 20px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .managing .ptile:not(.ptile-add) .ptile-av { animation: none; }
}

/* ---------- Capas TMDB, logos e versões ---------- */
.card-media img.tmdb-in, .car-media img.tmdb-in, .hero-media img.tmdb-in { animation: imgIn .6s var(--ease-out) both; }
@keyframes imgIn { from { opacity: 0; } }
.q-badge { position: absolute; left: 8px; top: 8px; z-index: 1; padding: 2px 7px; border-radius: 5px; background: rgba(8, 8, 12, .78); border: 1px solid rgba(255, 255, 255, .28); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
/* Logo oficial do título no lugar do texto (destaques e página do título). */
.car-title.has-logo, .hero-title.has-logo { line-height: 0; }
.title-logo { display: block; width: auto; height: auto; max-width: min(100%, 420px); max-height: clamp(70px, 9vw, 140px); object-fit: contain; object-position: left bottom; filter: drop-shadow(0 6px 22px rgba(0, 0, 0, .55)); animation: imgIn .6s var(--ease-out) both; }
.hero-title .title-logo { max-height: clamp(80px, 11vw, 170px); max-width: min(100%, 520px); }

.versions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 18px; }
.versions-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.v-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.v-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 18px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); color: var(--text-2); font-size: 13px; font-weight: 600; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s, color .2s, border-color .2s, transform .25s var(--spring); }
.v-chip:hover { color: var(--text); background: rgba(255, 255, 255, .16); transform: translateY(-1px); }
.v-chip.on { background: #f9f9f9; color: #0a0a10; border-color: #f9f9f9; }

/* Engrenagem do player */
.player-settings { position: absolute; top: 76px; right: clamp(12px, 3vw, 28px); z-index: 4; width: min(92vw, 320px); max-height: calc(100% - 110px); overflow-y: auto; padding: 8px; border-radius: 16px; background: rgba(14, 14, 20, .94); border: 1px solid var(--line-2); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); animation: pop .22s var(--ease-out); transform-origin: top right; }
.ps-group + .ps-group { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.ps-group h4 { margin: 6px 10px 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ps-option { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border-radius: 10px; text-align: left; font-size: 14.5px; color: var(--text-2); transition: background .15s, color .15s; }
.ps-option:hover, .ps-option:focus-visible { background: rgba(255, 255, 255, .08); color: var(--text); }
.ps-option i { width: 18px; font-size: 16px; color: var(--accent-text); opacity: 0; }
.ps-option.on { color: var(--text); font-weight: 600; }
.ps-option.on i { opacity: 1; }
.ps-option span { display: grid; }
.ps-option small { font-size: 12px; font-weight: 400; color: var(--muted); }
.ps-empty { padding: 14px; font-size: 14px; color: var(--muted); }
.player.idle .player-settings { opacity: 1; }
.player-error .actions { justify-content: center; margin-top: 4px; }
@media (max-width: 900px) {
  .player-settings { top: auto; bottom: 70px; right: 8px; left: 8px; width: auto; max-height: 60vh; transform-origin: bottom center; }
  .versions { margin-top: 14px; }
}
.credits-note { display: flex; gap: 8px; align-items: flex-start; max-width: 1320px; margin: 22px var(--gutter) 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.credits-note i { flex: none; font-size: 15px; margin-top: 1px; }

/* ---------- Player com controles próprios (estilo Netflix / Prime Video) ---------- */
.player video { cursor: default; }
.player-top { padding: 18px clamp(14px, 3vw, 36px) 60px; gap: 14px; }
.pl-btn { position: relative; flex: none; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: #fff; font-size: 26px; transition: background .2s, transform .25s var(--spring), opacity .2s; }
.pl-btn:hover { background: rgba(255, 255, 255, .14); transform: scale(1.1); }
.pl-btn:active { transform: scale(.94); }
.pl-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pl-back { width: 48px; height: 48px; font-size: 26px; background: rgba(10, 10, 15, .45); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pl-back:hover { background: rgba(255, 255, 255, .2); }
.player-titles strong { font-size: 19px; font-weight: 700; letter-spacing: -.01em; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }

.pl-controls { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 70px clamp(14px, 3vw, 40px) max(14px, env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .55) 45%, rgba(0, 0, 0, 0) 100%); transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); }
.player.idle .pl-controls { opacity: 0; transform: translateY(10px); pointer-events: none; }
.player.idle .player-top { transform: translateY(-10px); }
.player-top { transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); }

/* Barra do tempo: cresce no hover, bolinha aparece, balão mostra o minuto. */
.pl-progress { position: relative; height: 22px; display: flex; align-items: center; cursor: pointer; touch-action: none; outline: none; }
.pl-track { position: relative; width: 100%; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .22); overflow: hidden; transition: height .2s var(--ease-out); }
.pl-buffered, .pl-played { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); }
.pl-buffered { background: rgba(255, 255, 255, .32); }
.pl-played { background: var(--accent); transition: transform .25s linear; }
.pl-progress.scrubbing .pl-played { transition: none; }
.pl-thumb { position: absolute; top: 50%; left: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(31, 209, 180, .45), 0 2px 8px rgba(0, 0, 0, .5); transform: scale(0); transition: transform .2s var(--spring), left .25s linear; pointer-events: none; }
.pl-progress.scrubbing .pl-thumb { transition: transform .2s var(--spring); }
.pl-progress:hover .pl-track, .pl-progress:focus-visible .pl-track, .pl-progress.scrubbing .pl-track { height: 7px; }
.pl-progress:hover .pl-thumb, .pl-progress:focus-visible .pl-thumb, .pl-progress.scrubbing .pl-thumb { transform: scale(1); }
.pl-tip { position: absolute; bottom: 26px; left: 0; transform: translateX(-50%); padding: 4px 9px; border-radius: 8px; background: rgba(14, 14, 20, .92); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; opacity: 0; transition: opacity .15s; pointer-events: none; }
.pl-progress:hover .pl-tip, .pl-progress.scrubbing .pl-tip { opacity: 1; }

.pl-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.pl-left, .pl-right { display: flex; align-items: center; gap: 4px; min-width: 0; }
.pl-play { width: 54px; height: 54px; font-size: 30px; }
.pl-skip i { font-size: 30px; }
.pl-skip span { position: absolute; font-size: 10px; font-weight: 800; margin-top: 2px; }
.pl-time { margin-left: 10px; font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .92); white-space: nowrap; }
.pl-next { width: auto; padding: 0 16px 0 12px; gap: 8px; border-radius: 24px; font-size: 22px; }
.pl-next span { font-size: 14px; font-weight: 700; }
.pl-live { display: inline-flex; align-items: center; gap: 8px; margin-right: 6px; padding: 6px 12px; border-radius: 8px; background: rgba(255, 60, 80, .16); border: 1px solid rgba(255, 90, 105, .45); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.pl-live .dot { width: 9px; height: 9px; border-radius: 50%; background: #ff3b52; box-shadow: 0 0 0 0 rgba(255, 59, 82, .7); animation: liveDot 1.6s ease-out infinite; }
@keyframes liveDot { 70% { box-shadow: 0 0 0 9px rgba(255, 59, 82, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 82, 0); } }

/* Volume: a barrinha abre ao passar o mouse. */
.pl-volume { display: flex; align-items: center; }
.pl-vol { width: 0; opacity: 0; margin: 0; height: 4px; border-radius: 4px; appearance: none; -webkit-appearance: none; cursor: pointer; background: linear-gradient(to right, #fff var(--fill, 100%), rgba(255, 255, 255, .28) var(--fill, 100%)); transition: width .3s var(--ease-out), opacity .2s, margin .3s var(--ease-out); }
.pl-volume:hover .pl-vol, .pl-volume:focus-within .pl-vol { width: 96px; opacity: 1; margin: 0 8px 0 4px; }
.pl-vol::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.pl-vol::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }

/* Pausa: botão grande e translúcido no meio da tela. */
.pause-overlay { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: radial-gradient(ellipse at center, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .15) 60%, rgba(0, 0, 0, 0) 100%); animation: fadeIn .3s ease both; cursor: pointer; }
.pause-circle { display: grid; place-items: center; width: clamp(88px, 10vw, 120px); height: clamp(88px, 10vw, 120px); border-radius: 50%; background: rgba(255, 255, 255, .14); border: 1.5px solid rgba(255, 255, 255, .45); box-shadow: 0 20px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .25); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); font-size: clamp(38px, 4.4vw, 52px); color: #fff; animation: pausePop .45s var(--spring) both; transition: transform .25s var(--spring), background .2s; }
.pause-circle i { margin-left: 6px; }
.pause-overlay:hover .pause-circle { transform: scale(1.08); background: rgba(255, 255, 255, .22); }
.pause-text { display: grid; justify-items: center; gap: 2px; text-align: center; text-shadow: 0 2px 12px rgba(0, 0, 0, .7); animation: rise .45s .05s var(--ease-out) both; }
.pause-label { font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.pause-text strong { font-size: clamp(16px, 1.8vw, 22px); font-weight: 700; max-width: 80vw; }
@keyframes pausePop { from { opacity: 0; transform: scale(.7); } }
@keyframes fadeIn { from { opacity: 0; } }

/* Carregando: um só, com a marca do site. */
.brand-loader { position: relative; display: grid; place-items: center; width: 86px; height: 86px; }
.brand-loader-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(31, 209, 180, 0) 0deg, var(--accent) 280deg, #fff 360deg); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); animation: spin .9s linear infinite; }
.brand-loader .logo { font-size: 34px; animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; transform: scale(.94); } }

/* Painéis acima da barra de controles. */
.player-settings { top: auto; bottom: 104px; transform-origin: bottom right; }
.next-up { bottom: 120px; }
.osd { bottom: 104px; }
.player-panel { padding-bottom: 104px; }

@media (max-width: 900px) {
  .pl-controls { padding-top: 50px; }
  .pl-btn { width: 42px; height: 42px; font-size: 23px; }
  .pl-play { width: 46px; height: 46px; font-size: 26px; }
  .pl-skip i { font-size: 26px; }
  .pl-time { font-size: 13px; margin-left: 4px; }
  .pl-volume .pl-vol { display: none; }
  .pl-next span { display: none; }
  .pl-next { padding: 0; width: 42px; }
  .player-settings { bottom: 96px; }
  .osd { bottom: 96px; }
}
@media (max-width: 420px) { .pl-skip { display: none; } }

/* ---------- Página do título: sem faixa escura em cima da capa ---------- */
.nav.over-hero:not(.scrolled) { background: linear-gradient(to bottom, rgba(8, 8, 12, .5) 0%, rgba(8, 8, 12, .18) 60%, rgba(8, 8, 12, 0) 100%); border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ---------- Canais agrupados (região e qualidade) ---------- */
.g-var { flex: none; padding: 1px 6px; border-radius: 5px; background: var(--accent-soft); color: var(--accent-text); font-size: 10.5px; font-weight: 800; letter-spacing: .03em; }
.ch-variants { display: grid; gap: 10px; margin-top: 16px; }
.v-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.v-row .versions-label { min-width: 70px; }
.ch-variants .v-chips { gap: 6px; }
.ch-variants .v-chip { height: 30px; padding: 0 11px; font-size: 12.5px; }

/* Grupos de canais (HBO, Telecine, ESPN…) */
.tv-fams { display: flex; align-items: center; gap: 8px; margin: -4px 0 14px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.tv-fams::-webkit-scrollbar { display: none; }
.tv-fams-label { flex: none; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.tv-fam { padding-left: 5px; }
.tv-fam-logo { position: relative; display: grid; place-items: center; width: 34px; height: 26px; border-radius: 13px; background: rgba(255, 255, 255, .08); overflow: hidden; font-size: 10px; font-weight: 800; color: var(--muted); }
.tv-fam-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.tv-cat.active .tv-fam-logo { background: rgba(10, 10, 16, .08); }

/* ---------- Cartões de canal na página inicial ---------- */
.live-card .card-media { background: radial-gradient(ellipse at 50% 120%, #1d1d2b 0%, #0f0f16 70%); }
.live-glow { position: absolute; inset: -30%; z-index: 0; overflow: hidden; }
.live-glow img { width: 100%; height: 100%; object-fit: cover; filter: blur(34px) saturate(1.8) brightness(.75); opacity: .55; transform: scale(1.2); }
.live-card .card-media::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(to top, rgba(8, 8, 12, .7) 0%, rgba(8, 8, 12, 0) 55%); pointer-events: none; }
.live-card .card-media img.logo { z-index: 1; padding: 20% 26%; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .55)); transition: transform .5s var(--ease-out); }
.live-card:hover .card-media img.logo { transform: scale(1.08); }
.live-card .live-badge, .live-var, .live-card .card-flag { z-index: 2; }
.live-var { position: absolute; right: 8px; top: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(8, 8, 12, .7); font-size: 11px; font-weight: 700; }
.live-card.in-list .live-var { right: 36px; }
.live-prog { position: absolute; left: 10px; right: 10px; bottom: 9px; z-index: 2; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.live-prog span { display: block; height: 100%; border-radius: 3px; background: #ff3b52; }
.live-now { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-card .live-initials { z-index: 1; color: rgba(255, 255, 255, .35); }
.g-var.g-q { background: rgba(255, 255, 255, .08); color: var(--text-2); }

/* ---------- Player: tempo, volume, cards (versão 2) ---------- */
.pl-progress-row { display: flex; align-items: center; gap: 14px; }
.pl-progress-row .pl-progress { flex: 1; }
.pl-cur, .pl-remain { flex: none; min-width: 52px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.pl-remain { text-align: right; padding: 4px 6px; margin-right: -6px; border-radius: 6px; cursor: pointer; transition: background .2s, color .2s; }
.pl-remain:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.pl-title-mini { margin-left: 12px; max-width: 34vw; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-skip.spin-back i { animation: skipBack .45s var(--ease-out); }
.pl-skip.spin-fwd i { animation: skipFwd .45s var(--ease-out); }
@keyframes skipBack { from { transform: rotate(0); } to { transform: rotate(-360deg); } }
@keyframes skipFwd { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* Volume: barrinha vertical que abre em cima do ícone. */
.pl-volume { position: relative; }
.pl-vol-pop { position: absolute; left: 50%; bottom: 100%; z-index: 2; display: grid; justify-items: center; gap: 8px; width: 52px; padding: 12px 0 14px; margin-bottom: 6px; border-radius: 26px; background: rgba(14, 14, 20, .9); border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0, 0, 0, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; transform: translate(-50%, 8px) scale(.94); transform-origin: bottom center; pointer-events: none; transition: opacity .2s, transform .3s var(--ease-out); }
.pl-volume::after { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 12px; } /* ponte para o mouse não "cair" entre o ícone e a barra */
.pl-volume:hover .pl-vol-pop, .pl-volume:focus-within .pl-vol-pop, .pl-volume.dragging .pl-vol-pop { opacity: 1; transform: translate(-50%, 0) scale(1); pointer-events: auto; }
.pl-vol-num { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-2); }
.pl-vol-track { position: relative; width: 6px; height: 120px; border-radius: 6px; background: rgba(255, 255, 255, .22); cursor: pointer; touch-action: none; outline: none; }
.pl-vol-track::before { content: ""; position: absolute; inset: -6px -14px; } /* área de toque maior */
.pl-vol-fill { position: absolute; inset: 0; border-radius: 6px; background: #fff; transform-origin: bottom; }
.pl-vol-knob { position: absolute; left: 50%; width: 16px; height: 16px; margin: 0 0 -8px -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(31, 209, 180, .4), 0 2px 8px rgba(0, 0, 0, .5); transition: transform .2s var(--spring); }
.pl-vol-track:hover .pl-vol-knob, .pl-volume.dragging .pl-vol-knob, .pl-vol-track:focus-visible .pl-vol-knob { transform: scale(1.2); }

/* Card "Reproduzindo" (canto de cima). */
.pl-now { position: absolute; top: 18px; right: clamp(14px, 3vw, 36px); z-index: 4; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 12px; border-radius: 14px; background: rgba(14, 14, 20, .72); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 16px 40px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); animation: nowIn .5s var(--ease-out) both; transition: opacity .45s, transform .45s var(--ease-out); }
.pl-now i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); font-size: 19px; }
.pl-now span { display: grid; }
.pl-now small { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pl-now strong { font-size: 14.5px; font-weight: 700; }
.pl-now.out { opacity: 0; transform: translateY(-8px); }
@keyframes nowIn { from { opacity: 0; transform: translateY(-10px) scale(.96); } }

/* Classificação indicativa (como na Disney+). */
.pl-cert { position: absolute; top: 88px; left: clamp(14px, 3vw, 36px); z-index: 3; display: flex; align-items: center; gap: 14px; padding-left: 14px; border-left: 3px solid rgba(255, 255, 255, .85); animation: certIn .7s var(--ease-out) both; transition: opacity .6s, transform .6s var(--ease-out); text-shadow: 0 2px 10px rgba(0, 0, 0, .7); }
.pl-cert-text { display: grid; gap: 2px; }
.pl-cert-text strong { font-size: 17px; font-weight: 800; }
.pl-cert-text small { font-size: 13px; color: rgba(255, 255, 255, .85); max-width: 340px; }
.pl-cert.out { opacity: 0; transform: translateX(-16px); }
@keyframes certIn { from { opacity: 0; transform: translateX(-24px); } }
.player.idle .pl-cert { opacity: 1; }
.cert { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 4px; font-size: 12px; font-weight: 900; color: #fff; line-height: 1; vertical-align: middle; }
.cert-lg { min-width: 48px; height: 48px; border-radius: 8px; font-size: 24px; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.cert-L { background: #0c9447; } .cert-10 { background: #0f7dc2; } .cert-12 { background: #f8c411; color: #1d1815; }
.cert-14 { background: #e67824; } .cert-16 { background: #db2827; } .cert-18 { background: #1d1815; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }

/* Selo "CINEMA" e aviso de organização por gênero. */
.q-badge.q-cinema { background: rgba(255, 166, 0, .92); border-color: rgba(255, 206, 102, .9); color: #1a1000; }
.enrich-note { display: flex; align-items: center; gap: 10px; margin: 0 var(--gutter) -8px; font-size: 13px; color: var(--muted); }
.page-head .enrich-note { margin: 8px 0 0; }
.enrich-note .spinner { display: inline-block; width: 14px; height: 14px; }

/* Tela cheia com entrada e saída suaves. */
.player.fs-enter video, #tvPreview.fs-enter video { animation: fsIn .55s var(--ease-out) both; }
.player.fs-exit video, #tvPreview.fs-exit video { animation: fsOut .45s var(--ease-out) both; }
@keyframes fsIn { from { transform: scale(.9); opacity: .4; filter: blur(4px); } }
@keyframes fsOut { from { transform: scale(1.06); opacity: .6; } }
.player:not(.hidden) { animation: playerOpen .4s var(--ease-out) both; }
@keyframes playerOpen { from { opacity: 0; } }

/* ---------- Ao vivo em tela cheia (a prévia do guia) ---------- */
.tvfs-top, .tvfs-only { display: none; }
#tvPreview.is-full { border-radius: 0; background: #000; box-shadow: none; }
#tvPreview.is-full video { object-fit: contain; }
#tvPreview.is-full .tvfs-only { display: inline-grid; }
#tvPreview.is-full .tvfs-top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; gap: 14px; padding: 22px clamp(16px, 3vw, 40px) 70px; background: linear-gradient(to bottom, rgba(0, 0, 0, .8), rgba(0, 0, 0, 0)); transition: opacity .35s, transform .35s var(--ease-out); }
.tvfs-logo { position: relative; flex: none; display: grid; place-items: center; width: 84px; height: 52px; border-radius: 12px; background: rgba(255, 255, 255, .1); overflow: hidden; font-weight: 800; color: var(--muted); }
.tvfs-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.tvfs-text { display: grid; gap: 2px; min-width: 0; }
.tvfs-text strong { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.tvfs-text small { font-size: 14px; color: rgba(255, 255, 255, .85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tvfs-no { padding: 1px 8px; border-radius: 6px; background: var(--accent); color: var(--on-accent); font-size: 15px; font-variant-numeric: tabular-nums; }
#tvPreview.is-full .tv-bar { gap: 8px; padding: 70px clamp(16px, 3vw, 40px) 22px; transition: opacity .35s, transform .35s var(--ease-out); }
#tvPreview.is-full .tv-bar .icon-btn { width: 50px; height: 50px; font-size: 25px; background: rgba(255, 255, 255, .08); }
#tvPreview.is-full .tv-bar .icon-btn:hover { background: rgba(255, 255, 255, .18); }
#tvPreview.is-full .live-badge { font-size: 13px; padding: 6px 12px; }
#tvPreview.is-full.idle { cursor: none; }
#tvPreview.is-full.idle .tv-bar { opacity: 0; transform: translateY(10px); pointer-events: none; }
#tvPreview.is-full.idle .tvfs-top { opacity: 0; transform: translateY(-10px); }
#tvPreview .player-settings { top: auto; bottom: 90px; right: clamp(12px, 3vw, 32px); }
#tvPreview .tv-ch-input { z-index: 5; }

@media (max-width: 900px) {
  .pl-title-mini { display: none; }
  .pl-cur, .pl-remain { min-width: 44px; font-size: 12.5px; }
  .pl-cert { top: 76px; }
  .pl-cert-text small { display: none; }
  .cert-lg { min-width: 40px; height: 40px; font-size: 20px; }
  .pl-now { top: auto; bottom: 120px; right: 12px; }
}

/* Página do título: o menu fica transparente e o escurecimento do topo vem da própria capa (sem a linha na borda do menu). */
.nav.over-hero:not(.scrolled) { background: transparent; }
.detail-hero .hero-shade { background: linear-gradient(to bottom, rgba(8, 8, 12, .62) 0px, rgba(8, 8, 12, .3) 110px, rgba(8, 8, 12, 0) 260px), linear-gradient(to right, rgba(8, 8, 12, .92) 0%, rgba(8, 8, 12, .55) 40%, rgba(8, 8, 12, 0) 70%), linear-gradient(to top, var(--bg) 0%, rgba(8, 8, 12, .4) 30%, rgba(8, 8, 12, 0) 60%); }
@media (max-width: 900px) { .detail-hero .hero-shade { background: linear-gradient(to bottom, rgba(8, 8, 12, .6) 0px, rgba(8, 8, 12, 0) 200px), linear-gradient(to top, var(--bg) 0%, rgba(8, 8, 12, .7) 40%, rgba(8, 8, 12, .1) 75%); } }

/* ---------- Linha embaixo dos cartões (classificação · ano · gêneros), como na Disney+ ---------- */
.card-sub { gap: 6px; }
.card-sub .cert { min-width: 17px; height: 17px; padding: 0 3px; border-radius: 3px; font-size: 10px; }
.dot-sep { margin: 0 6px; color: var(--muted); }
.card-left { display: block; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.card-left + .card-title { margin-top: 2px; }
.card .card-title { color: var(--text); font-weight: 650; }

/* Classificação no player: selo grande e, embaixo, a linha com os avisos (Disney+). */
.pl-cert { flex-direction: column; align-items: flex-start; gap: 14px; padding-left: 0; border-left: 0; top: 96px; }
.pl-cert .cert-lg { min-width: 58px; height: 58px; border-radius: 6px; font-size: 30px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .7), 0 10px 26px rgba(0, 0, 0, .5); }
.pl-cert-note { max-width: min(620px, 80vw); padding-left: 12px; border-left: 3px solid #58c7ff; font-size: 16px; font-weight: 500; line-height: 1.4; color: #fff; }
.pl-cert-text { display: none; }

/* ---------- Busca no Ao vivo ---------- */
.tv-search { flex: none; position: relative; display: flex; align-items: center; height: 38px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); transition: background .25s, border-color .25s; }
.tv-search-btn { display: grid; place-items: center; width: 38px; height: 36px; border-radius: 20px; color: var(--text-2); font-size: 18px; }
.tv-search-btn:hover { color: var(--text); }
.tv-search input { width: 0; padding: 0; border: 0; outline: 0; background: none; font-size: 14px; transition: width .35s var(--ease-out), padding .35s; }
.tv-search input::-webkit-search-cancel-button { display: none; }
.tv-search.open, .tv-search.has-text { border-color: var(--accent); background: var(--surface-2); }
.tv-search.open input, .tv-search.has-text input { width: clamp(180px, 26vw, 300px); padding-right: 6px; }
.tv-search-x { display: none; place-items: center; width: 32px; height: 32px; color: var(--muted); font-size: 15px; }
.tv-search.has-text .tv-search-x { display: grid; }
.g-prog.hit { background: rgba(255, 193, 94, .18); border-color: rgba(255, 193, 94, .7); }
.g-prog.hit strong { color: #ffd38a; }
.guide-empty { display: flex; align-items: center; gap: 10px; padding: 28px 18px; color: var(--muted); font-size: 14px; }
.guide-empty .spinner { display: inline-block; }
@media (max-width: 900px) { .tv-search.open input, .tv-search.has-text input { width: 58vw; } .pl-cert-note { font-size: 13.5px; } .pl-cert .cert-lg { min-width: 46px; height: 46px; font-size: 24px; } }

/* Classificação: sai para a esquerda, do mesmo jeito que entrou (ao contrário). */
.pl-cert.out { animation: certOut .6s var(--ease-out) forwards; }
@keyframes certOut { to { opacity: 0; transform: translateX(-32px); } }

/* Barra de rolagem no estilo do site */
html { scrollbar-width: thin; scrollbar-color: rgba(31, 209, 180, .45) var(--bg); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(31, 209, 180, .6), rgba(20, 150, 130, .5)); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #7ff0dc, #1fd1b4); }
::-webkit-scrollbar-corner { background: var(--bg); }

/* Troca de página (Início, Ao vivo, Minha lista, Filmes…) com entrada suave */
.page.page-enter { animation: pageSwap .5s var(--ease-out) both; }
@keyframes pageSwap { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .page.page-enter { animation: none; } }

/* Aviso de conexão instável (lado direito, entra e sai deslizando) */
.pl-slow { position: absolute; top: 86px; right: clamp(14px, 3vw, 36px); z-index: 4; display: flex; align-items: center; gap: 10px; max-width: min(340px, 90vw); padding: 7px 8px 7px 12px; border-radius: 999px; background: rgba(14, 14, 20, .86); border: 1px solid rgba(255, 193, 94, .4); box-shadow: 0 10px 28px rgba(0, 0, 0, .45); animation: slowIn .6s var(--ease-out) both; }
.pl-slow.out { animation: slowOut .6s var(--ease-out) forwards; }
.pl-slow > i { flex: none; font-size: 18px; color: var(--warn); }
.pl-slow-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 13px; font-weight: 600; white-space: nowrap; }
@media (max-width: 600px) { .pl-slow { top: auto; bottom: 118px; left: 12px; right: 12px; max-width: none; } .pl-slow-text { flex: 1; } }
.pl-slow-btn { flex: none; height: 28px; padding: 0 12px; border-radius: 999px; background: #fff; color: #0a0a10; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.pl-slow-btn:hover { background: #e6e6ee; }
.pl-slow-x { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--text-2); font-size: 15px; }
.pl-slow-x:hover { background: rgba(255, 255, 255, .1); color: var(--text); }
@keyframes slowIn { from { opacity: 0; transform: translateX(32px); } }
@keyframes slowOut { to { opacity: 0; transform: translateX(32px); } }
.player.idle .pl-slow { opacity: 1; }

/* Esqueci minha senha */
.forgot-link { justify-self: end; margin-top: -4px; }
.auth-back { margin: 16px auto 0; display: flex; }
.auth-simple .seg { display: none; }

/* Celulares e tablets: sem desfoque em elementos repetidos (cada um vira uma camada na GPU e,
   somados, fazem o Safari do iPhone fechar a aba por falta de memória). Fundo sólido no lugar. */
@media (hover: none), (pointer: coarse) {
  .q-badge, .card-x, .v-chip, .btn-glass { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .btn-glass { background: rgba(40, 40, 54, .88); }
  .v-chip { background: rgba(30, 30, 42, .9); }
}

/* ---------- Transmitir: Conectar à TV e AirPlay ---------- */
.cast-btn.on, .pl-btn.on { color: var(--accent-text); }
.cast-btn.on { background: var(--accent-soft); }
.cast-sheet { position: fixed; inset: 0; z-index: 260; display: grid; place-items: center; padding: 16px; }
.cast-backdrop { position: absolute; inset: 0; background: rgba(4, 4, 8, .7); animation: fade .2s ease both; }
.cast-card { position: relative; width: min(100%, 440px); max-height: min(86vh, 720px); overflow-y: auto; padding: 18px 20px 20px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: rise .3s var(--ease) both; }
.cast-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.cast-head h2 { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 700; }
.cast-head h2 i { color: var(--accent-text); }
.cast-lead { color: var(--text-2); font-size: 14px; margin-bottom: 10px; }
.cast-list { display: grid; gap: 6px; margin: 10px 0 14px; }
.cast-empty { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 12px; background: var(--surface); color: var(--text-2); font-size: 14px; line-height: 1.5; }
.cast-empty i { font-size: 22px; color: var(--muted); flex: none; }
.cast-device { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-align: left; transition: background .2s, border-color .2s; }
.cast-device:not(.static):not(.off):hover { background: var(--surface-2); border-color: var(--line-2); }
.cast-device.off { opacity: .55; cursor: default; }
.cast-device-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); font-size: 22px; }
.cast-device.off .cast-device-icon { background: var(--surface-2); color: var(--muted); }
.cast-device-text { display: grid; flex: 1; min-width: 0; }
.cast-device-text strong { font-size: 15px; }
.cast-device-text span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cast-device > i { color: var(--muted); }
.cast-devices { display: grid; gap: 8px; margin: 6px 0 10px; }
.cast-add { border-top: 1px solid var(--line); padding-top: 12px; }
.cast-add summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: 14.5px; list-style: none; }
.cast-add summary::-webkit-details-marker { display: none; }
.cast-add summary i { font-size: 19px; color: var(--accent-text); }
.cast-help { margin: 10px 0 12px; color: var(--text-2); font-size: 13.5px; line-height: 1.5; }
.cast-form { display: grid; gap: 12px; }
.cast-form input[name="code"] { text-transform: uppercase; letter-spacing: .18em; font-weight: 700; }
.cast-self { margin-top: 14px; }
.remote { padding: 6px 0 4px; }
.remote-now { display: flex; align-items: center; gap: 14px; margin: 8px 0 16px; }
.remote-now strong { display: block; font-size: 17px; line-height: 1.25; }
.remote-now span { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.remote-art { position: relative; flex: none; width: 96px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.remote-art img { width: 100%; height: 100%; object-fit: cover; }
.remote-art.is-logo img { object-fit: contain; padding: 8px; }
.remote-warn { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--warn); font-style: normal; font-size: 12.5px; }
.remote-progress { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 14px; }
.remote input[type="range"] { width: 100%; accent-color: var(--accent); }
.remote-row { display: flex; align-items: center; justify-content: center; gap: 18px; }
.remote-small { gap: 12px; margin-top: 14px; }
.remote-small input[type="range"] { max-width: 180px; }
.remote-btn { position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--surface-2); color: var(--text); font-size: 24px; transition: background .2s, transform .15s; }
.remote-btn:hover { background: var(--surface-3); }
.remote-btn:active { transform: scale(.94); }
.remote-btn span { position: absolute; bottom: 7px; font-size: 9px; font-weight: 800; color: var(--muted); }
.remote-main { width: 72px; height: 72px; background: #fff; color: #0a0a10; font-size: 30px; }
.remote-main:hover { background: #e6e6ee; }
.remote-small .remote-btn { width: 42px; height: 42px; font-size: 19px; }
.cast-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.cast-foot .link-btn { margin-left: auto; }
.cast-bar { position: fixed; left: 50%; bottom: 20px; z-index: 70; display: flex; align-items: center; gap: 12px; width: min(92vw, 420px); padding: 10px 14px; border-radius: 16px; background: rgba(28, 26, 48, .96); border: 1px solid rgba(31, 209, 180, .45); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); transform: translateX(-50%); text-align: left; animation: rise .3s var(--ease) both; }
.cast-bar > i:first-child { font-size: 22px; color: var(--accent-text); }
.cast-bar-text { display: grid; flex: 1; min-width: 0; }
.cast-bar-text strong { font-size: 14px; }
.cast-bar-text span { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.locked .cast-bar { display: none; }

/* Modo TV (este aparelho recebe) */
.tvmode { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 32px; background: radial-gradient(ellipse at 50% 40%, rgba(31, 209, 180, .16), rgba(8, 8, 12, 0) 60%), var(--bg); text-align: center; animation: fade .4s ease both; }
.tvmode-inner { display: grid; justify-items: center; gap: 14px; max-width: 720px; }
.tvmode-badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 6px 14px; border-radius: 20px; background: rgba(63, 210, 154, .12); color: var(--success); font-size: 14px; font-weight: 600; }
.tvmode-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: pulse 1.6s ease-in-out infinite; }
.tvmode-name { font-size: clamp(34px, 5vw, 60px); font-weight: 800; letter-spacing: -.03em; }
.tvmode-help { font-size: clamp(16px, 1.8vw, 22px); color: var(--text-2); line-height: 1.5; }
.tvmode-help i { color: var(--accent-text); vertical-align: -3px; }
.tvmode-sub { font-size: 14px; color: var(--muted); }
.tvmode .actions { justify-content: center; margin-top: 12px; }

/* TV entrando com o celular (código) */
.login-card.pairing #authSeg, .login-card.pairing #authForm, .login-card.pairing .tv-login-btn { display: none; }
.tv-login-btn { margin: 18px auto 0; display: flex; justify-content: center; }
.tv-pair { display: grid; gap: 16px; }
.tv-pair-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.tv-pair-steps i { color: var(--accent-text); vertical-align: -2px; }
.tv-pair-code { padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); font-size: clamp(38px, 7vw, 54px); font-weight: 800; letter-spacing: .14em; text-align: center; font-variant-numeric: tabular-nums; }
.tv-pair-code span { color: var(--muted); margin: 0 .05em; }
.tv-pair-wait { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13.5px; }
.tv-pair-wait .spinner { display: inline-block; flex: none; }
.tv-pair .btn { justify-self: start; }

@media (max-width: 900px) {
  .cast-sheet { place-items: end stretch; padding: 0; }
  .cast-card { width: 100%; max-height: 88vh; border-radius: 20px 20px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); animation: sheetUp .3s var(--ease) both; }
  .cast-bar { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } }

/* HDR: selo ao lado do título do player */
.hdr-badge { justify-self: start; align-self: flex-start; width: max-content; display: inline-block; margin-top: 4px; padding: 1px 7px; border-radius: 5px; border: 1px solid rgba(255, 214, 102, .6); background: linear-gradient(90deg, rgba(255, 196, 0, .22), rgba(255, 120, 60, .22)); color: #ffd666; font-size: 11px; font-weight: 800; letter-spacing: .06em; }

/* ---------- Mensagem (toast): pílula de vidro com ícone, entra de baixo com mola ---------- */
.toasts { bottom: 28px; width: auto; max-width: min(92vw, 460px); justify-items: center; }
.toast { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px 11px 14px; border-radius: 999px; background: rgba(28, 28, 40, .82); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 18px 44px rgba(0, 0, 0, .55); font-size: 14.5px; font-weight: 550; text-align: left; animation: toastIn .45s cubic-bezier(.22, 1.3, .36, 1) both; transition: opacity .4s, transform .4s var(--ease-out); }
.toast i { flex: none; font-size: 21px; color: #6ee7a8; }
.toast.warn i { color: #ffc15e; }
.toast.error i { color: #ff6b7a; }
.toast.out { opacity: 0; transform: translateY(14px) scale(.96); }
@keyframes toastIn { from { opacity: 0; transform: translateY(22px) scale(.92); } }

/* ---------- Seletor de temporadas (botão que abre a lista) ---------- */
.season-pick { position: relative; }
.season-pick summary { list-style: none; display: inline-flex; align-items: baseline; gap: 10px; padding: 10px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; font-size: 20px; font-weight: 700; transition: background .2s, border-color .2s; }
.season-pick summary::-webkit-details-marker { display: none; }
.season-pick summary small { font-size: 13px; font-weight: 500; color: var(--muted); }
.season-pick summary i { align-self: center; font-size: 16px; transition: transform .25s var(--ease-out); }
.season-pick summary:hover, .season-pick[open] summary { background: var(--surface-2); border-color: var(--line-2); }
.season-pick[open] summary i { transform: rotate(180deg); }
.season-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 20; display: grid; gap: 2px; min-width: 240px; max-height: min(420px, 60vh); overflow-y: auto; padding: 6px; border-radius: 14px; background: rgba(22, 22, 32, .97); border: 1px solid var(--line-2); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); animation: rise .2s var(--ease-out) both; scrollbar-width: thin; }
.season-opt { display: flex; justify-content: space-between; gap: 18px; padding: 10px 12px; border-radius: 9px; font-size: 14.5px; font-weight: 550; color: var(--text-2); text-align: left; }
.season-opt span { font-size: 12.5px; color: var(--muted); }
.season-opt:hover { background: var(--surface-2); color: var(--text); }
.season-opt.active { background: var(--text); color: #0a0a10; }
.season-opt.active span { color: #55556a; }

/* ---------- Painel de episódios no player: seletor de temporada e último episódio clicável ---------- */
.panel-head { padding: 0 6px 10px; }
.panel-head h3 { padding: 0 4px; }
.pl-season { position: relative; display: block; }
.pl-season select { appearance: none; width: 100%; padding: 10px 38px 10px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); font: inherit; font-size: 15px; font-weight: 650; cursor: pointer; }
.pl-season select option { background: #16161f; }
.pl-season i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.panel-list { min-height: 0; flex: 1; padding-bottom: 24px; }

/* ---------- Ao vivo: prévia menor e guia de canais mais alto ---------- */
.tv-top { grid-template-columns: minmax(0, .78fr) minmax(0, 1fr); }
.tv-preview { max-height: 46vh; justify-self: start; width: 100%; max-width: calc(46vh * 16 / 9); }
.guide { height: clamp(460px, 82vh, 980px); }
@media (max-width: 900px) { .tv-preview { max-height: none; max-width: none; } .guide { height: clamp(380px, 70vh, 760px); } }
.pl-season { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 15px; font-weight: 650; text-align: left; transition: background .2s; }
.pl-season:hover { background: var(--surface-3); }
.pl-season i { position: static; transform: none; transition: transform .25s var(--ease-out); }
.pl-season.open i { transform: rotate(180deg); }

/* A barra de cima do player cobria o topo do painel (botão de temporada não recebia o clique). */
.player-top { pointer-events: none; }
.player-top > * { pointer-events: auto; }
.player.idle .player-top > * { pointer-events: none; }

/* ---------- Lista de episódios no player: itens menores, em pílula ---------- */
.player-panel .panel-list { gap: 6px; padding: 2px 6px 24px; }
.player-panel .panel-item { display: flex; align-items: center; gap: 12px; min-height: 0; padding: 8px 14px 8px 8px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); font-size: 13.5px; font-weight: 550; color: var(--text-2); text-align: left; transition: background .2s, color .2s, transform .2s var(--ease-out); }
.player-panel .panel-item:hover { background: rgba(255, 255, 255, .12); color: var(--text); transform: translateX(2px); }
.player-panel .panel-item .panel-num { flex: none; display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 12px; font-weight: 700; color: var(--text); }
.player-panel .panel-item > span:not(.panel-num) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-panel .panel-item.active { background: var(--text); color: #0a0a10; border-color: transparent; }
.player-panel .panel-item.active .panel-num { background: #0a0a10; color: #fff; }
.player-panel .pl-season { border-radius: 999px; padding: 9px 16px; }
.player-panel .panel-item > .panel-num:last-child { margin-left: auto; }

/* ---------- Player estilo YouTube: botão ▶/❚❚ que se transforma, ícone no meio e barra com prévia ---------- */
.pl-play svg { width: 34px; height: 34px; fill: currentColor; }
.pl-play-path { d: path("M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"); transition: d .18s cubic-bezier(.4, 0, 1, 1); }
.pl-play.is-paused .pl-play-path { d: path("M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z"); }
.pl-bezel { position: absolute; left: 50%; top: 50%; z-index: 3; width: 72px; height: 72px; margin: -36px 0 0 -36px; pointer-events: none; opacity: 0; }
.pl-bezel span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: rgba(0, 0, 0, .55); font-size: 34px; color: #fff; }
.pl-bezel.go { animation: bezel .5s cubic-bezier(0, 0, .2, 1) both; }
@keyframes bezel { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(2); } }
.pl-hover { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: rgba(255, 255, 255, .45); opacity: 0; transition: opacity .15s; }
.pl-progress:hover .pl-hover { opacity: 1; }
.pl-track { height: 3px; transition: height .1s cubic-bezier(.4, 0, 1, 1); }
.pl-progress:hover .pl-track, .pl-progress:focus-visible .pl-track, .pl-progress.scrubbing .pl-track { height: 6px; }
.pl-played { background: var(--accent); }
.pl-thumb { width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--accent); box-shadow: none; }
.pl-tip { display: grid; justify-items: center; gap: 6px; bottom: 22px; padding: 0; background: none; border: 0; }
.pl-tip-time { padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, .78); font-size: 13px; font-weight: 600; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.pl-tip-frame { display: block; width: 176px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; border: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 8px 26px rgba(0, 0, 0, .6); }
.pl-tip-frame video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .15s; }
.pl-tip-frame.ready video { opacity: 1; }
.pl-tip-frame canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .12s; }
.pl-tip-frame.ready canvas { opacity: 1; }

/* ---------- Desempenho: fileiras fora da tela não são desenhadas até chegarem perto (página inicial bem mais leve) ---------- */
.rows > .row { content-visibility: auto; contain-intrinsic-size: auto 380px; }
.pl-bezel-text { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: rgba(0, 0, 0, .55); font-size: 20px; font-weight: 800; color: #fff; }

/* ---------- Legendas no estilo Netflix: branca, contorno suave, sobe quando os controles aparecem ---------- */
.pl-subs { position: absolute; left: 50%; bottom: 7%; z-index: 2; width: min(88%, 1200px); transform: translateX(-50%); text-align: center; pointer-events: none; transition: bottom .25s var(--ease-out); --sub: clamp(17px, 2.6vw, 44px); }
.player:not(.idle) .pl-subs { bottom: calc(7% + 92px); }
.pl-subs[data-size="p"] { --sub: clamp(15px, 2.05vw, 34px); }
.pl-subs[data-size="g"] { --sub: clamp(20px, 3.3vw, 56px); }
.pl-subs span { display: inline; font-family: "Geist", "Netflix Sans", Arial, sans-serif; font-size: var(--sub); font-weight: 600; line-height: 1.28; color: #fff; letter-spacing: .005em;
  text-shadow: 0 0 2px #000, 0 0 2px #000, 0 0 3px #000, 0 2px 6px rgba(0, 0, 0, .85); -webkit-text-stroke: .5px rgba(0, 0, 0, .55); paint-order: stroke fill; }
.pl-subs i { font-style: italic; }

/* ---------- Cartões horizontais (Netflix): cena do filme, logo oficial e trailer ao passar o mouse ---------- */
.row-track.poster { grid-auto-columns: clamp(236px, 22.5vw, 340px); }
.poster-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.land-card .card-media { aspect-ratio: 16 / 9; }
.land-card .card-media > img { object-fit: cover; }
.land-card .card-media > img.is-poster { object-position: 50% 22%; filter: saturate(1.05); }
.land-card .card-media::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(6, 6, 10, .78) 0%, rgba(6, 6, 10, .28) 34%, rgba(6, 6, 10, 0) 58%); pointer-events: none; transition: opacity .4s; }
.land-logo { position: absolute; left: 7%; bottom: 9%; z-index: 2; display: flex; align-items: flex-end; max-width: 58%; height: 34%; pointer-events: none; transition: opacity .4s, transform .5s var(--ease-out); }
.land-logo img { position: static; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; object-position: left bottom; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .6)); }
.land-logo span { font-size: clamp(14px, 1.35vw, 19px); font-weight: 800; line-height: 1.12; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.land-card .q-badge, .land-card .card-flag, .land-card .progress, .land-card .play-badge { z-index: 3; }
.card-trailer { position: absolute; inset: 0; z-index: 1; overflow: hidden; opacity: 0; transition: opacity .45s var(--ease-out); pointer-events: none; background: #000; }
.card-trailer iframe { position: absolute; left: 50%; top: 50%; width: 136%; height: 136%; transform: translate(-50%, -50%); border: 0; pointer-events: none; } /* corta as bordas/marcas do YouTube */
.land-card.previewing .card-trailer { opacity: 1; }
.land-card.previewing .land-logo { transform: scale(.82); transform-origin: left bottom; }
.land-card.previewing .play-badge { opacity: 0; }

/* ---------- Mascotes 3D nos perfis: sempre centralizados no círculo ---------- */
.pav { overflow: hidden; }
.pav-img { display: block; width: 76%; height: 76%; object-fit: contain; margin: auto; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .3)); pointer-events: none; user-select: none; transition: transform .35s var(--spring); }
.pav-xs .pav-img { width: 80%; height: 80%; }
.ptile:hover .pav-img, .profile-chip:hover .pav-img { transform: scale(1.08) rotate(-4deg); }
.icon-picks { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); }
.mascot-pick { display: grid; place-items: center; aspect-ratio: 1; padding: 6px; border-radius: 14px; }
.mascot-pick img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s var(--spring); }
.mascot-pick:hover img { transform: scale(1.12); }
.mascot-pick[aria-checked="true"] { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 2px #fff; }
.profile-head strong { font-size: 16px; }

/* ---------- Conta e configurações: tamanho da legenda com prévia ---------- */
.subs-preview { display: grid; place-items: end center; height: 120px; margin: 4px 0 14px; padding: 0 16px 16px; border-radius: 12px; background: linear-gradient(135deg, #2a3550, #11131b 60%), #111; overflow: hidden; }
.subs-preview span { font-weight: 600; color: #fff; text-align: center; line-height: 1.25; text-shadow: 0 0 2px #000, 0 0 2px #000, 0 0 3px #000, 0 2px 6px rgba(0, 0, 0, .85); font-size: 22px; transition: font-size .25s var(--ease-out); }
.subs-preview[data-size="p"] span { font-size: 17px; }
.subs-preview[data-size="g"] span { font-size: 28px; }
.subs-sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.subs-size { height: 38px; padding: 0 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-weight: 600; font-size: 14px; transition: background .2s, color .2s; }
.subs-size:hover { color: var(--text); }
.subs-size[aria-checked="true"] { background: var(--text); color: #0a0a10; border-color: var(--text); }
.set-note kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line-2); font: 700 12px/1 inherit; }

/* ---------- Setas das fileiras: bolinha translúcida na cor do Vytal, só ao passar o mouse ---------- */
.row-nav { width: 64px; min-width: 0; background: none; opacity: 0; transition: opacity .25s var(--ease-out); }
.row-nav.prev { left: 6px; border-radius: 0; }
.row-nav.next { right: 6px; border-radius: 0; }
.row-nav i { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; font-size: 22px; color: #fff;
  background: color-mix(in srgb, var(--accent) 38%, rgba(10, 10, 16, .35)); border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4); box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  transform: scale(.85); transition: transform .3s var(--spring), background .2s, border-color .2s; }
.row-body:hover .row-nav i { transform: scale(1); }
.row-nav:hover i { background: color-mix(in srgb, var(--accent) 70%, transparent); border-color: rgba(255, 255, 255, .45); transform: scale(1.1); }
.row-nav:active i { transform: scale(.95); }
.card-clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

/* =====================================================================
   Redesign: tela de entrada, carregamento, avatares e seletor de cor
   ===================================================================== */
:root { --display: "Bricolage Grotesque", "Geist", system-ui, sans-serif; --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.logo { font-family: var(--display); letter-spacing: -.045em; }

/* ---------- Entrar / criar conta ---------- */
.login-view::after { content: ""; position: absolute; inset: 0; z-index: 0; background-image: var(--grain); opacity: .06; mix-blend-mode: overlay; pointer-events: none; }
.login-wall { opacity: .62; filter: saturate(1.1); }
.login-shade { background:
  linear-gradient(90deg, rgba(7, 7, 11, .97) 0%, rgba(7, 7, 11, .86) 38%, rgba(7, 7, 11, .62) 70%, rgba(7, 7, 11, .78) 100%),
  radial-gradient(70% 60% at 78% 50%, rgba(31, 209, 180, .14), transparent 70%),
  linear-gradient(to bottom, rgba(7, 7, 11, .7), transparent 22%, transparent 70%, var(--bg)); }
.login-top, .login-center { z-index: 1; }
.login-top .logo { font-size: 30px; }
.login-center { width: 100%; max-width: 1240px; margin: 0 auto; padding: 8px var(--gutter) 56px; }
.login-pitch { display: none; }
@media (min-width: 980px) {
  #authView .login-center { grid-template-columns: minmax(0, 1fr) minmax(0, 430px); gap: clamp(48px, 7vw, 120px); place-items: center stretch; }
  .login-pitch { display: block; max-width: 600px; animation: pitchIn .9s var(--ease-out) both; }
}
.pitch-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.pitch-kicker span { width: 34px; height: 2px; border-radius: 2px; background: var(--accent); }
.pitch-title { font-family: var(--display); font-size: clamp(44px, 4.9vw, 74px); font-weight: 800; line-height: .98; letter-spacing: -.035em; text-wrap: balance; color: #fff; }
.pitch-title em { display: block; font-style: normal; color: rgba(255, 255, 255, .5); }
.pitch-list { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 14px; }
.pitch-list li { display: flex; align-items: center; gap: 14px; font-size: 16px; color: rgba(255, 255, 255, .78); animation: rowIn .7s var(--ease-out) both; }
.pitch-list li:nth-child(1) { animation-delay: .25s; } .pitch-list li:nth-child(2) { animation-delay: .33s; } .pitch-list li:nth-child(3) { animation-delay: .41s; }
.pitch-list i { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; font-size: 19px; color: #fff; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
@keyframes pitchIn { from { opacity: 0; transform: translateY(18px); } }
.login-card { padding: 38px 34px 30px; border-radius: 24px; background: linear-gradient(180deg, rgba(24, 24, 34, .78), rgba(14, 14, 21, .86)); border: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .1), 0 40px 90px -20px rgba(2, 2, 10, .85); -webkit-backdrop-filter: blur(24px) saturate(1.3); backdrop-filter: blur(24px) saturate(1.3); }
.login-card h1 { font-family: var(--display); font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.login-lead { font-size: 15px; line-height: 1.5; text-wrap: pretty; }
.login-card .seg { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.login-card .seg-indicator { background: rgba(255, 255, 255, .12); box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.login-card .input { transition: box-shadow .2s, background .2s; }
.login-card .btn-primary { height: 50px; border-radius: 14px; font-size: 15.5px; font-weight: 700; letter-spacing: .01em; transition: transform .2s var(--ease-out), box-shadow .25s, background .2s; }
.login-card .btn-primary:active { transform: scale(.98); }

/* ---------- Carregando a lista ---------- */
.boot-view { position: relative; overflow: hidden; gap: 0; }
.boot-view::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .05; mix-blend-mode: overlay; pointer-events: none; }
.boot-glow { position: absolute; left: 50%; top: 50%; width: min(80vw, 760px); aspect-ratio: 1; transform: translate(-50%, -54%); border-radius: 50%; background: radial-gradient(circle, rgba(31, 209, 180, .22) 0%, rgba(31, 209, 180, .06) 40%, transparent 68%); animation: glowBreath 4s ease-in-out infinite; pointer-events: none; }
@keyframes glowBreath { 50% { transform: translate(-50%, -54%) scale(1.12); opacity: .75; } }
.boot-logo { position: relative; font-size: clamp(56px, 8vw, 84px); animation: bootLogo 1s var(--ease-out) both; }
@keyframes bootLogo { from { opacity: 0; transform: translateY(10px) scale(.96); filter: blur(6px); } }
.boot-msg { position: relative; margin: 14px 0 26px; font-size: 14.5px; color: rgba(255, 255, 255, .6); animation: rowIn .8s .15s var(--ease-out) both; }
.boot-bar { position: relative; width: min(300px, 70vw); height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; animation: rowIn .8s .2s var(--ease-out) both; }
.boot-bar span { width: 100%; transform-origin: left; transform: scaleX(.06); background: linear-gradient(90deg, var(--accent), #8ff2e1); animation: none; transition: transform .7s var(--ease-out); }
.boot-bar::after { content: ""; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: bar 1.6s ease-in-out infinite; }
.boot-steps { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.boot-steps li { gap: 9px; height: 40px; padding: 0 14px 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .7); font-size: 14px; font-weight: 600; animation: rowIn .6s var(--ease-out) both; animation-delay: calc(.3s + var(--i, 0) * 90ms); transition: background .3s, color .3s, box-shadow .3s; }
.boot-steps .step-kind { font-size: 17px; }
.boot-steps li[data-status="done"] { color: #fff; background: rgba(72, 224, 168, .1); box-shadow: inset 0 0 0 1px rgba(72, 224, 168, .35); }
.boot-steps li[data-status="error"] { color: #fff; background: rgba(255, 107, 122, .12); box-shadow: inset 0 0 0 1px rgba(255, 107, 122, .4); }
.boot-steps .step-icon { width: 14px; height: 14px; }

/* ---------- Avatares: squircle com luz suave e mascote maior ---------- */
.pav { border-radius: 30%; background: radial-gradient(120% 95% at 28% 12%, var(--c1) 0%, var(--c2) 78%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -12px 22px rgba(0, 0, 0, .16); }
.pav-img { width: 86%; height: 86%; transform: translateY(5%); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .28)); }
.pav-xs .pav-img, .pav-sm .pav-img { width: 84%; height: 84%; }
.ptile:hover .pav-img, .profile-chip:hover .pav-img { transform: translateY(2%) scale(1.07) rotate(-4deg); }
.profile-head .pav { display: inline-grid; }          /* a regra antiga "span { display:block }" descentralizava o mascote */
.ptile-av, .ptile-edit { border-radius: 30%; }
.pav-add { border-radius: 30%; }
.profile-chip { border-radius: 14px; }

/* ---------- Seletor de cor e de mascote ---------- */
.swatches { gap: 12px; }
.swatch { position: relative; width: 42px; height: 42px; border-radius: 30%; background: radial-gradient(120% 95% at 28% 12%, var(--c1), var(--c2) 78%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); transition: transform .3s var(--spring), box-shadow .25s; }
.swatch:hover { transform: translateY(-3px) scale(1.06); }
.swatch[aria-checked="true"] { transform: scale(1.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 0 0 3px var(--bg), 0 0 0 5px #fff; }
.swatch[aria-checked="true"]::after { content: ""; position: absolute; left: 50%; top: 46%; width: 9px; height: 16px; border: solid #fff; border-width: 0 3px 3px 0; border-radius: 1px; transform: translate(-50%, -50%) rotate(45deg); filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4)); animation: checkIn .3s var(--spring) both; }
@keyframes checkIn { from { transform: translate(-50%, -50%) rotate(45deg) scale(0); } }
.icon-picks { gap: 10px; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); }
.mascot-pick { border-radius: 18px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); padding: 7px; }
.mascot-pick:hover { background: rgba(255, 255, 255, .09); transform: translateY(-2px); }
.mascot-pick[aria-checked="true"] { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 2px #fff; }

/* ---------- Logo "V fita" antes do nome (substitui o ponto) ---------- */
.logo { display: inline-flex; align-items: center; gap: .14em; }
.logo::before { content: ""; flex: none; width: .9em; height: .9em; background: url("logo-mark.svg") center / contain no-repeat; transform: translateY(.05em); }
.logo-dot { display: none; }

/* ---------- Tela de entrada: frase sozinha à esquerda e cartão mais caprichado ---------- */
.pitch-title { font-size: clamp(48px, 5.4vw, 82px); }
.login-shade { background:
  linear-gradient(90deg, rgba(7, 9, 12, .97) 0%, rgba(7, 9, 12, .86) 38%, rgba(7, 9, 12, .6) 70%, rgba(7, 9, 12, .78) 100%),
  radial-gradient(60% 60% at 78% 50%, rgba(31, 209, 180, .13), transparent 70%),
  linear-gradient(to bottom, rgba(7, 9, 12, .7), transparent 22%, transparent 70%, var(--bg)); }
.login-card { position: relative; padding: 40px 36px 30px; }
.login-card::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(143, 242, 225, .55), transparent); }
.login-card h1 { display: flex; align-items: center; gap: 12px; }
.login-card h1::before { content: ""; width: 34px; height: 34px; flex: none; border-radius: 10px; background: url("logo-mark.svg") center / 64% no-repeat, rgba(31, 209, 180, .1); box-shadow: inset 0 0 0 1px rgba(31, 209, 180, .25); }
.login-card .seg-btn.active { color: #fff; }
.login-card .seg-indicator { background: rgba(31, 209, 180, .16); box-shadow: inset 0 0 0 1px rgba(31, 209, 180, .35); }
.login-card .input { min-height: 50px; border-radius: 13px; background: rgba(255, 255, 255, .04); }
/* O contorno verde fica na borda (por fora do campo), assim o fundo do preenchimento automático nunca o cobre. */
.login-card .input:focus-within { background: rgba(31, 209, 180, .05); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 0 5px rgba(31, 209, 180, .14); }
.login-card .input:has(input:-webkit-autofill) { background: #1a1c24; }
.login-card .btn-primary:hover { background: var(--accent-hover); box-shadow: 0 14px 30px -12px rgba(31, 209, 180, .75); }
.login-card .check input { accent-color: var(--accent); }
.login-note { padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .07); }

/* Preenchimento automático do navegador (e-mail/senha salvos): sem o fundo azulado do Chrome. */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text); caret-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px #1a1c24 inset; box-shadow: 0 0 0 1000px #1a1c24 inset; border-radius: 0;
  transition: background-color 600000s 0s, color 600000s 0s; /* adia para "nunca" a cor que o navegador aplica */
}
input:autofill { background: transparent; }

/* ---------- Fundo da tela de entrar: fileiras de pôsteres em alta deslizando ---------- */
.login-wall { inset: -6% -10%; transform: rotate(-6deg) scale(1.08); opacity: .78; filter: saturate(1.05); display: grid; align-content: center; gap: 16px; }
.wall-row { overflow: hidden; }
.wall-track { display: flex; gap: 16px; width: max-content; grid-template-columns: none; animation: wallSlide calc(150s + var(--r) * 22s) linear infinite; }
.wall-row:nth-child(even) .wall-track { animation-direction: reverse; }
.wall-tile { flex: none; width: clamp(120px, 11vw, 176px); border-radius: 14px; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .8); }
@keyframes wallSlide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .wall-track { animation: none; } }

/* ---------- Logo: o "v" de vytal é o próprio símbolo de fita ---------- */
.logo { gap: 0; align-items: baseline; }
.logo::before { content: none; }
.logo-v { display: inline-block; flex: none; width: .5em; height: .55em; margin-right: .035em; background: url("logo-v.svg") center bottom / contain no-repeat; }

/* ---------- Topo do cartão de entrar ---------- */
.login-card h1::before { content: none; }
.login-kicker { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--accent-text); }
.login-card h1 { font-size: 36px; line-height: 1.05; }
.login-card .login-lead { margin-top: 8px; color: rgba(255, 255, 255, .62); }

/* Carregando o vídeo: o V da logo dentro do anel girando, "respirando" devagar. */
.loader-v { width: 38px; height: 42px; background: url("logo-v.svg") center / contain no-repeat; filter: drop-shadow(0 4px 12px rgba(31, 209, 180, .35)); animation: breathe 1.6s ease-in-out infinite; }

/* Fileiras: a rolagem é só para os lados (a roda do mouse em cima do Top 10 rola a página, não a fileira). */
.row-track { overflow-y: hidden; }

/* Links legais (Termos, Privacidade, Downloads) */
.legal-links { margin-top: 10px; gap: 18px; padding-bottom: 30px; }
.legal-links a, .login-note a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.legal-links a:hover, .login-note a:hover { color: var(--accent-text); }

/* ---------- Assinatura ---------- */
.bill-pill { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.bill-pill.ok { background: rgba(31, 209, 180, .14); color: var(--accent-text); }
.bill-pill.warn { background: rgba(255, 193, 94, .14); color: #ffd58f; }
.bill-pill.bad { background: rgba(255, 107, 122, .14); color: #ff9aa5; }
.billing-card { border-color: rgba(31, 209, 180, .28); background: linear-gradient(180deg, rgba(31, 209, 180, .07), rgba(31, 209, 180, 0) 60%), var(--surface); }
.paywall { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; overflow-y: auto; background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(31, 209, 180, .2), transparent 70%), rgba(6, 7, 10, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: payIn .45s var(--ease-out) both; }
@keyframes payIn { from { opacity: 0; } }
.paywall-card { width: min(420px, 100%); padding: 32px 28px; border-radius: 26px; background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid var(--line-2); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9); text-align: center; animation: payCard .55s var(--ease-out) both; }
@keyframes payCard { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.paywall-logo { display: inline-flex; align-items: baseline; font: 800 28px/1 var(--display, var(--font)); letter-spacing: -.04em; }
.paywall-card h1 { margin-top: 22px; font: 800 28px/1.1 var(--display, var(--font)); letter-spacing: -.03em; }
.paywall-card > p { margin-top: 10px; color: var(--text-2); }
.paywall-price { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 22px 0 8px; }
.paywall-price strong { font: 800 44px/1 var(--display, var(--font)); letter-spacing: -.03em; color: var(--accent-text); }
.paywall-price span { color: var(--muted); }
.paywall-list { display: grid; gap: 8px; margin: 18px 0 24px; padding: 0; list-style: none; text-align: left; }
.paywall-list li { display: flex; align-items: center; gap: 10px; color: var(--text-2); }
.paywall-list i { color: var(--accent); font-size: 18px; }
.paywall-card .btn-primary { width: 100%; height: 52px; font-size: 16px; }
.paywall-more { display: flex; justify-content: center; gap: 24px; margin-top: 16px; }
.btn.loading { opacity: .7; pointer-events: none; }
.paywall-card .btn-primary, .billing-card .btn-primary { background: var(--accent); color: var(--on-accent); }
.paywall-card .btn-primary:hover, .billing-card .btn-primary:hover { background: var(--accent-hover); box-shadow: 0 14px 30px -12px rgba(31, 209, 180, .75); }
