/* Cine X - estilos do app de TV. Canvas fixo 1920x1080 escalado por JS.
   Regras de desempenho para TV fraca: sem blur/backdrop-filter/sombras grandes; anima só transform e opacity.
   Compatível com Chromium 53 (webOS 4 / Tizen 4): sem grid, gap, inset, aspect-ratio. */
@font-face { font-family: 'Montserrat'; font-weight: 700; src: url('/fonts/montserrat-bold.ttf') format('truetype'); font-display: swap; }

:root {
  --bg: #070a12; --surface: #0f1628; --raised: #141c33; --line: #232c47;
  --blue: #ffc94d; --violet: #ff7a2f; --magenta: #ff4d6d; --cyan: #ffb547;
  --accent: #ffc94d;
  --text: #f2f3fa; --text-2: #a6aac2; --muted: #6c7090;
  --brand: linear-gradient(90deg, #ffc94d 0%, #ff7a2f 55%, #ff4d6d 100%);
  --ring: #ffb547;
  --font: Roboto, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --head: 'Montserrat', var(--font);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background: #000; color: var(--text); font-family: var(--font); cursor: none; }
body { position: fixed; left: 0; top: 0; right: 0; bottom: 0; user-select: none; -webkit-user-select: none; }

#video { position: fixed; left: 0; top: 0; width: 100%; height: 100%; object-fit: contain; background: #000; z-index: 0; display: none; }
body.is-playing #video { display: block; }
#stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; background: var(--bg); z-index: 1; }
body.is-playing #stage { background: transparent; }
body.is-playing #screen, body.is-playing #overlay { display: none; }
#screen, .overlay { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; }
.overlay { display: none; z-index: 20; background: var(--bg); }
.overlay.is-on { display: block; }

/* ---------------------------------------------------------------- Marca e botões */
.logo { display: block; height: 64px; line-height: 0; font-size: 0; }
.logo-img { display: block; height: 100%; width: auto; }
.logo-xl { height: 150px; }
.splash-box .logo { margin: 0 auto; }
.splash-box .logo-img { margin: 0 auto; }

.btn { display: inline-block; vertical-align: top; height: 76px; line-height: 76px; padding: 0 44px; margin-right: 22px; border-radius: 38px; font-family: var(--head); font-weight: 700; font-size: 27px; color: #fff; white-space: nowrap; border: 3px solid transparent; transition: transform 140ms ease-out; }
.btn-primary { background: var(--brand); }
.btn-ghost { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.18); }
.btn-wide { display: block; margin-right: 0; text-align: center; }
.btn-ic { margin-right: 14px; font-size: 24px; }
.btn.is-focus { transform: scale(1.06); border-color: #fff; }
.btn.is-busy { opacity: 0.7; }

/* ---------------------------------------------------------------- Barra de abas (topo, 116 px) */
.main { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; }
/* Área que rola: 1760 de largura, igual à home do Flow Cinema WebTV (80 px de margem de cada lado). */
.page-holder { position: absolute; left: 80px; top: 116px; width: 1760px; height: 964px; overflow: hidden; }
.page { position: absolute; left: 0; top: 0; width: 1760px; height: 964px; overflow: hidden; }
.nav { position: absolute; left: 0; top: 0; width: 1920px; height: 116px; z-index: 10; background: linear-gradient(90deg, #070a12 0%, #080c15 80%, #0a0f1c 100%); }
.nav .logo { position: absolute; left: 124px; top: 30px; height: 56px; }
.tabs { position: absolute; left: 400px; top: 0; height: 116px; white-space: nowrap; }
.tab { position: relative; display: inline-block; vertical-align: top; height: 116px; margin-right: 52px; line-height: 116px; font-size: 28px; font-weight: 500; color: #d8d8d8; }
.tab-text { position: relative; }
.tab-line { position: absolute; left: 0; right: 0; bottom: 36px; height: 4px; opacity: 0; background: linear-gradient(90deg, rgba(255, 181, 71, 0.6) 0%, #ffb547 55%, rgba(255, 122, 47, 0.6) 100%); }
.tab.is-selected { color: #fff; }
.tab.is-selected .tab-line { opacity: 0.55; }
.tab.is-focus { color: #fff; }
.tab.is-focus .tab-line { opacity: 1; }
.nav-account { position: absolute; right: 124px; top: 0; height: 116px; line-height: 116px; font-size: 26px; color: #d8d8d8; }
.nav-account-dot { display: inline-block; width: 22px; height: 22px; margin-right: 12px; border-radius: 11px; background: var(--brand); vertical-align: middle; }
.nav-account.is-focus { color: #fff; }
.nav-account.is-focus .nav-account-text { border-bottom: 4px solid #ffb547; padding-bottom: 4px; }

/* ---------------------------------------------------------------- Rolador e prateleiras (medidas do WebTV) */
.scroller { position: absolute; left: 0; top: 0; width: 1760px; will-change: transform; transition: transform 260ms cubic-bezier(0.2, 0.44, 0.45, 1); }
.shelf { position: absolute; left: 0; width: 1760px; }
.shelf-title { position: absolute; left: 8px; top: 44px; height: 44px; margin: 0; display: flex; align-items: center; white-space: nowrap; }
.shelf-marker { display: block; width: 8px; height: 36px; margin-right: 18px; border-radius: 4px; background: var(--brand); }
.shelf-title-text { font-family: var(--head); font-weight: 700; font-size: 36px; color: var(--text); }
.shelf-row { position: absolute; left: 0; top: 106px; width: 1760px; overflow: hidden; }
.shelf-track { position: absolute; left: 8px; top: 0; width: 1px; height: 336px; transition: transform 145ms cubic-bezier(0.2, 0.44, 0.45, 1); will-change: transform; }

.poster { position: absolute; left: 0; top: 0; }
.poster-art { position: relative; overflow: hidden; background: #44464f; }
.poster-img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.poster-img-contain { object-fit: contain; padding: 16px; background: linear-gradient(160deg, #1a2340 0%, #0f1628 100%); }
.poster-wide .poster-art { background: linear-gradient(160deg, #1a2340 0%, #0f1628 100%); }
.poster-notitle { position: absolute; left: 10px; right: 10px; bottom: 12px; font-size: 24px; line-height: 28px; color: var(--text); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.poster-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: rgba(255, 255, 255, 0.4); }
.poster-progress-fill { height: 8px; background: #ff7a2f; }
.poster-cap { margin-top: 12px; width: 298px; font-size: 24px; line-height: 30px; color: #e4e6f4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poster-sub { width: 298px; font-size: 20px; line-height: 26px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.open-card { display: none; position: absolute; left: 0; top: 0; width: 597px; height: 336px; overflow: hidden; background: linear-gradient(160deg, #1a2340 0%, #0f1628 100%); }
.open-img { display: none; position: absolute; left: 0; top: 0; width: 597px; height: 336px; object-fit: cover; }
.open-dim { display: none; position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.6); }
.open-scrim { position: absolute; left: 0; right: 0; bottom: 0; height: 176px; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.9) 100%); }
.open-text { position: absolute; left: 20px; right: 20px; bottom: 20px; }
.open-rating { height: 28px; font-size: 22px; line-height: 26px; font-weight: 700; color: #fff; white-space: pre; }
.open-year { font-weight: 400; color: #d5d5d5; }
.open-star { color: #ffc94d; }
.open-title { margin-top: 4px; font-size: 24px; line-height: 28px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shelf-ring { display: none; position: absolute; left: 0; top: 0; z-index: 2; transform-origin: 0 0; border: 4px solid #ffc94d; border-radius: 4px; transition: transform 145ms cubic-bezier(0.2, 0.44, 0.45, 1); will-change: transform; pointer-events: none; }

/* ---------------------------------------------------------------- Banner (hero) 1760x780 + destaques */
.hero-wrap { position: absolute; left: 0; top: 0; width: 1760px; height: 780px; }
.hero { position: absolute; left: 0; top: 0; width: 1760px; height: 780px; overflow: hidden; background: var(--bg); }
.hero-layer { position: absolute; left: 0; top: 0; width: 1760px; height: 780px; background-size: cover; background-position: 50% 0; background-repeat: no-repeat; opacity: 0; transition: opacity 500ms ease-out; }
.hero-layer.is-on { opacity: 1; }
.hero-scrim { position: absolute; left: 0; top: 0; width: 1760px; height: 780px; background: linear-gradient(90deg, #070a12 0%, rgba(7, 10, 18, 0.95) 20%, rgba(7, 10, 18, 0.47) 100%); }
.hero-copy { position: absolute; left: 0; top: 0; width: 920px; padding: 60px 0 0 40px; }
.hero-kicker { font-size: 22px; line-height: 26px; font-weight: 700; letter-spacing: 2px; color: #ffc94d; white-space: nowrap; }
.hero-title { width: 840px; margin-top: 12px; font-family: var(--head); font-weight: 700; font-size: 58px; line-height: 68px; color: #f5f5f5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.hero-meta { max-width: 800px; margin-top: 14px; font-size: 22px; line-height: 28px; color: #d5d5d5; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.hero-text { width: 600px; margin-top: 56px; font-size: 24px; line-height: 31px; color: #f2f2f2; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }

.featured-host { position: absolute; left: 0; top: 600px; z-index: 3; width: 1760px; height: 208px; }
.featured-dots { position: absolute; left: 0; right: 0; top: 6px; height: 24px; text-align: center; font-size: 0; }
.dot { display: inline-block; width: 12px; height: 12px; margin: 6px 4px; border-radius: 6px; background: rgba(255, 255, 255, 0.4); }
.dot.is-on { background: #fff; }
.featured-tiles { position: absolute; left: 0; top: 40px; width: 1760px; height: 162px; }
.tile { position: absolute; left: 0; top: 0; overflow: hidden; border-radius: 8px; background: #0f1628; }
.tile-img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-label { position: absolute; left: 16px; right: 16px; top: 8px; bottom: 8px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 22px; line-height: 26px; color: #ecebfa; }
.tile-ring { display: none; position: absolute; left: 0; top: 0; right: 0; bottom: 0; border: 4px solid #ffb547; border-radius: 8px; }
.tile.is-focus .tile-ring { display: block; }

/* ---------------------------------------------------------------- Busca */
.sbox { position: absolute; left: 8px; width: 1000px; height: 96px; border-radius: 48px; background: var(--surface); border: 3px solid var(--line); }
.sbox.is-focus { border-color: var(--ring); background: var(--raised); }
.sbox-ic { position: absolute; left: 34px; top: 0; line-height: 90px; font-size: 44px; color: var(--text-2); }
.sbox-input { position: absolute; left: 96px; top: 0; width: 860px; height: 90px; border: 0; outline: 0; background: transparent; color: #fff; font-family: var(--font); font-size: 34px; }
.sbox-input::placeholder { color: var(--muted); }
.empty { position: absolute; left: 8px; width: 1744px; font-size: 30px; color: var(--text-2); }

/* ---------------------------------------------------------------- Loader e erro */
.loader { position: absolute; left: 0; width: 1760px; text-align: center; }
.loader-dots { position: relative; width: 144px; height: 56px; margin: 0 auto; }
.loader .loader-dots { margin: 14px auto 22px; transform: scale(1.5); }
.loader-text { font-family: var(--head); font-weight: 600; font-size: 30px; line-height: 40px; color: #fff; }
.loader-dot { position: absolute; left: 58px; top: 14px; width: 28px; height: 28px; border-radius: 14px; }
.loader-dot:before { content: ''; position: absolute; left: -12px; top: -12px; width: 53px; height: 53px; border-radius: 27px; background: inherit; opacity: 0.17; }
.loader-blue { background: #ffc94d; animation: loader-blue 1600ms linear infinite; }
.loader-magenta { background: #ff4d6d; animation: loader-magenta 1600ms linear infinite; }
@keyframes loader-blue {
  0%   { transform: translate3d(-36px, 0, 0); z-index: 2; animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1); }
  4%   { transform: translate3d(-36px, 0, 0); }
  46%  { transform: translate3d(36px, 0, 0); }
  50%  { transform: translate3d(36px, 0, 0); z-index: 1; }
  54%  { transform: translate3d(36px, 0, 0); animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1); }
  96%  { transform: translate3d(-36px, 0, 0); }
  100% { transform: translate3d(-36px, 0, 0); }
}
@keyframes loader-magenta {
  0%   { transform: translate3d(36px, 0, 0); z-index: 1; animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1); }
  4%   { transform: translate3d(36px, 0, 0); }
  46%  { transform: translate3d(-36px, 0, 0); }
  50%  { transform: translate3d(-36px, 0, 0); z-index: 2; animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1); }
  54%  { transform: translate3d(-36px, 0, 0); }
  96%  { transform: translate3d(36px, 0, 0); }
  100% { transform: translate3d(36px, 0, 0); }
}

.errbox { position: absolute; left: 8px; width: 1000px; padding: 8px 0; }
.errbox-center { left: 460px; top: 380px; text-align: center; }
.errbox-title { font-family: var(--head); font-weight: 700; font-size: 40px; color: #fff; }
.errbox-msg { margin: 12px 0 28px; font-size: 27px; line-height: 36px; color: var(--text-2); }
.toast { position: absolute; left: 50%; bottom: 60px; z-index: 50; max-width: 1200px; padding: 18px 36px; border-radius: 40px; background: var(--raised); border: 2px solid var(--line); font-size: 26px; color: #fff; opacity: 0; transform: translate(-50%, 20px); transition: opacity 200ms, transform 200ms; pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- Login */
.login { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; overflow: hidden; }
.login-bg { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; background: radial-gradient(ellipse at 20% 10%, #4a2610 0%, rgba(74, 38, 16, 0) 60%), radial-gradient(ellipse at 90% 100%, #431a26 0%, rgba(67, 26, 38, 0) 55%), #070a12; background-size: cover; background-position: center; }
.login-left { position: absolute; left: 140px; top: 230px; width: 780px; }
.login-tag { margin-top: 36px; font-family: var(--head); font-weight: 700; font-size: 46px; line-height: 58px; color: #fff; }
.login-points { margin-top: 44px; }
.login-point { margin-bottom: 20px; font-size: 27px; color: #cfd2e6; }
.login-check { display: inline-block; width: 40px; height: 40px; margin-right: 18px; line-height: 40px; text-align: center; border-radius: 20px; background: rgba(255, 181, 71, 0.18); color: var(--cyan); font-weight: 700; }
.login-card { position: absolute; left: 1060px; top: 150px; width: 720px; padding: 52px 60px 50px; border-radius: 40px; border: 2px solid #2b3558; background: rgba(10, 15, 28, 0.92); }
.auth-title { font-family: var(--head); font-weight: 700; font-size: 52px; line-height: 60px; color: #fff; }
.auth-sub { margin-top: 8px; margin-bottom: 14px; font-size: 26px; color: var(--text-2); }
.lf { position: relative; margin-top: 22px; height: 112px; padding: 14px 28px 0; border-radius: 22px; background: var(--surface); border: 3px solid var(--line); }
.lf.is-focus { border-color: var(--ring); background: var(--raised); }
.lf-label { font-size: 21px; line-height: 26px; color: var(--muted); }
.lf-input { display: block; width: 100%; height: 56px; border: 0; outline: 0; background: transparent; color: #fff; font-family: var(--font); font-size: 34px; }
.auth-link { display: inline-block; margin: 18px 0 0; padding: 8px 18px; border-radius: 22px; border: 3px solid transparent; font-size: 24px; color: var(--cyan); }
.auth-link.is-focus { border-color: var(--ring); background: rgba(255, 255, 255, 0.08); }
.auth-error { display: none; margin: 14px 0 0; padding: 14px 20px; border-radius: 16px; background: rgba(255, 77, 109, 0.14); border: 2px solid rgba(255, 77, 109, 0.5); font-size: 24px; line-height: 32px; color: #ffc2cc; }
.login-card .btn-wide { margin-top: 26px; }
.splash-box { position: absolute; left: 0; top: 340px; width: 1920px; text-align: center; }
.splash-box .loader { position: static; width: 100%; margin-top: 54px; text-align: center; }

/* ---------------------------------------------------------------- Detalhes (estilo WebTV) e conta */
.details { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; overflow: hidden; background: #070a12; }
.d-bg { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; background-size: cover; background-position: 50% 0; background-repeat: no-repeat; }
.d-shade-bottom { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; background: linear-gradient(0deg, rgba(7, 10, 18, 0.92) 0%, rgba(7, 10, 18, 0.7) 22%, rgba(7, 10, 18, 0.38) 45%, rgba(7, 10, 18, 0.12) 70%, rgba(7, 10, 18, 0) 100%); }
.d-shade-left { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; background: linear-gradient(90deg, rgba(7, 10, 18, 0.6) 0%, rgba(7, 10, 18, 0.25) 50%, rgba(7, 10, 18, 0) 100%); }
.d-dim { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; background: rgba(7, 10, 18, 0.82); opacity: 0; transition: opacity 220ms ease-out; }
.details.is-details .d-dim { opacity: 1; }
.d-hero { position: absolute; left: 112px; right: 96px; bottom: 184px; transition: opacity 220ms ease-out; }
.details.is-details .d-hero { opacity: 0; }
.d-title { font-family: var(--head); font-weight: 700; font-size: 68px; line-height: 80px; color: #fff; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; width: 1400px; }
.d-meta { margin-top: 20px; font-size: 28px; line-height: 40px; color: #dadcea; white-space: pre; }
.d-synopsis { width: 1280px; margin-top: 20px; font-size: 28px; line-height: 38px; color: #d2d5e4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.d-actions { margin-top: 36px; height: 88px; white-space: nowrap; }
.d-watch { display: inline-block; vertical-align: top; height: 88px; line-height: 84px; margin-right: 24px; padding: 0 52px 0 40px; border-radius: 44px; border: 2px solid rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.2); color: #fff; font-family: var(--head); font-weight: 700; font-size: 30px; }
.d-watch-ic { margin-right: 20px; font-size: 28px; }
.d-watch.is-focus { background: #fff; color: #070a12; border-color: #fff; }
.d-progress-row { display: none; margin-top: 24px; white-space: nowrap; }
.d-progress { display: inline-block; vertical-align: middle; width: 440px; height: 8px; background: rgba(255, 255, 255, 0.4); }
.d-progress-fill { height: 8px; background: #ff7a2f; }
.d-progress-text { display: inline-block; vertical-align: middle; margin-left: 24px; font-family: var(--head); font-weight: 700; font-size: 26px; color: #e9eaf4; }
.d-tabs { position: absolute; left: 92px; bottom: 60px; height: 80px; white-space: nowrap; transition: transform 220ms ease-out; will-change: transform; }
.details.is-details .d-tabs { transform: translate3d(0, -888px, 0); }
.d-chevron { display: inline-block; vertical-align: top; width: 52px; height: 80px; line-height: 70px; margin-right: 12px; text-align: center; font-size: 44px; color: #fff; transition: transform 220ms ease-out; }
.details.is-details .d-chevron { transform: rotate(180deg); line-height: 90px; }
.d-tab { position: relative; display: inline-block; vertical-align: top; height: 80px; margin-right: 12px; padding: 0 24px; line-height: 80px; border-radius: 14px; font-family: var(--head); font-weight: 700; font-size: 28px; color: #c8cad8; }
.d-tab.is-current { color: #fff; background: rgba(255, 255, 255, 0.25); }
.d-tab.is-focus { background: rgba(255, 255, 255, 0.95); color: #070a12; }
.d-divider { position: absolute; left: 80px; right: 0; top: 152px; height: 2px; background: rgba(255, 255, 255, 0.4); opacity: 0; transition: opacity 220ms ease-out; }
.details.is-details .d-divider { opacity: 1; }
.d-content { position: absolute; left: 112px; top: 176px; right: 0; bottom: 0; }
.d-page { padding-right: 160px; }
.d-page-text { max-width: 1300px; margin-bottom: 28px; font-size: 30px; line-height: 42px; color: #e9eaf4; }
.d-muted { color: #a6aac2; }
.d-info-row { margin-bottom: 16px; font-size: 0; }
.d-info-label { display: inline-block; vertical-align: top; width: 240px; font-size: 27px; color: #a6aac2; }
.d-info-value { display: inline-block; vertical-align: top; width: 1100px; font-size: 29px; line-height: 38px; color: #fff; }
.d-seasons { margin-top: 28px; white-space: nowrap; }
.d-pill { display: inline-block; margin-right: 20px; padding: 16px 32px; border-radius: 16px; background: rgba(255, 255, 255, 0.2); font-family: var(--head); font-weight: 700; font-size: 26px; color: #fff; }
.d-pill.is-current { background: rgba(255, 255, 255, 0.35); }
.d-pill.is-focus { background: rgba(255, 255, 255, 0.95); color: #070a12; }
.d-eps-header { font-size: 28px; color: #dadcea; }
.d-eps-host { position: relative; width: 1700px; height: 242px; margin-top: 24px; }
.eprow { position: relative; width: 1700px; }
.eprow-track { position: absolute; left: 8px; top: 6px; width: 1px; transition: transform 145ms cubic-bezier(0.2, 0.44, 0.45, 1); will-change: transform; }
.epcard { position: absolute; left: 0; top: 0; overflow: hidden; background: #44464f; }
.epcard-img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.epcard-tag { position: absolute; left: 0; top: 0; padding: 16px 20px 0; font-family: var(--head); font-weight: 700; font-size: 30px; color: #fff; text-shadow: 0 2px 3px rgba(0, 0, 0, 0.8); }
.epcard-dur { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 20px 16px; text-align: right; font-family: var(--head); font-weight: 700; font-size: 24px; color: #fff; background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%); }
.epcard-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: rgba(255, 255, 255, 0.4); }
.epcard-progress-fill { height: 8px; background: #ff7a2f; }
.eprow-ring { display: none; position: absolute; left: 0; top: 0; z-index: 2; border: 4px solid #ffc94d; border-radius: 4px; transform-origin: 0 0; transition: transform 145ms cubic-bezier(0.2, 0.44, 0.45, 1); will-change: transform; pointer-events: none; }
.d-eps-title { margin-top: 24px; font-family: var(--head); font-weight: 700; font-size: 32px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 1560px; }
.d-eps-plot { width: 1560px; margin-top: 8px; font-size: 28px; line-height: 36px; color: #d2d5e4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; min-height: 36px; }
.account-bg { background: radial-gradient(ellipse at 30% 20%, #4a2610 0%, rgba(74, 38, 16, 0) 60%), #070a12; }
.acc-card { position: absolute; left: 560px; top: 200px; width: 800px; padding: 50px 60px; border-radius: 36px; border: 2px solid #2b3558; background: rgba(10, 15, 28, 0.95); }
.acc-list { margin-top: 24px; min-height: 250px; }
.acc-row { height: 62px; line-height: 62px; border-bottom: 1px solid var(--line); font-size: 27px; }
.acc-k { color: var(--text-2); }
.acc-v { float: right; color: #fff; }
.acc-loading { padding-top: 30px; font-size: 26px; color: var(--text-2); }
.d-buttons { margin-top: 34px; white-space: nowrap; }

/* ---------------------------------------------------------------- Catálogo (Filmes/Séries): trilho + grade */
.rail { position: absolute; left: 0; top: 0; overflow: hidden; }
.rail-list { position: absolute; left: 0; top: 0; right: 0; transition: transform 145ms ease-out; }
.rail-item { position: absolute; left: 8px; right: 8px; height: 76px; padding: 0; line-height: 72px; border-radius: 14px; border: 2px solid transparent; font-size: 28px; color: #d8d8e2; white-space: nowrap; overflow: hidden; }
.rail-name { position: absolute; left: 24px; right: 78px; top: 0; overflow: hidden; text-overflow: ellipsis; }
.rail-count { position: absolute; right: 20px; top: 0; font-size: 22px; color: #7f84a6; }
.rail-item.is-selected { color: #ffb547; font-weight: 700; }
.rail-item.is-focus { color: #fff; font-weight: 700; border-color: #ffe08a; background: linear-gradient(90deg, #ff7a2f 0%, #ff4d6d 100%); }
.rail-item.is-focus .rail-count { color: #fff; }
.catalog { background: var(--bg); }
.cat-right { position: absolute; top: 0; bottom: 0; }
.cat-header { position: absolute; left: 0; top: 0; right: 0; height: 68px; }
.cat-title { position: absolute; left: 24px; top: 0; line-height: 68px; font-family: var(--head); font-weight: 700; font-size: 32px; color: #fff; max-width: 900px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-total { position: absolute; right: 40px; top: 0; line-height: 68px; font-size: 24px; font-weight: 700; color: #e9eaf4; }
.grid { position: absolute; left: 0; top: 0; overflow: hidden; }
.grid-track { position: absolute; left: 0; top: 0; width: 1px; transition: transform 145ms cubic-bezier(0.2, 0.44, 0.45, 1); will-change: transform; }
.gcard { position: absolute; left: 0; top: 0; width: 1px; height: 1px; }
.gposter { position: absolute; left: 0; top: 0; overflow: hidden; background: #44464f; }
.gimg { position: absolute; left: 0; top: 0; object-fit: cover; }
.gnotitle { position: absolute; left: 10px; right: 10px; bottom: 12px; font-size: 24px; line-height: 30px; color: var(--text); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.grating { position: absolute; left: 12px; top: 12px; padding: 0 12px; height: 36px; line-height: 36px; border-radius: 6px; font-size: 22px; font-weight: 700; color: #fff; background: rgba(7, 10, 18, 0.78); }
.gtitle { position: absolute; left: 0; font-size: 22px; line-height: 56px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid-ring { display: none; position: absolute; left: 0; top: 0; z-index: 2; border: 4px solid #ffc94d; border-radius: 4px; transition: transform 145ms cubic-bezier(0.2, 0.44, 0.45, 1); will-change: transform; pointer-events: none; }
.grid-message { display: none; position: absolute; left: 0; right: 0; top: 260px; text-align: center; font-size: 30px; color: var(--text-2); }

/* ---------------------------------------------------------------- Canais: categorias | lista | player + guia */
.channels { background: var(--bg); }
.chl { position: absolute; top: 0; overflow: hidden; }
.chl-track { position: absolute; left: 0; top: 0; width: 100%; transition: transform 145ms ease-out; will-change: transform; }
.chl-msg { position: absolute; left: 0; right: 0; top: 240px; text-align: center; font-size: 28px; color: var(--text-2); }
.chl-item { position: absolute; left: 8px; right: 8px; height: 80px; padding-left: 16px; border-radius: 14px; border: 2px solid transparent; white-space: nowrap; overflow: hidden; }
.chl-num { display: inline-block; vertical-align: top; width: 42px; line-height: 76px; font-size: 22px; color: #7f84a6; text-align: right; margin-right: 12px; }
.chl-logo { display: inline-block; vertical-align: top; width: 76px; height: 60px; margin: 8px 14px 0 0; background: transparent; text-align: center; font-size: 0; }
.chl-logo img { max-width: 76px; max-height: 60px; vertical-align: middle; }
.chl-logo:before { content: ''; display: inline-block; height: 100%; vertical-align: middle; }
.chl-name { display: inline-block; vertical-align: top; width: 340px; line-height: 76px; font-size: 26px; color: #e4e6f4; overflow: hidden; text-overflow: ellipsis; }
.chl-item.is-focus { border-color: #ffe08a; background: linear-gradient(90deg, #ff7a2f 0%, #ff4d6d 100%); }
.chl-item.is-focus .chl-num { color: #fff; }
.chl-item.is-focus .chl-name { color: #fff; font-weight: 700; }
.ch-player { position: absolute; overflow: hidden; border-radius: 10px; background: #000; border: 2px solid #1f2845; }
.ch-player-msg { position: absolute; left: 0; right: 0; top: 50%; margin-top: -20px; text-align: center; font-size: 28px; color: #a6aac2; }
.ch-player-busy { display: none; position: absolute; left: 50%; top: 50%; margin: -28px 0 0 -72px; }
.ch-guide { position: absolute; }
.ch-guide-head { height: 76px; }
.ch-guide-name { font-family: var(--head); font-weight: 700; font-size: 34px; line-height: 44px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-guide-sub { font-size: 22px; line-height: 30px; color: #8d91b2; }
.ch-guide-empty { padding-top: 12px; font-size: 24px; color: #8d91b2; }
.ch-prog { padding: 12px 0; border-top: 1px solid #1f2845; white-space: nowrap; font-size: 0; }
.ch-prog-time { display: inline-block; vertical-align: top; width: 170px; font-size: 23px; line-height: 32px; color: #8d91b2; }
.ch-prog-body { display: inline-block; vertical-align: top; width: 700px; white-space: normal; }
.ch-prog-title { display: inline-block; font-size: 26px; line-height: 32px; color: #e4e6f4; max-width: 600px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: top; }
.ch-prog.is-now .ch-prog-title { color: #fff; font-weight: 700; }
.ch-prog-live { display: inline-block; margin-left: 12px; padding: 0 10px; height: 26px; line-height: 26px; border-radius: 5px; background: #e5143c; font-size: 16px; font-weight: 700; letter-spacing: 1px; color: #fff; vertical-align: top; margin-top: 3px; }
.ch-prog-bar { height: 5px; margin-top: 8px; background: rgba(255, 255, 255, 0.2); }
.ch-prog-fill { height: 5px; background: #ff7a2f; }
.ch-prog-desc { display: block; margin-top: 8px; font-size: 22px; line-height: 28px; color: #a6aac2; max-height: 56px; overflow: hidden; }

/* Prévia de canais: o <video> fica acima do canvas, exatamente sobre a caixa do player (posição calculada por JS). */
#video.is-inline { display: block; visibility: hidden; position: fixed; z-index: 5; object-fit: contain; pointer-events: none; border-radius: 10px; }
#video.is-inline.is-on { visibility: visible; }
body.is-playing #video { visibility: visible !important; }
/* Enquanto a capa está na tela o próprio <video> fica oculto: em TV o vídeo é uma camada de hardware que ignora o que está por cima. */
body.cover-on #video { visibility: hidden !important; }
body.is-playing #video { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; z-index: 0 !important; border-radius: 0; }

/* ---------------------------------------------------------------- Player */
.hud { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; z-index: 30; opacity: 1; transition: opacity 250ms ease-out; }
.hud.is-hidden { opacity: 0; pointer-events: none; }
/* Sombra dos controles: fica FORA do canvas (cobre a janela inteira, sem faixas laterais quando a tela não é 16:9). */
#hud-shade { position: fixed; left: 0; right: 0; bottom: 0; height: 58%; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 250ms ease-out; background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.62) 50%, rgba(0, 0, 0, 0) 100%); }
body.is-playing.hud-on #hud-shade { opacity: 1; }
.hud-controls { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 112px 56px; }
.hud-title, .hud-sub { transition: opacity 150ms; }
.hud-controls.is-compact .hud-title, .hud-controls.is-compact .hud-sub { opacity: 0; }
.hud-title { font-family: var(--head); font-weight: 700; font-size: 60px; line-height: 72px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-sub { margin-top: 6px; min-height: 36px; font-family: var(--head); font-weight: 700; font-size: 28px; line-height: 36px; color: #d2d5e4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-actions { position: relative; margin-top: 24px; height: 84px; white-space: nowrap; font-size: 0; }
.hud.is-live .hud-actions { display: none; }
.hud-icon { display: inline-block; width: 84px; height: 84px; margin-right: 16px; padding-top: 16px; border-radius: 24px; text-align: center; }
.hud-icon svg { display: block; margin: 0 auto; }
.hud-icon.is-focus { background: rgba(255, 255, 255, 0.22); }
.hud-tip { position: absolute; top: -66px; left: 0; opacity: 0; white-space: nowrap; font-family: var(--head); font-weight: 700; font-size: 30px; color: #fff; text-shadow: 0 2px 3px #000; transform: translate3d(-50%, 0, 0); transition: opacity 120ms ease-out; }
.hud-tip.is-on { opacity: 1; }
.hud-seekrow { display: flex; align-items: center; margin-top: 20px; }
.hud-time { width: 124px; font-family: var(--head); font-weight: 700; font-size: 32px; color: #fff; }
.hud-total { text-align: right; }
.hud-bar { position: relative; flex: 1; height: 56px; margin: 0 12px; }
.hud-track { position: absolute; left: 0; right: 0; top: 25px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.33); overflow: hidden; }
.hud-bar.is-focus .hud-track { top: 23px; height: 10px; border-radius: 5px; }
.hud-buf, .hud-fill { position: absolute; left: 0; top: 0; height: 100%; width: 0; }
.hud-buf { background: rgba(255, 255, 255, 0.5); }
.hud-fill { background: #ff7a2f; }
.hud-knob { position: absolute; top: 18px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: #fff; left: 0; }
.hud-bar.is-focus .hud-knob { top: 11px; width: 34px; height: 34px; margin-left: -17px; }
.hud-live { display: none; padding: 0 18px; height: 40px; line-height: 40px; border-radius: 20px; background: #e5143c; font-size: 22px; font-weight: 700; letter-spacing: 2px; color: #fff; }
.hud.is-live .hud-live { display: block; }
.hud.is-live .hud-time, .hud.is-live .hud-bar { display: none; }
.hud-hint { margin-top: 14px; text-align: center; font-size: 24px; color: #c9ccdd; text-shadow: 0 2px 3px #000; }
.hud-center { position: absolute; left: 0; top: 440px; width: 1920px; text-align: center; pointer-events: none; }
.hud-spin { display: none; }
.hud.is-busy .hud-spin { display: block; }
.hud-state { display: none; width: 130px; height: 130px; margin: 0 auto; line-height: 130px; border-radius: 65px; background: rgba(0, 0, 0, 0.55); font-size: 52px; color: #fff; }
.hud.is-busy .hud-state { display: none !important; }
.hud-error { display: none; position: absolute; left: 460px; top: 380px; width: 1000px; padding: 44px; text-align: center; border-radius: 30px; background: rgba(7, 10, 18, 0.94); border: 2px solid var(--line); }
.hud.has-error .hud-error { display: block; }
.hud.has-error .hud-controls, .hud.has-error .hud-center { display: none; }
.hud-error .btn { margin: 0; }
/* Capa de abertura do player (filme/série): backdrop escurecido + título + loading até o primeiro quadro */
.p-cover { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; z-index: 25; overflow: hidden; background: #04060b; opacity: 0; visibility: hidden; transition: opacity 300ms ease-out, visibility 0s linear 300ms; }
.p-cover.is-on { opacity: 1; visibility: visible; transition: none; }
.p-cover-bg { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; background-size: cover; background-position: 50% 30%; background-repeat: no-repeat; }
.p-cover-dim { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; background: linear-gradient(0deg, rgba(4, 6, 11, 0.92) 0%, rgba(4, 6, 11, 0.62) 45%, rgba(4, 6, 11, 0.72) 100%); }
.p-cover-title { position: absolute; left: 160px; top: 380px; width: 1600px; text-align: center; font-family: var(--head); font-weight: 700; font-size: 76px; line-height: 90px; color: #fff; text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-cover-sub { position: absolute; left: 160px; top: 482px; width: 1600px; text-align: center; font-family: var(--head); font-weight: 700; font-size: 30px; line-height: 40px; color: #d2d5e4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-cover-spin { position: absolute; left: 888px; top: 590px; margin: 0; transform: scale(1.5); }
.p-cover.is-on ~ .hud .hud-spin, .p-cover.is-on ~ .hud .hud-state { display: none !important; }
.p-cover.is-on ~ .hud .hud-controls { opacity: 0; }
body.cover-on #hud-shade { opacity: 0 !important; }

.btn-primary { color: #1a0e05; }
.nav .logo { height: 38px; top: 39px; }
.logo-xl { height: 108px; }
