:root {
  --bg: #0a0a0a;
  --bg-panel: #141414;
  --red: #e50914;
  --white: #f5f5f5;
  --gray: #8c8c8c;
  --border: rgba(255,255,255,0.08);
  --focus-ring: 0 0 0 3px rgba(229,9,20,0.55);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out-soft: cubic-bezier(0.25, 0.8, 0.25, 1);
  --surface-1: rgba(255,255,255,0.02);
  --surface-2: rgba(255,255,255,0.06);
  --overlay-dark: rgba(0,0,0,0.55);
  --nav-gradient: linear-gradient(180deg, rgba(0,0,0,0.85) 10%, rgba(0,0,0,0));
}


* { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@keyframes fadeRiseIn {
  from { opacity: 0; transform: translateY(10px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeScaleIn {
  from { opacity: 0; transform: scale(0.88); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes screenPopIn {
  from { opacity: 0; transform: scale(1.06); }
  to { opacity: 1; transform: scale(1); }
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--white);
  font-family: "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  overflow: hidden;
}

button { font-family: inherit; cursor: pointer; }

.view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s var(--ease-out-soft), visibility .28s;
}
.view.active { opacity: 1; visibility: visible; pointer-events: auto; }

/* ---------- Brand ---------- */
.brand-logo {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.brand-logo .nf { color: var(--red); font-size: 22px; }
.brand-logo .ads { color: var(--white); font-size: 22px; }
.brand-logo--xl .nf, .brand-logo--xl .ads { font-size: 56px; }
.topbar-sub { color: var(--gray); font-weight: 400; font-size: 15px; margin-left: 6px; }
/* ---------- Splash ---------- */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #180404 0%, #0a0a0a 70%);
  opacity: 1;
  visibility: visible;
  transition: opacity .5s var(--ease-out-soft), visibility .5s;
}
.splash-screen.hide { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .7s var(--ease-out-soft), visibility .7s; }
.splash-glow {
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229,9,20,0.35) 0%, rgba(229,9,20,0.12) 45%, rgba(229,9,20,0) 70%);
  opacity: 0;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0) scale(0.3);
  animation: splashGlowGrow 2s cubic-bezier(0.45, 0, 0.4, 1) forwards;
}
@keyframes splashGlowGrow {
  0% { transform: translateZ(0) scale(0.3); opacity: 0; }
  25% { transform: translateZ(0) scale(0.85); opacity: 1; }
  45% { transform: translateZ(0) scale(1); opacity: 1; }
  100% { transform: translateZ(0) scale(4); opacity: .55; }
}
.splash-logo {
  position: relative;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0) scale(0.7);
  opacity: 0;
  animation: splashZoomIn 2s cubic-bezier(0.45, 0, 0.4, 1) forwards;
}
@keyframes splashZoomIn {
  0% { transform: translateZ(0) scale(0.7); opacity: 0; }
  25% { transform: translateZ(0) scale(1); opacity: 1; }
  45% { transform: translateZ(0) scale(1); opacity: 1; }
  100% { transform: translateZ(0) scale(9); opacity: 1; }
}
.btn { border: none; border-radius: 24px; padding: 14px 26px; font-size: 15px; font-weight: 700; display: inline-block; text-decoration: none; text-align: center; transition: transform .15s var(--ease-out-soft), filter .15s var(--ease-out-soft), box-shadow .15s var(--ease-out-soft); }
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn.btn-clicked { animation: btnClickPulse .35s var(--ease-out-soft); }
@keyframes btnClickPulse {
  0% { transform: scale(1); }
  35% { transform: scale(0.93); filter: brightness(1.25); }
  100% { transform: scale(1); }
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:focus, .btn-primary.focused { box-shadow: var(--focus-ring); outline: none; }
.btn-ghost { background: var(--surface-2); color: var(--white); }
.btn-solid { background: var(--red); color: #fff; }
.btn-ghost.focused, .btn-solid.focused, .btn-ghost:focus, .btn-solid:focus { box-shadow: var(--focus-ring); outline: none; }

/* ---------- Home (Netflix-style browse) ---------- */
.view-home {
  padding: 0;
  overflow-y: auto;
  background: #0a0a0a;
  /* Browse/hero surface stays cinematic-dark regardless of theme (like Netflix's own browse page) */
  --bg: #0a0a0a;
  --white: #f5f5f5;
  --gray: #8c8c8c;
  --border: rgba(255,255,255,0.08);
  --surface-1: rgba(255,255,255,0.02);
  --surface-2: rgba(255,255,255,0.06);
  --nav-gradient: linear-gradient(180deg, rgba(0,0,0,0.85) 10%, rgba(0,0,0,0));
}

.nf-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 50px;
  background: var(--nav-gradient);
  transition: background .25s var(--ease-out-soft);
}
.nf-nav-left { display: flex; align-items: center; gap: 34px; }
.nf-nav-links { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; font-size: 14px; color: var(--gray); }
.nf-nav-links li { cursor: default; white-space: nowrap; padding: 8px 14px; border-radius: 6px; transition: background-color .15s var(--ease-out-soft), color .15s var(--ease-out-soft); }
.nf-nav-links li.active { color: var(--white); font-weight: 700; background: var(--surface-2); }
.nf-nav-right { display: flex; align-items: center; gap: 20px; }
.nf-icon-btn {
  font-size: 15px; line-height: 1; color: var(--white);
  background: none; border: none; cursor: pointer;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  transition: background-color .15s var(--ease-out-soft);
}
.nf-icon-btn:hover { background: var(--surface-2); }
.nf-badge {
  position: absolute; top: -6px; right: -8px;
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #000;
}
.nf-profile { position: relative; display: flex; align-items: center; gap: 4px; cursor: pointer; }
.nf-caret { font-size: 9px; color: var(--white); transition: transform .2s var(--ease-out-soft); }
.nf-profile.open .nf-caret { transform: rotate(180deg); }
.nf-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(160deg, var(--red), #7a0710);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
}

/* ---------- Nav dropdowns (notifications / profile) — Netflix-style popover ---------- */
.nf-dropdown {
  position: absolute;
  top: calc(100% + 16px);
  right: -6px;
  max-width: calc(100vw - 32px);
  background: #181818;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  box-shadow: 0 12px 34px rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.96);
  transform-origin: top right;
  transition: opacity .18s var(--ease-out-soft), transform .18s var(--ease-out-soft), visibility .18s;
  z-index: 30;
  cursor: default;
}
.nf-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.nf-dropdown-arrow {
  position: absolute; top: -8px; right: 14px;
  width: 14px; height: 14px;
  background: #181818;
  border-left: 1px solid rgba(255,255,255,0.12);
  border-top: 1px solid rgba(255,255,255,0.12);
  transform: rotate(45deg);
}

.nf-notif-panel { width: 360px; padding: 6px 0 10px; }
.nf-notif-header { font-size: 15px; font-weight: 700; color: #fff; padding: 14px 18px 10px; }
.nf-notif-list { max-height: 380px; overflow-y: auto; }
.nf-notif-item {
  display: flex; gap: 12px;
  padding: 10px 18px;
  cursor: pointer;
  transition: background-color .15s var(--ease-out-soft);
}
.nf-notif-item:hover { background: rgba(255,255,255,0.06); }
.nf-notif-thumb {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
}
.nf-notif-thumb[data-accent="red"] { background: linear-gradient(160deg, #3a0d0f, #150404); }
.nf-notif-thumb[data-accent="amber"] { background: linear-gradient(160deg, #4a3a0c, #160f02); }
.nf-notif-thumb[data-accent="purple"] { background: linear-gradient(160deg, #33204a, #0d0714); }
.nf-notif-thumb[data-accent="green"] { background: linear-gradient(160deg, #12472e, #06140d); }
.nf-notif-title { font-size: 13px; font-weight: 600; color: #fff; line-height: 1.35; }
.nf-notif-desc { font-size: 12px; color: var(--gray); margin-top: 3px; line-height: 1.4; }
.nf-notif-time { font-size: 11px; color: #565656; margin-top: 5px; }

.nf-profile-panel { width: 220px; padding: 8px 0; }
.nf-profile-menu { list-style: none; margin: 0; padding: 4px 0; }
.nf-profile-menu li {
  padding: 10px 16px;
  font-size: 13px; color: #fff;
  cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  transition: background-color .15s var(--ease-out-soft);
}
.nf-profile-menu li:hover { background: rgba(255,255,255,0.06); }
.nf-profile-divider { height: 1px; background: rgba(255,255,255,0.14); margin: 4px 0; }
.nf-profile-signout {
  padding: 12px 16px;
  font-size: 13px; color: #fff;
  cursor: pointer;
  transition: background-color .15s var(--ease-out-soft);
}
.nf-profile-signout:hover { background: rgba(255,255,255,0.06); }
.pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 0.5px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 8px #2ecc71; }

/* Hero */
.hero {
  position: relative;
  height: 86vh;
  min-height: 620px;
  margin-top: -78px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #000;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 20%, var(--hero-c1, #3a0d0f) 0%, var(--hero-c2, #0a0a0a) 65%);
  transition: background 0.6s var(--ease-out-soft);
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  opacity: 0;
  z-index: 1;
  transition: opacity 1s var(--ease-out-soft);
  animation: heroKenBurns 22s ease-in-out infinite alternate;
}
.hero-video.visible { opacity: 1; }
@keyframes heroKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.hero-vignette {
  position: absolute; inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at 75% 30%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.6) 100%);
}
.hero-gradient {
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, #0a0a0a 5%, rgba(10,10,10,0.35) 38%, rgba(10,10,10,0.05) 62%),
              linear-gradient(90deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.5) 42%, rgba(10,10,10,0.05) 68%);
}
.hero-content { position: relative; z-index: 2; padding: 0 50px 84px; max-width: 660px; }
.hero-tag { display: flex; align-items: center; gap: 9px; color: var(--red); letter-spacing: 2px; font-size: 13px; font-weight: 700; margin-bottom: 16px; animation: fadeIn .4s var(--ease-out-soft); }
.hero-tag-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px 2px rgba(229,9,20,0.7); }
.hero-title {
  color: #fff; font-size: 68px; font-weight: 800; margin: 0 0 20px; line-height: 1.02; letter-spacing: -1px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.5);
  animation: fadeRiseIn .5s var(--ease-out-soft);
}
.hero-desc { color: #e8e8e8; font-size: 18px; line-height: 1.55; margin: 0 0 30px; text-shadow: 0 2px 8px rgba(0,0,0,0.7); animation: fadeRiseIn .55s var(--ease-out-soft); max-width: 560px; }
.hero-actions { display: flex; gap: 14px; }
.btn-play { background: #fff; color: #000; font-size: 16px; padding: 14px 30px; }
.btn-info { background: rgba(255,255,255,0.16); backdrop-filter: blur(6px); color: #fff; font-size: 16px; padding: 14px 30px; }
.btn-play:focus, .btn-play.focused, .btn-info:focus, .btn-info.focused { box-shadow: var(--focus-ring); outline: none; }
.btn-info.open { background: rgba(255,255,255,0.28); }

.hero-info-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease-out-soft), opacity .3s var(--ease-out-soft), margin-top .35s var(--ease-out-soft);
}
.hero-info-panel.open {
  max-height: 320px;
  opacity: 1;
  margin-top: 18px;
}
.hero-info-card {
  background: rgba(10,10,10,0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 18px 20px;
  animation: fadeRiseIn .3s var(--ease-out-soft);
}
.hero-info-heading {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 12px;
}
.hero-info-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-info-row:first-of-type { border-top: none; padding-top: 0; }
.hero-info-row-label { flex-shrink: 0; width: 120px; font-size: 13px; font-weight: 700; color: #fff; }
.hero-info-row-desc { font-size: 13px; color: rgba(255,255,255,0.72); line-height: 1.45; }
.hero-scroll-cue {
  position: absolute; left: 50px; bottom: 22px; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.55);
  font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  animation: fadeIn 1s var(--ease-out-soft) .6s both;
}
.hero-scroll-arrow { display: inline-block; animation: heroBounce 1.8s ease-in-out infinite; }
@keyframes heroBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Row of poster cards */
.row-section { padding: 0 50px 50px; position: relative; z-index: 2; }
.row-title { color: var(--white); font-size: 22px; font-weight: 700; margin-bottom: 18px; }
.row-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 6px 16px 24px;
  scrollbar-width: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.row-track::-webkit-scrollbar { display: none; }

.card {
  position: relative;
  flex: 0 0 268px;
  height: 158px;
  border-radius: 8px;
  border: 2px solid transparent;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: linear-gradient(160deg, var(--card-color-1), var(--card-color-2));
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  transition: transform .22s var(--ease-out-soft), border-color .22s var(--ease-out-soft), box-shadow .22s var(--ease-out-soft);
  will-change: transform;
  cursor: pointer;
}
.card:hover, .card:active {
  transform: scale(1.06);
  z-index: 3;
  box-shadow: 0 12px 30px rgba(0,0,0,0.55);
}
.card:active { transform: scale(1.03); transition-duration: .1s; }
.card-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 0;
  transition: opacity .3s var(--ease-out-soft);
}
.card-bg.loaded { opacity: 0.55; }
.card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 30%, var(--card-color-2) 100%);
  z-index: 1;
}
.card > span { position: relative; z-index: 2; }
.card.focused {
  border-color: #fff;
  box-shadow: var(--focus-ring), 0 12px 30px rgba(0,0,0,0.6);
  transform: scale(1.08);
  transform-origin: center;
  z-index: 3;
}
.card[data-accent="red"] { --card-color-1:#3a0d0f; --card-color-2:#150404; --card-accent: var(--red); }
.card[data-accent="blue"] { --card-color-1:#0f2436; --card-color-2:#06121c; --card-accent:#2f8fd6; }
.card[data-accent="purple"] { --card-color-1:#241533; --card-color-2:#0d0714; --card-accent:#8b5cf6; }
.card[data-accent="green"] { --card-color-1:#0f2e1f; --card-color-2:#06140d; --card-accent:#2ecc71; }
.card[data-accent="amber"] { --card-color-1:#332708; --card-color-2:#160f02; --card-accent:#e0a734; }
.card .fmt-num { position:absolute; top:12px; left:14px; font-size:10px; letter-spacing:1px; color: rgba(255,255,255,0.6); }
.card .fmt-title { color: #fff; font-size: 16px; font-weight: 700; }
.card .fmt-count { display:block; margin-top:4px; font-size:11px; color: rgba(255,255,255,0.6); }

/* ---------- Hint bar ---------- */
.hint-bar {
  display: flex;
  gap: 30px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: 24px;
  color: var(--gray);
  font-size: 14px;
}
.hint { display: flex; align-items: center; gap: 10px; }
.key {
  background: var(--red);
  color: #fff;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
}
.key-ok { background: var(--red); }

/* ---------- Format detail ---------- */
.view-format { padding: 28px 60px 32px; }

.detail-topbar {
  --topbar-accent: var(--red);
  display: flex;
  flex-direction: column;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  animation: fadeIn .3s var(--ease-out-soft);
}
.detail-topbar[data-accent="red"]    { --topbar-accent: #e50914; }
.detail-topbar[data-accent="blue"]   { --topbar-accent: #2f8fd6; }
.detail-topbar[data-accent="purple"] { --topbar-accent: #8b5cf6; }
.detail-topbar[data-accent="green"]  { --topbar-accent: #2ecc71; }
.detail-topbar[data-accent="amber"]  { --topbar-accent: #e0a734; }

.topbar-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.topbar-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  color: var(--gray); font-size: 13px; font-weight: 600;
  padding: 4px 0;
  transition: color .15s var(--ease-out-soft), transform .15s var(--ease-out-soft);
}
.topbar-back:hover { color: var(--white); transform: translateX(-2px); }
.topbar-back:focus, .topbar-back.focused { color: var(--white); outline: none; }
.topbar-eyebrow-divider { width: 1px; height: 12px; background: rgba(255,255,255,0.18); }

.topbar-heading { display: flex; flex-direction: column; }
.topbar-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  width: fit-content;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--topbar-accent);
  text-transform: uppercase;
}
.topbar-kicker-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--topbar-accent);
  box-shadow: 0 0 10px 1px color-mix(in srgb, var(--topbar-accent) 70%, transparent);
}
#fmt-title {
  font-size: 32px; font-weight: 800; color: var(--white);
  margin: 6px 0 0; letter-spacing: -0.5px; line-height: 1.05;
}

.detail-body { display: flex; gap: 40px; margin-top: 26px; flex: 1; min-height: 0; }
.subtopics { width: 260px; flex-shrink: 0; }
.subtopics-label { color: var(--gray); font-size: 12px; letter-spacing: 2px; margin-bottom: 14px; }
.subtopics ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.subtopic-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-1);
  transition: background-color .18s var(--ease-out-soft), border-color .18s var(--ease-out-soft), transform .18s var(--ease-out-soft);
}
.subtopic-item:hover { transform: translateX(2px); }
.subtopic-item .dot-sm { width:6px; height:6px; border-radius:50%; background: var(--gray); margin-right: 10px; }
.subtopic-item .st-label { font-weight: 600; flex: 1; }
.subtopic-item .st-type { font-size: 10px; letter-spacing: 1px; color: var(--gray); background: var(--surface-2); padding: 3px 8px; border-radius: 4px; }
.subtopic-item.active { background: rgba(229,9,20,0.12); border-color: var(--red); }
.subtopic-item.active .dot-sm { background: var(--red); }
.subtopic-item.focused { box-shadow: var(--focus-ring); }

.content-panel {
  flex: 1;
  border: 1px solid var(--red);
  border-radius: 10px;
  background: var(--bg-panel);
  padding: 34px;
  overflow-y: auto;
  min-height: 0;
}
.content-panel > * { animation: fadeRiseIn .32s var(--ease-out-soft); }

/* video subtype */
.player-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,0.5);
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 1px;
  margin-bottom: 14px;
  align-self: flex-start;
}
.player-tag .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.player-wrap { display: flex; flex-direction: column; height: 100%; }
.player-frame {
  --bottombar-h: 46px;
  flex: 1;
  position: relative;
  background: #000;
  border-radius: 8px;
  min-height: 360px;
  overflow: hidden;
}
.player-frame video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 8px;
  background: #000;
}
#ad-video { animation: screenPopIn .5s var(--ease-out-soft); }

.player-frame:fullscreen,
.player-frame:-webkit-full-screen {
  border-radius: 0;
  min-height: 100vh;
}
.player-frame:fullscreen video,
.player-frame:-webkit-full-screen video {
  border-radius: 0;
}
.player-frame:fullscreen .ctrl-toggle,
.player-frame:-webkit-full-screen .ctrl-toggle {
  width: 92px; height: 92px; font-size: 34px;
}
.player-frame:fullscreen,
.player-frame:-webkit-full-screen {
  --bottombar-h: 60px;
}
.player-frame:fullscreen .player-bottombar,
.player-frame:-webkit-full-screen .player-bottombar {
  padding: 0 28px;
  font-size: 15px;
}
.player-frame:fullscreen .fs-toggle,
.player-frame:-webkit-full-screen .fs-toggle {
  width: 34px; height: 34px;
}
.player-frame:fullscreen .fs-toggle svg,
.player-frame:-webkit-full-screen .fs-toggle svg {
  width: 17px; height: 17px;
}

.player-bottombar {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: var(--bottombar-h);
  z-index: 6;
  display: flex; align-items: center; gap: 14px;
  padding: 0 16px;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.45) 75%, transparent 100%);
}
.player-bottombar .progress { flex: 1; }
.player-bottombar .live-indicator { flex-shrink: 0; }

.fs-toggle {
  flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.12);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background-color .15s var(--ease-out-soft), transform .15s var(--ease-out-soft);
}
.fs-toggle svg { width: 14px; height: 14px; }
.fs-toggle:hover { background: rgba(255,255,255,0.24); transform: scale(1.06); }
.fs-toggle:focus { outline: none; box-shadow: var(--focus-ring); }

.video-controls {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 34px;
  opacity: 1;
  transition: opacity .2s ease;
  pointer-events: auto;
}
.player-frame.playing .video-controls { opacity: 0; pointer-events: none; }
.player-frame.playing:hover .video-controls { opacity: 1; pointer-events: auto; }
.ctrl-toggle {
  width: 72px; height: 72px; border-radius: 50%;
  border: 2px solid #fff; background: rgba(0,0,0,0.35);
  color: #fff; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
}
.ctrl-toggle:hover { background: rgba(0,0,0,0.55); }
.ctrl-skip {
  width: 50px; height: 50px; border-radius: 50%;
  border: none; background: rgba(0,0,0,0.35);
  color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px;
  line-height: 1;
}
.ctrl-skip:hover { background: rgba(0,0,0,0.55); }
.ctrl-skip .skip-icon { font-size: 17px; }
.ctrl-skip .skip-num { font-size: 9px; font-weight: 700; }
.no-source-note {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
  color: var(--gray); font-size: 13px; text-align: center; padding: 0 20px;
}

.show-badge {
  position: absolute; top: 16px; left: 16px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  display: flex; align-items: center; gap: 6px;
  z-index: 2;
  animation: fadeRiseIn .3s var(--ease-out-soft);
}

.ad-overlay {
  position: absolute; inset: 0;
  padding-bottom: var(--bottombar-h, 0);
  display: flex; flex-direction: column; justify-content: space-between;
  z-index: 3;
  pointer-events: none;
}
.ad-badge {
  align-self: flex-start;
  margin: 16px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 4px;
  display: flex; align-items: center; gap: 8px;
  animation: fadeRiseIn .32s var(--ease-out-soft);
}
.ad-tag-inline {
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 3px;
}
.ad-info-bar {
  pointer-events: auto;
  margin: 0 16px 16px;
  background: rgba(18,18,18,0.94);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 12px 14px;
  animation: fadeRiseIn .34s var(--ease-out-soft);
  display: flex;
  align-items: center;
  gap: 14px;
}
.ad-brand-logo {
  width: 38px; height: 38px;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; font-size: 15px;
}
.ad-brand-text { flex: 1; min-width: 0; }
.ad-brand-name { font-size: 13px; font-weight: 700; }
.ad-tagline {
  font-size: 12px; color: var(--gray); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ad-cta {
  background: #fff; color: #000;
  font-weight: 700; font-size: 12px;
  padding: 9px 16px;
  border-radius: 4px;
  flex-shrink: 0;
}
/* QR corner widget — small, sits over the ad creative itself (matches real placement) */
.qr-corner {
  position: absolute; right: 20px; bottom: calc(var(--bottombar-h, 0px) + 20px);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: rgba(0,0,0,0.6);
  padding: 14px;
  border-radius: 10px;
  animation: fadeScaleIn .34s var(--ease-out-soft);
}
.qr-corner img { width: 140px; height: 140px; border-radius: 6px; background: #fff; padding: 6px; object-fit: contain; }
.qr-corner-label { font-size: 14px; font-weight: 600; color: #fff; text-align: center; max-width: 150px; line-height: 1.3; }

.ad-brand-strip {
  position: absolute; left: 16px; bottom: calc(var(--bottombar-h, 0px) + 16px);
  z-index: 3;
  max-width: 56%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 6px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  animation: fadeRiseIn .34s var(--ease-out-soft);
}
.ad-brand-strip-link { color: #ffc400; font-weight: 700; text-decoration: none; }

/* Pause Ads — small corner badge revealed on pause (subtle, not blocking the frame) */
.pause-overlay {
  position: absolute; left: 16px; bottom: calc(var(--bottombar-h, 0px) + 16px);
  z-index: 3;
  display: flex; align-items: center; gap: 10px;
  max-width: 260px;
  background: rgba(18,18,18,0.92);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 10px 14px;
  pointer-events: none;
  animation: fadeRiseIn .3s var(--ease-out-soft);
}
.pause-overlay img {
  width: 160px; height: 160px;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  object-fit: contain;
}
.pause-overlay:has(img) { flex-direction: column; align-items: flex-start; max-width: 200px; }
.pause-overlay-logo {
  width: 36px; height: 36px;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; font-size: 15px;
}
.pause-overlay-label { font-size: 13px; font-weight: 700; color: #fff; }
.pause-overlay-tagline { font-size: 11px; color: var(--gray); margin-top: 2px; line-height: 1.3; }

/* Static / Interactive Pause — full-width branded still card along the bottom */
.pause-card {
  position: absolute; left: 0; right: 0; bottom: var(--bottombar-h, 0px);
  z-index: 3;
  display: flex; align-items: center; gap: 16px;
  background: rgba(10,10,10,0.88);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 24px;
  animation: fadeRiseIn .32s var(--ease-out-soft);
}
.pause-card .pause-overlay-logo { width: 52px; height: 52px; font-size: 20px; pointer-events: auto; }
.pause-card .pause-overlay-label { font-size: 17px; }
.pause-card .pause-overlay-tagline { font-size: 13px; margin-top: 3px; }
.pause-overlay-teaser { font-size: 11px; color: var(--gray); margin-top: 2px; letter-spacing: 0.5px; text-transform: uppercase; }
.pause-card-cta {
  margin-left: auto;
  background: #fff; color: #000;
  font-weight: 700; font-size: 13px;
  padding: 10px 18px;
  border-radius: 4px;
  flex-shrink: 0;
  pointer-events: auto;
}
.pause-expand-btn {
  margin-left: auto;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  font-weight: 700; font-size: 13px;
  padding: 10px 18px;
  border-radius: 20px;
  flex-shrink: 0;
  pointer-events: auto;
  cursor: pointer;
}
.pause-expand-btn:hover { background: rgba(255,255,255,0.22); }
.pause-card-interactive .pause-overlay-tagline { animation: fadein .25s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* Branded Frame — small corner logo only, no card blocking the view */
.pause-frame-badge {
  position: absolute; left: 14px; top: 14px;
  z-index: 3;
  display: flex; align-items: center; gap: 10px;
  max-width: 260px;
  background: rgba(18,18,18,0.85);
  border-radius: 6px;
  padding: 8px 12px;
  pointer-events: none;
  animation: fadeRiseIn .3s var(--ease-out-soft);
}
.pause-frame-badge .pause-overlay-logo { width: 30px; height: 30px; font-size: 13px; flex-shrink: 0; }
.pause-frame-badge .pause-overlay-label { font-size: 13px; }
.pause-frame-badge .pause-overlay-tagline { font-size: 11px; }

.frame-border {
  position: absolute; inset: 0;
  z-index: 2;
  border: 6px solid var(--red);
  border-radius: 8px;
  pointer-events: none;
}

/* Single Title Sponsorship — "Presented by" intro title card */
.presented-by {
  position: absolute; left: 50%; top: 20px;
  transform: translateX(-50%) scale(0.9);
  z-index: 3;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 20px;
  opacity: 0;
  transition: opacity .4s var(--ease-out-soft), transform .4s var(--ease-out-soft);
}
.presented-by.visible { opacity: 1; transform: translateX(-50%) scale(1); }

/* Live Overlay — lower-third banner that fades in/out during playback */
.live-banner {
  position: absolute;
  left: 16px; bottom: calc(var(--bottombar-h, 0px) + 16px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(18,18,18,0.9);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 10px 14px;
  max-width: 360px;
  opacity: 0;
  transform: translateY(8px) scale(0.92);
  transform-origin: left bottom;
  transition: opacity .4s var(--ease-out-soft), transform .4s var(--ease-out-soft);
  pointer-events: none;
}
.live-banner.visible { opacity: 1; transform: translateY(0) scale(1); }

/* QR end-card — brief full-screen moment after the ad, before the show starts */
.endcard-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px;
  background: #0a0a0a;
  z-index: 5;
  animation: fadeIn .25s var(--ease-out-soft);
}
.endcard-overlay img { animation: fadeScaleIn .4s var(--ease-out-soft); }
.endcard-overlay img {
  max-width: 45%; max-height: 55%;
  border-radius: 8px;
}
.endcard-info { text-align: center; }
.endcard-brand { font-size: 22px; font-weight: 800; color: #fff; }
.endcard-tagline { font-size: 15px; color: var(--gray); margin-top: 4px; }
.player-meta { margin-top: 18px; }
.player-meta h2 { font-size: 22px; margin: 0 0 4px; }
.player-meta p { color: var(--gray); margin: 0; }
.progress { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--gray); }
.live-indicator {
  display: none;
  align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: #fff;
  letter-spacing: 1px;
}
.live-indicator-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--red);
  animation: live-pulse 1.4s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(229,9,20,0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 0 5px rgba(229,9,20,0); }
}
.progress-track { position: relative; flex: 1; height: 5px; background: rgba(255,255,255,0.12); border-radius: 4px; overflow: hidden; }
.progress-fill { position: relative; z-index: 2; height: 100%; background: var(--red); width: 0%; transition: background-color .15s ease; }
.progress-fill.is-ad { background: #ffc400; }
.ad-marker {
  position: absolute; top: 0; bottom: 0;
  width: 4px;
  border-radius: 3px;
  background: #ffc400;
  z-index: 1;
}
/* card subtype (pause/qr/sponsorship mockups) */
.ad-card-mock {
  height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 18px;
  text-align: center;
}
.ad-card-mock img { max-width: 380px; max-height: 260px; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.ad-card-mock h2 { font-size: 20px; margin: 0; }
.ad-card-mock p { color: var(--gray); max-width: 460px; margin: 0; }

/* Branded Rail — mini homepage-row simulation, click a poster to preview */
.rail-demo { height: 100%; display: flex; flex-direction: column; justify-content: center; }
.rail-header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.rail-row-title { font-size: 18px; font-weight: 700; }
.rail-sponsor-badge {
  font-size: 12px; color: #fff;
  background: rgba(255,255,255,0.06);
  border: 1px solid;
  border-radius: 20px;
  padding: 5px 14px;
  animation: rail-badge-glow 2.2s ease-in-out infinite;
}
@keyframes rail-badge-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46,204,113,0); }
  50% { box-shadow: 0 0 0 4px rgba(46,204,113,0.25); }
}
.rail-track { display: flex; gap: 14px; }
.rail-poster {
  position: relative;
  flex: 1;
  aspect-ratio: 16/9;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(160deg, var(--card-color-1), var(--card-color-2));
  border: 2px solid transparent;
  transition: transform .2s var(--ease-out-soft), border-color .2s var(--ease-out-soft);
  will-change: transform;
}
.rail-poster:hover { transform: translateY(-4px) scale(1.02); }
.rail-poster.active { border-color: #fff; transform: scale(1.06); z-index: 2; }
.rail-poster[data-accent="red"] { --card-color-1:#3a0d0f; --card-color-2:#150404; }
.rail-poster[data-accent="blue"] { --card-color-1:#123a52; --card-color-2:#06121c; }
.rail-poster[data-accent="purple"] { --card-color-1:#33204a; --card-color-2:#0d0714; }
.rail-poster[data-accent="green"] { --card-color-1:#12472e; --card-color-2:#06140d; }
.rail-poster[data-accent="amber"] { --card-color-1:#4a3a0c; --card-color-2:#160f02; }
.rail-poster video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rail-poster::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.05) 55%, rgba(0,0,0,0.15) 100%);
  z-index: 1;
  pointer-events: none;
}
.rail-poster-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.6);
  color: #fff; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.rail-poster.active .rail-poster-play { display: none; }
.rail-poster-title {
  position: absolute; left: 8px; bottom: 8px;
  font-size: 12px; font-weight: 600; color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  z-index: 2;
}
.rail-meta { margin-top: 26px; }
.rail-meta h2 { font-size: 20px; margin: 0 0 6px; }
.rail-meta p { color: var(--gray); margin: 0; max-width: 640px; }

/* Title Takeover — mini title-detail-page simulation, Play starts the show */
.takeover-mock {
  position: relative;
  height: calc(100% - 90px);
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}
.takeover-bg {
  position: absolute; inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at 70% 30%, #33204a 0%, #0a0a0a 70%);
}
.takeover-video, #takeover-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.takeover-scrim {
  position: absolute; inset: 0;
  z-index: 2;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 20%, rgba(0,0,0,0.1) 60%);
  pointer-events: none;
}
.takeover-mock.playing .takeover-scrim { opacity: 0; transition: opacity .3s ease; }
.takeover-content {
  z-index: 3;
  position: absolute; left: 0; bottom: 0; right: 0;
  padding: 40px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 30%, rgba(0,0,0,0));
}
.takeover-sponsor { font-size: 13px; font-weight: 700; letter-spacing: 1px; margin-bottom: 10px; }
.takeover-title { font-size: 34px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.takeover-desc { font-size: 15px; color: #ddd; max-width: 520px; margin-bottom: 22px; }
.takeover-actions { display: flex; gap: 12px; }
.takeover-meta { margin-top: 18px; }
.takeover-meta h2 { font-size: 20px; margin: 0 0 6px; }
.takeover-meta p { color: var(--gray); margin: 0; }

/* info subtype */
.info-panel .tag { color: var(--red); font-weight: 700; letter-spacing: 1px; font-size: 13px; }
.info-panel h2 { font-size: 26px; margin: 10px 0 22px; max-width: 640px; }
.info-panel ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.info-panel li { display: flex; gap: 12px; font-size: 16px; color: #ddd; }
.info-panel li::before { content: ""; width: 8px; height: 8px; background: var(--red); margin-top: 6px; flex-shrink: 0; }

/* stats subtype */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 8px; }
.stat-box { background: rgba(255,255,255,0.04); border-radius: 8px; padding: 22px 18px; }
.stat-box .stat-value { font-size: 32px; font-weight: 800; }
.stat-box .stat-label { color: var(--gray); font-size: 13px; margin-top: 4px; }
.stats-note { color: var(--gray); font-size: 12px; margin-top: 18px; }

/* ================= RESPONSIVE ================= */

/* Tablet & small laptop */
@media (max-width: 1024px) {
  .nf-nav { padding: 16px 28px; }
  .nf-nav-links { gap: 2px; font-size: 13px; }
  .nf-nav-links li { padding: 7px 10px; }
  .hero-content { padding: 0 28px 64px; max-width: 90%; }
  .hero-title { font-size: 48px; }
  .row-section { padding: 0 28px 40px; }
  .view-format { padding: 28px; }
}

/* Tablet portrait / large phone */
@media (max-width: 860px) {
  .nf-nav-links { display: none; }
  .nf-nav-left { gap: 16px; }
  .hero { height: 72vh; min-height: 480px; }
  .hero-content { padding: 0 22px 56px; }
  .hero-title { font-size: 38px; letter-spacing: -0.5px; }
  .hero-desc { font-size: 15px; }
  .hero-tag { font-size: 12px; }
  .hero-scroll-cue { left: 22px; }
  .row-title { font-size: 18px; }
  .row-section { padding: 0 22px 34px; }
  .card { flex: 0 0 200px; height: 122px; padding: 12px; }
  .card .fmt-title { font-size: 14px; }

  .view-format { padding: 20px; }
  .detail-body { flex-direction: column; gap: 20px; }
  .subtopics { width: 100%; }
  .subtopics ul { flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 4px; scrollbar-width: none; }
  .subtopics ul::-webkit-scrollbar { display: none; }
  .subtopic-item { flex: 0 0 auto; white-space: nowrap; }
  .content-panel { padding: 20px; }

  .player-frame { min-height: 220px; }
  .hero-actions { flex-wrap: wrap; }
}

/* Phone */
@media (max-width: 560px) {
  .nf-nav { padding: 14px 16px; }
  .brand-logo .nf, .brand-logo .ads { font-size: 18px; }
  .nf-nav-right { gap: 14px; }
  .pill { display: none; }
  .nf-dropdown { right: 0; }
  .nf-notif-panel { width: calc(100vw - 32px); }

  .hero { height: 78vh; min-height: 460px; margin-top: -70px; }
  .hero-content { padding: 0 16px 44px; max-width: 100%; }
  .hero-title { font-size: 30px; margin-bottom: 12px; }
  .hero-desc { font-size: 14px; margin-bottom: 20px; }
  .hero-actions { gap: 10px; }
  .btn-play, .btn-info { font-size: 14px; padding: 11px 18px; }
  .hero-scroll-cue { display: none; }

  .row-section { padding: 0 16px 28px; }
  .row-title { font-size: 16px; margin-bottom: 10px; }
  .card { flex: 0 0 168px; height: 104px; padding: 10px; border-radius: 6px; }
  .card .fmt-num { font-size: 9px; top: 8px; left: 10px; }
  .card .fmt-title { font-size: 12.5px; }
  .card .fmt-count { font-size: 10px; }
  .card.focused { transform: scale(1.06); }

  .view-format { padding: 14px; }
  #fmt-title { font-size: 24px; }
  .content-panel { padding: 14px; }
  .player-meta h2 { font-size: 17px; }

  .video-controls { gap: 18px; }
  .ctrl-toggle { width: 54px; height: 54px; font-size: 20px; }
  .ctrl-skip { width: 38px; height: 38px; }
  .ctrl-skip .skip-icon { font-size: 14px; }

  .qr-corner img { width: 90px; height: 90px; }
  .pause-overlay img { width: 100px; height: 100px; }
  .pause-card { flex-wrap: wrap; padding: 14px; }
  .pause-card-cta, .pause-expand-btn { margin-left: 0; }
  .endcard-overlay img { max-width: 70%; }

  .takeover-title { font-size: 24px; }
  .takeover-content { padding: 22px; }
  .takeover-actions { flex-wrap: wrap; }

  .rail-track { flex-wrap: nowrap; overflow-x: auto; }
  .rail-poster { flex: 0 0 160px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
