/* VAULT Player — produção */
:root {
  --bg: #0B0B0F;
  --bg-elev: #14141B;
  --bg-elev-2: #1C1C25;
  --border: #25252F;
  --border-hover: #3A3A48;
  --fg: #FFFFFF;
  --fg-muted: #B4B4C0;
  --fg-dim: #6E6E7C;
  --accent-from: #8B5CF6;
  --accent-to: #3B82F6;
  --accent-grad: linear-gradient(90deg, #8B5CF6 0%, #3B82F6 100%);
  --accent-solid: #7C5CF6;
  --progress: #FF1F3D;
  --upcoming: #10B981;
  --upcoming-bg: rgba(16,185,129,0.12);
  --live: #FF1F3D;
  --live-bg: rgba(255,31,61,0.14);
  --logo-grad: linear-gradient(135deg, #F43F5E 0%, #F59E0B 100%);
}
* { box-sizing: border-box; }
html, body, #app { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input { font-family: inherit; color: inherit; }
a { color: inherit; }

/* ============ TV FOCUS RINGS (webOS / Tizen) ============ */
*:focus { outline: none; }

/* Modern browsers + TVs que suportam :focus-visible */
button:focus-visible,
.nav-item:focus-visible,
.cat-item:focus-visible,
.channel-row:focus-visible,
.poster-card:focus-visible,
.ep-card:focus-visible,
.season-tab:focus-visible,
.hero-dot:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #8B5CF6;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(139,92,246,0.25), 0 0 24px rgba(139,92,246,0.4);
  border-radius: 10px;
  z-index: 10;
  position: relative;
}
.poster-card:focus-visible { transform: scale(1.06); }
.channel-row:focus-visible,
.cat-item:focus-visible { background: var(--bg-elev-2); }

/* Fallback: TVs antigas (webOS 3/4, Tizen 3/4) que não suportam :focus-visible */
@supports not selector(:focus-visible) {
  button:focus,
  .nav-item:focus,
  .cat-item:focus,
  .channel-row:focus,
  .poster-card:focus,
  .ep-card:focus,
  .season-tab:focus,
  .hero-dot:focus,
  input:focus,
  [tabindex]:focus {
    outline: 3px solid #8B5CF6 !important;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(139,92,246,0.25), 0 0 24px rgba(139,92,246,0.4);
    border-radius: 10px;
    z-index: 10;
    position: relative;
  }
  .poster-card:focus { transform: scale(1.06); }
  .channel-row:focus,
  .cat-item:focus { background: var(--bg-elev-2); }
  .ws-close:focus { border-radius: 50%; }
}

/* Make non-button cards focusable via tabindex via CSS hint */
.poster-card, .stream-tile, .match-card, .ep-card, .hero-dot {
  /* will receive tabindex="0" in JSX */
}

/* Slow scroll for TV */
html { scroll-behavior: smooth; }

/* Larger hit targets on TV (10ft UI) */
@media (min-width: 1280px) and (pointer: coarse), (min-width: 1280px) and (hover: none) {
  .nav-item { padding: 12px 22px; font-size: 14px; }
  .btn { padding: 12px 22px; font-size: 14px; }
  .channel-row { padding: 14px 16px; font-size: 15px; }
  .cat-item { padding: 14px 16px; font-size: 14px; }
}

/* ============ LOGO ============ */
.bolt-logo {
  width: 48px; height: 48px;
  background: transparent;
  border-radius: 8px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.bolt-logo svg { width: 16px; height: 16px; }
.bolt-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }

.login-brand { display: flex; justify-content: center; margin-bottom: 24px; }
.login-brand img { width: 72px; height: 72px; object-fit: contain; border-radius: 16px; }
.login-hero-logo { display: block; width: 300px; height: auto; margin: 0 0 24px -16px; filter: brightness(0) invert(1); }

/* ============ LOGIN ============ */
.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 460px;
  background:
    radial-gradient(ellipse 70% 60% at 20% 30%, #0F2438 0%, #08111C 45%, transparent 80%),
    radial-gradient(ellipse 80% 80% at 100% 50%, #2A0F3A 0%, #170820 50%, #0A0612 100%),
    #0A0612;
  position: relative;
  overflow: hidden;
}
.login-focus-tag {
  position: absolute;
  top: 18px; right: 24px;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  z-index: 5;
}
.login-left {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 80px 80px 96px;
  max-width: 720px;
}
.login-left h1 {
  margin: 0 0 14px;
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}
.login-left .lead {
  margin: 0 0 22px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  max-width: 520px;
  line-height: 1.5;
}
.login-left ul.bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.login-left ul.bullets li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}
.login-left ul.bullets li::before {
  content: '';
  position: absolute;
  left: 4px; top: 9px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
}
.login-left .legal {
  margin: 0 0 28px;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  line-height: 1.55;
  max-width: 520px;
}
.demo-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: fit-content;
  min-width: 130px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 8px;
  transition: background .15s, border-color .15s;
}
.demo-btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); }
.demo-btn:focus-visible {
  outline: 3px solid #C77DFF;
  outline-offset: 3px;
}

.login-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 56px;
  background:
    linear-gradient(180deg, rgba(60,15,85,0.0) 0%, rgba(60,15,85,0.18) 50%, rgba(40,10,60,0.0) 100%);
  border-left: 1px solid rgba(255,255,255,0.04);
  position: relative;
}
.play-logo {
  width: 96px; height: 96px;
  border-radius: 22px;
  position: relative;
  margin-bottom: 28px;
  filter: drop-shadow(0 8px 30px rgba(192, 95, 255, 0.4));
}
.play-logo svg { width: 100%; height: 100%; }
.login-form-field {
  width: 100%;
  margin-bottom: 18px;
}
.login-form-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  margin-bottom: 8px;
}
.login-form-field .input-wrap {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(199,125,255,0.4);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .15s, background .15s;
}
.login-form-field .input-wrap:focus-within {
  border-color: #C77DFF;
  background: rgba(199,125,255,0.06);
}
.login-form-field .input-wrap svg { width: 16px; height: 16px; color: rgba(255,255,255,0.6); }
.login-form-field .input-wrap input {
  flex: 1;
  background: transparent;
  border: none; outline: none;
  font-size: 14px;
  color: #fff;
}
.login-form-field .input-wrap input::placeholder { color: rgba(255,255,255,0.3); }
.signin-btn {
  width: 100%;
  padding: 14px;
  background: #fff;
  color: #1a0a25;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  margin-top: 6px;
  transition: filter .15s;
}
.signin-btn:hover { filter: brightness(0.95); }
.signin-btn:disabled { opacity: 0.5; cursor: wait; }
.key-hints {
  display: flex; align-items: center; gap: 14px;
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}
.key-hints .hint {
  display: inline-flex; align-items: center; gap: 5px;
}
.key-hints .key {
  display: inline-grid; place-items: center;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  background: rgba(255,255,255,0.10);
  border-radius: 4px;
  font-size: 11px;
}
.login-foot {
  width: 100%;
  margin-top: 20px;
  display: flex; justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.01em;
}
.login-foot .key-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; color: rgba(255,255,255,0.7); }
.login-error {
  width: 100%;
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(255,80,100,0.12);
  border: 1px solid rgba(255,80,100,0.35);
  border-radius: 8px;
  font-size: 12px;
  color: #FFB0BC;
}

@media (max-width: 900px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-left { padding: 40px 24px; }
  .login-left h1 { font-size: 36px; }
  .login-right { padding: 24px; border-left: 0; border-top: 1px solid rgba(255,255,255,0.06); }
  .login-foot { position: static; padding: 18px 24px; flex-wrap: wrap; gap: 8px; }
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 11px; color: var(--fg-dim);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.field input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
}
.field input:focus { border-color: var(--accent-solid); }
.login-btn {
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  background: var(--accent-grad);
  border-radius: 8px;
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.04em;
  transition: filter .15s, transform .1s;
}
.login-btn:hover { filter: brightness(1.1); }
.login-btn:active { transform: scale(0.99); }
.login-btn:disabled { opacity: 0.5; cursor: wait; }
.login-btn-demo {
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em;
  transition: background .15s, border-color .15s;
}
.login-btn-demo:hover {
  background: var(--bg-elev-2);
  border-color: var(--accent-solid);
  color: var(--accent-solid);
}
.login-error {
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(255,31,61,0.10);
  border: 1px solid rgba(255,31,61,0.3);
  border-radius: 8px;
  font-size: 13px;
  color: #FF7185;
}
.login-hint {
  margin-top: 18px;
  font-size: 11px;
  color: var(--fg-dim);
  line-height: 1.5;
}

/* ============ TOP NAV ============ */
.topnav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  background: rgba(11,11,15,0.85);
  backdrop-filter: blur(10px);
}
.nav-pill {
  display: flex; align-items: center; gap: 4px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.nav-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  color: var(--fg-muted);
  transition: color .15s, background .15s;
}
.nav-item:hover { color: var(--fg); background: var(--bg-elev); }
.nav-item.is-active {
  background: var(--accent-grad);
  color: white;
}
.nav-item svg { width: 14px; height: 14px; }
.nav-version { font-size: 11px; color: var(--fg-dim); }

/* ============ PAGE HEADER ============ */
.page-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px 8px;
}
.page-head-left { display: flex; align-items: center; gap: 14px; }
.back-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  transition: background .15s;
}
.back-btn:hover { background: var(--bg-elev-2); }
.back-btn svg { width: 18px; height: 18px; }
.page-title { font-size: 20px; font-weight: 600; margin: 0; }
.page-clock {
  text-align: right;
  font-size: 14px; font-weight: 600;
  border-left: 1px solid var(--border);
  padding-left: 14px;
  line-height: 1.2;
}
.page-clock small { display: block; font-size: 11px; font-weight: 400; color: var(--fg-muted); }

/* ============ HERO CAROUSEL ============ */
.hero-wrap { padding: 8px 32px 24px; }
.hero {
  position: relative;
  height: 420px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-elev);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: right center;
}
.hero-fade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg-elev) 0%, rgba(20,20,27,0.96) 30%, rgba(20,20,27,0.5) 55%, transparent 80%),
    linear-gradient(0deg, rgba(20,20,27,0.8) 0%, transparent 25%);
}
.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  height: 100%;
  padding: 36px 40px;
  max-width: 56%;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
}
.hero-eyebrow svg { width: 16px; height: 16px; color: var(--accent-solid); }
.hero-title {
  font-size: 30px; font-weight: 700; line-height: 1.05;
  margin: 0 0 14px;
  text-wrap: balance;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 14px;
  font-size: 12px; color: var(--fg-muted);
  margin-bottom: 14px;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 13px; height: 13px; color: var(--fg-dim); }
.hero-syn {
  font-size: 14px; color: var(--fg-muted);
  line-height: 1.55;
  max-width: 520px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.hero-dots {
  position: absolute; bottom: 14px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 3;
}
.hero-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--fg-dim);
  transition: background .2s, transform .2s;
}
.hero-dot.is-active { background: var(--fg); transform: scale(1.2); }

/* ============ CONTINUE WATCHING ============ */
.continue-card {
  flex-shrink: 0;
  width: 320px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s, border-color .15s;
}
.continue-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.continue-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background-size: cover; background-position: center;
  background-color: var(--bg);
}
.continue-thumb-fade {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.7), transparent 60%);
}
.continue-time {
  position: absolute; top: 8px; left: 8px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px; font-weight: 600;
  color: var(--fg);
  display: inline-flex; align-items: center; gap: 5px;
}
.continue-info { padding: 10px 14px 12px; }
.continue-title { font-size: 13px; font-weight: 600; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.continue-track {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.continue-fill {
  height: 100%;
  background: var(--accent-grad);
}
.continue-meta {
  margin-top: 6px;
  font-size: 11px;
  color: var(--fg-muted);
}

/* ============ SECTIONS ============ */
.section { padding: 0 32px 30px; }
.section-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
  font-size: 15px; font-weight: 600;
}
.section-head svg { width: 18px; height: 18px; color: var(--fg-muted); }

.row-scroll {
  display: flex; gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.row-scroll::-webkit-scrollbar { display: none; }

/* ============ STREAMING TILES ============ */
.stream-tile {
  width: 150px; height: 90px;
  flex-shrink: 0;
  border-radius: 10px;
  display: grid; place-items: center;
  transition: transform .15s;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.stream-tile:hover { transform: scale(1.04); }

/* ============ MATCH CARDS ============ */
.match-card {
  width: 230px;
  flex-shrink: 0;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px 14px;
  font-size: 12px;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(70,170,90,0.20), transparent 70%),
    linear-gradient(180deg, #0d2017 0%, #061008 100%);
  overflow: hidden;
}
.match-card::before {
  /* horizon line */
  content: '';
  position: absolute;
  left: 8%; right: 8%; top: 56%;
  height: 1px;
  background: rgba(255,255,255,0.18);
  border-radius: 2px;
}
.match-card::after {
  /* center circle */
  content: '';
  position: absolute;
  left: 50%; top: 56%;
  width: 60px; height: 30px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.match-top {
  display: flex; align-items: center; gap: 6px;
  color: var(--fg-muted);
  font-size: 11px;
  margin-bottom: 10px;
  position: relative; z-index: 2;
}
.match-row {
  display: grid;
  grid-template-columns: 50px 1fr 50px;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  position: relative; z-index: 2;
}
.team-crest {
  width: 44px; height: 44px;
  background: var(--bg-elev);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800;
  color: var(--fg);
  border: 2px solid rgba(255,255,255,0.08);
}
.match-score {
  text-align: center;
  font-size: 22px; font-weight: 800;
  line-height: 1;
}
.match-state {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.06em;
  margin: 6px auto 0;
}
.match-state.upcoming { background: var(--upcoming-bg); color: var(--upcoming); border: 1px solid rgba(16,185,129,0.3); }
.match-state.live { background: var(--live-bg); color: var(--live); border: 1px solid rgba(255,31,61,0.3); }
.match-teams {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.08em;
  margin-top: 8px;
  text-align: center;
  position: relative; z-index: 2;
}

/* ============ POSTER CARDS ============ */
.poster-card {
  flex-shrink: 0;
  width: 150px;
  cursor: pointer;
  transition: transform .15s;
}
.poster-card:hover { transform: scale(1.04); }
.poster-img-wrap {
  position: relative;
  aspect-ratio: 2/3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-elev);
}
.poster-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding: 10px;
  font-size: 13px; font-weight: 700;
  background: linear-gradient(135deg, #1f2937, #0f172a);
}
.poster-platform {
  position: absolute; bottom: 6px; right: 6px;
  width: 22px; height: 22px;
  border-radius: 4px;
  background: var(--bg-elev);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
}
.poster-rating {
  position: absolute; top: 6px; right: 6px;
  padding: 2px 6px;
  background: rgba(0,0,0,0.7);
  border-radius: 4px;
  font-size: 11px; font-weight: 600;
}
.poster-legendado {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 5px 0;
  background: var(--accent-grad);
  text-align: center;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em;
  color: white;
}
.poster-platform-badge {
  position: absolute; bottom: 6px; right: 6px;
  width: 22px; height: 22px;
  border-radius: 4px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 900;
  color: white;
}
.poster-platform-badge.netflix { background: #E50914; }
.poster-platform-badge.prime { background: #00A8E1; }
.poster-platform-badge.disney { background: #0E2D5F; }
.poster-platform-badge.max { background: #002BE7; }
.poster-platform-badge.apple { background: #000; border: 1px solid #444; }
.poster-caption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ SIDEBAR LAYOUT ============ */
.split-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
}
.split-layout.channels { grid-template-columns: 280px 460px 1fr; }
.side-panel {
  border-right: 1px solid var(--border);
  padding: 16px 16px 24px;
  height: calc(100vh - 80px);
  overflow-y: auto;
}
.side-panel::-webkit-scrollbar { width: 6px; }
.side-panel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.cat-item {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 4px;
  font-size: 13px; font-weight: 500;
  color: var(--fg-muted);
  text-align: left;
  transition: background .12s, color .12s;
}
.cat-item:hover { background: var(--bg-elev); color: var(--fg); }
.cat-item .ico { color: var(--fg-dim); flex-shrink: 0; }
.cat-item .ico svg { width: 16px; height: 16px; }
.cat-item .chev { margin-left: auto; color: var(--fg-dim); }
.cat-item.is-active {
  background: var(--accent-grad);
  color: white;
  font-weight: 600;
}
.cat-item.is-active .ico, .cat-item.is-active .chev { color: white; }

/* ============ CHANNEL LIST ============ */
.channel-list { padding: 16px 12px 80px; height: calc(100vh - 80px); overflow-y: auto; border-right: 1px solid var(--border); }
.channel-row {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 4px;
  font-size: 13px; font-weight: 500;
  text-align: left;
  transition: background .12s;
}
.channel-row:hover { background: var(--bg-elev); }
.channel-row.is-active { background: var(--bg-elev); }
.channel-row .heart { color: var(--fg-dim); background: none; border: none; padding: 4px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; }
.channel-row .heart svg { width: 16px; height: 16px; }
.channel-row .heart:focus-visible { outline: 2px solid #8B5CF6; outline-offset: 2px; }
.channel-logo {
  width: 32px; height: 32px;
  border-radius: 6px;
  background: var(--bg-elev);
  display: grid; place-items: center;
  font-size: 10px; font-weight: 700;
  color: var(--fg-muted);
  flex-shrink: 0;
  overflow: hidden;
}
.channel-logo img { width: 100%; height: 100%; object-fit: contain; }
.channel-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============ PLAYER PANEL (canais) ============ */
.player-panel { padding: 16px 24px; }
.video-shell {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
}
.video-shell video { width: 100%; height: 100%; display: block; }
.video-empty {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: var(--bg-elev);
  color: var(--fg-muted);
  font-size: 14px;
}
.epg-list { display: flex; flex-direction: column; gap: 8px; }
.epg-empty {
  background: var(--bg-elev);
  border-radius: 8px;
  padding: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--fg-muted);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.epg-row {
  background: var(--bg-elev);
  border-radius: 8px;
  padding: 12px 14px;
}
.epg-top { display: flex; align-items: center; justify-content: space-between; }
.epg-name { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.epg-name svg { width: 14px; height: 14px; color: var(--fg-dim); }
.epg-state {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px; font-weight: 700;
}
.epg-state.live { background: var(--live-bg); color: var(--live); }
.epg-state.next { background: var(--upcoming-bg); color: var(--upcoming); }
.epg-bottom {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--fg-muted);
  margin-top: 6px;
}
.epg-progress-track {
  height: 2px; background: var(--border);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}
.epg-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF1F3D, #F472B6);
}

/* ============ GRID DE FILMES/SÉRIES ============ */
.grid-page { padding: 18px 24px 24px; height: calc(100vh - 80px); overflow-y: auto; }
.grid-page::-webkit-scrollbar { width: 8px; }
.grid-page::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 18px 14px;
}
.empty-state {
  padding: 100px 0;
  text-align: center;
  color: var(--fg-muted);
}
.loading-state {
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 60px 0;
  color: var(--fg-muted);
}
.spinner-dots {
  display: inline-flex; gap: 5px;
}
.spinner-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  animation: bounce 1.2s ease-in-out infinite;
}
.spinner-dots span:nth-child(1) { background: #F43F5E; animation-delay: 0s; }
.spinner-dots span:nth-child(2) { background: #F59E0B; animation-delay: 0.15s; }
.spinner-dots span:nth-child(3) { background: #10B981; animation-delay: 0.30s; }
.spinner-dots span:nth-child(4) { background: #06B6D4; animation-delay: 0.45s; }
.spinner-dots span:nth-child(5) { background: #3B82F6; animation-delay: 0.60s; }
@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ============ DETAIL MODAL ============ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: grid; place-items: center;
  padding: 24px;
  overflow-y: auto;
  animation: fadein .2s ease-out;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: min(1000px, 100%);
  background: #14141B;
  border: 1px solid #25252F;
  border-radius: 16px;
  padding: 28px;
  position: relative;
  animation: slideup .25s cubic-bezier(.2,.8,.2,1);
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
}
.modal::-webkit-scrollbar { width: 8px; }
.modal::-webkit-scrollbar-thumb { background: #25252F; border-radius: 4px; }
@keyframes slideup { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #000000;
  border: none;
  display: grid; place-items: center;
  font-size: 16px;
  cursor: pointer;
  z-index: 2;
  transition: transform .12s, background .12s;
}
.modal-close:hover { transform: scale(1.05); background: #F0F0F0; }
.modal-close svg { width: 18px; height: 18px; }

.modal-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
}
.modal-poster {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 12px;
  overflow: hidden;
  background: #0B0B0F;
  border: 1px solid #25252F;
}
.modal-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }

.modal-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.modal-titleblock { margin-bottom: 4px; }
.modal-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
  color: #FFFFFF;
}
.modal-subtitle {
  margin: 0 0 22px;
  font-size: 15px;
  font-weight: 500;
  color: #B4B4C0;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: #FFFFFF;
  cursor: pointer;
  font-family: inherit;
  transition: background .12s, border-color .12s, transform .08s;
}
.btn:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.22);
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 16px; height: 16px; }

.btn.primary {
  background: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
}
.btn.primary:hover { background: #F0F0F0; }
.btn.active { color: var(--accent-solid); border-color: var(--accent-solid); }

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: #B4B4C0;
  margin-bottom: 18px;
}
.modal-meta span { display: inline-flex; align-items: center; gap: 7px; }
.modal-meta svg { width: 14px; height: 14px; color: #6E6E7C; flex-shrink: 0; }

.modal-syn {
  background: #1C1C25;
  border: 1px solid #25252F;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 18px;
}
.modal-syn-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #B4B4C0;
  font-weight: 600;
  margin-bottom: 6px;
}
.modal-syn-head svg { width: 14px; height: 14px; color: #6E6E7C; }
.modal-syn p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  color: #FFFFFF;
}

.modal-credits { font-size: 13px; color: #B4B4C0; }
.modal-credits p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 6px 0;
  line-height: 1.45;
}
.modal-credits strong {
  color: #FFFFFF;
  font-weight: 600;
  margin-right: 2px;
}
.modal-credits svg {
  width: 14px; height: 14px;
  color: #6E6E7C;
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 800px) {
  .modal { padding: 20px; max-height: 95vh; }
  .modal-grid { grid-template-columns: 1fr; gap: 18px; }
  .modal-poster { max-width: 220px; margin: 0 auto; }
  .modal-title { font-size: 28px; text-align: center; }
  .modal-subtitle { text-align: center; }
  .modal-actions { justify-content: center; }
  .modal-meta { justify-content: center; }
}

/* ============ SERIES DETAIL ============ */
.series-detail {
  position: relative;
  padding: 24px 32px 80px;
}
.series-hero {
  position: absolute; top: 0; right: 0;
  width: 60%;
  height: 380px;
  background-size: cover;
  background-position: center;
  z-index: 0;
  border-radius: 14px;
  overflow: hidden;
}
.series-hero-fade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(11,11,15,0.95) 25%, transparent 70%),
    linear-gradient(0deg, var(--bg) 0%, transparent 50%);
}
.series-top {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 220px 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
.series-poster {
  aspect-ratio: 2/3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--border);
}
.series-poster img { width: 100%; height: 100%; object-fit: cover; }
.series-title { font-size: 30px; font-weight: 700; margin: 0 0 14px; text-wrap: balance; }
.series-meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: var(--fg-muted);
  margin-bottom: 14px;
}
.series-meta svg { width: 14px; height: 14px; color: var(--fg-dim); margin-right: 6px; vertical-align: -2px; }
.series-meta-row {
  font-size: 13px; color: var(--fg-muted);
  margin-bottom: 6px;
}
.series-meta-row svg { width: 13px; height: 13px; color: var(--fg-dim); margin-right: 6px; vertical-align: -2px; }
.series-syn {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 16px;
  font-size: 14px; line-height: 1.55;
  color: var(--fg);
  max-width: 720px;
}
.series-syn p { margin: 6px 0 0; }
.season-tabs {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.season-tab {
  padding: 10px 16px;
  font-size: 13px; font-weight: 500;
  color: var(--fg-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: none;
}
.season-tab.is-active {
  color: var(--fg);
  border-bottom-color: var(--accent-solid);
}
.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* ============ PLAYER DROPDOWNS ============ */
.fp-tools { position: relative; }
.fp-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: rgba(20,20,27,0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  min-width: 180px;
  z-index: 10;
}
.fp-menu-item {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--fg);
  border-radius: 6px;
  text-align: left;
  transition: background .12s;
}
.fp-menu-item:hover { background: var(--bg-elev-2); }
.fp-menu-item.is-active { color: var(--accent-solid); }
.fp-menu-item .check { margin-left: auto; opacity: 0.7; }
.ep-card { cursor: pointer; transition: transform .15s; }
.ep-card:hover { transform: scale(1.02); }
.ep-thumb {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 8px;
  background: var(--bg-elev);
  overflow: hidden;
}
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-num {
  position: absolute; top: 6px; left: 6px;
  background: rgba(0,0,0,0.7);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px; font-weight: 700;
}
.ep-dur {
  position: absolute; top: 6px; right: 6px;
  background: rgba(0,0,0,0.7);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
}
.ep-title { margin-top: 8px; font-size: 12px; font-weight: 600; }

/* ============ FULL PLAYER ============ */
.fullplayer {
  position: fixed; inset: 0; z-index: 100;
  background: black;
  display: flex; flex-direction: column;
}
.fp-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: linear-gradient(180deg, rgba(0,0,0,0.7), transparent);
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 5;
  transition: opacity .3s;
}
.fp-top.hidden { opacity: 0; pointer-events: none; }
.fp-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px;
}
.fp-title { font-size: 15px; font-weight: 500; }
.fp-tools { display: flex; gap: 6px; }
.fp-icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  transition: background .15s;
}
.fp-icon-btn:hover { background: rgba(255,255,255,0.12); }
.fp-icon-btn svg { width: 18px; height: 18px; }
.fp-video {
  flex: 1;
  background: black;
  display: grid; place-items: center;
  overflow: hidden;
}
.fp-video video { width: 100%; height: 100%; object-fit: contain; }
.fp-bottom {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 14px 20px 18px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
  z-index: 5;
  transition: opacity .3s;
}
.fp-bottom.hidden { opacity: 0; pointer-events: none; }
.fp-controls {
  display: flex; align-items: center; gap: 14px;
}
.fp-play-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: white;
  color: black;
  display: grid; place-items: center;
}
.fp-play-btn svg { width: 22px; height: 22px; }
.fp-skip-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: white;
}
.fp-skip-btn svg { width: 20px; height: 20px; }
.fp-time { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--fg); }
.fp-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}
.fp-bar-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--progress);
  border-radius: 2px;
}
.fp-bar-knob {
  position: absolute; top: 50%;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: white;
  transform: translate(-50%, -50%);
}
.fp-loading {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
}

/* ============ NEXT EPISODE OVERLAY ============ */
.fp-next-overlay {
  position: absolute; bottom: 80px; right: 32px;
  z-index: 10;
  animation: fadeInUp .3s ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fp-next-card {
  display: flex; align-items: center; gap: 16px;
  background: rgba(13,13,20,0.95);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 16px 20px;
  max-width: 480px;
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.7);
}
.fp-next-thumb {
  width: 80px; height: 52px; border-radius: 8px;
  object-fit: cover; flex-shrink: 0;
}
.fp-next-info { flex: 1; min-width: 0; }
.fp-next-label { font-size: 11px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.fp-next-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-next-series { font-size: 12px; color: var(--fg-muted); margin-top: 2px; }
.fp-next-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.fp-next-actions .btn { padding: 8px 16px; font-size: 13px; min-width: 120px; }

/* ============ VIRTUAL KEYBOARD (busca em TV) ============ */
.search-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 28px;
  padding: 18px 32px 80px;
  height: calc(100vh - 80px);
}
.kbd-panel {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  height: fit-content;
}
.kbd-display {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 500;
  min-height: 50px;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
  outline: none;
}
.kbd-display .caret {
  width: 2px; height: 20px;
  background: var(--accent-solid);
  animation: blink 1s infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.kbd-display .placeholder { color: var(--fg-dim); }
.kbd-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.kbd-key {
  aspect-ratio: 1.3 / 1;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  transition: background .12s, transform .08s;
}
.kbd-key:hover { background: var(--bg); }
.kbd-key:active { transform: scale(0.95); }
.kbd-row-special {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr 1fr;
  gap: 6px;
  margin-top: 6px;
}
.kbd-key.wide { aspect-ratio: auto; padding: 12px; }
.kbd-key.accent { background: var(--accent-grad); border-color: transparent; }
.kbd-results {
  overflow-y: auto;
  padding-right: 4px;
}
.kbd-results::-webkit-scrollbar { width: 6px; }
.kbd-results::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

@media (max-width: 900px) {
  .search-layout { grid-template-columns: 1fr; height: auto; padding: 16px; }
  .kbd-panel { display: none; }
}

/* ============ TOAST ============ */
.toast {
  position: fixed; bottom: 30px; left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 13px;
  z-index: 200;
  animation: slideup .2s ease;
}

/* ============ MOBILE ============ */
@media (max-width: 900px) {
  .topnav { padding: 10px 16px; }
  .nav-pill { display: none; }
  .hero-wrap { padding: 8px 16px 16px; }
  .hero { height: 320px; }
  .hero-content { padding: 20px; max-width: 100%; }
  .hero-title { font-size: 22px; }
  .section { padding: 0 16px 24px; }
  .split-layout, .split-layout.channels {
    grid-template-columns: 1fr;
  }
  .side-panel, .channel-list { height: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .page-head { padding: 14px 16px 6px; }
}

/* ============================================================
   DETALHE FULLSCREEN — HybridPlay (WatchScreen)
   ============================================================ */

.hp-detail-page {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: #0B0B0F;
  color: #FFFFFF;
  overflow: hidden;
}

.hp-detail-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1;
}

.hp-detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hp-detail-backdrop-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      #0B0B0F 0%,
      rgba(11, 11, 15, 0.96) 28%,
      rgba(11, 11, 15, 0.70) 50%,
      rgba(11, 11, 15, 0.30) 75%,
      rgba(11, 11, 15, 0.10) 100%),
    linear-gradient(180deg, transparent 30%, #0B0B0F 90%);
}

.hp-detail-content {
  position: relative;
  z-index: 2;
  padding: 60px 48px 80px;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 40px;
  align-items: start;
}
.hp-detail-main { min-width: 0; }

.hp-detail-aside {
  position: sticky;
  top: 32px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.10);
}
.hp-detail-aside .modal-preview {
  margin-bottom: 0;
  width: 100%;
  border-radius: 0;
  border: none;
}

.hp-detail-header {
  margin-bottom: 24px;
}
.hp-detail-titleblock {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.hp-detail-year {
  font-size: 14px;
  font-weight: 600;
  color: #B4B4C0;
  margin-bottom: 6px;
}
.hp-detail-title {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: break-word;
  max-width: 720px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.hp-detail-info {
  margin: 0 0 20px;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hp-detail-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 14px;
}
.hp-detail-row dt { flex-shrink: 0; width: 80px; color: #B4B4C0; font-weight: 500; }
.hp-detail-row dd { margin: 0; color: #FFFFFF; font-weight: 400; line-height: 1.4; }

.hp-chip {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.hp-detail-syn { margin: 8px 0 28px; max-width: 720px; }
.hp-detail-syn h2 { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: #FFFFFF; }
.hp-detail-syn p { margin: 0; font-size: 14px; line-height: 1.6; color: #D8D8E0; }

.hp-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.hp-detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  cursor: pointer;
  font-family: inherit;
  transition: background 120ms, border-color 120ms, transform 80ms;
}
.hp-detail-btn:hover { background: rgba(255, 255, 255, 0.10); border-color: rgba(255, 255, 255, 0.22); }
.hp-detail-btn:active { transform: scale(0.98); }
.hp-detail-btn:focus-visible { outline: 3px solid #C77DFF; outline-offset: 3px; }
.hp-detail-btn svg { width: 16px; height: 16px; }
.hp-detail-btn-primary { background: #FFFFFF; color: #000000; border-color: #FFFFFF; }
.hp-detail-btn-primary:hover { background: #F0F0F0; border-color: #F0F0F0; }
.hp-detail-btn-primary:disabled { opacity: .45; cursor: default; }

.hp-related { position: relative; z-index: 2; margin-top: 12px; }
.hp-related-title { margin: 0 0 16px; font-size: 16px; font-weight: 600; color: #FFFFFF; }

.hp-related-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 0 16px;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.hp-related-row::-webkit-scrollbar { display: none; }

.hp-related-card {
  flex: 0 0 130px;
  width: 130px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
  text-align: left;
  transition: transform 120ms;
}
.hp-related-card:hover { transform: translateY(-4px); }
.hp-related-card:focus-visible { outline: 3px solid #C77DFF; outline-offset: 4px; border-radius: 10px; }

.hp-related-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #14141B;
  border: 1px solid #25252F;
}
.hp-related-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hp-related-rating {
  position: absolute;
  top: 6px; right: 6px;
  background: rgba(0, 0, 0, 0.85);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
}

.hp-related-caption {
  margin-top: 10px;
  font-size: 12px;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── modal series episodes ── */
.modal-eps {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #25252F;
}

/* ── WatchScreen close button ── */
.ws-close {
  position: absolute;
  top: 20px; right: 24px;
  z-index: 10;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  display: grid; place-items: center;
  color: white;
  transition: background .15s;
}
.ws-close:hover { background: rgba(255,255,255,0.2); }
.ws-close:focus-visible { outline: 3px solid #C77DFF; outline-offset: 3px; border-radius: 50%; }
.ws-close svg { width: 18px; height: 18px; }

@media (max-width: 1100px) and (min-width: 769px) {
  .hp-detail-content { grid-template-columns: 1fr 340px; gap: 28px; padding: 48px 32px 60px; }
}
@media (max-width: 768px) {
  .hp-detail-content { padding: 24px 20px 40px; grid-template-columns: 1fr; }
  .hp-detail-aside { position: static; order: -1; border-radius: 12px; }
  .hp-detail-title { font-size: 26px; }
  .hp-detail-row { flex-direction: column; gap: 2px; }
  .hp-detail-row dt { width: auto; }
  .hp-related-card { flex: 0 0 100px; width: 100px; }
}

/* ============ MODAL PREVIEW DE VÍDEO ============ */
.modal-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000000;
  margin-bottom: 18px;
  border: 1px solid #25252F;
}
.modal-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.modal-preview-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20, 20, 27, 0.6) 0%, transparent 40%);
  pointer-events: none;
}
.modal-preview-mute {
  position: absolute;
  bottom: 10px; right: 10px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  display: grid; place-items: center;
  cursor: pointer;
  font-family: inherit;
  transition: background 120ms, transform 80ms;
}
.modal-preview-mute:hover { background: rgba(0, 0, 0, 0.85); }
.modal-preview-mute:active { transform: scale(0.95); }
.modal-preview-mute:focus-visible { outline: 3px solid #C77DFF; outline-offset: 2px; }
.modal-preview-mute svg { width: 16px; height: 16px; }

