/* =========================================================================
   OG NETWORK — "Color Love" gilded gift-wrap theme
   Palette:
     #E9DBBD Cream      (primary text)
     #CBB682 Champagne  (primary accent / CTAs)
     #A08C5B Antique    (muted text / borders)
     #785F37 Bronze     (secondary accent / warm depth)
     #181510 Espresso   (base background)
   Layout & motion mirror a Prime Video–style streaming app.
   ========================================================================= */

:root {
  /* "Color Love" palette — gilded gift-wrap
     #E9DBBD cream · #CBB682 champagne · #A08C5B antique gold · #785F37 bronze · #181510 espresso */
  --noir: #101010;       /* primary site background */
  --noir-2: #101010;     /* secondary surfaces match the primary bg */
  --noir-3: #1c1813;     /* raised surfaces */
  --panel: #241e15;      /* cards */
  --gold: #cbb682;
  --gold-soft: #e9dbbd;
  --saddle: #785f37;
  --saddle-soft: #a08c5b;
  --silver: #a08c5b;
  --pearl: #e9dbbd;
  --muted: #8a7d60;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.65);
  --gold-glow: 0 0 0 2px rgba(203, 182, 130, 0.55), 0 12px 30px rgba(203, 182, 130, 0.2);
  --nav-h: 56px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  font-synthesis: none;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--noir);
  color: var(--pearl);
  font-family: "Amazon Ember", "Inter", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
/* Prime uses Amazon Ember everywhere — titles included */
.hero-title, .modal-title, .row-title, .page-title, .brand,
.ci-title, .ptitle-lg, .device-chip, .btn {
  font-family: "Amazon Ember", "Inter", "Helvetica Neue", Arial, sans-serif;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--gold); color: var(--noir); }

/* Scrollbars */
::-webkit-scrollbar { height: 10px; width: 10px; }
::-webkit-scrollbar-track { background: var(--noir); }
::-webkit-scrollbar-thumb { background: #3a3122; border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: var(--saddle); }

/* ===================== NAV ===================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  padding-top: env(safe-area-inset-top);
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 clamp(14px, 3vw, 40px);
  z-index: 100;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
  background: linear-gradient(180deg, rgba(16,16,16, 0.92) 0%, rgba(16,16,16, 0) 100%);
}
.nav.scrolled {
  background: rgba(16, 14, 10, 0.97);
  box-shadow: 0 1px 0 rgba(203,182,130, 0.18), 0 8px 24px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 20px;
  white-space: nowrap;
}

.brand-logo {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}
.footer .brand-logo { height: 36px; }
.brand .mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--saddle));
  color: var(--noir);
  font-weight: 900;
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(203,182,130, 0.4);
}
.brand .og-text b { color: var(--gold); }
.brand .tagline {
  display: block;
  font-size: 8.5px;
  letter-spacing: 2.5px;
  color: var(--silver);
  font-weight: 500;
  margin-top: 1px;
}

.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  font-size: 14px;
  color: var(--pearl);
  font-weight: 500;
  position: relative;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-links a:hover { background: rgba(255,255,255,0.08); }
/* Amazon-style filled pill on the active item */
.nav-links a.active {
  color: var(--pearl);
  background: rgba(255,255,255,0.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}
.nav-divider {
  width: 1px; height: 22px;
  background: rgba(160,140,91,0.3);
  margin: 0 4px;
}

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(160,140,91, 0.22);
  border-radius: 999px;
  width: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0;
  transition: width 0.3s var(--ease), opacity 0.25s, padding 0.3s var(--ease);
}
.search-box.open { width: 200px; opacity: 1; padding: 6px 14px; }
.search-box:focus-within { border-color: var(--gold); }
.search-box input {
  background: none; border: none; outline: none;
  color: var(--pearl); font-size: 13px; width: 100%;
}
.search-box input::placeholder { color: var(--muted); }
.icon-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--pearl);
  transition: background 0.2s, color 0.2s;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: rgba(203,182,130, 0.16); color: var(--gold); }

.avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saddle), var(--gold));
  color: var(--noir);
  font-weight: 800;
  display: grid; place-items: center;
  font-size: 12px;
  border: 1px solid rgba(203,182,130, 0.5);
  margin-left: 2px;
}
.prime-pill {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--noir);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  height: clamp(520px, 82vh, 820px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--noir);   /* solid dark title column shows on the left */
}
/* Backdrop image stretches the FULL width of the screen (Amazon-style full bleed) */
.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center top;
  background-size: cover;
  transition: opacity 0.9s var(--ease);
  z-index: 0;
  animation: kenburns 26s ease-in-out infinite alternate;  /* gentle motion for non-trailer slides */
}
@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}
.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 clamp(16px, 5vw, 64px) clamp(48px, 8vh, 96px);
  max-width: 640px;
}
/* The floating key-art poster is not used in the Prime split-hero layout */
.hero-poster { display: none; }

/* Auto-playing trailer video — RIGHT of the text column, above the scrim (no overlay).
   Its left edge feathers out so it blends into the dark with no hard line. */
.hero-video {
  position: absolute;
  top: 0; bottom: 0; right: 0; left: auto;
  width: 66%;
  z-index: 2;                       /* above the scrim → trailer is never darkened */
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 1s var(--ease);
  background: transparent;
  /* wide, smooth left feather + soft bottom fade so the trailer melts into the dark */
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.5) 26%, #000 50%),
    linear-gradient(0deg, transparent 0%, #000 18%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.5) 26%, #000 50%),
    linear-gradient(0deg, transparent 0%, #000 18%);
  mask-composite: intersect;
}
.hero-video.playing { opacity: 1; }
.hero-video video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;          /* fills the hero, no letterboxing, no chrome */
  border: 0;
}
.hero-video iframe {
  position: absolute;
  top: 50%; left: 50%;
  /* oversize + zoom so YouTube's title bar (top) is cropped off-screen */
  transform: translate(-50%, -50%) scale(1.3);
  width: 100vw;
  height: 56.25vw;        /* 16:9 cover */
  min-height: 100%;
  min-width: 177.77vh;
  border: 0;
  pointer-events: none;
}
/* transparent shield over the video so no YouTube UI is ever clickable/hoverable */
.hero-video::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}
/* Smooth, seamless fade — dark at the left/bottom easing to clear, no hard edges.
   Sits BELOW the trailer so it only darkens the cover image / text column. */
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      var(--noir) 0%,
      rgba(16,16,16,0.94) 18%,
      rgba(16,16,16,0.72) 34%,
      rgba(16,16,16,0.42) 50%,
      rgba(16,16,16,0.16) 66%,
      rgba(16,16,16,0) 84%),
    linear-gradient(0deg,
      var(--noir) 0%,
      rgba(16,16,16,0.55) 22%,
      rgba(16,16,16,0.18) 44%,
      rgba(16,16,16,0) 68%),
    linear-gradient(180deg, rgba(16,16,16,0.55) 0%, rgba(16,16,16,0) 16%);
}

.hero-mute {
  position: absolute;
  right: clamp(16px, 4vw, 48px);
  top: clamp(76px, 11vh, 120px);
  z-index: 5;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--pearl);
  border: 1.5px solid rgba(245,245,245,0.6);
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
  transition: all 0.2s;
}
.hero-mute:hover { border-color: var(--gold); color: var(--gold); }
.hero-mute svg { width: 20px; height: 20px; }

.hero-meta .tag-live {
  border-color: var(--gold);
  color: var(--gold-soft);
  font-weight: 700;
}

/* On narrow screens the split doesn't read — the hero becomes a full-bleed
   VERTICAL POSTER frame (the title's portrait key art, in its own 2:3
   proportions) with the muted 30s preview playing inside that frame. The poster
   is what shows first, so it doubles as the clip's opening frame. */
@media (max-width: 860px) {
  .hero {
    height: auto;
    aspect-ratio: 2 / 3;          /* portrait key art — never letterboxed */
    min-height: 520px;
    max-height: 86vh;
  }
  .hero-bg { display: none; }     /* the landscape backdrop isn't used in portrait */
  .hero-poster {
    display: block;
    position: absolute; inset: 0;
    z-index: 0;
  }
  .hero-poster img {
    width: 100%; height: 100%;
    object-fit: cover;            /* fill the frame by cropping — never stretch */
    object-position: center top;
  }
  .hero-video { left: 0; width: 100%; -webkit-mask-image: none; mask-image: none; }
  .hero-content { max-width: 100%; z-index: 3; }
  .hero-scrim {
    background:
      linear-gradient(0deg, var(--noir) 6%, rgba(16,16,16,0.45) 45%, rgba(16,16,16,0.15) 100%),
      linear-gradient(90deg, rgba(16,16,16,0.6) 0%, rgba(16,16,16,0) 60%);
  }
  .hero-mute { top: auto; bottom: 14px; right: 14px; width: 40px; height: 40px; }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 16px;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero-title {
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -1px;
  color: #ffffff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}
.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  margin: 18px 0 14px;
  font-size: 14px; color: var(--silver);
}
.hero-meta .tag {
  border: 1px solid rgba(160,140,91,0.4);
  padding: 1px 8px; border-radius: 4px; font-size: 12px;
}
.hero-meta .premiere { color: var(--gold-soft); font-weight: 600; }
.hero-synopsis {
  font-size: 16px;
  color: #e7e3da;
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 26px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.15s var(--ease), box-shadow 0.2s, background 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: #f6f4ee; color: #0b0b0b; }
.btn-primary:hover { background: #ffffff; box-shadow: 0 6px 22px rgba(0,0,0,0.5); }
.btn-ghost {
  background: rgba(160,140,91, 0.15);
  color: var(--pearl);
  border: 1px solid rgba(160,140,91, 0.3);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(160,140,91, 0.28); }
.btn svg { width: 18px; height: 18px; }

.hero-dots {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(34px, 6vh, 70px);
  z-index: 3;
  display: flex; gap: 9px; justify-content: center;
}
.hero-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(233,219,189,0.4);
  transition: background 0.3s, transform 0.3s;
}
.hero-dots button.active { background: var(--gold-soft); transform: scale(1.25); }

/* ===================== ROWS / CAROUSELS ===================== */
.rows { padding: 28px 0 60px; position: relative; z-index: 3; margin-top: -60px; }
.row { margin-bottom: 38px; }
.row-head {
  display: flex; align-items: baseline; gap: 12px;
  padding: 0 clamp(16px, 5vw, 64px);
  margin-bottom: 14px;
}
.row-title { font-size: clamp(18px, 2vw, 23px); font-weight: 700; }
.row-title .accent { color: var(--gold); }
.row-sub { font-size: 13px; color: var(--muted); }

.row-track-wrap { position: relative; }
.row-track {
  display: flex;
  gap: 14px;
  padding: 26px clamp(16px, 5vw, 64px) 34px;  /* headroom so hover-scale isn't clipped */
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.row-track::-webkit-scrollbar { display: none; }

.row-arrow {
  position: absolute;
  top: 0; bottom: 18px;
  width: clamp(40px, 5vw, 64px);
  z-index: 5;
  display: grid; place-items: center;
  color: var(--pearl);
  background: linear-gradient(90deg, rgba(0,0,0,0.85), rgba(0,0,0,0));
  opacity: 0;
  transition: opacity 0.25s;
}
.row-arrow.right { right: 0; transform: scaleX(-1); }
.row-arrow.left { left: 0; }
.row-track-wrap:hover .row-arrow { opacity: 1; }
.row-arrow:hover { color: var(--gold); }
.row-arrow svg { width: 30px; height: 30px; }

/* ===================== TOP 10 (ranked row) ===================== */
.top10-item {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;   /* numerals sit vertically centered on the cards */
}
.top10-rank {
  font-family: "Amazon Ember", "Inter", Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(86px, 9vw, 150px);
  line-height: 0.72;
  letter-spacing: -0.045em;
  white-space: nowrap;
  margin-right: -0.12em;          /* poster overlaps the numeral, Prime-style */
  /* polished glass gold: bright top highlight, gold body, soft reflective base */
  background: linear-gradient(176deg,
      #f4ead0 0%,    /* bright cream highlight */
      #e9dbbd 20%,   /* soft gold */
      #a7865d 47%,   /* OG Network logo gold (metallic core) */
      #8a6e48 53%,   /* bronze glass break */
      #cbb488 72%,   /* gold */
      #efe3c6 100%); /* reflective cream base */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.75px rgba(255,244,214,0.40);
  /* glassy sheen + gentle depth — a soft shine, not a glow */
  text-shadow:
      0 -1px 1px rgba(255,250,235,0.25),
      0 2px 4px rgba(60,45,25,0.50),
      0 6px 18px rgba(0,0,0,0.40);
  filter: drop-shadow(0 0 5px rgba(167,134,93,0.40));
  user-select: none;
  z-index: 0;
  align-self: center;
}
.top10-item .card { z-index: 1; }
.top10-track { gap: 22px; }


/* ===================== CARD ===================== */
.card {
  position: relative;
  flex: 0 0 auto;
  border-radius: var(--radius);
  background: var(--panel);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
  cursor: pointer;
}
.card--landscape { width: clamp(240px, 26vw, 348px); }
/* OG Originals use the larger Prime "Featured Originals" portrait size */
.card--portrait  { width: clamp(255px, 25vw, 375px); }
/* Prime-style hover: brief delay, gentle scale, bright outline, reveal info panel */
.card {
  transition: transform 0.26s var(--ease), box-shadow 0.26s var(--ease), outline-color 0.26s var(--ease);
  transition-delay: 0s;
  transform-origin: center center;
  outline: 2px solid transparent;
  outline-offset: -1px;
}
.card:hover {
  transform: translateY(-8px) scale(1.09);
  transition-delay: 0.12s;          /* Prime waits a beat before expanding */
  outline-color: rgba(255,255,255,0.92);
  box-shadow: 0 24px 54px rgba(0,0,0,0.72);
  z-index: 6;
}
.poster {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(150deg, #1a1206, #000);
}
.card--landscape .poster { aspect-ratio: 16 / 9; }
.card--portrait  .poster { aspect-ratio: 2 / 3; }
/* little play glyph on titles that carry a trailer */
.play-hint {
  position: absolute;
  right: 10px; bottom: 10px;
  z-index: 2;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(245,245,245,0.5);
  color: var(--pearl);
  opacity: 0; transition: opacity 0.2s;
}
.play-hint svg { width: 13px; height: 13px; }
.card:hover .play-hint { opacity: 1; }


.poster-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease);
}
.card:hover .poster-img { transform: scale(1.04); }
.poster-img.img-fallback {
  /* graceful fallback if a remote poster fails to load */
  min-height: 100%;
  background: radial-gradient(120% 90% at 75% 12%, #5a3a12, transparent 55%),
              linear-gradient(150deg, #1a1206, #000);
  color: var(--gold-soft);
  display: grid; place-items: center;
  font-weight: 800; font-size: 14px; text-align: center; padding: 12px;
}
.poster .pbadge {
  position: absolute; top: 10px; left: 10px;
  z-index: 2;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(203,182,130,0.6);
  color: var(--gold-soft);
  backdrop-filter: blur(2px);
  transition: opacity 0.2s var(--ease);
}
.poster .ptitle {
  font-size: clamp(17px, 1.4vw, 22px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.3px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}
.poster .pfilm {
  font-size: 10px;
  letter-spacing: 3px;
  color: rgba(245,245,245,0.65);
  font-weight: 600;
}

.card-info {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  padding: 18px 12px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,0.96) 8%, rgba(0,0,0,0.55) 60%, transparent);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
/* show controls + info only once the hover trailer starts (so it overlays the
   moving video, not the poster's own baked-in title art) */
.card.previewing .card-info {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
/* once the info overlay opens, fade the corner badge + play hint so they don't
   collide with the action buttons */
.card.previewing .pbadge,
.card.previewing .play-hint { opacity: 0; pointer-events: none; }
.card-info .ci-title { font-size: 15px; font-weight: 700; margin-top: 9px; line-height: 1.15; }
.card-info .ci-meta { font-size: 11px; color: var(--silver); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 9px; }
.card-info .ci-rating { border: 1px solid rgba(160,140,91,0.5); padding: 0 5px; border-radius: 3px; font-size: 10px; }
.card-info .ci-desc {
  font-size: 11.5px; color: #cfcabf; line-height: 1.45; margin-top: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card--portrait .ci-desc { display: none; }
.card-info .ci-actions { display: flex; gap: 7px; }
.ci-btn {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--silver);
  color: var(--pearl);
  transition: all 0.18s;
}
.ci-btn.play { background: #f6f4ee; border-color: #f6f4ee; color: #0b0b0b; }
.ci-btn:hover { border-color: #fff; color: #fff; }
.ci-btn.play:hover { color: #0b0b0b; background: #ffffff; }
.ci-btn svg { width: 15px; height: 15px; }
.ci-btn.added { background: var(--saddle); border-color: var(--saddle); color: var(--pearl); }

/* ===================== GRID PAGE (browse) ===================== */
.page { padding: calc(var(--nav-h) + 28px) clamp(16px, 5vw, 64px) 80px; min-height: 100vh; }
.page-title { font-size: clamp(26px, 4vw, 40px); font-weight: 800; margin-bottom: 6px; }
.page-title .accent { color: var(--gold); }
.page-sub { color: var(--muted); margin-bottom: 26px; font-size: 15px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  border: 1px solid rgba(160,140,91,0.25);
  color: var(--silver);
  transition: all 0.2s;
}
.chip:hover { border-color: var(--gold); color: var(--pearl); }
.chip.active { background: var(--gold); color: var(--noir); border-color: var(--gold); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px 16px;
}
.grid .card { width: 100%; }
.empty { color: var(--muted); padding: 60px 0; text-align: center; font-size: 16px; }

/* ===================== MODAL (detail) ===================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(6px);
  display: grid; place-items: start center;
  padding: 70px 16px 40px;
  overflow-y: auto;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  width: min(920px, 100%);
  background: var(--noir-3);
  border: 1px solid rgba(203,182,130,0.22);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s var(--ease);
}
.modal-overlay.open .modal { transform: none; }
.modal-hero {
  position: relative;
  height: clamp(240px, 38vh, 380px);
  display: flex; align-items: flex-end;
  padding: 28px clamp(20px, 4vw, 44px);
}
.modal-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--noir-3) 4%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.5));
}
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 4;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,0.6); color: var(--pearl);
  display: grid; place-items: center;
  border: 1px solid rgba(160,140,91,0.25);
}
.modal-close:hover { background: var(--gold); color: var(--noir); }
.modal-keyart {
  position: absolute;
  right: clamp(20px, 4vw, 44px);
  bottom: -40px;
  z-index: 3;
  width: clamp(110px, 14vw, 170px);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.7), 0 0 0 1px rgba(203,182,130,0.4);
}
@media (max-width: 640px) { .modal-keyart { display: none; } }
.modal-hero-content { position: relative; z-index: 2; }
.modal-hero .hero-badge { margin-bottom: 10px; }
.modal-title { font-size: clamp(28px, 4vw, 48px); font-weight: 800; line-height: 1.04; color: #ffffff; }
.modal-body { padding: 22px clamp(20px, 4vw, 44px) 36px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.modal-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; }
.modal-synopsis { font-size: 15.5px; line-height: 1.7; color: #e7e3da; }
.modal-meta-list { font-size: 14px; line-height: 2; color: var(--silver); }
.modal-meta-list b { color: var(--muted); font-weight: 500; }
.modal-meta-list span { color: var(--pearl); }
.rating-pill {
  display: inline-block; border: 1px solid var(--silver);
  padding: 1px 7px; border-radius: 4px; font-size: 12px; margin-right: 8px;
}
@media (max-width: 640px) { .modal-grid { grid-template-columns: 1fr; gap: 18px; } }

/* ===================== PLAYER ===================== */
.player-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: #000;
  display: none;
  flex-direction: column;
}
.player-overlay.open { display: flex; }
.player-stage {
  flex: 1;
  position: relative;
  display: grid; place-items: center;
  overflow: hidden;
}
.player-stage .vibe { position: absolute; inset: 0; filter: saturate(0.7) brightness(0.5); }
.player-center { position: relative; z-index: 2; text-align: center; }
.player-center .ptitle-lg { font-size: clamp(30px, 6vw, 68px); font-weight: 800; letter-spacing: -1px; }
.player-center .pnote { color: var(--silver); margin-top: 10px; font-size: 14px; }
.play-ring {
  width: 92px; height: 92px; border-radius: 50%;
  margin: 0 auto 22px;
  display: grid; place-items: center;
  background: var(--gold); color: var(--noir);
  box-shadow: var(--gold-glow);
  animation: pulse 2.2s infinite;
}
.play-ring svg { width: 40px; height: 40px; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(203,182,130,0.5); }
  50% { box-shadow: 0 0 0 22px rgba(203,182,130,0); }
}
.player-bar {
  padding: 18px clamp(16px, 4vw, 48px) 26px;
  background: linear-gradient(0deg, #000 30%, transparent);
  position: absolute; inset: auto 0 0 0; z-index: 3;
}
.scrub { height: 5px; border-radius: 4px; background: rgba(160,140,91,0.25); overflow: hidden; margin-bottom: 14px; }
.scrub .fill { height: 100%; width: 0; background: var(--gold); transition: width 0.2s linear; }
.player-controls { display: flex; align-items: center; gap: 18px; color: var(--pearl); }
.player-controls .pc-title { font-weight: 700; margin-left: auto; color: var(--silver); }
.player-controls button:hover { color: var(--gold); }
.player-controls svg { width: 24px; height: 24px; }
.player-back {
  position: absolute; top: 20px; left: clamp(16px,4vw,40px); z-index: 4;
  display: flex; align-items: center; gap: 8px;
  color: var(--pearl); font-weight: 600;
}
.player-back:hover { color: var(--gold); }

/* ===================== DEVICES STRIP / FOOTER ===================== */
.devices {
  padding: 50px clamp(16px, 5vw, 64px);
  border-top: 1px solid rgba(203,182,130,0.14);
  text-align: center;
}
.devices h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.devices p { color: var(--muted); margin-bottom: 24px; }
.device-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.device-chip {
  padding: 10px 20px; border-radius: 999px;
  border: 1px solid rgba(160,140,91,0.25);
  font-size: 14px; font-weight: 600; color: var(--silver);
  background: var(--noir-2);
}
.device-chip:hover { border-color: var(--gold); color: var(--gold); }

.footer {
  background: var(--noir-2);
  border-top: 1px solid rgba(160,140,91,0.1);
  padding: 48px clamp(16px, 5vw, 64px) 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px; margin: 0 auto;
}
.footer h4 { color: var(--gold); font-size: 13px; letter-spacing: 1px; margin-bottom: 14px; text-transform: uppercase; }
.footer a, .footer p { display: block; color: var(--silver); font-size: 14px; margin-bottom: 10px; }
.footer a:hover { color: var(--pearl); }
.footer .socials { display: flex; gap: 12px; margin-top: 14px; }
.footer .socials a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(160,140,91,0.25);
  display: grid; place-items: center; margin: 0;
}
.footer .socials a:hover { border-color: var(--gold); color: var(--gold); }
.footer-bottom {
  max-width: 1200px; margin: 30px auto 0; padding-top: 22px;
  border-top: 1px solid rgba(160,140,91,0.1);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  color: var(--muted); font-size: 12.5px;
}

/* ===================== MISC PAGES ===================== */
.simple-card {
  background: var(--noir-3);
  border: 1px solid rgba(160,140,91,0.12);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 18px;
}
.simple-card h3 { color: var(--gold); margin-bottom: 8px; font-size: 18px; }
.simple-card p { color: var(--silver); line-height: 1.6; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.field {
  flex: 1; min-width: 200px;
  background: var(--noir); border: 1px solid rgba(160,140,91,0.2);
  border-radius: 8px; padding: 12px 14px; color: var(--pearl); font-size: 14px;
}
.field:focus { outline: none; border-color: var(--gold); }
.field.err { border-color: #e0605a; }
.rows-more { height: 1px; }
.page .rows--screen { margin: 0 calc(-1 * clamp(16px, 5vw, 64px)) 10px; padding: 0 0 6px; }   /* rows carry the page gutter themselves: bleed them to the page edge */
@media (max-width: 860px) { .page .rows--screen { margin-left: -16px; margin-right: -16px; } }        /* the phone gutter is a flat 16px */
.sec-head { margin: 10px 0 14px; }
.sec-head .row-title { margin: 0; }
.grid--square .card { aspect-ratio: 1 / 1; }
.rows-loading { height: 180px; border-radius: 12px; background: linear-gradient(90deg, rgba(255,255,255,.03), rgba(255,255,255,.07), rgba(255,255,255,.03)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; margin-bottom: 24px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; opacity: 0; }
.submit-msg { margin-top: 12px; font-size: 14px; color: var(--silver); }
.submit-msg.err { color: #ff8a80; }
.submit-done { padding: 6px 0 2px; }
.submit-done h3 { color: var(--gold); margin-bottom: 6px; }
.submit-done p { color: var(--silver); line-height: 1.6; }
.submit-done b { color: var(--pearl); font-weight: 600; }

.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--noir-3); border: 1px solid var(--gold);
  color: var(--pearl); padding: 12px 22px; border-radius: 999px;
  font-size: 14px; z-index: 400; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: all 0.3s var(--ease);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 860px) {
  .brand .tagline { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .prime-pill { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; justify-content: center; }
}

/* ===================== INLINE EXPAND-ON-HOVER (OG Originals) ===================== */
/* the portrait card grows in place (pushing neighbors) into a horizontal preview */
.card--portrait { transition: width 0.38s ease-in-out, transform 0.38s ease-in-out; will-change: width, transform; }
.card--portrait:hover { transform: none; box-shadow: none; outline: none; }  /* no scale; expansion handles it */
.card--portrait:hover .poster-img { transform: none; }  /* kill the inner poster zoom — only the horizontal fade/expand should play */
.card--portrait .card-info { display: none; }                                 /* use the expanded info instead */
.card--portrait.expanded {
  width: var(--exp-w) !important;
  transform: translateX(var(--exp-shift, 0px)) !important;
  position: relative;
  z-index: 20;
  box-shadow: 0 24px 60px rgba(0,0,0,0.7), 0 0 0 1px rgba(203,182,130,0.4);
}
.card--portrait.expanded .poster { aspect-ratio: auto; height: 100%; }
/* cross-fade the vertical poster out as the horizontal cover fades in */
.card--portrait .poster-img { transition: opacity 0.3s var(--ease); }
.card--portrait.expanded .poster-img { opacity: 0; }

.exp-media { position: absolute; inset: 0; z-index: 3; overflow: hidden; border-radius: inherit; opacity: 0; transition: opacity 0.4s var(--ease); }
.card--portrait.expanded .exp-media { opacity: 1; }
.exp-bg { position: absolute; inset: 0; background-size: cover; }
.exp-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s var(--ease); }
.exp-video.in { opacity: 1; }
.hc-mute {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  border: 1.5px solid rgba(255,255,255,0.7); background: rgba(0,0,0,0.4);
}
.hc-mute:hover { border-color: var(--gold); color: var(--gold); }
.hc-mute svg { width: 17px; height: 17px; }
.exp-info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  padding: 16px;
  background: linear-gradient(0deg, rgba(0,0,0,0.94) 6%, rgba(0,0,0,0.45) 55%, transparent);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.35s var(--ease) 0.08s, transform 0.35s var(--ease) 0.08s;
}
.card--portrait.expanded .exp-info { opacity: 1; transform: none; }
.exp-info .hc-actions { display: flex; gap: 8px; margin-bottom: 11px; }
.exp-info .hc-title { font-size: 18px; font-weight: 800; margin-bottom: 6px; color: var(--pearl); }
.exp-info .hc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; font-size: 12.5px; color: var(--silver); }


/* ===================== AUTH GATE ===================== */
.auth-gate {
  position: fixed; inset: 0; z-index: 600;
  display: none; place-items: center;
  background: var(--noir);
  opacity: 0; transition: opacity 0.35s var(--ease);
  padding: 24px; overflow: hidden;
}
.auth-gate.open { display: grid; opacity: 1; }

/* --- animated wall of Top 10 posters --- */
.auth-wall {
  position: absolute; inset: -14% -10%; z-index: 0;
  display: flex; gap: 16px;
  transform: rotate(-9deg) scale(1.28);
  filter: saturate(1.06);
  pointer-events: none;
}
.auth-col { flex: 1 1 0; overflow: hidden; }
.auth-col-inner {
  display: flex; flex-direction: column; gap: 16px;
  animation: authScroll 70s linear infinite;
  will-change: transform;
}
.auth-col.c1 .auth-col-inner, .auth-col.c3 .auth-col-inner { animation-direction: reverse; }
.auth-col.c1 .auth-col-inner { animation-duration: 84s; }
.auth-col.c2 .auth-col-inner { animation-duration: 76s; }
.auth-col.c3 .auth-col-inner { animation-duration: 92s; }
.auth-col.c4 .auth-col-inner { animation-duration: 64s; }
.auth-poster {
  width: 100%; aspect-ratio: 2 / 3; border-radius: 12px;
  background-size: cover; background-position: center;
  box-shadow: 0 14px 34px rgba(0,0,0,0.55);
  outline: 1px solid rgba(255,255,255,0.05);
}
@keyframes authScroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }

/* --- darkening + gold glow so the card pops --- */
.auth-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(58% 55% at 50% 46%, rgba(203,182,130,0.10) 0%, rgba(16,16,16,0) 60%),
    radial-gradient(95% 75% at 50% 45%, rgba(16,16,16,0.30) 0%, rgba(16,16,16,0.84) 52%, rgba(16,16,16,0.98) 100%),
    linear-gradient(180deg, rgba(16,16,16,0.92) 0%, rgba(16,16,16,0.55) 38%, rgba(16,16,16,0.96) 100%);
}

/* --- glass card --- */
.auth-card {
  position: relative; z-index: 2;
  width: min(430px, 100%);
  background: linear-gradient(180deg, rgba(28,24,17,0.72), rgba(16,15,12,0.78));
  border: 1px solid rgba(203,182,130,0.30);
  border-radius: 18px;
  -webkit-backdrop-filter: blur(22px) saturate(1.1); backdrop-filter: blur(22px) saturate(1.1);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 30px 80px rgba(0,0,0,0.65), 0 0 60px rgba(203,182,130,0.16);
  padding: 40px 34px;
  text-align: center;
  animation: authRise 0.5s var(--ease) both;
}
@keyframes authRise { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.auth-logo { height: 63px; width: auto; margin: 0 auto 14px; filter: drop-shadow(0 4px 14px rgba(0,0,0,0.5)); }
.auth-eyebrow {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 10px; opacity: 0.9;
}
.auth-title { font-size: 28px; font-weight: 800; color: var(--pearl); margin-bottom: 6px; letter-spacing: -0.4px; }
.auth-sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; line-height: 1.4; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-field {
  background: rgba(0,0,0,0.45); border: 1px solid rgba(203,182,130,0.22);
  border-radius: 10px; padding: 14px 15px; color: var(--pearl); font-size: 15px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.auth-field::placeholder { color: rgba(138,125,96,0.85); }
.auth-field:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(203,182,130,0.18); }
.auth-field:-webkit-autofill, .auth-field:-webkit-autofill:hover, .auth-field:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--pearl);
  -webkit-box-shadow: 0 0 0 40px rgba(20,18,14,0.98) inset;
  caret-color: var(--pearl); border-color: rgba(203,182,130,0.22);
}
.auth-submit { justify-content: center; margin-top: 8px; font-weight: 700; letter-spacing: 0.3px; }
.auth-switch { margin-top: 22px; color: var(--muted); font-size: 14px; }
.auth-link { color: var(--gold); font-weight: 600; }
.auth-link:hover { text-decoration: underline; }
/* the gate is optional: an X on the card (the scrim, Esc and "Not now" close it too) */
.auth-x {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--muted); background: rgba(255,255,255,0.04); border: 1px solid rgba(203,182,130,0.18);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.auth-x svg { width: 18px; height: 18px; }
.auth-x:hover, .auth-x:focus-visible { color: var(--pearl); background: rgba(203,182,130,0.16); border-color: rgba(203,182,130,0.45); outline: none; }
.auth-perks { list-style: none; margin: -8px 0 22px; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.auth-perks li { position: relative; padding-left: 22px; color: var(--pearl); font-size: 13.5px; line-height: 1.4; }
.auth-perks li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(203,182,130,0.7); }
.auth-fine { margin-top: 12px; color: var(--muted); font-size: 11.5px; line-height: 1.45; }
.auth-gate { cursor: default; }
/* guests: a "Sign up" pill in the top bar (phones have the Me tab) */
.nav-join {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.3px; white-space: nowrap;
  color: var(--gold-soft); background: rgba(203,182,130,0.08);
  border: 1px solid rgba(203,182,130,0.55); border-radius: 999px; padding: 6px 13px;
  transition: background 0.2s, color 0.2s;
}
.nav-join:hover { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: var(--noir); }
.nav-join[hidden] { display: none; }
/* phones: the pill stays (a guest's watchlist icon makes room for it) */
@media (max-width: 520px) {
  .nav-join { padding: 5px 10px; font-size: 11.5px; }
  body.guest .nav-dd-wrap:has(> [data-dd="dd-wl"]) { display: none; }
}

/* ===================== EMAIL CAPTURE (capture.js) ===================== */
.cap-field {
  background: rgba(0,0,0,0.45); border: 1px solid rgba(203,182,130,0.28);
  border-radius: 999px; padding: 12px 16px; color: var(--pearl); font-size: 15px; font: inherit;
  min-width: 0; flex: 1 1 200px; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.cap-field::placeholder { color: rgba(138,125,96,0.9); }
.cap-field:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(203,182,130,0.18); }
.cap-field.err { border-color: rgba(255,100,100,0.75); }
.cap-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cap-form .btn { white-space: nowrap; }
.cap-done { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.cap-done-t { margin: 0; color: var(--silver); font-size: 14.5px; line-height: 1.45; }
.cap-x { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); font-size: 20px; line-height: 1; flex: 0 0 auto; }
.cap-x:hover { color: var(--pearl); background: rgba(203,182,130,0.16); }

/* the inline band on Home, Movies, Live TV, Originals, Trivia, Search and the account page */
.cap-band { margin: 34px clamp(16px, 5vw, 64px) 40px; }
.page .cap-band, .ogx-page .cap-band { margin-left: 0; margin-right: 0; }
.cap-band-in {
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
  padding: 26px 30px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(40,32,18,0.9), rgba(16,15,12,0.96));
  border: 1px solid rgba(203,182,130,0.28);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45), inset 0 0 80px rgba(203,182,130,0.05);
}
.cap-band-text { flex: 1 1 320px; min-width: 0; }
.cap-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; }
.cap-kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(203,182,130,0.8); }
.cap-title { margin: 0 0 4px; font-size: clamp(19px, 2.2vw, 24px); font-weight: 800; color: var(--pearl); letter-spacing: -0.3px; }
.cap-sub { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.cap-band .cap-form { flex: 1 1 360px; justify-content: flex-end; }
.cap-band .cap-field { max-width: 340px; }
@media (max-width: 860px) {
  .cap-band { margin: 22px 16px 28px; }
  .cap-band-in { padding: 20px 18px; }
  .cap-band .cap-form { flex-basis: 100%; }
  .cap-band .cap-field { max-width: none; }
  .cap-band .cap-form .btn, .cap-done .btn { flex: 0 0 auto; }
}

/* the bottom bar: a guest's standing invitation, closable for the session, never over the player */
.cap-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
  padding: 10px clamp(12px, 3vw, 28px) calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(20,17,12,0.96), rgba(12,11,9,0.98));
  border-top: 1px solid rgba(203,182,130,0.28);
  box-shadow: 0 -12px 40px rgba(0,0,0,0.5);
  animation: capRise 0.45s var(--ease) both;
}
.cap-bar[hidden] { display: none; }
@keyframes capRise { from { transform: translateY(100%); } to { transform: none; } }
.cap-bar-in { display: flex; align-items: center; gap: 14px; max-width: 1200px; margin: 0 auto; }
.cap-bar-text { margin: 0; flex: 1 1 260px; min-width: 0; color: var(--silver); font-size: 14px; line-height: 1.35; }
.cap-bar-text b { color: var(--pearl); }
.cap-bar .cap-form { flex: 0 1 460px; flex-wrap: nowrap; }
.cap-bar .cap-field { padding: 10px 14px; font-size: 14px; }
.cap-bar-go { padding: 10px 16px; font-size: 14px; }
body.cap-bar-on .footer { padding-bottom: 90px; }
@media (max-width: 860px) {
  .cap-bar { bottom: var(--tabbar-h, 52px); padding: 10px 14px 10px; }
  .cap-bar-in { flex-wrap: wrap; gap: 8px 10px; }
  .cap-bar-text { flex-basis: calc(100% - 46px); font-size: 13px; }
  .cap-bar .cap-form { flex: 1 1 100%; order: 3; }
  .cap-bar .cap-x { order: 2; }
  body.cap-bar-on #app { padding-bottom: calc(var(--tabbar-h, 52px) + 128px); }
}
body[data-route="clips"] .cap-bar, body[data-route="studio"] .cap-bar, body[data-route="admin"] .cap-bar { display: none; }

/* in the player: a card over the stage when a guest pauses */
.cap-pause {
  position: absolute; left: 0; right: 0; bottom: 104px; z-index: 5; margin: 0 auto;
  width: min(380px, calc(100% - 24px)); padding: 18px 18px 16px; border-radius: 16px; text-align: center;
  background: linear-gradient(180deg, rgba(28,24,17,0.94), rgba(16,15,12,0.97));
  border: 1px solid rgba(203,182,130,0.32); box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  animation: capFade 0.4s var(--ease) both;
}
@keyframes capFade { from { opacity: 0; } to { opacity: 1; } }
.cap-pause .cap-x { position: absolute; top: 6px; right: 6px; }
.cap-pause-t { margin: 0 0 4px; font-size: 17px; font-weight: 800; color: var(--pearl); }
.cap-pause-s { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.cap-pause .cap-form { flex-wrap: nowrap; }
.cap-pause .cap-field { padding: 10px 14px; font-size: 14px; }
.cap-pause .cap-form .btn, .cap-pause > .btn { padding: 10px 14px; font-size: 14px; }
.cap-pause .cap-done { justify-content: center; }
@media (max-aspect-ratio: 4/5) { .cap-pause { bottom: 140px; } }

/* phones: a guest's Me tab is the Join tab */
.tab--join .tab-av { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: #1a1610; font-size: 15px; font-weight: 800; box-shadow: 0 0 10px rgba(203,182,130,0.55); }
.tab--join .tab-l { color: var(--gold-soft); }
.pg-manage {
  margin-top: 40px; color: var(--silver); border: 1px solid rgba(192,192,192,0.4);
  padding: 10px 22px; border-radius: 6px; font-size: 14px; font-weight: 600;
}
.pg-manage:hover { color: var(--pearl); border-color: var(--pearl); }
.pg-av img, .avatar img, .dd-av img, .pf-av img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.avatar { overflow: hidden; }
.avatar img { border-radius: 50%; }
.pg-av { overflow: hidden; }

/* ===================== ACCOUNT PAGE ===================== */
.account-page { max-width: 980px; margin: 0 auto; }
.acct-tabs {
  display: flex; flex-wrap: wrap; gap: 4px;
  border-bottom: 1px solid rgba(192,192,192,0.18);
  margin: 8px 0 26px;
}
.acct-tab {
  padding: 12px 16px; font-size: 14.5px; font-weight: 600; color: var(--silver);
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 0.2s, border-color 0.2s;
}
.acct-tab:hover { color: var(--pearl); }
.acct-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.acct-body { display: flex; flex-direction: column; gap: 18px; }
.set-card {
  position: relative;
  background: var(--noir-3); border: 1px solid rgba(192,192,192,0.12);
  border-radius: var(--radius-lg); padding: 24px 26px;
}
.set-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; color: var(--pearl); }
.set-p { color: var(--silver); font-size: 14px; line-height: 1.6; margin-bottom: 14px; }
.set-kv { display: flex; gap: 14px; padding: 9px 0; border-top: 1px solid rgba(192,192,192,0.08); font-size: 14.5px; }
.set-kv b { color: var(--muted); font-weight: 500; min-width: 130px; }
.set-kv span { color: var(--pearl); }
.set-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.set-badge { display: inline-block; background: var(--gold); color: var(--noir); font-size: 10px; font-weight: 800; letter-spacing: 0.5px; padding: 3px 8px; border-radius: 4px; margin-bottom: 10px; }
.set-empty { color: var(--muted); padding: 16px 0; }

.set-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; border-top: 1px solid rgba(192,192,192,0.08); }
.set-row:first-of-type { border-top: none; }
.set-label { font-size: 15px; font-weight: 600; color: var(--pearl); }
.set-desc { font-size: 13px; color: var(--muted); margin-top: 3px; }
.switch { width: 46px; height: 26px; border-radius: 999px; background: rgba(192,192,192,0.3); position: relative; flex: 0 0 auto; transition: background 0.2s; }
.switch span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left 0.2s var(--ease); }
.switch.on { background: var(--gold); }
.switch.on span { left: 23px; }

/* profile editor */
.pf-edit { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid rgba(192,192,192,0.08); }
.pf-av { width: 60px; height: 60px; border-radius: 10px; flex: 0 0 auto; display: grid; place-items: center; font-size: 26px; font-weight: 800; color: var(--noir); overflow: hidden; }
.pf-body { flex: 1; min-width: 0; }
.pf-name { font-weight: 700; margin-bottom: 8px; }
.pf-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-preset { width: 34px; height: 34px; border-radius: 8px; background-size: cover; background-position: center; border: 2px solid transparent; transition: border-color 0.15s, transform 0.15s; }
.pf-preset:hover { border-color: var(--gold); transform: scale(1.08); }
.pf-clear { display: grid; place-items: center; background: rgba(255,255,255,0.08); color: var(--silver); font-size: 13px; }
.pf-upload { cursor: pointer; flex: 0 0 auto; }

/* watch history / device rows */
.hist-row { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(192,192,192,0.08); }
.hist-art { width: 110px; aspect-ratio: 16/9; border-radius: 7px; background-size: cover; background-position: center; flex: 0 0 auto; }
.hist-title, .dev-name { flex: 1; font-weight: 600; font-size: 15px; }
.hist-del { color: var(--gold); font-size: 14px; font-weight: 600; white-space: nowrap; }
.hist-del:hover { text-decoration: underline; }
@media (max-width: 600px) { .hist-art { width: 80px; } .set-kv b { min-width: 90px; } }

/* ===================== NAV DROPDOWN MENUS ===================== */
.nav-dd-wrap { position: relative; }
.nav-dd {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  /* frosted glass */
  background: rgba(18, 16, 12, 0.45);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
          backdrop-filter: blur(22px) saturate(1.3);
  padding: 18px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
  z-index: 120;
}
.nav-dd.open { opacity: 1; transform: none; pointer-events: auto; }
/* hover bridge so moving from the icon into the panel doesn't close it */
.nav-dd::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.nav-dd--wide { min-width: 460px; }
.nav-dd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.nav-dd h4 {
  font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase;
  color: #E9DBBD; margin-bottom: 12px; font-weight: 700;
}
.dd-link {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left;
  padding: 8px 10px; border-radius: 7px;
  font-size: 14px; color: #ffffff;
  transition: background 0.15s, color 0.15s;
}
.dd-link:hover { background: rgba(255,255,255,0.12); color: #ffffff; }
.dd-profile.active { color: var(--gold); }
.dd-av {
  width: 26px; height: 26px; border-radius: 6px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--noir);
}
.dd-plus {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; border: 1px solid var(--silver); font-size: 16px;
}
@media (max-width: 640px) {
  .nav-dd--wide { min-width: 280px; }
  .nav-dd-cols { grid-template-columns: 1fr; }
  .nav-dd--right { right: -40px; }
}

/* ===================== PRIME FUNCTIONALITY ADD-ONS ===================== */

/* Profiles gate */
.profile-gate {
  position: fixed; inset: 0; z-index: 500;
  background: var(--noir);
  display: none; place-items: center;
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.profile-gate.open { display: grid; opacity: 1; }
.pg-title { font-size: clamp(26px, 4vw, 44px); font-weight: 700; text-align: center; margin-bottom: 36px; color: var(--pearl); }
.pg-row { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; }
.pg-profile { display: flex; flex-direction: column; align-items: center; gap: 12px; opacity: 0.7; transition: opacity 0.2s, transform 0.2s var(--ease); }
.pg-profile:hover { opacity: 1; transform: translateY(-4px); }
.pg-av {
  width: clamp(96px, 12vw, 150px); aspect-ratio: 1; border-radius: 12px;
  display: grid; place-items: center; font-size: 44px; font-weight: 800; color: var(--noir);
  border: 3px solid transparent; transition: border-color 0.2s;
}
.pg-profile:hover .pg-av { border-color: var(--gold); }
.pg-name { font-size: 16px; color: var(--silver); }
.pg-profile:hover .pg-name { color: var(--pearl); }

/* Continue Watching progress bar on cards */
.card-progress {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  height: 4px; background: rgba(255,255,255,0.25);
}
.card-progress span { display: block; height: 100%; background: var(--gold); }

/* Card hover preview video */
.card-preview {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  animation: fadein 0.4s var(--ease);
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* Real player */
.ep-art.ep-art-v { width: 54px; min-width: 54px; height: 92px; aspect-ratio: auto; background-size: cover; background-position: center top; border-radius: 8px; }
.pv { width: 100%; height: 100%; object-fit: contain; background: #000; }
/* Vertical (9:16) films — reels-style. Fill the frame top-to-bottom; on portrait screens fill edge-to-edge like reels. */
.pv.pv-vertical { object-fit: contain; }
@media (max-aspect-ratio: 4/5) { .pv.pv-vertical { object-fit: cover; } }
.stage-vertical { background: #000; }
/* A vertical show uploaded inside a 16:9 file (poster art or black at the sides, frame_probe.py): the
   picture is the middle 9:16, so the element is cut to that shape and the video covers it — the same
   presentation a true 9:16 upload gets, on every screen. */
.pv.pv-boxed { object-fit: cover; object-position: var(--box-x, 50%) 50%; }
.player-stage.stage-boxed .pv.pv-boxed { width: auto; height: 100%; aspect-ratio: 9 / 16; max-width: 100%; }
@media (max-aspect-ratio: 4/5) { .player-stage.stage-boxed .pv.pv-boxed { width: 100%; aspect-ratio: auto; } }
/* …except during a commercial: the break is a full 16:9 picture with words across it, so the whole
   frame shows (letterboxed in the column) and the crop returns with the show. */
.player-stage.stage-boxed.ad-wide .pv.pv-boxed { object-fit: contain; object-position: 50% 50%; width: 100%; height: 100%; aspect-ratio: auto; }
.player-gradient { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 22%),
              linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 14%); }
.player-top { position: absolute; top: 18px; left: clamp(60px, 9vw, 120px); z-index: 3; }
.player-top .pc-title { font-size: clamp(16px, 2vw, 24px); font-weight: 700; color: var(--pearl); text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
.player-bigplay {
  position: absolute; inset: 0; margin: auto; width: 92px; height: 92px; z-index: 3;
  border-radius: 50%; background: rgba(0,0,0,0.45); border: 2px solid rgba(255,255,255,0.8);
  display: grid; place-items: center; color: #fff;
}
.player-bigplay svg { width: 42px; height: 42px; }
.skip-intro {
  position: absolute; right: clamp(20px, 5vw, 60px); bottom: 110px; z-index: 4;
  background: rgba(255,255,255,0.92); color: #000; font-weight: 700; font-size: 14px;
  padding: 11px 22px; border-radius: 6px; transition: background 0.2s;
}
.skip-intro:hover { background: #fff; }
.scrub { position: relative; cursor: pointer; }
.scrub-buffer { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: rgba(255,255,255,0.35); border-radius: 4px; }
.scrub .fill { position: relative; z-index: 1; }
.scrub-knob { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 13px; height: 13px; border-radius: 50%; background: var(--gold); z-index: 2; opacity: 0; transition: opacity 0.15s; }
.scrub:hover .scrub-knob { opacity: 1; }
.pc-time { font-size: 13px; color: var(--silver); font-variant-numeric: tabular-nums; }
.player-controls .pc-title-sm { font-weight: 600; color: var(--silver); font-size: 14px; max-width: 26vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-controls .pc-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
#pc-cc.on, #pc-pip.on, #pc-airplay.on { color: var(--gold); }
/* settings / captions popovers */
.pc-menu { position: absolute; bottom: 80px; right: clamp(16px, 4vw, 48px); z-index: 8; min-width: 232px; max-height: 50vh; overflow: auto;
  background: rgba(15,15,17,0.97); border: 1px solid rgba(255,255,255,0.1); border-radius: 13px; padding: 8px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.pc-menu[hidden] { display: none; }
.pc-menu-sec + .pc-menu-sec { margin-top: 8px; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 8px; }
.pc-menu-h { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--silver); padding: 6px 10px 4px; font-weight: 700; }
.pc-menu-list { display: flex; flex-direction: column; }
.pc-opt { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; background: none; border: 0;
  color: var(--pearl); font: inherit; font-size: 14px; text-align: left; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.pc-opt:hover { background: rgba(255,255,255,0.08); color: var(--pearl); }
.pc-opt.active { color: var(--gold); }
.pc-opt i { font-style: normal; color: var(--silver); font-size: 12px; margin-left: 6px; }
.pc-menu .pc-opt svg { width: 16px; height: 16px; flex: 0 0 16px; }
.pc-opt.disabled { color: var(--silver); opacity: 0.7; cursor: default; }
.pc-opt.disabled:hover { background: none; }

/* Modal sections (episodes / more like this) */
.modal-section { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(160,140,91,0.18); }
.modal-section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.modal-section-head h3 { font-size: 20px; font-weight: 700; }
.season-pill { font-size: 13px; color: var(--silver); border: 1px solid rgba(160,140,91,0.4); padding: 4px 12px; border-radius: 999px; }
.ep-list { display: flex; flex-direction: column; gap: 4px; }
.ep { display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: 10px; text-align: left; transition: background 0.18s; width: 100%; }
.ep:hover { background: rgba(255,255,255,0.05); }
.ep-num { font-size: 18px; font-weight: 700; color: var(--silver); width: 22px; flex: 0 0 auto; text-align: center; }
.ep-art { position: relative; flex: 0 0 auto; width: 150px; aspect-ratio: 16/9; border-radius: 8px; background-size: cover; background-position: center; overflow: hidden; }
.ep-play { position: absolute; inset: 0; margin: auto; width: 38px; height: 38px; display: grid; place-items: center; background: rgba(0,0,0,0.5); border-radius: 50%; color: #fff; opacity: 0; transition: opacity 0.2s; }
.ep-play svg { width: 18px; height: 18px; }
.ep:hover .ep-play { opacity: 1; }
.ep-text { flex: 1; min-width: 0; }
.ep-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.ep-desc { font-size: 13px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep-dur { font-size: 13px; color: var(--muted); flex: 0 0 auto; }
.mlt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.mlt-grid .card { width: 100%; }
@media (max-width: 600px) { .ep-art { width: 110px; } .ep-desc { display: none; } }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }

/* ===================== LIVE STREAM LOADER ===================== */
.player-loading {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; gap: 16px;
  align-items: center; justify-content: center;
  background: radial-gradient(60% 60% at 50% 45%, rgba(0,0,0,0.55), #000);
  color: var(--gold-soft); font-size: 14px; letter-spacing: 0.5px;
}
.pl-spin {
  width: 46px; height: 46px; border-radius: 50%;
  border: 3px solid rgba(203,182,130,0.25);
  border-top-color: var(--gold-soft);
  animation: pl-spin 0.9s linear infinite;
}
@keyframes pl-spin { to { transform: rotate(360deg); } }

/* ============================================================================
   PREMIUM POLISH — captivating upgrades (OG gold/dark identity)
   ========================================================================== */

/* ---- Ambient warm depth woven behind the content ---- */
body {
  background:
    radial-gradient(120% 75% at 50% 0%, rgba(167,134,93,0.07), transparent 48%),
    var(--noir);
  background-attachment: fixed;
}
/* Cinematic vignette framing the whole experience (under nav + modals) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: radial-gradient(125% 115% at 50% 34%, transparent 78%, rgba(0,0,0,0.24) 100%);
}

/* ---- Gold gradient scrollbar ---- */
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--saddle), var(--gold));
  border-radius: 20px;
}

/* ============================ TOP 10 — POP ============================ */
.top10-track { gap: 30px; }
.top10-rank {
  font-size: clamp(72px, 10.5vw, 188px);
  letter-spacing: -0.045em;
  margin-right: -0.12em;
  /* layer 1: a sweeping specular glint  |  layer 2: metallic logo-gold body */
  background:
    linear-gradient(100deg, rgba(255,255,255,0) 36%, rgba(255,255,255,0.72) 47%,
                            rgba(255,255,255,0.9) 50%, rgba(255,255,255,0.72) 53%, rgba(255,255,255,0) 64%),
    linear-gradient(176deg,
      #fff6df 0%, #ecd9ac 15%, #cbb488 32%,
      #a7865d 50%,            /* OG Network logo gold — metallic core */
      #7c613f 60%,            /* deep bronze break */
      #b9965e 76%, #ead9b0 92%, #fffaf0 100%);
  background-size: 250% 100%, 100% 100%;
  background-position: 175% 0, 0 0;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.3px rgba(247,228,182,0.55);
  text-shadow: 0 2px 5px rgba(40,28,12,0.55), 0 12px 30px rgba(0,0,0,0.55);
  filter:
    drop-shadow(0 0 11px rgba(190,150,95,0.55))
    drop-shadow(0 5px 14px rgba(0,0,0,0.55));
  animation: top10-glint 6s ease-in-out 1.4s infinite;
}
@keyframes top10-glint {
  0%       { background-position: 178% 0, 0 0; }
  55%,100% { background-position: -78% 0, 0 0; }
}
@media (max-width: 880px) {
  .top10-track { gap: 20px; }
  .top10-rank { font-size: clamp(140px, 36vw, 210px); letter-spacing: -0.045em;
    -webkit-text-stroke: 1.2px rgba(247,228,182,0.5); animation: none; margin-right: -0.1em; }
  /* bigger showcase cards in the Top 10 rail */
  .top10-item .card--landscape { width: clamp(300px, 68vw, 430px); }
  .top10-item .card--portrait  { width: clamp(215px, 48vw, 310px); }
}

/* ============================ CARDS — richer hover ============================ */
.card--landscape:hover {
  outline-color: rgba(244,234,208,0.95);
  box-shadow:
    0 28px 64px rgba(0,0,0,0.72),
    0 0 0 1px rgba(203,182,130,0.55),
    0 0 34px rgba(167,134,93,0.42);   /* gold ring glow */
}
/* light sweep across the poster on hover */
.card--landscape .poster::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,0.16) 50%, transparent 62%);
  transform: translateX(-130%); opacity: 0;
}
.card--landscape:hover .poster::after { animation: card-sheen 0.95s ease-out 0.14s 1; }
@keyframes card-sheen {
  0%   { transform: translateX(-130%); opacity: 0; }
  18%  { opacity: 1; }
  100% { transform: translateX(130%); opacity: 0; }
}
/* badges read a touch more premium */
.poster .pbadge {
  background: linear-gradient(180deg, rgba(0,0,0,0.72), rgba(0,0,0,0.46));
  border-color: rgba(203,182,130,0.7);
  box-shadow: 0 2px 12px rgba(0,0,0,0.55);
}

/* ============================ NAV — frosted & lit ============================ */
.nav.scrolled {
  background: rgba(14,12,9,0.72);
  -webkit-backdrop-filter: blur(15px) saturate(1.35);
          backdrop-filter: blur(15px) saturate(1.35);
  box-shadow: 0 1px 0 rgba(203,182,130,0.22), 0 12px 34px rgba(0,0,0,0.6);
}
.prime-pill { box-shadow: 0 0 16px rgba(203,182,130,0.5); }
.nav-links a.active { box-shadow: inset 0 0 0 1px rgba(247,228,182,0.28); }

/* ============================ HERO & HEADINGS ============================ */
.hero-title { text-shadow: 0 2px 26px rgba(0,0,0,0.55), 0 0 80px rgba(0,0,0,0.45); }
.row-title { text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.row-title .accent { text-shadow: 0 0 18px rgba(203,182,130,0.55); }

/* primary button micro-lift */
.btn-primary:hover { transform: translateY(-1px) scale(1.015); }

/* ===== Live TV channel tiles — 1:1 square ===== */
.card--square { width: clamp(138px, 13.5vw, 196px); }
.card--square .poster { aspect-ratio: 1 / 1; border-radius: var(--radius); }
.card--square .ci-desc { display: none; }
.card--square:hover {
  outline-color: rgba(244,234,208,0.95);
  box-shadow: 0 22px 50px rgba(0,0,0,0.7), 0 0 0 1px rgba(203,182,130,0.55), 0 0 28px rgba(167,134,93,0.4);
}
.card--square .poster::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,0.16) 50%, transparent 62%);
  transform: translateX(-130%); opacity: 0;
}
.card--square:hover .poster::after { animation: card-sheen 0.95s ease-out 0.14s 1; }

/* ===== Player: auto-hide controls + scrub scene thumbnails ===== */
.player-bar, .player-top, .player-back, .player-bigplay { transition: opacity 0.3s var(--ease); }
.player-overlay.idle { cursor: none; }
.player-overlay.idle .player-bar,
.player-overlay.idle .player-top,
.player-overlay.idle .player-back,
.player-overlay.idle .player-bigplay { opacity: 0; pointer-events: none; }

.scrub-thumb {
  position: absolute; bottom: 56px; transform: translateX(-50%);
  z-index: 6; pointer-events: none;
  background: #000; border: 1px solid rgba(255,255,255,0.22);
  border-radius: 9px; padding: 5px; box-shadow: 0 12px 34px rgba(0,0,0,0.75);
}
.scrub-thumb canvas { width: 168px; height: 94px; display: block; border-radius: 5px; background: #111; }
.scrub-thumb .st-time {
  display: block; text-align: center; margin-top: 4px;
  font-size: 12px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* center play overlay must honor the [hidden] attribute (it has display:grid) */
.player-bigplay[hidden] { display: none !important; }

/* bigger hover/click target for the scrub bar (visual stays thin) */
.scrub { position: relative; cursor: pointer; }
.scrub::after { content: ""; position: absolute; left: 0; right: 0; top: -11px; bottom: -11px; }

/* ===== Ad break overlay: countdown + Skip Ad (SSAI pods) ===== */
.ad-ui {
  position: absolute; right: clamp(16px, 4vw, 48px); bottom: 104px;
  z-index: 6; display: flex; align-items: center; gap: 10px;
  animation: adIn 0.25s var(--ease, ease) both;
}
@keyframes adIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ad-ui[hidden] { display: none; }
.ad-tag {
  background: var(--gold); color: #1a1407; font-weight: 800;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 4px; box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.ad-skip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(12,12,14,0.72); color: rgba(255,255,255,0.92);
  border: 1.5px solid rgba(255,255,255,0.32);
  padding: 9px 15px; border-radius: 7px; font: inherit; font-size: 14px; font-weight: 600;
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  cursor: default; transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.ad-skip svg { opacity: 0.55; transition: opacity 0.18s ease; }
.ad-skip[disabled] { opacity: 0.95; }
.ad-skip.ready {
  cursor: pointer; color: var(--gold);
  border-color: rgba(203,182,130,0.85); background: rgba(24,19,8,0.82);
  box-shadow: 0 0 0 1px rgba(203,182,130,0.25), 0 10px 26px rgba(0,0,0,0.45);
}
.ad-skip.ready svg { opacity: 1; }
.ad-skip.ready:hover { background: var(--gold); color: #1a1407; transform: translateY(-1px); }
/* During an ad the timeline is locked (skip only via the button after 30s) */
.player-overlay.ad-mode .scrub { pointer-events: none; opacity: 0.45; }
.player-overlay.ad-mode .scrub-knob { opacity: 0 !important; }
.player-overlay.ad-mode .scrub-thumb { display: none !important; }
/* Keep the ad control visible even when the chrome auto-hides */
.player-overlay.idle.ad-mode .ad-ui { opacity: 1; }

/* ===================== OG ORIGINALS PAGE (premium) ===================== */
.ogx-page { min-height: 100vh; padding-bottom: 90px; background: var(--noir); }

/* --- Spotlight billboard --- */
.ogx-billboard {
  position: relative;
  height: clamp(440px, 64vh, 660px);
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--noir);
}
.ogx-bb-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center top;
  animation: kenburns 30s ease-in-out infinite alternate;
}
.ogx-bb-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(16,16,16,0.96) 0%, rgba(16,16,16,0.78) 24%, rgba(16,16,16,0.38) 52%, rgba(16,16,16,0.05) 78%),
    linear-gradient(0deg, var(--noir) 0%, rgba(16,16,16,0.6) 18%, rgba(16,16,16,0) 46%),
    linear-gradient(180deg, rgba(16,16,16,0.6) 0%, rgba(16,16,16,0) 18%);
}
.ogx-bb-content {
  position: relative; z-index: 2;
  padding: calc(var(--nav-h) + 16px) clamp(16px, 5vw, 64px) clamp(40px, 7vh, 72px);
  max-width: 680px;
}
.ogx-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 2.6px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.ogx-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(203,182,130,0.8); }
.ogx-bb-title {
  font-size: clamp(34px, 5vw, 64px); font-weight: 800;
  line-height: 1.03; letter-spacing: -1px; color: #ffffff;
  text-shadow: 0 4px 28px rgba(0,0,0,0.8);
  margin-bottom: 14px;
}
.ogx-bb-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 500; color: #d8cfbc;
  text-shadow: 0 1px 8px rgba(0,0,0,0.7);
  margin-bottom: 14px;
}
.ogx-bb-meta .tag {
  border: 1px solid rgba(233,219,189,0.45);
  padding: 1px 8px; border-radius: 4px; font-size: 12px;
  background: rgba(0,0,0,0.3);
}
.ogx-bb-meta .premiere { color: var(--gold-soft); font-weight: 700; }
.ogx-bb-tagline {
  font-size: 17px; font-style: italic; color: var(--gold-soft);
  text-shadow: 0 1px 10px rgba(0,0,0,0.7);
  margin-bottom: 10px;
}
.ogx-bb-synopsis {
  font-size: 16px; line-height: 1.65; color: #efece4;
  max-width: 560px; margin-bottom: 24px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.75);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* --- Section header --- */
.ogx-head { padding: clamp(30px, 5vh, 48px) clamp(16px, 5vw, 64px) 0; }
.ogx-kicker {
  font-size: 11.5px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase;
  color: var(--saddle-soft); margin-bottom: 8px;
}
.ogx-title { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; letter-spacing: -0.5px; color: #ffffff; }
.ogx-title .accent {
  background: linear-gradient(120deg, #f0e6cc 0%, var(--gold) 45%, #a7865d 75%, #e9dbbd 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ogx-sub { margin-top: 8px; font-size: 15px; color: #a99a78; }

/* --- Filters (scrollable pill row) --- */
.ogx-filters {
  display: flex; gap: 10px;
  padding: 22px clamp(16px, 5vw, 64px) 6px;
  margin-bottom: 26px;
  overflow-x: auto; scrollbar-width: none;
}
.ogx-filters::-webkit-scrollbar { display: none; }
.ogx-filters .chip { flex: 0 0 auto; padding: 9px 18px; font-size: 13.5px; }

/* --- Poster grid --- */
.ogx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 30px 18px;
  padding: 0 clamp(16px, 5vw, 64px);
}
.ogx-card { cursor: pointer; }
.ogx-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 12px; overflow: hidden;
  background: linear-gradient(150deg, #1a1206, #000);
  box-shadow: 0 10px 26px rgba(0,0,0,0.45);
  outline: 1px solid rgba(203,182,130,0.14); outline-offset: -1px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), outline-color 0.3s var(--ease);
}
.ogx-card:hover .ogx-poster {
  transform: translateY(-6px);
  outline: 2px solid rgba(203,182,130,0.85);
  box-shadow: 0 22px 48px rgba(0,0,0,0.65), 0 0 24px rgba(203,182,130,0.12);
}
.ogx-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s var(--ease); }
.ogx-card:hover .ogx-poster img { transform: scale(1.05); }
.ogx-flag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: 9px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
  padding: 4px 8px; border-radius: 4px;
  color: var(--gold-soft); background: rgba(10,8,4,0.72);
  border: 1px solid rgba(203,182,130,0.55);
  backdrop-filter: blur(3px);
}
.ogx-flag--new { color: #0b0b0b; background: linear-gradient(135deg, var(--gold-soft), var(--gold)); border-color: transparent; }
.ogx-hover {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: flex-end; padding: 14px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.25) 45%, transparent 70%);
  opacity: 0; transition: opacity 0.25s var(--ease);
}
.ogx-card:hover .ogx-hover { opacity: 1; }
.ogx-actions { display: flex; gap: 8px; }
/* Always-visible caption — the legibility upgrade over baked-in art */
.ogx-cap { padding: 11px 2px 0; }
.ogx-name {
  font-size: 15.5px; font-weight: 700; color: var(--pearl); line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ogx-meta { margin-top: 4px; font-size: 12.5px; font-weight: 500; color: #a08c5b; letter-spacing: 0.2px; }
.ogx-meta .sep { margin: 0 6px; color: rgba(160,140,91,0.6); }

/* --- Responsive --- */
@media (max-width: 860px) {
  .ogx-billboard { height: clamp(380px, 56vh, 540px); }
  .ogx-bb-scrim {
    background:
      linear-gradient(0deg, var(--noir) 4%, rgba(16,16,16,0.55) 40%, rgba(16,16,16,0.15) 100%),
      linear-gradient(90deg, rgba(16,16,16,0.6) 0%, rgba(16,16,16,0) 60%);
  }
}
@media (max-width: 560px) {
  .ogx-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 22px 12px; }
  .ogx-bb-synopsis { -webkit-line-clamp: 2; font-size: 15px; }
  .ogx-name { font-size: 14px; }
  .ogx-bb-content { max-width: 100%; }
}

/* ---- Profile management (settings > Profiles) ---- */
.pf-edit .pf-body { flex: 1; min-width: 0; }
.pf-rename {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(203,182,130,0.28);
  color: #fff; font-size: 15px; font-weight: 700; border-radius: 8px;
  padding: 6px 10px; width: 100%; max-width: 260px; margin-bottom: 8px;
}
.pf-rename:focus { outline: none; border-color: #cbb682; background: rgba(255,255,255,0.08); }
.pf-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.pf-del { color: #e07a7a; }
.pf-del:hover { border-color: #e07a7a; }
.pf-add { margin-top: 14px; }

/* ---- Comments ---- */
.comments-section { margin-top: 8px; }
.cmt-compose { display: flex; gap: 12px; margin: 10px 0 22px; }
.cmt-compose-body { flex: 1; }
.cmt-input {
  width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(203,182,130,0.25);
  border-radius: 12px; color: #fff; padding: 12px 14px; font: inherit; font-size: 15px; resize: vertical; min-height: 44px;
}
.cmt-input:focus { outline: none; border-color: #cbb682; background: rgba(255,255,255,0.08); }
.cmt-compose-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.cmt-post { padding: 8px 22px; }
.cmt-list { display: flex; flex-direction: column; gap: 20px; }
.cmt { display: flex; gap: 12px; }
.cmt-av, .cmt-av-mono {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 40px;
  background-size: cover; background-position: center; display: inline-flex; align-items: center; justify-content: center;
}
.cmt-av-mono { background: linear-gradient(135deg,#c68c48,#f6d168); color: #1a1712; font-weight: 800; font-size: 16px; }
.cmt-body { flex: 1; min-width: 0; }
.cmt-head { display: flex; align-items: baseline; gap: 10px; }
.cmt-name { font-weight: 700; color: #fff; }
.cmt-time { font-size: 12px; color: var(--muted, #8a7d60); }
.cmt-text { color: #e6e1d5; margin: 4px 0 8px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.cmt-actions { display: flex; gap: 18px; align-items: center; }
.cmt-like, .cmt-del { background: none; border: none; color: var(--muted, #8a7d60); cursor: pointer; font-size: 14px; padding: 0; }
.cmt-like.liked { color: #e0607a; }
.cmt-like:hover, .cmt-del:hover { color: #fff; }
.cmt-empty { color: var(--muted, #8a7d60); padding: 16px 0; }

/* ===== Vertical theater — widescreen split: true 9:16 video left, series panel right ===== */
.vp-info { display: none; }
@media (min-aspect-ratio: 1/1) and (min-width: 880px) {
  .player-overlay.vsplit.open { flex-direction: row; }
  .player-overlay.vsplit .player-stage {
    flex: 0 0 auto; width: calc(100vh * 9 / 16); min-width: 300px; height: 100vh;
    border-right: 1px solid rgba(255, 255, 255, 0.08); background: #000;
  }
  .player-overlay.vsplit .pv.pv-vertical { object-fit: cover; }   /* column is exactly 9:16 — full picture, edge to edge */
  .player-overlay.vsplit .vp-info {
    display: block; flex: 1 1 auto; min-width: 0; overflow-y: auto; padding: 60px 56px 48px;
    background-color: #0e0c09;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
  }
  .player-overlay.vsplit .player-back { z-index: 6; }
}
.vp-eyebrow { color: var(--gold-soft); letter-spacing: 3px; font-size: 12px; font-weight: 800; margin: 0 0 12px; }
.vp-title { font-size: clamp(30px, 3.6vw, 54px); font-weight: 900; line-height: 1.04; margin: 0 0 24px; color: #fff; }
.vp-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 26px; }
.vp-select {
  -webkit-appearance: none; appearance: none;
  background-color: #1d1811; color: #f2ead9; border: 1px solid rgba(203, 182, 130, 0.5);
  border-radius: 8px;
  /* Design rule: trailing arrows never hug the edge — arrow sits 16px in, text gets 44px clearance. */
  padding: 12px 44px 12px 16px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23cbb682' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px;
  font-size: 15px; font-weight: 600; cursor: pointer;
}
.vp-select:focus { outline: 2px solid var(--gold); }
.vp-synopsis { max-width: 660px; color: #eae4d7; font-size: 16.5px; line-height: 1.62; margin: 0; }
.vp-tagline { color: var(--gold-soft); font-style: italic; margin: 16px 0 24px; }
.vp-meta { color: #cfc8b8; font-size: 14.5px; line-height: 1.85; margin: 6px 0 30px; max-width: 660px; }
.vp-meta b { color: var(--gold-soft); }
.vp-poster { float: right; width: clamp(120px, 14vw, 200px); height: auto; /* never distort: scale one axis only */ border-radius: 10px; margin: 0 0 20px 28px; box-shadow: 0 20px 55px rgba(0, 0, 0, 0.6); }
.vp-info .modal-section { padding: 0; margin-top: 8px; }
@media (max-width: 1200px) { .vp-poster { display: none; } }

/* ===== Brand episode dropdown (matches ghost buttons; menu styled in-design) ===== */
.vp-dd { position: relative; }
.vp-dd-btn { display: inline-flex; align-items: center; gap: 12px; padding-right: 18px; }  /* chevron never hugs the edge */
.vp-dd-chev { color: var(--gold-soft); flex: 0 0 auto; transition: transform 0.18s ease; }
.vp-dd-btn[aria-expanded="true"] .vp-dd-chev { transform: rotate(180deg); }
.vp-dd-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 40;
  min-width: 300px; max-height: 340px; overflow-y: auto; padding: 8px;
  background: rgba(18, 14, 9, 0.97); border: 1px solid rgba(203, 182, 130, 0.4);
  border-radius: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
}
.vp-dd-group {
  color: var(--gold-soft); font-size: 11.5px; font-weight: 800; letter-spacing: 2.4px; text-transform: uppercase;
  padding: 10px 12px 6px;
}
.vp-dd-item {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  width: 100%; text-align: left; padding: 11px 14px; border-radius: 8px;
  color: var(--pearl); font-size: 14.5px; font-weight: 600;
  background: transparent; border: 0; cursor: pointer;
}
.vp-dd-item:hover { background: rgba(203, 182, 130, 0.14); }
.vp-dd-item.active { color: var(--gold); background: rgba(203, 182, 130, 0.10); }
.vp-dd-item.active::after { content: "✓"; color: var(--gold); font-weight: 800; margin-left: 6px; }
.vp-dd-dur { color: var(--muted); font-weight: 500; font-size: 13px; }
#pc-next { color: var(--gold-soft); font-weight: 800; font-size: 13.5px; letter-spacing: 0.4px; padding: 0 14px 0 6px; }
#pc-next:hover { color: #fff; }

/* ===== Mobile nav: swipeable link row (never hide primary navigation) ===== */
@media (max-width: 860px) {
  .nav {
    position: fixed; height: calc(var(--nav-h) + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 14px 0 14px; gap: 10px;
  }
  .brand-logo { height: 32px; }
  .nav.scrolled { background: rgba(16, 14, 10, 0.97); }
  .page { padding-top: calc(var(--nav-h) + 26px); }
  .search-box { top: calc(10px + env(safe-area-inset-top)); left: 16px; right: 16px; }
  .nav-right { margin-left: auto; }
  .nav-links {
    display: flex; order: 3; width: 100%;
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    gap: 4px; padding: 2px 20px 10px 0;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; padding: 8px 12px; font-size: 13.5px; }
  .nav-links { -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent 99%); mask-image: linear-gradient(90deg, #000 90%, transparent 99%); }
  /* search opens as a full-width overlay across the top row — never a phantom gap */
  .search-box {
    position: absolute; top: 8px; left: 12px; right: 12px;
    width: auto; height: 40px; padding: 0;
    display: none; opacity: 1; z-index: 40;
    background: rgba(20, 17, 12, 0.98);
    border: 1px solid rgba(203, 182, 130, 0.45);
  }
  .search-box.open { display: flex; width: auto; padding: 0 16px; }
}
@media (max-width: 520px) {
  .prime-pill { display: inline-flex; padding: 6px 10px; font-size: 11px; }
  .nav-right { gap: 6px; }
  .icon-btn { width: 38px; height: 38px; }
}
.ad-count {
  color: var(--pearl); background: rgba(0, 0, 0, 0.55); border: 1px solid rgba(203, 182, 130, 0.4);
  border-radius: 999px; padding: 8px 16px; font-size: 13.5px; font-weight: 700; letter-spacing: 0.3px;
}
.sx-note.sx-live { border-color: rgba(80, 200, 120, 0.45); }
.sx-note.sx-live .sx-note-dot { background: #4fc878; box-shadow: 0 0 8px rgba(79, 200, 120, 0.8); }
/* ===== Small-phone player controls: keep every control on one row ===== */
@media (max-width: 480px) {
  #pc-speed { display: none; }
  .player-bar .icon-btn, .player-controls button { padding: 6px; }
  #pc-next { padding: 0 8px 0 4px; font-size: 12.5px; }
  .pc-time { font-size: 11.5px; }
}

/* ===== Mobile hamburger menu ===== */
.nav-burger { display: none; }
.mobile-menu, .mobile-menu-scrim { display: none; }
@media (max-width: 860px) {
  .nav-burger { display: inline-flex; }
  .nav-links { display: none !important; }   /* burger replaces the swipe row */
  .mobile-menu {
    display: block; position: fixed; z-index: 120;
    top: calc(var(--nav-h) + env(safe-area-inset-top));
    left: 0; right: 0;
    background: rgba(16, 14, 10, 0.99);
    border-bottom: 1px solid rgba(203, 182, 130, 0.22);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
    padding: 6px 8px 12px;
    animation: mm-in 0.22s var(--ease);
  }
  .mobile-menu[hidden], .mobile-menu-scrim[hidden] { display: none; }
  .mobile-menu a {
    display: block; padding: 14px 18px; border-radius: 12px;
    color: var(--pearl); font-size: 16.5px; font-weight: 600; letter-spacing: 0.2px;
  }
  .mobile-menu a:active { background: rgba(255, 255, 255, 0.08); }
  .mobile-menu a.active { color: var(--gold-soft); background: rgba(203, 182, 130, 0.1); }
  .mobile-menu a.mm-studio {
    margin-top: 6px; text-align: center; font-weight: 800; letter-spacing: 1.5px; font-size: 14px;
    color: #1d1509; background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  }
  .mobile-menu-scrim {
    display: block; position: fixed; z-index: 115; inset: 0;
    background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(2px);
  }
  body.menu-open { overflow: hidden; }
}
@keyframes mm-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
/* ===== Mobile cards: drop descriptions so previews get the space ===== */
@media (max-width: 860px) {
  .card-info .ci-desc { display: none; }
  .card-info .ci-meta { margin-top: 6px; }
  .card-info .ci-title { margin-top: 6px; }
}
a.device-chip:hover { border-color: var(--gold); color: var(--gold-soft); transform: translateY(-2px); }
a.device-chip { transition: transform 0.2s var(--ease), border-color 0.2s var(--ease); }
/* ===== Auth: unmissable inline errors ===== */
.auth-error {
  color: #ffb3b3; background: rgba(255, 70, 70, 0.09); border: 1px solid rgba(255, 90, 90, 0.4);
  border-radius: 10px; padding: 11px 14px; font-size: 13.5px; line-height: 1.45; text-align: left;
  margin: 12px 0 0;
}
.auth-field.err { border-color: rgba(255, 100, 100, 0.75); box-shadow: 0 0 0 1px rgba(255, 100, 100, 0.35); }
.auth-card.shake { animation: authshake 0.4s ease; }
@keyframes authshake { 20% { transform: translateX(-7px); } 45% { transform: translateX(6px); } 70% { transform: translateX(-4px); } 90% { transform: translateX(2px); } }
/* ===== Touch devices: hover previews off — cards stay clean, taps open titles ===== */
@media (hover: none) {
  .card:hover { transform: none; outline-color: transparent; box-shadow: none; transition-delay: 0s; }
  .card.previewing .card-info { display: none; }
  .card--portrait.expanded { width: auto !important; transform: none !important; height: auto !important; }
  .card--portrait.expanded .poster-img { opacity: 1 !important; }
  .card--portrait.expanded .exp-media, .card--portrait.expanded .exp-info { display: none !important; }
  .card, .card:focus, .card:focus-visible { outline: none !important; }
}
@media (max-width: 700px) { .card--portrait.expanded { width: auto !important; } .exp-media { display: none; } }
.auth-link.pulse { color: var(--gold-soft); animation: authpulse 1.2s ease-in-out 3; }
@keyframes authpulse { 50% { text-shadow: 0 0 14px rgba(232, 209, 150, 0.9); transform: scale(1.06); } }
/* ===== Permissions tab ===== */
.perm-list { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 18px; }
.perm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(203,182,130,0.18); border-radius: 12px; padding: 12px 16px; }
.perm-who b { font-size: 14.5px; color: var(--pearl); }
.perm-tags { margin-left: 8px; }
.perm-tag { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: 1px; color: var(--gold-soft);
  border: 1px solid rgba(203,182,130,0.4); border-radius: 999px; padding: 2px 8px; margin-right: 4px; }
.perm-tag.perm-owner { color: #1d1509; background: linear-gradient(180deg, var(--gold-soft), var(--gold)); border: none; }
.perm-locked { color: var(--muted); font-size: 12.5px; letter-spacing: 0.4px; }
.perm-remove { font-size: 12.5px; }
.perm-add { display: flex; gap: 10px; align-items: center; }
.perm-add .auth-field { flex: 1 1 auto; max-width: 320px; }
.perm-note { margin-top: 10px; color: var(--gold-soft); }
@media (max-width: 600px) { .perm-add { flex-direction: column; align-items: stretch; } .perm-add .auth-field { max-width: none; } }
/* 2026-10-21: admin access is tied to an account (confirmed by another admin when the account came later) */
.perm-acts { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.perm-confirm { font-size: 12.5px; padding: 8px 14px; }
.perm-tag.perm-ok { color: #46c98a; border-color: rgba(70, 201, 138, 0.4); }
.perm-tag.perm-warn { color: #e0b34a; border-color: rgba(224, 179, 74, 0.45); letter-spacing: 0.3px; }
.perm-why { font-size: 12.5px; color: var(--muted); }
@media (max-width: 600px) { .perm-row { flex-direction: column; align-items: flex-start; } .perm-tags { margin-left: 0; display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; } }

/* ===================== CLIPS — vertical autoplay feed =====================
   The web twin of the iPhone app's Clips tab. Layout follows the vertical-show
   rules in DESIGN-NOTES §3: full-bleed 9:16 reels on phones, and on widescreen a
   theater split — a true 9:16 column beside the branded info panel. */
.clips {
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  background: #000;
  overscroll-behavior: contain;
}
.clip {
  position: relative;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;      /* one clip per swipe, never skip past two */
  display: flex;
  flex-direction: column;
  background: #000;
}
.clip-stage { position: relative; flex: 1 1 auto; width: 100%; min-height: 0; overflow: hidden; background: #000; }
.clip-art {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;             /* key art under the clip — never stretched */
  object-position: center top;
}
.clip-v {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;             /* fill the frame by cropping — never stretch */
  background: #000;
  opacity: 0; transition: opacity 0.45s var(--ease);
}
.clip.ready .clip-v { opacity: 1; }
.clip-scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(0,0,0,0.80) 0%, rgba(0,0,0,0.28) 28%, rgba(0,0,0,0) 58%),
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 20%);
}
.clip-load { position: absolute; inset: 0; z-index: 3; display: none; place-items: center; }
.clip.loading .clip-load { display: grid; }

.clip-foot {
  position: absolute; z-index: 5;
  left: 18px; right: 96px;
  bottom: calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.clip-cluster { max-width: 100%; }
.clip-title { font-size: clamp(20px, 5.4vw, 30px); font-weight: 800; line-height: 1.15; color: #fff; margin: 0 0 6px; text-shadow: 0 2px 18px rgba(0,0,0,0.6); }
.clip-meta { color: var(--gold-soft); font-size: 13.5px; font-weight: 600; margin: 0; }

.clip-mute {
  flex: 0 0 auto;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; border: 1.5px solid rgba(255,255,255,0.55);
  background: rgba(0,0,0,0.42); backdrop-filter: blur(4px);
  cursor: pointer;
}
.clip-mute svg { width: 18px; height: 18px; }

.clip-rail {
  position: absolute; z-index: 5;
  right: 16px; bottom: calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.clip-rail button {
  background: none; border: 0; padding: 0; cursor: pointer; color: #fff;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}
.clip-rail > button > svg { width: 27px; height: 27px; }
.clip-rail button:hover { color: var(--gold-soft); }
.clip-poster {
  width: 42px; height: 60px; border-radius: 8px; overflow: hidden;
  border: 1.5px solid rgba(255,255,255,0.7); box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.clip-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }

.clip-info { display: none; }

/* Widescreen: the same theater split the vertical shows use. */
@media (min-aspect-ratio: 1/1) and (min-width: 880px) {
  .clip { flex-direction: row; }
  .clip-stage {
    flex: 0 0 auto;
    width: calc(100dvh * 9 / 16); min-width: 300px; height: 100dvh;
    border-right: 1px solid rgba(255,255,255,0.08);
  }
  .clip-info {
    display: block; flex: 1 1 auto; min-width: 0;
    height: 100dvh; overflow-y: auto;
    padding: calc(var(--nav-h) + 30px) 56px 48px;
    background-color: #0e0c09;
    background-size: cover; background-position: center top; background-repeat: no-repeat;
  }
  .clip-cluster, .clip-rail { display: none; }   /* the info panel carries these */
  .clip-foot { left: auto; right: 16px; bottom: 16px; }
}

/* My List buttons that carry a label: the icon lives in its own span so
   syncListButtons can swap it without eating the words. */
.li-ic { display: inline-flex; align-items: center; }
.li-ic svg { width: 18px; height: 18px; }

/* ===================== MOBILE: iPhone-app shell =====================
   Phones get the app's footer menu instead of a hamburger, and the top bar
   scrolls away with the content the way the app's logo row does.
   Values mirror OGTabBar in native/apple/OGNetwork/iOS/HomeView.swift. */
.tabbar { display: none; }
.acct-hub { display: none; }

@media (max-width: 860px) {
  /* --- top bar rides with the content, as in the app --- */
  .nav {
    position: static;
    height: auto;
    padding: calc(env(safe-area-inset-top) + 10px) 16px 4px;
    background: transparent;
    box-shadow: none;
  }
  .nav.scrolled { background: transparent; box-shadow: none; }
  .nav-burger, .mobile-menu, .mobile-menu-scrim { display: none !important; }

  /* Closed dropdowns are display:block (only opacity 0), so they still take
     layout. #dd-acct at 280px + right:-40px pushed the document to 414px and
     gave every non-Clips route 24px of sideways scroll. Clamp, don't hide —
     the triggers are still live on phones. */
  .nav-dd { max-width: calc(100vw - 20px); }
  .nav-dd--wide { min-width: 0; width: 280px; }
  .nav-dd--right { right: 0; }
  .page { padding-top: 14px; }
  .footer { display: none; }          /* the app has no footer */

  /* --- footer menu --- */
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
    display: flex; align-items: stretch;
    padding: 9px 0 calc(3px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, #17171a 0%, #000 100%);
  }
  .tabbar::before {                   /* the app's glowing hairline */
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.28), 0 0 6px rgba(255, 255, 255, 0.12);
  }
  .tab {
    flex: 1 1 0; min-width: 0;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 0 2px;
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  .tab.active { color: #fff; }
  .tab-ic { position: relative; height: 24px; display: grid; place-items: center; }
  .tab-ic svg { width: 21px; height: 21px; display: block; }
  .tab.active .tab-ic::before {       /* soft glow above the selected icon */
    content: ""; position: absolute; top: -15px; left: 50%;
    width: 58px; height: 18px; margin-left: -29px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.30); filter: blur(12px); pointer-events: none;
  }
  .tab-l {
    font-size: 9px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase;
    max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .ic-in { display: none; }
  .tab.active .ic-out { display: none; }
  .tab.active .ic-in { display: block; }
  .tab-og { height: 20px; width: auto; }          /* one axis only — keep proportions */
  .tab-av {
    width: 23px; height: 23px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--gold); color: #1a1610;
    font-size: 10px; font-weight: 800;
    background-size: cover; background-position: center;
  }
  .tab-av.has-img { color: transparent; }
  .tab.active .tab-av { box-shadow: 0 0 0 1.5px #fff; }
  .tc-box { fill: transparent; }
  .tab.active .tc-box { fill: currentColor; }
  .tab.active .tc-play { fill: #101010; }

  /* content clears the bar */
  #app { padding-bottom: calc(var(--tabbar-h, 52px) + 8px); }

  /* Clips is full-bleed under the status bar, exactly like the app's tab */
  body[data-route="clips"] .nav { display: none; }
  body[data-route="clips"] #app { padding-bottom: 0; }
  body[data-route="clips"] .clips,
  body[data-route="clips"] .clip { height: calc(100dvh - var(--tabbar-h, 52px)); }

  /* --- Profile tab doubles as the hub for everything the bar doesn't carry --- */
  .acct-hub {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
    margin: 0 0 26px;
  }
  .hub {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    padding: 16px 8px; min-height: 84px;
    border-radius: 14px; border: 1px solid rgba(203, 182, 130, 0.22);
    background: #14110c; color: var(--pearl); text-decoration: none;
    font-size: 12.5px; font-weight: 600; text-align: center;
  }
  .hub svg { width: 22px; height: 22px; color: var(--gold-soft); }
  .hub:active { border-color: var(--gold); }
  .hub-studio {
    grid-column: 1 / -1; min-height: 52px;
    color: var(--gold); border-color: var(--gold);
    letter-spacing: 1.5px; font-weight: 800;
  }
}

/* =====================================================================
   RESPONSIVE OVERHAUL — every screen size gets the full experience.
   Appended as an override layer (later rules win at equal specificity);
   the earlier rules stay so nothing above needs to be re-learned.
   ===================================================================== */

/* ---------- Structural fixes, all sizes ---------- */
.modal { position: relative; }
/* billboards grow with their copy instead of letting it slide up under the fixed nav on short laptop screens */
.hero { height: auto; min-height: clamp(520px, 82vh, 820px); }
.hero-content { padding-top: calc(var(--nav-h) + 24px); }
.ogx-billboard { height: auto; min-height: clamp(440px, 64vh, 660px); }                 /* the X and the key art were positioning against the viewport, not the sheet */
.brand { flex: 0 0 auto; }
.nav-links a { white-space: nowrap; }
.search-box.open { width: min(220px, 16vw); }  /* an open search can't shove the avatar off the right edge */
.row-head { flex-wrap: nowrap; }
.row-head .row-title { min-width: 0; }
.row-head .row-sub, .row-head .recs-viewall { white-space: nowrap; flex: 0 0 auto; }
.hero-dots { gap: 4px; }
.hero-dots button { width: 15px; height: 15px; padding: 3px; background-clip: content-box; }  /* same 9px dot, a real tap target */
.hero-dots button.active { transform: scale(1.2); }
.hero-actions .btn { white-space: nowrap; }
.hero-actions .btn svg, .modal-actions .btn svg { flex: 0 0 auto; }
#og-opening-skip { bottom: calc(28px + env(safe-area-inset-bottom)); right: calc(20px + env(safe-area-inset-right)); }
.card--square .poster-img { object-position: center !important; }

/* Search page: a real field on the page itself (the tab bar's Search tab lands here) */
.search-hero { position: relative; max-width: 720px; margin: 4px 0 22px; }
.search-hero svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-field {
  width: 100%; background: rgba(255,255,255,0.07); border: 1px solid rgba(203,182,130,0.3);
  border-radius: 14px; padding: 15px 44px 15px 46px; color: var(--pearl); font: inherit; font-size: 17px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.search-field::placeholder { color: var(--muted); }
.search-field:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,0.1); box-shadow: 0 0 0 3px rgba(203,182,130,0.16); }
.search-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--silver);
}
.search-clear:hover { background: rgba(255,255,255,0.1); color: var(--pearl); }
.search-clear[hidden] { display: none; }
.search-count { color: var(--muted); font-size: 13.5px; margin: -8px 0 16px; }
.search-suggest h3 { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--saddle-soft); margin: 18px 0 10px; font-weight: 800; }
.search-suggest .filters { margin-bottom: 8px; }

/* Desktop nav gets tight below 1200px — smaller gaps so 9 links + tools always fit */
@media (max-width: 1200px) and (min-width: 861px) {
  .nav { gap: 12px; padding: 0 16px; }
  .nav-links { gap: 2px; }
  .nav-links a { font-size: 13px; padding: 6px 8px; }
  .nav-divider { margin: 0 2px; }
  .prime-pill { font-size: 10px; padding: 4px 8px; }
  .nav-right { gap: 4px; }
}
/* below 1040px an open search floats over the link row instead of pushing the logo off-screen */
@media (max-width: 1040px) and (min-width: 861px) {
  .search-box.open {
    position: absolute; left: 50%; top: 8px; transform: translateX(-50%);
    width: min(56vw, 440px); height: 40px; padding: 0 16px; z-index: 40;
    background: rgba(20,17,12,0.98); border-color: rgba(203,182,130,0.45);
  }
}

/* ---------- Touch devices ---------- */
@media (hover: none) {
  .row-arrow { display: none; }                                   /* invisible 40–64px strips were eating taps at the row edges */
  .card:active, .ogx-card:active .ogx-poster, .hub:active { transform: scale(0.97); transition-duration: 0.08s; }
  .card--portrait:active { transform: scale(0.97) !important; }
  /* the title in focus plays by itself (TouchPlay): the poster stays until the film has frames, then the
     snippet fades in over it — no info overlay on a phone card, the tap opens the title as always */
  .card.tp .card-preview { opacity: 0; animation: none; transition: opacity 0.35s var(--ease); }
  .card.tp-live .card-preview { opacity: 1; }
  .card.tp-live .pbadge, .card.tp-live .play-hint { opacity: 0; }
  .card.tp-live .poster-img { opacity: 1; }
}

/* ---------- Phones + portrait tablets (the iPhone-app shell) ---------- */
@media (max-width: 860px) {
  /* Hero: the poster frame keeps its width. (aspect-ratio + min-height had been inflating a 320px
     phone's hero to 347px, which widened the layout viewport and pushed every fixed element —
     the sheet's X, the tab bar's ME — off the right edge.) */
  .hero { width: 100%; min-height: 0; max-height: 72vh; aspect-ratio: 2 / 3; }
  .hero-poster img { object-position: center 18%; }
  .hero-mute { top: 12px; bottom: auto; right: 12px; width: 38px; height: 38px; }
  .hero-content { padding: 0 16px 50px; }
  .hero-dots { bottom: 20px; }
  .hero-badge { margin-bottom: 10px; font-size: 11px; }
  .hero-title { font-size: clamp(30px, 9vw, 44px); letter-spacing: -0.5px; }
  .hero-meta { margin: 12px 0 10px; gap: 6px 12px; font-size: 13px; }
  .hero-synopsis { font-size: 14.5px; line-height: 1.5; margin-bottom: 18px; -webkit-line-clamp: 2; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 0; min-width: 0; justify-content: center; padding: 12px 10px; font-size: 14.5px; }

  /* Rows sit below the hero instead of riding 60px up into it (that was the mute/dots/"View all" pile-up) */
  .rows { margin-top: 0; padding: 12px 0 36px; }
  .row { margin-bottom: 18px; }
  .row-head { padding: 0 16px; margin-bottom: 8px; align-items: center; gap: 10px; }
  .row-title { font-size: 19px; }
  .row-sub { font-size: 12.5px; }
  .row-track { gap: 10px; padding: 6px 16px 10px; }
  .recs-ai { margin-left: 6px; font-size: 10px; padding: 2px 7px; }

  /* Posters: phones use vertical key art, the iPhone app's rule (Top 10 and recs stay wide, like the app) */
  .card--portrait { width: clamp(118px, 34vw, 150px); }
  .card--landscape { width: min(280px, 74vw); }
  .card--square { width: clamp(118px, 30vw, 150px); }
  .top10-track { gap: 14px; }
  .top10-item { align-items: flex-end; }
  .top10-item .card--landscape { width: min(300px, 72vw); }
  .top10-rank {
    font-size: clamp(96px, 30vw, 132px); line-height: 0.8; margin-right: -0.08em;
    -webkit-text-stroke: 1px rgba(255,230,150,0.55);
  }
  .rec-reason { max-width: min(280px, 74vw); font-size: 12px; margin-top: 7px; }
  .poster .pbadge { top: 8px; left: 8px; font-size: 8.5px; padding: 3px 6px; letter-spacing: 1px; }

  /* Grids: three posters across, like the app's Movies tab */
  .grid, .mlt-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px 10px; }
  .page { padding-left: 16px; padding-right: 16px; }
  .page-title { font-size: 26px; }
  .page-sub { font-size: 14px; margin-bottom: 16px; }
  .filters {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 8px;
    margin: 0 -16px 18px; padding: 2px 16px 6px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }
  .filters::-webkit-scrollbar { display: none; }
  .filters .chip { flex: 0 0 auto; padding: 8px 14px; }
  .acct-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 0; margin: 4px -16px 20px; padding: 0 16px; }
  .acct-tabs::-webkit-scrollbar { display: none; }
  .acct-tab { flex: 0 0 auto; white-space: nowrap; padding: 12px 12px; }
  .set-card { padding: 18px 16px; }
  .set-kv { flex-wrap: wrap; gap: 4px 14px; }
  .avatar { width: 34px; height: 34px; }
  .search-field { font-size: 16px; padding: 13px 40px 13px 42px; border-radius: 12px; }   /* 16px+ so iOS doesn't zoom the page */

  /* Detail = full-screen sheet, the way the app's title page works */
  .modal-overlay { padding: 0; display: block; }
  .modal { width: 100%; min-height: 100%; border-radius: 0; border: 0; box-shadow: none; }
  .modal-hero { height: auto; aspect-ratio: 16 / 9; min-height: 200px; padding: 18px 16px; }   /* the whole backdrop, uncropped */
  .modal-close { top: calc(12px + env(safe-area-inset-top)); right: 12px; width: 42px; height: 42px; background: rgba(0,0,0,0.65); }
  .modal-title { font-size: clamp(26px, 8vw, 38px); }
  .modal-body { padding: 18px 16px calc(40px + env(safe-area-inset-bottom)); }
  .modal-actions { gap: 10px; margin-bottom: 18px; }
  .modal-actions .btn { flex: 1 1 calc(50% - 5px); justify-content: center; min-width: 0; padding: 12px 10px; font-size: 14.5px; white-space: nowrap; }
  .modal-actions .btn-primary { flex-basis: 100%; padding: 14px; font-size: 15.5px; }
  .modal-synopsis { font-size: 15px; line-height: 1.6; }
  .modal-meta-list { font-size: 13.5px; line-height: 1.9; }
  .modal-section { margin-top: 24px; padding-top: 18px; }
  .modal-section-head h3 { font-size: 18px; }
  .ep { gap: 10px; padding: 10px 0; }
  .ep-num { display: none; }
  .ep-art { width: 112px; }
  .ep-title { font-size: 14.5px; margin-bottom: 2px; }
  .ep-dur { font-size: 12.5px; }
  .cmt-compose { gap: 10px; }

  /* Originals page */
  .ogx-billboard { min-height: 0; }
  .ogx-billboard.ogx-billboard--poster { width: 100%; height: auto; aspect-ratio: 2 / 3; max-height: 70vh; }
  .ogx-billboard--poster .ogx-bb-bg { background-position: center 18%; animation: none; }
  .ogx-billboard--poster .ogx-bb-scrim {
    background:
      linear-gradient(0deg, var(--noir) 5%, rgba(16,16,16,0.55) 40%, rgba(16,16,16,0.1) 100%),
      linear-gradient(180deg, rgba(16,16,16,0.5) 0%, rgba(16,16,16,0) 22%);
  }
  .ogx-bb-content { padding: 16px 16px 26px; }
  .ogx-bb-title { font-size: clamp(28px, 8vw, 40px); margin-bottom: 10px; }
  .ogx-bb-meta { font-size: 13px; gap: 6px 10px; margin-bottom: 10px; }
  .ogx-bb-tagline { font-size: 15px; }
  .ogx-head { padding: 22px 16px 0; }
  .ogx-title { font-size: 26px; }
  .ogx-sub { font-size: 14px; }
  .ogx-filters { padding: 16px 16px 4px; margin-bottom: 16px; }
  .ogx-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 18px 10px; padding: 0 16px; }
  .ogx-name { font-size: 13.5px; }
  .ogx-meta { font-size: 11.5px; }
  .ogx-cap { padding-top: 8px; }

  /* Clips: long titles wrap instead of running under the rail */
  .clip-foot { right: 84px; }
  .clip-title { font-size: clamp(19px, 5vw, 26px); }
}

/* Small phones (iPhone SE / 320–360): keep both hero buttons on one row, trim type */
@media (max-width: 360px) {
  .hero-actions .btn { padding: 11px 8px; font-size: 13.5px; gap: 6px; }
  .hero-title { font-size: 28px; }
  .modal-actions .btn { font-size: 13.5px; }
  .card--portrait { width: 112px; }
  .grid, .mlt-grid, .ogx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }   /* minmax(0,…): a nowrap caption can't blow a 1fr track open */
  .ogx-card, .grid .card { min-width: 0; }
  .tab-l { font-size: 8.5px; }
}

/* Phones held sideways: the split (backdrop) hero, a compact icon-only tab bar, contained video */
@media (max-width: 860px) and (orientation: landscape) and (max-height: 520px) {
  .hero { aspect-ratio: auto; height: min(78vh, 420px); max-height: none; }   /* buttons clear the tab bar at first paint */
  .hero-bg { display: block; }
  .hero-poster { display: none; }
  .hero-video { left: auto; width: 66%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.5) 26%, #000 50%), linear-gradient(0deg, transparent 0%, #000 18%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.5) 26%, #000 50%), linear-gradient(0deg, transparent 0%, #000 18%);
    mask-composite: intersect; }
  .hero-scrim {
    background:
      linear-gradient(90deg, var(--noir) 0%, rgba(16,16,16,0.94) 18%, rgba(16,16,16,0.72) 34%, rgba(16,16,16,0.42) 50%, rgba(16,16,16,0.16) 66%, rgba(16,16,16,0) 84%),
      linear-gradient(0deg, var(--noir) 0%, rgba(16,16,16,0.55) 22%, rgba(16,16,16,0.18) 44%, rgba(16,16,16,0) 68%);
  }
  .hero-content { max-width: 60%; padding: 0 16px 30px; }
  .hero-title { font-size: clamp(26px, 5vw, 36px); }
  .hero-synopsis { -webkit-line-clamp: 2; margin-bottom: 12px; }
  .hero-actions .btn { flex: 0 0 auto; padding: 10px 16px; }
  .hero-mute { top: 12px; right: 12px; }
  .hero-dots { bottom: 10px; }
  .ogx-billboard, .ogx-billboard.ogx-billboard--poster { aspect-ratio: auto; height: auto; min-height: min(88vh, 380px); max-height: none; }
  .ogx-billboard--poster .ogx-bb-bg { background-position: center 25%; }
  .tabbar { padding: 5px 0 calc(3px + env(safe-area-inset-bottom)); }
  .tab { gap: 0; }
  .tab-l { display: none; }
  .tab-ic { height: 26px; }
  .tab.active .tab-ic::before { top: -12px; }
  .clip-v { object-fit: contain; }
  .page { padding-top: 10px; }
}

/* Portrait tablets: the poster frame is a wider crop so the page isn't one giant poster */
@media (min-width: 601px) and (max-width: 860px) and (orientation: portrait) {
  .hero { aspect-ratio: 4 / 5; max-height: 62vh; }
  .hero-content { max-width: 80%; padding: 0 24px 56px; }
  .hero-title { font-size: clamp(36px, 6vw, 52px); }
  .hero-actions .btn { flex: 0 0 auto; padding: 12px 22px; }
  .row-head, .row-track, .page, .ogx-grid, .ogx-head, .ogx-filters, .ogx-bb-content { padding-left: 24px; padding-right: 24px; }
  .filters, .acct-tabs { margin-left: -24px; margin-right: -24px; padding-left: 24px; padding-right: 24px; }
  .card--portrait { width: 150px; }
  .card--landscape { width: 280px; }
  .top10-item .card--landscape { width: 300px; }
  .grid, .mlt-grid, .ogx-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px 14px; }
  .ogx-billboard.ogx-billboard--poster { aspect-ratio: 4 / 5; max-height: 62vh; }
  .modal-overlay { padding: 40px 24px; }
  .modal { width: min(920px, 100%); min-height: 0; border-radius: var(--radius-lg); border: 1px solid rgba(203,182,130,0.22); }
  .modal-close { top: 16px; right: 16px; }
}
.search-field::-webkit-search-cancel-button, .search-field::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }

/* OG Studio sign-in card: never a hair wider than the phone */
#app .vg-card { width: min(520px, calc(100vw - 32px)); }
@media (max-width: 360px) { #app .vg-card { padding: 24px 20px 22px; } }

/* Art fallback tile (a title card drawn in the brand palette when both artworks fail) */
.poster-img.img-tile { object-fit: cover; background: #14100a; }

/* Nav "Genres" panel: the catalog's genre list is long now (34+ genres) — lay the genres out in
   three columns beside the collections and never let the panel run past the bottom of the screen */
@media (hover: hover) and (pointer: fine) {
  #dd-apps { min-width: min(720px, calc(100vw - 24px)); max-height: calc(100vh - 76px); overflow-y: auto; overscroll-behavior: contain; }
  #dd-apps .nav-dd-cols { grid-template-columns: minmax(0, 3fr) minmax(0, 1.2fr); gap: 10px 22px; }
  #dd-apps .nav-dd-cols > div:first-child { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 10px; align-content: start; }
  #dd-apps .nav-dd-cols > div:first-child h4 { grid-column: 1 / -1; }
  #dd-apps .dd-link { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  @media (max-height: 720px) {
    #dd-apps .nav-dd-cols > div:first-child { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    #dd-apps { min-width: min(860px, calc(100vw - 24px)); }
  }
}

/* Small screens driven by a mouse or trackpad (a phone-width desktop window, an iPad with a trackpad):
   hover previews play IN PLACE inside the poster — the expand popover has no room at this width —
   and rows keep enough headroom that a lifted card is never cut off by the track's edge. */
@media (max-width: 860px) and (hover: hover) and (pointer: fine) {
  .row-track { padding-top: 18px; padding-bottom: 22px; margin-top: -12px; margin-bottom: -6px; }
  .card:hover, .card--portrait:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 14px 34px rgba(0,0,0,0.6); outline-color: rgba(255,255,255,0.92); }
  .card--portrait:hover .poster-img { transform: scale(1.03); }
  .card--portrait .card-info { display: block; }
  .card--portrait.expanded { width: auto !important; transform: translateY(-4px) scale(1.05) !important; height: auto !important; }
  .card--portrait.expanded .exp-media, .card--portrait.expanded .exp-info { display: none !important; }
  .card--portrait.expanded .poster-img { opacity: 1 !important; }
  .card-info { padding: 14px 10px 10px; }
  .card-info .ci-title { font-size: 13.5px; }
  .card-info .ci-meta { font-size: 10.5px; }
  .grid .card:hover { transform: translateY(-3px) scale(1.03); }
  /* the 16px side gutter is narrower than the arrow strip: keep the strip clickable above a hovered card and
     slim it so it only overlaps the card's outer 8px (inside the info overlay's padding) */
  .row-arrow { z-index: 8; width: 24px; }
  .row-arrow svg { width: 22px; height: 22px; }
}

/* Top 10 numerals: the OG Network logo's gold. Stops sampled from og-network-logo.png — amber-bronze
   shadow bands (#b8843a / #a97a33), the gold face (#d4ae5f / #dab565), pale-yellow highlight bands
   (#f6df8c / #fbec9d) — laid on the logo's diagonal, with its thin lighter bevel as the edge and the
   sweeping glint kept (tinted pale gold so the colour stays gold). No text-shadow: on
   background-clip: text glyphs a shadow paints OVER the gradient; depth comes from drop-shadows. */
.top10-rank {
  background:
    linear-gradient(100deg, rgba(255,246,200,0) 36%, rgba(255,246,200,0.55) 47%,
                            rgba(255,250,220,0.8) 50%, rgba(255,246,200,0.55) 53%, rgba(255,246,200,0) 64%),
    linear-gradient(118deg,
      #b8843a 0%, #d7b060 12%, #f6df8c 26%, #fbec9d 33%,
      #e9c86e 43%, #d2a852 54%, #a97a33 64%,
      #d9b45f 76%, #f4dc86 88%, #dab565 100%);
  background-size: 250% 100%, 100% 100%;
  background-position: 175% 0, 0 0;
  -webkit-background-clip: text; background-clip: text;    /* the shorthand above resets the clip */
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px rgba(255,230,150,0.55);
  text-shadow: none;
  filter: drop-shadow(0 0 10px rgba(212,177,101,0.35)) drop-shadow(0 5px 14px rgba(0,0,0,0.55));
}
@media (max-width: 880px) { .top10-rank { -webkit-text-stroke: 1px rgba(255,230,150,0.55); } }

/* Hero: a fade ABOVE the film and below the copy — the bottom of the section melts into the page
   (no hard edge where the video stops) and the title stays legible while the film plays */
.hero-fade {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  /* solid page colour over the bottom tenth (so the section's edge is noir on noir, whatever the
     film or the Ken-Burns cover is doing there), then a long, many-stop ramp up into the picture */
  background: linear-gradient(0deg,
      var(--noir) 0%, var(--noir) 10%,
      rgba(16,16,16,0.97) 15%, rgba(16,16,16,0.88) 21%, rgba(16,16,16,0.72) 29%,
      rgba(16,16,16,0.52) 38%, rgba(16,16,16,0.32) 48%, rgba(16,16,16,0.15) 58%,
      rgba(16,16,16,0.04) 67%, rgba(16,16,16,0) 74%);
}
@media (max-width: 860px) {
  .hero-fade { background: linear-gradient(0deg,
      var(--noir) 0%, var(--noir) 12%,
      rgba(16,16,16,0.97) 18%, rgba(16,16,16,0.88) 26%, rgba(16,16,16,0.72) 35%,
      rgba(16,16,16,0.52) 45%, rgba(16,16,16,0.32) 55%, rgba(16,16,16,0.14) 65%,
      rgba(16,16,16,0.04) 73%, rgba(16,16,16,0) 80%); }
}
.card-preview { animation-duration: 0.25s; }   /* the snippet shows the moment it has frames */

/* Card art fades in as it lands; until then the poster carries a soft shimmer instead of a blank box */
.poster-img { opacity: 0; transition: opacity 0.28s var(--ease), transform 0.4s var(--ease); }
.poster-img.ld, .poster-img.img-tile, .poster-img.img-fallback { opacity: 1; }
.card .poster::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 32%, rgba(255,255,255,0.05) 50%, transparent 68%);
  background-size: 220% 100%; animation: og-shimmer 1.5s linear infinite;
}
.card .poster:has(.poster-img.ld)::before, .card .poster:has(.poster-img.img-tile)::before { display: none; }
@keyframes og-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) { .card .poster::before { animation: none; } }
.reveal.in { transition-duration: 0.4s; }

/* Sign in / create account gate: on a short phone screen (or with the keyboard up) the card
   scrolls instead of being clipped, and the poster wall + scrim stay put behind it */
.auth-gate.open { display: flex; flex-direction: column; align-items: center; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.auth-gate .auth-wall, .auth-gate .auth-scrim { position: fixed; }
.auth-gate .auth-card { margin: auto; flex: 0 0 auto; }

/* ===== Player controls never crowd (vertical films, phones) =====
   The vertical theater's 9:16 column is only 300–610px wide and a phone is narrower still: the time
   used to wrap onto three lines and the CC / settings / fullscreen cluster ran off the edge. Now the
   time never breaks, and in a narrow stage the small title yields, the time takes its own line under
   the scrubber (right-aligned, like the phone apps), and the tool cluster wraps under the transport
   buttons when there truly is no room instead of being clipped. */
.pc-time { white-space: nowrap; flex: 0 0 auto; }
.player-controls { flex-wrap: wrap; row-gap: 8px; }
.player-controls > * { flex: 0 0 auto; }
.player-controls .pc-title-sm { flex: 0 1 auto; min-width: 0; }
@media (min-aspect-ratio: 1/1) and (min-width: 880px) {
  .player-overlay.vsplit .player-bar { padding: 12px 16px 16px; }
  .player-overlay.vsplit .scrub { margin-bottom: 8px; }
  .player-overlay.vsplit .player-controls { gap: 8px; row-gap: 8px; }
  .player-overlay.vsplit .player-controls svg { width: 22px; height: 22px; }
  .player-overlay.vsplit .player-controls button { padding: 4px; }
  .player-overlay.vsplit .player-controls .pc-title-sm { display: none; }     /* the title is in the top bar and on the panel */
  .player-overlay.vsplit .player-controls .pc-time { order: -1; flex-basis: 100%; text-align: right; font-size: 12.5px; }
  .player-overlay.vsplit .player-controls .pc-right { gap: 8px; }
  .player-overlay.vsplit #pc-next { padding: 0 6px 0 2px; font-size: 13px; }
}
@media (max-width: 480px) {
  .player-bar { padding: 12px 14px calc(14px + env(safe-area-inset-bottom)); }
  .scrub { margin-bottom: 8px; }
  .player-controls { gap: 8px; row-gap: 8px; }
  .player-controls svg { width: 20px; height: 20px; }
  .player-bar .icon-btn, .player-controls button { padding: 4px; }
  .player-controls .pc-title-sm { display: none; }
  .player-controls .pc-time { order: -1; flex-basis: 100%; text-align: right; font-size: 12px; }
  .player-controls .pc-right { gap: 8px; }
  #pc-next { padding: 0 6px 0 2px; font-size: 12.5px; }
}

/* ===== Icons, not emoji (iOS drew ▶ ✨ ♥ from Apple Color Emoji) ===== */
.hero-meta .tag-live { display: inline-flex; align-items: center; gap: 5px; }
.hero-meta .tag-live svg { width: 10px; height: 10px; }
.premiere svg { width: 12px; height: 12px; vertical-align: -1px; margin-right: 4px; }
#pc-next svg { width: 15px; height: 15px; vertical-align: -3px; margin-left: 1px; }
.rr-spark svg, .recs-ai svg, .ai-search-status svg, .ai-search-head svg { width: 12px; height: 12px; vertical-align: -1px; }
.rr-spark svg { color: var(--gold-soft); }
#fy-refresh svg { width: 15px; height: 15px; vertical-align: -3px; margin-right: 5px; }
.sx-empty-ic svg { width: 46px; height: 46px; color: var(--gold-soft); }
.sx-pending-ic svg { width: 40px; height: 40px; color: var(--gold-soft); }
.pf-clear svg { width: 12px; height: 12px; }
.sx-x svg { width: 18px; height: 18px; vertical-align: middle; }

/* ===== Comments: replies ===== */
.cmt-like svg { width: 15px; height: 15px; vertical-align: -3px; margin-right: 2px; }
.cmt-like.liked svg { color: #e0607a; }
.cmt-replybtn { background: none; border: none; color: var(--muted, #8a7d60); cursor: pointer; font-size: 14px; padding: 0; font-weight: 600; }
.cmt-replybtn:hover { color: #fff; }
.cmt-count { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 4px; }
/* a narrow column (the Clips sheet, a phone) must never break a name mid-word: the line wraps instead */
.cmt-head { flex-wrap: wrap; row-gap: 2px; }
.cmt-name { white-space: nowrap; }
.cmt-replies { display: flex; flex-direction: column; gap: 16px; margin-top: 14px; padding-left: 12px; border-left: 2px solid rgba(203,182,130,0.22); }
.cmt-reply .cmt-av, .cmt-reply .cmt-av-mono { width: 28px; height: 28px; font-size: 13px; }
.cmt-reply-to { display: inline-flex; align-items: center; gap: 3px; color: var(--gold-soft); font-size: 12px; margin-right: 8px; }
.cmt-reply-to svg { width: 12px; height: 12px; }
.cmt-reply-box { display: flex; gap: 10px; margin-top: 12px; }
.cmt-reply-box .cmt-av, .cmt-reply-box .cmt-av-mono { width: 28px; height: 28px; font-size: 13px; }
.cmt-reply-box .cmt-compose-actions { gap: 8px; }
.cmt-cancel { padding: 8px 14px; }

/* ===== Clips: comments (a sheet on phones, the thread in the info panel on widescreen) ===== */
.clip-cmt-btn { position: relative; }
.clip-cmt-n { position: absolute; top: -6px; right: -12px; min-width: 16px; padding: 0 4px; border-radius: 8px; font-size: 10px; font-weight: 800; line-height: 16px; text-align: center; color: var(--noir); background: var(--gold); }
.clip-cmt-n:empty { display: none; }
.clip-cmt { position: fixed; inset: 0; z-index: 250; display: none; }
.clip-cmt.open { display: block; }
/* the clip keeps playing behind the sheet: the scrim only darkens it a touch (and catches the tap
   that closes), the panel is frosted glass rather than a solid card */
.clip-cmt-scrim { position: absolute; inset: 0; background: rgba(0,0,0,0.18); opacity: 0; transition: opacity 0.25s var(--ease); }
.clip-cmt-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 72vh; min-height: min(52vh, 460px); display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(16,14,11,0.42) 0%, rgba(16,14,11,0.58) 26%, rgba(16,14,11,0.66) 100%);
  -webkit-backdrop-filter: blur(26px) saturate(1.15); backdrop-filter: blur(26px) saturate(1.15);
  border-radius: 18px 18px 0 0; border-top: 1px solid rgba(203,182,130,0.32);
  box-shadow: 0 -12px 40px rgba(0,0,0,0.45);
  transform: translateY(100%); transition: transform 0.28s var(--ease);
  padding-bottom: env(safe-area-inset-bottom);
}
/* the film is moving underneath, so every word carries its own shadow */
.clip-cmt-panel, .clip-cmt-panel .cmt-text, .clip-cmt-panel .cmt-name, .clip-cmt-panel .cmt-time,
.clip-cmt-panel .cmt-empty, .clip-cmt-panel .cmt-actions button { text-shadow: 0 1px 3px rgba(0,0,0,0.75); }
.clip-cmt-panel .cmt-text, .clip-cmt-panel .cmt-empty { color: #f4f1ea; }
.clip-cmt-panel .cmt-input { background: rgba(0,0,0,0.34); border-color: rgba(255,255,255,0.22); }
.clip-cmt-panel .cmt-input:focus { background: rgba(0,0,0,0.46); }
.clip-cmt-panel .cmt-av-mono { box-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.clip-cmt-panel .cmt-replies { border-left-color: rgba(255,255,255,0.28); }
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .clip-cmt-panel { background: linear-gradient(180deg, rgba(16,14,11,0.82) 0%, rgba(16,14,11,0.9) 100%); }
}
.clip-cmt.open .clip-cmt-scrim { opacity: 1; }
.clip-cmt.open .clip-cmt-panel { transform: none; }
.clip-cmt-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; border-bottom: 1px solid rgba(255,255,255,0.14); }
.clip-cmt-title { font-weight: 800; font-size: 15px; color: var(--pearl); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clip-cmt-close { background: none; border: 0; color: var(--pearl); width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; }
.clip-cmt-close svg { width: 20px; height: 20px; }
.clip-cmt-body { overflow-y: auto; padding: 4px 16px calc(18px + var(--tabbar-h, 0px)); -webkit-overflow-scrolling: touch; }   /* the phone tab bar sits over the sheet */
.clip-cmt-body .modal-section { margin-top: 0; padding-top: 10px; border-top: 0; }
.clip-cmt-body .modal-section-head { display: none; }
.clip-info .comments-section { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(203,182,130,0.18); }
@media (min-aspect-ratio: 1/1) and (min-width: 880px) {
  .clip-cmt-body { padding-bottom: 18px; }
  .clip-cmt-panel { left: auto; top: 0; bottom: 0; width: min(440px, 46vw); max-height: none; border-radius: 0; border-top: 0; border-left: 1px solid rgba(203,182,130,0.3);
    background: linear-gradient(90deg, rgba(16,14,11,0.42) 0%, rgba(16,14,11,0.62) 100%); box-shadow: -12px 0 40px rgba(0,0,0,0.45); transform: translateX(100%); }
}

/* ===== AI search ===== */
.ai-search { margin: 6px 0 26px; }
.ai-search-status { display: flex; align-items: center; gap: 8px; color: var(--gold-soft); font-size: 14px; padding: 6px 0 4px; }
.ai-search-status svg { animation: og-spark 1.4s ease-in-out infinite; }
.ai-search-none { color: var(--silver); }
.ai-search-none svg { animation: none; }
@keyframes og-spark { 0%, 100% { opacity: 0.45; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.1); } }
.ai-search-head { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 14px; }
.ai-search-head h3 { font-size: 20px; font-weight: 700; color: var(--pearl); display: inline-flex; align-items: center; gap: 8px; }
.ai-search-head h3 svg { width: 16px; height: 16px; color: var(--gold-soft); }
.ai-search-sub { color: var(--muted); font-size: 13px; }
.ai-search-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 12px; }
.ai-search-grid .rec-card .card { width: 100%; }
.ai-search-grid .rec-reason { max-width: none; font-size: 12px; }
@media (max-width: 860px) { .ai-search-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px 10px; } }

/* ===== Sign-in gate: why you're seeing it ===== */
.auth-why {
  display: flex; gap: 8px; align-items: flex-start; text-align: left;
  margin: -10px 0 20px; padding: 11px 13px; border-radius: 11px;
  background: rgba(203,182,130,0.1); border: 1px solid rgba(203,182,130,0.3);
  color: var(--gold-soft); font-size: 13.5px; line-height: 1.45;
}
.auth-why svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 1px; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }
.empty-actions--left { justify-content: flex-start; margin: 0 0 20px; }

/* ===== Scrubbing with a finger =====
   `overflow: hidden` on the bar was clipping both the knob and the ±11px hit strip, so a phone had a
   5px target and no drag at all. The bar keeps its thin look; the target is 28px tall, the knob is
   always there on touch, and the page never scrolls under the drag. */
.scrub { overflow: visible; touch-action: none; }
.scrub-buffer, .scrub .fill { border-radius: 4px; }
.scrub::after { top: -14px; bottom: -14px; }
.scrub-knob { opacity: 1; width: 14px; height: 14px; box-shadow: 0 2px 7px rgba(0,0,0,0.6); }
@media (hover: hover) and (pointer: fine) {
  .scrub-knob { opacity: 0; }
  .scrub:hover .scrub-knob { opacity: 1; }
}
.player-overlay.scrubbing .scrub-knob { opacity: 1; width: 20px; height: 20px; }
.player-overlay.scrubbing .scrub .fill, .player-overlay.scrubbing .scrub-knob { transition: none; }
.player-overlay.scrubbing .player-bigplay { display: none !important; }     /* no pause glyph mid-drag */
.player-overlay.scrubbing .player-bar, .player-overlay.scrubbing .player-top { opacity: 1 !important; }
@media (max-width: 860px) {
  .scrub { height: 6px; }
  .scrub-knob { width: 16px; height: 16px; }
  .player-overlay.scrubbing .scrub-knob { width: 22px; height: 22px; }
  .scrub-thumb canvas { width: 132px; height: 74px; }
}

/* ---------- Up Next (app.js UpNext): the next pick starts by itself when a film ends ---------- */
.upnext {
  position: absolute; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: radial-gradient(ellipse at 30% 40%, rgba(203,182,130,0.10), rgba(0,0,0,0) 60%), rgba(8,7,6,0.92);
  animation: un-in .35s ease;
}
@keyframes un-in { from { opacity: 0; } to { opacity: 1; } }
.player-overlay.un-on .player-bar, .player-overlay.un-on .player-top, .player-overlay.un-on .player-bigplay,
.player-overlay.un-on .skip-intro, .player-overlay.un-on .player-loading, .player-overlay.un-on .ad-ui,
.player-overlay.un-on .pc-menu { display: none !important; }
.un-wrap { width: min(860px, 100%); max-height: 100%; overflow: auto; }
.un-k { font-size: 12.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.un-k span { color: var(--saddle-soft); letter-spacing: .04em; text-transform: none; font-weight: 600; }
.un-main { display: flex; gap: 22px; align-items: center; width: 100%; padding: 0; text-align: left; color: inherit; background: none; border: 0; cursor: pointer; }
.un-art {
  position: relative; flex: none; width: min(420px, 48vw); aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  background: #1c1813 center / cover no-repeat; box-shadow: 0 24px 70px rgba(0,0,0,.6), 0 0 0 1px rgba(203,182,130,.25);
  display: grid; place-items: center; transition: transform .2s ease, box-shadow .2s ease;
}
.un-main:hover .un-art, .un-main:focus-visible .un-art { transform: scale(1.02); box-shadow: 0 24px 70px rgba(0,0,0,.6), 0 0 0 2px var(--gold); }
.un-ring { position: relative; width: 76px; height: 76px; border-radius: 50%; background: rgba(8,7,6,.62); display: grid; place-items: center; }
.un-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.un-ring circle { fill: none; stroke-width: 3; }
.un-ring-bg { stroke: rgba(233,219,189,.22); }
.un-ring-fg { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 106.8; stroke-dashoffset: 0; animation: un-count var(--un-secs, 8s) linear forwards; }
.un-ring.paused .un-ring-fg { animation-play-state: paused; }
.un-ring b { position: relative; font-size: 26px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
@keyframes un-count { to { stroke-dashoffset: 106.8; } }
.un-stopped .un-ring { display: none; }
.un-t { min-width: 0; }
.un-t b { display: block; font-size: clamp(22px, 3vw, 34px); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; color: #fff; }
.un-t small { display: block; margin-top: 8px; font-size: 14px; color: var(--silver); }
.un-t em { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 10px; font-style: normal; font-size: 14.5px; line-height: 1.5; color: var(--pearl); opacity: .85; }
.un-alts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.un-alt { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; text-align: left; color: inherit; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid rgba(160,140,91,.22); transition: background .2s ease, border-color .2s ease; }
.un-alt:hover, .un-alt:focus-visible { background: rgba(160,140,91,.16); border-color: rgba(203,182,130,.5); }
.un-alt-art { flex: none; width: 112px; aspect-ratio: 16 / 9; border-radius: 8px; background: #1c1813 center / cover no-repeat; }
.un-alt-t { min-width: 0; }
.un-alt-t b { display: block; font-size: 14.5px; line-height: 1.25; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.un-alt-t small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--silver); }
.un-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.un-join { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; padding: 14px 16px; border-radius: 12px;
  background: rgba(203,182,130,.08); border: 1px solid rgba(203,182,130,.28); }
.un-join span { flex: 1 1 260px; font-size: 14px; color: var(--pearl); }
.un-join input { flex: 1 1 200px; min-width: 0; padding: 11px 14px; border-radius: 8px; border: 1px solid rgba(160,140,91,.45); background: rgba(0,0,0,.35); color: #fff; font: inherit; font-size: 15px; }
.un-join input.err { border-color: rgba(255,110,110,.8); }
.un-done { margin-top: 18px; font-size: 14px; color: var(--pearl); }
.un-done b { color: var(--gold); }
@media (max-width: 700px) {
  .upnext { align-items: flex-start; padding: 64px 16px 20px; }
  .un-main { flex-direction: column; align-items: stretch; gap: 14px; }
  .un-art { width: 100%; }
  .un-alts { grid-template-columns: minmax(0, 1fr); }
  .un-row .btn { flex: 1 1 auto; justify-content: center; }
}
