/* ============================================
   EARNWAY.LIFE — Movie discovery platform
   Brand gradient: red → orange → magenta → blue
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');

:root {
  /* Deep cinematic background */
  --bg-0: #07060a;
  --bg-1: #0e0c12;
  --bg-2: #15121c;
  --bg-3: #1d1928;
  --bg-4: #272235;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hi: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.07);
  --border-hi: rgba(255, 255, 255, 0.14);

  /* Text */
  --text-0: #f5f3f7;
  --text-1: #c9c4d1;
  --text-2: #8f8a99;
  --text-3: #5e5870;

  /* BRAND — sampled from logo */
  --brand-red:     #d12a44;
  --brand-orange:  #e85d2e;
  --brand-magenta: #6b2d5c;
  --brand-blue:    #2e4ec8;
  --brand-blue-hi: #3a6ae0;

  /* Brand gradient — the signature */
  --brand-grad: linear-gradient(135deg,
    #d12a44 0%,
    #e85d2e 28%,
    #8a2e63 62%,
    #2e4ec8 100%);

  --brand-grad-soft: linear-gradient(135deg,
    rgba(209, 42, 68, 0.20) 0%,
    rgba(232, 93, 46, 0.16) 28%,
    rgba(138, 46, 99, 0.20) 62%,
    rgba(46, 78, 200, 0.20) 100%);

  --brand-glow: rgba(232, 93, 46, 0.35);
  --brand-glow-blue: rgba(46, 78, 200, 0.30);

  /* Status */
  --good: #4ecb71;
  --warn: #f5b341;
  --bad:  #ef4444;

  /* Type */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-back: cubic-bezier(0.34, 1.4, 0.64, 1);

  /* Layout */
  --nav-h: 72px;
  --container: 1320px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: var(--brand-orange); color: white; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-0);
  color: var(--text-0);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Atmospheric body glow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% -10%, rgba(209, 42, 68, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 90%, rgba(46, 78, 200, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ===== Container ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}
@media (max-width: 700px) {
  .container { padding: 0 1rem; }
}

/* ===== Typography ===== */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; }
h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

.serif-italic { font-style: italic; }
.brand-grad-text {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: linear-gradient(180deg, rgba(7,6,10,0.85) 0%, rgba(7,6,10,0) 100%);
  transition: all 0.3s var(--ease);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
}
.nav.scrolled {
  background: rgba(7,6,10,0.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 700px) { .nav { padding: 0 1rem; } }

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  color: var(--text-0);
  flex-shrink: 0;
}
.logo-mark {
  display: inline-block;
  width: 36px; height: 40px;
  background: url('logo-mark.png') center/contain no-repeat;
  flex-shrink: 0;
  /* Hide any text content (legacy fallback "E") */
  font-size: 0; color: transparent;
  filter: drop-shadow(0 6px 14px rgba(232, 93, 46, 0.35));
}
/* Larger lockup variant — full logo with tagline */
.logo-lockup {
  display: inline-block;
  width: 200px;
  max-width: 60vw;
  aspect-ratio: 1 / 1;
  background: url('logo-full.png') center/contain no-repeat;
  filter: drop-shadow(0 12px 30px rgba(232, 93, 46, 0.25));
}
.logo-tag {
  font-size: 0.62rem;
  color: var(--text-2);
  letter-spacing: 0.1em;
  margin-left: 0.4rem;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  flex-grow: 1;
  justify-content: center;
}
.nav-links a {
  color: var(--text-1);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--text-0); }
.nav-links a.active { color: var(--text-0); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 2px;
  background: var(--brand-grad);
  border-radius: 2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

/* Search trigger */
.search-trigger {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border-hi);
  color: var(--text-1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.search-trigger:hover {
  background: var(--surface);
  color: var(--text-0);
  border-color: var(--text-2);
}

/* Hamburger (mobile) */
.nav-burger {
  display: none;
  width: 38px; height: 38px;
  background: transparent;
  border: 1px solid var(--border-hi);
  border-radius: 50%;
  color: var(--text-0);
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

/* Mobile menu drawer */
.mobile-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(320px, 88vw);
  background: var(--bg-1);
  border-left: 1px solid var(--border);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  padding: 5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer a {
  color: var(--text-1);
  font-size: 1.1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}
.mobile-drawer a.active { color: var(--text-0); }
.mobile-drawer .btn { margin-top: 1rem; justify-content: center; }
.drawer-close {
  position: absolute;
  top: 1.4rem; right: 1.4rem;
  background: transparent;
  border: none;
  color: var(--text-1);
  font-size: 1.6rem;
}
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand-grad);
  color: white;
  box-shadow: 0 8px 24px -10px rgba(232, 93, 46, 0.45);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px -10px rgba(232, 93, 46, 0.55);
}
.btn-white {
  background: white;
  color: var(--bg-0);
}
.btn-white:hover {
  background: var(--text-0);
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--surface-hi);
  color: var(--text-0);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-hi);
}
.btn-ghost:hover { background: var(--bg-3); }
.btn-glass {
  background: rgba(20, 18, 28, 0.6);
  color: var(--text-0);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-hi);
}
.btn-glass:hover { background: rgba(40, 36, 56, 0.7); }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.82rem; }
.btn-lg { padding: 0.95rem 1.7rem; font-size: 1rem; }

/* ===== SEARCH OVERLAY ===== */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7,6,10,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 300;
  display: none;
  flex-direction: column;
  align-items: center;
  padding-top: 12vh;
  opacity: 0;
  transition: opacity 0.3s;
}
.search-overlay.open { display: flex; opacity: 1; }
.search-form {
  width: min(720px, 90%);
  position: relative;
}
.search-form input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border-hi);
  padding: 0.8rem 0 0.8rem 3rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  color: var(--text-0);
  outline: none;
  transition: border-color 0.3s;
}
.search-form input:focus { border-bottom-color: var(--brand-orange); }
.search-form input::placeholder { color: var(--text-3); font-style: italic; }
.search-form svg {
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  color: var(--text-2);
}
.search-close {
  position: absolute;
  top: 1.6rem; right: 1.6rem;
  background: transparent;
  border: 1px solid var(--border-hi);
  color: var(--text-0);
  border-radius: 50%;
  width: 44px; height: 44px;
  font-size: 1.3rem;
}
.search-suggestions {
  margin-top: 2.5rem;
  width: min(720px, 90%);
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.search-suggestions span {
  color: var(--text-3);
  font-size: 0.85rem;
  margin-right: 0.4rem;
}
.search-suggestions a {
  background: var(--surface);
  border: 1px solid var(--border-hi);
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-1);
  transition: all 0.2s;
}
.search-suggestions a:hover { background: var(--surface-hi); color: var(--text-0); border-color: var(--text-2); }

/* ===== SECTION ===== */
.section {
  padding: 4rem 0;
  position: relative;
}
@media (max-width: 700px) { .section { padding: 2.5rem 0; } }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 600;
}
.section-head a {
  font-size: 0.85rem;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s;
}
.section-head a:hover { color: var(--text-0); }

/* ===== HERO BILLBOARD (home) ===== */
.billboard {
  position: relative;
  min-height: clamp(560px, 92vh, 820px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  margin-top: 0;
}
.billboard-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.billboard-art {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 30%, rgba(209, 42, 68, 0.45), transparent 60%),
    radial-gradient(ellipse 60% 60% at 90% 80%, rgba(46, 78, 200, 0.40), transparent 60%),
    radial-gradient(ellipse 50% 40% at 30% 70%, rgba(232, 93, 46, 0.30), transparent 60%),
    linear-gradient(120deg, #1a0c1f 0%, #0a0710 100%);
}
.billboard-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg-0) 0%, rgba(7,6,10,0.7) 30%, transparent 70%),
    linear-gradient(to right, rgba(7,6,10,0.85) 0%, transparent 50%);
}
.billboard-bg svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  mix-blend-mode: screen;
  opacity: 0.15;
}

.billboard-content {
  width: 100%;
  padding: 0 0 5rem;
  z-index: 1;
}
.billboard-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  color: var(--text-1);
  font-size: 0.92rem;
}
.billboard-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-3); }
.billboard-meta .rating {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(245, 179, 65, 0.14);
  color: var(--warn);
  padding: 3px 9px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.82rem;
}
.billboard h1 {
  font-style: italic;
  max-width: 700px;
  margin-bottom: 1rem;
}
.billboard-overview {
  color: var(--text-1);
  max-width: 580px;
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  line-height: 1.6;
  margin-bottom: 1.8rem;
}
.billboard-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  align-items: center;
}
.providers {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.4rem;
}
.providers-label {
  font-size: 0.75rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-right: 0.2rem;
}
.provider-chip {
  background: var(--surface-hi);
  border: 1px solid var(--border-hi);
  padding: 0.36rem 0.8rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-0);
  letter-spacing: 0.01em;
  transition: all 0.2s;
}
.provider-chip:hover { background: var(--bg-3); border-color: var(--text-3); }
.provider-chip.prime { color: #1399ff; }
.provider-chip.netflix { color: #e50914; }
.provider-chip.jio { color: #ff5d00; }
.provider-chip.disney { color: #38b6ff; }

/* ===== ROW SCROLLER ===== */
.row-scroller {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 0.6rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-3) transparent;
}
.row-scroller::-webkit-scrollbar { height: 6px; }
.row-scroller::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 3px; }
.row-scroller::-webkit-scrollbar-track { background: transparent; }

/* ===== POSTER CARD ===== */
.poster {
  flex-shrink: 0;
  width: 180px;
  scroll-snap-align: start;
  position: relative;
  cursor: pointer;
  transition: transform 0.35s var(--ease);
}
.poster:hover { transform: translateY(-4px); }
@media (max-width: 700px) {
  .poster { width: 140px; }
}

.poster-art {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(160deg, #2a1c34, #0e0a16);
  box-shadow: 0 12px 36px -12px rgba(0,0,0,0.6);
  transition: all 0.35s var(--ease);
}
.poster:hover .poster-art {
  box-shadow:
    0 20px 50px -10px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255,255,255,0.06);
}
.poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7) 75%, rgba(0,0,0,0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.poster:hover .poster-overlay { opacity: 1; }
.poster-overlay-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
  line-height: 1.2;
}
.poster-overlay-meta {
  font-size: 0.76rem;
  color: var(--text-1);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.poster-overlay-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }
.poster-overlay-actions {
  display: flex;
  gap: 0.4rem;
}
.poster-icon-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(0,0,0,0.4);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.poster-icon-btn:hover { background: white; color: black; transform: scale(1.08); }
.poster-icon-btn.play { background: white; color: black; border-color: white; }
.poster-icon-btn.play:hover { background: var(--text-0); }

/* Poster title fallback (shown when no real image) */
.poster-fallback-title {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.1;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}
.poster-fallback-title small {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Color schemes for poster fallback art — themed per genre */
.art-action   { background: linear-gradient(160deg, #5b0e1a 0%, #1a0608 100%); }
.art-action::before { content: ''; position:absolute; inset:0; background: radial-gradient(ellipse at 30% 20%, rgba(232,93,46,0.45), transparent 60%); }

.art-thriller { background: linear-gradient(160deg, #2a1145 0%, #0a0414 100%); }
.art-thriller::before { content: ''; position:absolute; inset:0; background: radial-gradient(ellipse at 70% 30%, rgba(138,46,99,0.4), transparent 60%); }

.art-drama    { background: linear-gradient(160deg, #3a1318 0%, #120709 100%); }
.art-drama::before { content: ''; position:absolute; inset:0; background: radial-gradient(ellipse at 20% 80%, rgba(209,42,68,0.35), transparent 60%); }

.art-scifi    { background: linear-gradient(160deg, #0e1f4a 0%, #050912 100%); }
.art-scifi::before { content: ''; position:absolute; inset:0; background: radial-gradient(ellipse at 70% 40%, rgba(46,78,200,0.45), transparent 60%); }

.art-romance  { background: linear-gradient(160deg, #4a1432 0%, #1a0a14 100%); }
.art-romance::before { content: ''; position:absolute; inset:0; background: radial-gradient(ellipse at 30% 30%, rgba(232,93,46,0.3), transparent 60%); }

.art-anime    { background: linear-gradient(160deg, #1a1f4a 0%, #07091a 100%); }
.art-anime::before { content: ''; position:absolute; inset:0; background: radial-gradient(ellipse at 60% 20%, rgba(232,93,46,0.4), transparent 60%); }

.art-horror   { background: linear-gradient(160deg, #1a0508 0%, #050102 100%); }
.art-horror::before { content: ''; position:absolute; inset:0; background: radial-gradient(ellipse at 50% 90%, rgba(209,42,68,0.4), transparent 60%); }

.art-comedy   { background: linear-gradient(160deg, #4a2f0e 0%, #14100a 100%); }
.art-comedy::before { content: ''; position:absolute; inset:0; background: radial-gradient(ellipse at 20% 30%, rgba(232,93,46,0.4), transparent 60%); }

.art-fantasy  { background: linear-gradient(160deg, #2a0e4a 0%, #0a0414 100%); }
.art-fantasy::before { content: ''; position:absolute; inset:0; background: radial-gradient(ellipse at 80% 40%, rgba(46,78,200,0.4), transparent 60%); }

.art-doc      { background: linear-gradient(160deg, #1a1a28 0%, #07070a 100%); }
.art-doc::before { content: ''; position:absolute; inset:0; background: radial-gradient(ellipse at 40% 50%, rgba(232,93,46,0.25), transparent 60%); }

.poster-art > .poster-fallback-title { z-index: 1; }

/* ===== CONTINUE WATCHING (special row with progress) ===== */
.continue-card {
  flex-shrink: 0;
  width: 280px;
  scroll-snap-align: start;
  cursor: pointer;
  position: relative;
  transition: transform 0.35s var(--ease);
}
.continue-card:hover { transform: translateY(-4px); }
.continue-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 12px 36px -12px rgba(0,0,0,0.6);
}
.continue-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(255,255,255,0.2);
}
.continue-progress span {
  display: block;
  height: 100%;
  background: var(--brand-grad);
}
.continue-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: rgba(0,0,0,0.4);
  transition: opacity 0.25s;
}
.continue-card:hover .continue-play { opacity: 1; }
.continue-play-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-0);
}
.continue-meta {
  padding: 0.7rem 0.1rem;
}
.continue-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}
.continue-sub {
  font-size: 0.78rem;
  color: var(--text-2);
}

/* ===== HERO BADGE (Top 10, Trending, etc.) ===== */
.row-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.3rem;
  font-family: var(--font-body);
}

/* ===== GENRE / FILTER CHIPS ===== */
.chip-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.2rem 0 0.6rem;
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  color: var(--text-1);
  padding: 0.55rem 1.1rem;
  border-radius: 100px;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.chip:hover { background: var(--surface-hi); color: var(--text-0); }
.chip.active {
  background: var(--brand-grad);
  color: white;
  border-color: transparent;
  font-weight: 600;
}

/* ===== FORMS / INPUTS ===== */
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-2);
  margin-bottom: 0.4rem;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-1);
  border: 1px solid var(--border-hi);
  color: var(--text-0);
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s var(--ease);
}
.field input::placeholder { color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-orange);
  background: var(--bg-2);
  box-shadow: 0 0 0 4px rgba(232, 93, 46, 0.12);
}

/* ===== CARD (generic) ===== */
.card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.6rem;
  transition: all 0.3s var(--ease);
}
.card:hover { border-color: var(--border-hi); }

/* ===== FOOTER ===== */
.footer {
  margin-top: 5rem;
  padding: 4rem 0 2rem;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-0);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.6rem; }
.footer ul li a {
  color: var(--text-2);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer ul li a:hover { color: var(--text-0); }
.footer-bottom {
  padding-top: 1.8rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-3);
}
.footer-brand-tag {
  color: var(--text-2);
  font-size: 0.88rem;
  margin-top: 1rem;
  max-width: 320px;
  line-height: 1.6;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.8s var(--ease) both; }
.d1 { animation-delay: 0.1s; }
.d2 { animation-delay: 0.2s; }
.d3 { animation-delay: 0.3s; }
.d4 { animation-delay: 0.4s; }
.d5 { animation-delay: 0.5s; }

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 93, 46, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(232, 93, 46, 0); }
}

/* ===== REVEAL ON SCROLL ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s var(--ease);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== UTIL ===== */
.text-muted { color: var(--text-2); }
.text-dim   { color: var(--text-3); }
.divider { height: 1px; background: var(--border); margin: 2rem 0; }

/* ============================================
   POSTER ENHANCEMENTS — richer, less empty
   ============================================ */

/* Subtle border on every poster */
.poster-art {
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Soft vignette + letterbox bars — top and bottom dark fade */
.poster-art > .poster-letterbox {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, transparent 14%, transparent 86%, rgba(0,0,0,0.55) 100%),
    radial-gradient(ellipse 100% 100% at 50% 50%, transparent 55%, rgba(0,0,0,0.35) 100%);
}

/* Giant faded monogram letter — first letter of title */
.poster-monogram {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 9rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.08);
  z-index: 0;
  user-select: none;
  letter-spacing: -0.04em;
}
.continue-thumb .poster-monogram { font-size: 5rem; }
.history-thumb .poster-monogram { font-size: 4rem; }

/* Corner badges — always visible */
.poster-year-badge {
  position: absolute;
  top: 0.55rem; right: 0.55rem;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.5rem;
  border-radius: 5px;
  z-index: 3;
}
.poster-rating-badge {
  position: absolute;
  top: 0.55rem; left: 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--warn);
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.22rem 0.45rem;
  border-radius: 5px;
  z-index: 3;
}
.poster-rating-badge::before { content: '★'; color: var(--warn); }

/* Subtle play indicator in bottom-right (always visible) */
.poster-play-corner {
  position: absolute;
  bottom: 0.55rem; right: 0.55rem;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  opacity: 0.85;
  transition: all 0.2s var(--ease);
}
.poster:hover .poster-play-corner { opacity: 0; transform: scale(0.7); } /* fades on hover when full overlay appears */
.poster-play-corner svg { width: 11px; height: 11px; color: var(--bg-0); margin-left: 1px; }

/* Title in fallback gets stronger poster typography */
.poster-fallback-title {
  z-index: 2;
  text-shadow: 0 4px 16px rgba(0,0,0,0.7), 0 0 30px rgba(0,0,0,0.4);
}
/* Hide the legacy <small> inside title (year/rating now in badges) */
.poster-fallback-title small {
  display: none;
}

/* ============================================
   TOP 10 ROW — Netflix-style giant numbers
   ============================================ */
/* (Top 10 outline-number rules removed in v3 — the row is now plain) */

/* ============================================
   AUTH GATE (dashboard)
   ============================================ */
.signin-required {
  display: none;
  text-align: center;
  padding: 5rem 2rem 6rem;
  max-width: 520px;
  margin: 4rem auto;
  background: var(--bg-1);
  border: 1px solid var(--border-hi);
  border-radius: 24px;
}
.signin-required .lock-icon {
  width: 72px; height: 72px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(232,93,46,0.18), rgba(46,78,200,0.12));
  border: 1px solid var(--border-hi);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-orange);
}
.signin-required h2 {
  font-style: italic;
  font-weight: 500;
  margin-bottom: 0.8rem;
}
.signin-required h2 em { color: var(--brand-orange); }
.signin-required p {
  color: var(--text-1);
  margin-bottom: 1.8rem;
  font-size: 1rem;
  line-height: 1.6;
}
.signin-required-actions {
  display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap;
}

/* ============================================
   MY LIST PAGE — horizontal list cards
   ============================================ */
.mylist-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}
@media (max-width: 700px) { .mylist-stats-bar { grid-template-columns: repeat(2, 1fr); } }
.mylist-stat {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}
.mylist-stat-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1;
}
.mylist-stat-lbl {
  font-size: 0.74rem;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.5rem;
}

.mylist-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.mylist-filter-tabs {
  display: flex;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px;
  gap: 3px;
}
.mylist-filter-tabs button {
  background: transparent;
  border: none;
  color: var(--text-2);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.mylist-filter-tabs button.active {
  background: var(--bg-3);
  color: var(--text-0);
}
.mylist-filter-tabs button .count {
  display: inline-block;
  margin-left: 0.4rem;
  background: rgba(255,255,255,0.06);
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 0.74rem;
  color: var(--text-2);
}
.mylist-filter-tabs button.active .count { background: var(--brand-orange); color: white; }

.mylist-grid {
  display: flex; flex-direction: column; gap: 0.7rem;
}
.mylist-card {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 1.2rem;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.8rem;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  position: relative;
}
.mylist-card:hover { border-color: var(--border-hi); background: var(--bg-2); transform: translateX(4px); }
@media (max-width: 700px) {
  .mylist-card { grid-template-columns: 80px 1fr; row-gap: 0.6rem; padding: 0.7rem; }
  .mylist-card-actions { grid-column: 1 / -1; }
}
.mylist-card-thumb {
  width: 120px;
  aspect-ratio: 2/3;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(160deg, #2a1c34, #0e0a16);
}
@media (max-width: 700px) { .mylist-card-thumb { width: 80px; } }
.mylist-card-thumb .poster-fallback-title { font-size: 0.86rem; }
.mylist-card-thumb .poster-fallback-title small { font-size: 0.6rem; }
.mylist-card-body {
  display: flex; flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  min-width: 0;
}
.mylist-card-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.2;
}
@media (max-width: 700px) { .mylist-card-title { font-size: 1.1rem; } }
.mylist-card-meta {
  display: flex; align-items: center; gap: 0.4rem;
  color: var(--text-2);
  font-size: 0.82rem;
  flex-wrap: wrap;
}
.mylist-card-meta .rating {
  background: rgba(245, 179, 65, 0.14);
  color: var(--warn);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.mylist-card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }
.mylist-card-overview {
  color: var(--text-1);
  font-size: 0.86rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mylist-card-added {
  font-size: 0.74rem;
  color: var(--text-3);
  margin-top: 0.2rem;
}
.mylist-card-added .status-watched { color: var(--good); }
.mylist-card-added .status-partial { color: var(--warn); }
.mylist-card-added .status-new { color: var(--brand-orange); }
.mylist-card-actions {
  display: flex; flex-direction: column;
  gap: 0.4rem;
  align-self: center;
}
.mylist-card-actions button {
  background: var(--surface);
  border: 1px solid var(--border-hi);
  color: var(--text-1);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.mylist-card-actions button:hover { background: var(--surface-hi); color: var(--text-0); }
.mylist-card-actions button.primary {
  background: white; color: var(--bg-0); border-color: white;
}
.mylist-card-actions button.danger:hover { background: rgba(239,68,68,0.12); border-color: var(--bad); color: var(--bad); }

/* Suggestions section under mylist */
.mylist-suggestions {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

/* ============================================
   TRENDING PAGE — distinct from browse
   ============================================ */
.trending-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 2.5rem;
  overflow: hidden;
}
.trending-hero::before {
  content: '';
  position: absolute;
  inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 30% 0%, rgba(209,42,68,0.25), transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 100%, rgba(46,78,200,0.22), transparent 60%);
}
.trending-hero h1 {
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  margin: 0.8rem 0 0.6rem;
}
.trending-hero h1 em { color: var(--brand-orange); font-style: italic; }
.trending-hero-sub {
  color: var(--text-1);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  max-width: 560px;
  margin-bottom: 1.4rem;
}

.trending-window {
  display: inline-flex;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px;
  gap: 3px;
  margin-bottom: 1.4rem;
}
.trending-window button {
  background: transparent;
  border: none;
  color: var(--text-2);
  padding: 0.45rem 1rem;
  border-radius: 100px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.trending-window button.active {
  background: var(--brand-grad);
  color: white;
  font-weight: 600;
}

/* Trending top spot (#1) — big horizontal feature */
.trending-top-spot {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  background: linear-gradient(135deg, rgba(209,42,68,0.10), rgba(46,78,200,0.08));
  border: 1px solid var(--border-hi);
  border-radius: 22px;
  padding: 1.8rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}
@media (max-width: 800px) {
  .trending-top-spot { grid-template-columns: 1fr; }
}
.trending-top-spot::before {
  content: '#1';
  position: absolute;
  top: -10px; right: 20px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 5rem;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.35;
  pointer-events: none;
}
.trending-top-poster {
  aspect-ratio: 2/3;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 50px -15px rgba(0,0,0,0.6);
  max-width: 280px;
}
.trending-top-body { display: flex; flex-direction: column; justify-content: center; }
.trending-top-body .trend-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--brand-orange);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.trending-top-body h2 {
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  margin-bottom: 0.6rem;
}
.trending-top-body .meta {
  display: flex; gap: 0.6rem; flex-wrap: wrap;
  color: var(--text-2); font-size: 0.88rem;
  margin-bottom: 1rem;
}
.trending-top-body .meta .rating {
  background: rgba(245, 179, 65, 0.14);
  color: var(--warn);
  padding: 2px 8px;
  border-radius: 5px;
  font-weight: 600;
}
.trending-top-body .description {
  color: var(--text-1);
  line-height: 1.6;
  margin-bottom: 1.4rem;
}
.trending-velocity {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  margin-top: 0.6rem;
  font-size: 0.84rem;
}
.trending-velocity > div { display: flex; flex-direction: column; gap: 0.2rem; }
.trending-velocity .velocity-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--good);
}
.trending-velocity .velocity-num.down { color: var(--bad); }
.trending-velocity .velocity-lbl {
  font-size: 0.72rem;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Top 10 list — uses .top10-row but in vertical mode */
.trending-list-section { margin-bottom: 2.5rem; }

/* Right sidebar on trending */
.trending-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
}
@media (max-width: 1000px) { .trending-layout { grid-template-columns: 1fr; } .trending-aside { order: -1; } }

.trending-aside .card {
  margin-bottom: 1rem;
}
.trending-aside h4 {
  font-family: var(--font-body);
  font-size: 0.74rem; font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 0.8rem;
}
.trend-search-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: color 0.2s;
}
.trend-search-item:last-child { border-bottom: none; }
.trend-search-item:hover .trend-search-name { color: var(--brand-orange); }
.trend-search-item .trend-search-rank {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text-3);
  width: 28px;
}
.trend-search-item .trend-search-name {
  font-weight: 500;
  font-size: 0.92rem;
  flex-grow: 1;
  transition: color 0.2s;
}
.trend-search-item .trend-search-delta {
  font-size: 0.74rem;
  color: var(--good);
  font-weight: 500;
}
.trend-search-item .trend-search-delta.down { color: var(--bad); }

/* Genre velocity bars */
.genre-velocity-row {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.5rem 0;
}
.genre-velocity-name {
  font-size: 0.88rem;
  width: 100px;
  flex-shrink: 0;
  color: var(--text-1);
}
.genre-velocity-bar {
  flex-grow: 1;
  height: 6px;
  background: var(--bg-3);
  border-radius: 3px;
  overflow: hidden;
}
.genre-velocity-fill {
  height: 100%;
  background: var(--brand-grad);
  border-radius: 3px;
}
.genre-velocity-pct {
  font-size: 0.78rem;
  color: var(--text-2);
  font-weight: 500;
  min-width: 36px;
  text-align: right;
}

/* ============================================
   DASHBOARD PAGE
   ============================================ */
.dash-head {
  padding-top: calc(var(--nav-h) + 2.4rem);
  padding-bottom: 1.4rem;
}
.dash-greeting {
  display: flex; justify-content: space-between; align-items: end;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 0.4rem;
}
.dash-greeting h1 {
  font-size: clamp(1.7rem, 3.3vw, 2.4rem);
  font-weight: 600;
  font-style: italic;
}
.dash-greeting h1 em { color: var(--brand-orange); font-style: italic; }
.dash-subtle { color: var(--text-2); font-size: 0.95rem; }

.balance-hero {
  background: linear-gradient(135deg,
    rgba(209, 42, 68, 0.16) 0%,
    rgba(232, 93, 46, 0.12) 30%,
    rgba(138, 46, 99, 0.16) 60%,
    rgba(46, 78, 200, 0.16) 100%);
  border: 1px solid var(--border-hi);
  border-radius: 22px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.4rem;
}
.balance-hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(232, 93, 46, 0.22), transparent 65%);
  pointer-events: none;
}
.balance-grid {
  display: grid; grid-template-columns: 2fr 1fr;
  gap: 2rem; align-items: center; position: relative;
}
@media (max-width: 800px) { .balance-grid { grid-template-columns: 1fr; } }
.balance-main { display: flex; align-items: center; gap: 1.4rem; }
.balance-coin {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: var(--brand-grad);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-style: italic; font-weight: 700;
  font-size: 1.7rem; color: white;
  box-shadow: 0 14px 40px -10px rgba(232, 93, 46, 0.45);
  flex-shrink: 0;
}
.balance-amount {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1; letter-spacing: -0.01em;
}
.balance-currency { color: var(--text-2); font-size: 1rem; margin-left: 0.4rem; font-weight: 400; font-style: italic; }
.balance-rupees { color: var(--text-1); font-size: 1rem; margin-top: 0.4rem; }
.balance-rupees strong { color: var(--text-0); font-weight: 600; }
.balance-actions { display: flex; flex-direction: column; gap: 0.6rem; }
.balance-actions .btn { justify-content: center; }

.mini-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin-bottom: 2rem;
}
@media (max-width: 800px) { .mini-stats { grid-template-columns: repeat(2, 1fr); } }
.mini-stat {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  transition: all 0.2s;
}
.mini-stat:hover { border-color: var(--border-hi); }
.mini-stat-label {
  font-size: 0.74rem; color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 0.4rem; font-weight: 500;
}
.mini-stat-value {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.5rem; line-height: 1;
}
.mini-stat-delta {
  font-size: 0.78rem; color: var(--good);
  margin-top: 0.4rem; font-weight: 500;
}

.dash-section { margin-bottom: 2.4rem; }
.dash-section-head {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 1rem; flex-wrap: wrap; gap: 0.6rem;
}
.dash-section-head h2 { font-size: 1.4rem; font-weight: 600; }
.dash-section-head .text-muted { font-size: 0.86rem; }

.task-list { display: flex; flex-direction: column; gap: 0.6rem; }
.task-item {
  display: grid;
  grid-template-columns: 44px 1fr auto auto;
  gap: 1rem; align-items: center;
  background: var(--bg-1);
  border: 1px solid var(--border);
  padding: 1rem 1.2rem;
  border-radius: 12px;
  transition: all 0.2s;
}
.task-item:hover { border-color: var(--border-hi); background: var(--bg-2); }
@media (max-width: 700px) {
  .task-item { grid-template-columns: 44px 1fr; row-gap: 0.6rem; }
  .task-item .task-reward, .task-item .task-action { grid-column: 2 / -1; }
}
.task-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--surface-hi);
  border: 1px solid var(--border-hi);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.task-icon.done { background: rgba(78, 203, 113, 0.16); border-color: rgba(78, 203, 113, 0.3); color: var(--good); }
.task-text strong { font-weight: 600; font-size: 0.98rem; display: block; margin-bottom: 0.18rem; }
.task-text span { font-size: 0.8rem; color: var(--text-2); }
.task-reward {
  display: inline-flex; align-items: center; gap: 0.34rem;
  background: rgba(232, 93, 46, 0.12);
  color: var(--brand-orange);
  padding: 0.34rem 0.7rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.84rem;
}
.task-reward.done { background: rgba(78, 203, 113, 0.12); color: var(--good); }
.task-action {
  background: white; color: var(--bg-0);
  border: none; padding: 0.5rem 1rem; border-radius: 8px;
  font-weight: 600; font-size: 0.84rem; cursor: pointer;
}
.task-action.done { background: var(--bg-2); color: var(--text-2); cursor: default; }

.installment-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.6rem;
}
.installment-summary {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 1.4rem;
}
.installment-summary-left strong {
  font-family: var(--font-display); font-size: 1.2rem; display: block; margin-bottom: 0.2rem;
}
.installment-summary-left span { font-size: 0.85rem; color: var(--text-2); }
.installment-progress-text { font-size: 0.86rem; color: var(--text-1); }
.installment-progress-text strong { color: var(--brand-orange); }
.installments-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 0.4rem; margin-top: 1.2rem;
}
@media (max-width: 700px) { .installments-grid { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; } }
.installment-month {
  text-align: center;
  padding: 0.9rem 0.4rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.2s;
}
.installment-month.paid {
  background: linear-gradient(160deg, rgba(78,203,113,0.14), rgba(78,203,113,0.04));
  border-color: rgba(78,203,113,0.3);
}
.installment-month.current {
  background: linear-gradient(160deg, rgba(232,93,46,0.16), rgba(232,93,46,0.04));
  border-color: var(--brand-orange);
}
.installment-month-label {
  font-size: 0.74rem; color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}
.installment-month-amount {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.05rem;
}
.installment-month.paid .installment-month-amount { color: var(--good); }
.installment-month.current .installment-month-amount { color: var(--brand-orange); }
.installment-month-status { font-size: 0.7rem; margin-top: 0.3rem; color: var(--text-3); }

.earnings-chart {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.4rem;
}
.chart-wrap { width: 100%; aspect-ratio: 16/5; max-height: 220px; }
.chart-wrap svg { width: 100%; height: 100%; }

.referral-grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 1.2rem;
}
@media (max-width: 900px) { .referral-grid { grid-template-columns: 1fr; } }
.referral-code-card {
  background: linear-gradient(160deg,
    rgba(209, 42, 68, 0.14), rgba(46, 78, 200, 0.14));
  border: 1px solid var(--border-hi);
  border-radius: 16px;
  padding: 1.6rem;
}
.referral-code-card h3 {
  font-family: var(--font-body);
  font-size: 0.84rem; font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
}
.referral-code {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--bg-0);
  border: 1px solid var(--border-hi);
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-family: 'Courier New', monospace;
  font-size: 1.05rem; font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--brand-orange);
  margin-bottom: 1rem;
}
.referral-code button {
  background: var(--surface);
  border: 1px solid var(--border-hi);
  color: var(--text-1);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.78rem;
  cursor: pointer;
  margin-left: auto;
  transition: all 0.2s;
  font-family: inherit;
}
.referral-code button:hover { background: var(--surface-hi); color: var(--text-0); }
.referral-share-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.share-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  color: var(--text-0);
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  font-size: 0.84rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.share-btn:hover { background: var(--surface-hi); border-color: var(--text-2); }

.downline-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.4rem;
}
.downline-card h3 {
  font-family: var(--font-body);
  font-size: 0.84rem; font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 1rem;
}
.downline-tree { display: flex; flex-direction: column; gap: 0.6rem; }
.downline-row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 0.8rem; align-items: center;
  padding: 0.7rem 0.9rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.downline-row.level-2 { margin-left: 1.5rem; opacity: 0.85; }
.downline-row.level-3 { margin-left: 3rem; opacity: 0.7; }
.downline-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--brand-grad);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.85rem;
  color: white;
}
.downline-info strong {
  font-weight: 600; font-size: 0.92rem; display: block;
}
.downline-info span { font-size: 0.76rem; color: var(--text-2); }
.downline-earnings {
  font-weight: 600; font-size: 0.92rem;
  color: var(--brand-orange);
  text-align: right;
}
.downline-earnings small {
  display: block; font-size: 0.7rem;
  color: var(--text-3); font-weight: 400; margin-top: 0.15rem;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.history-item {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s var(--ease);
  cursor: pointer;
}
.history-item:hover { transform: translateY(-3px); border-color: var(--border-hi); }
.history-thumb {
  width: 100%; aspect-ratio: 16/9;
  position: relative;
}
.history-thumb .poster-fallback-title { font-size: 1rem; }
.history-progress {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: rgba(255,255,255,0.2);
  z-index: 4;
}
.history-progress span { display: block; height: 100%; background: var(--brand-grad); }
.history-body { padding: 0.8rem 0.9rem; }
.history-body strong { font-size: 0.92rem; display: block; margin-bottom: 0.18rem; }
.history-body span { font-size: 0.76rem; color: var(--text-2); }
.history-body .badge-earned {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.74rem; color: var(--good);
  margin-top: 0.4rem; font-weight: 500;
}

.withdraw-panel {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}
@media (max-width: 800px) { .withdraw-panel { grid-template-columns: 1fr; } }
.withdraw-side h3 {
  font-family: var(--font-body);
  font-size: 0.84rem; font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 0.8rem;
}
.bank-detect {
  background: rgba(78, 203, 113, 0.08);
  border: 1px solid rgba(78, 203, 113, 0.25);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.88rem;
}
.bank-detect svg { color: var(--good); flex-shrink: 0; }
.bank-detect strong { color: var(--good); }
.fee-row {
  display: flex; justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.92rem;
  color: var(--text-1);
  border-bottom: 1px dashed var(--border);
}
.fee-row:last-child {
  font-weight: 600;
  color: var(--text-0);
  border-bottom: none;
  padding-top: 0.7rem;
}
.fee-row strong { color: var(--good); }

.activity-list { display: flex; flex-direction: column; gap: 0.5rem; }
.activity-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 0.9rem; align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}
.activity-item:last-child { border-bottom: none; }
.activity-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.activity-icon.earn { background: rgba(78, 203, 113, 0.12); border-color: rgba(78, 203, 113, 0.3); color: var(--good); }
.activity-icon.spend { background: rgba(232, 93, 46, 0.12); border-color: rgba(232, 93, 46, 0.3); color: var(--brand-orange); }
.activity-icon.refer { background: rgba(46, 78, 200, 0.12); border-color: rgba(46, 78, 200, 0.3); color: var(--brand-blue-hi); }
.activity-body strong { font-weight: 500; font-size: 0.92rem; display: block; }
.activity-body span { font-size: 0.78rem; color: var(--text-3); }
.activity-amount { font-weight: 600; font-size: 0.92rem; }
.activity-amount.pos { color: var(--good); }
.activity-amount.neg { color: var(--text-2); }

.dash-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
}
@media (max-width: 1000px) { .dash-layout { grid-template-columns: 1fr; } }
.dash-side-nav {
  position: sticky;
  top: calc(var(--nav-h) + 1.6rem);
  align-self: start;
  display: flex; flex-direction: column;
  gap: 0.2rem;
}
@media (max-width: 1000px) { .dash-side-nav { display: none; } }
.dash-side-nav a {
  padding: 0.6rem 0.9rem;
  color: var(--text-2);
  font-size: 0.9rem;
  border-left: 2px solid transparent;
  transition: all 0.2s;
}
.dash-side-nav a:hover { color: var(--text-0); }
.dash-side-nav a.active { color: var(--brand-orange); border-left-color: var(--brand-orange); }

/* ============================================
   POSTER IMAGE LAYER (real images on top of gradient)
   ============================================ */
.poster-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  border-radius: inherit;
}
.poster-art.has-image > .poster-fallback-title,
.poster-art.has-image > .poster-monogram {
  display: none;
}
.continue-thumb.has-image > .poster-fallback-title,
.continue-thumb.has-image > .poster-monogram,
.history-thumb.has-image > .poster-fallback-title,
.history-thumb.has-image > .poster-monogram,
.mylist-card-thumb .poster-art.has-image > .poster-fallback-title,
.mylist-card-thumb .poster-art.has-image > .poster-monogram {
  display: none;
}

/* Hero billboard image background */
.hero-image-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
}
.hero-image-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 30%, var(--bg-0) 100%),
    linear-gradient(90deg, var(--bg-0) 0%, transparent 60%);
}

/* Trending top-spot poster image */
.trending-top-poster .poster-art.has-image > .poster-fallback-title,
.trending-top-poster .poster-art.has-image > .poster-monogram { display: none; }

/* ============================================================
   YouTube IFrame Player integration
   ============================================================ */
.youtube-player-host,
.youtube-player-host iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.player-wrap .youtube-player-host {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.yt-embed-error,
.yt-embed-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(0,0,0,0.65), rgba(0,0,0,0.5));
  color: var(--text-1);
  border-radius: inherit;
}
.yt-embed-error p,
.yt-embed-fallback p { margin: 0 0 0.8rem; font-size: 0.95rem; }
.yt-embed-error .btn { margin-top: 0.5rem; }

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--brand-orange);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-btn:hover { color: var(--brand-red); }

/* ============================================================
   ============================================================
   PREMIUM REFINEMENT LAYER (v2)
   ------------------------------------------------------------
   Refines typography, surfaces, motion, microinteractions for
   a more editorial/premium feel. Loads after the base layer so
   selectors here win.
   ============================================================
   ============================================================ */

/* Editorial serif for premium headings — pairs with Inter */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,500;1,9..144,600&display=swap');

:root {
  /* Refined neutrals — slightly cooler, more cinematic */
  --bg-0: #0a090e;
  --bg-1: #100e15;
  --bg-2: #16131d;
  --bg-3: #1e1a27;
  --bg-4: #2a2438;

  /* Refined surface treatment — subtle, premium */
  --surface:     rgba(255, 255, 255, 0.035);
  --surface-hi:  rgba(255, 255, 255, 0.07);
  --surface-pop: rgba(255, 255, 255, 0.10);
  --border:      rgba(255, 255, 255, 0.06);
  --border-hi:   rgba(255, 255, 255, 0.12);
  --border-pop:  rgba(255, 255, 255, 0.18);

  /* Subtle premium accent — champagne gold for rewards/highlights */
  --gold:     #d4a96e;
  --gold-soft: rgba(212, 169, 110, 0.18);

  /* Refined text scale */
  --text-0: #f8f6fa;
  --text-1: #d4cfdc;
  --text-2: #948f9f;
  --text-3: #645d75;

  /* Premium type families */
  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-editorial: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Refined shadows — softer, more layered */
  --shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md:  0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg:  0 20px 48px rgba(0, 0, 0, 0.45);
  --shadow-xl:  0 32px 80px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 40px rgba(232, 93, 46, 0.18);

  /* Refined radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
}

body {
  font-weight: 400;
  letter-spacing: -0.005em;
}

/* Atmospheric body glow — softer, more restrained */
body::before {
  background:
    radial-gradient(ellipse 60% 40% at 15% -5%, rgba(209, 42, 68, 0.06), transparent 65%),
    radial-gradient(ellipse 50% 40% at 100% 85%, rgba(46, 78, 200, 0.05), transparent 65%),
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(232, 93, 46, 0.03), transparent 70%);
}

/* ===== Refined typography ===== */

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  line-height: 1.1;
  font-weight: 500;
}

/* Editorial display — for big hero titles */
.detail-title,
.billboard-title,
.hero-title,
.section-title,
.about-hero h1 {
  font-family: var(--font-display) !important;
  font-weight: 500 !important;
  letter-spacing: -0.035em !important;
  line-height: 1.02 !important;
}

/* Uppercase eyebrow labels — refined tracking */
.section-eyebrow,
.eyebrow,
.detail-eyebrow,
[data-eyebrow] {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
}

/* Body prose — more breathable */
p, .overview, .detail-overview {
  line-height: 1.7;
  color: var(--text-1);
}

/* ===== Refined navigation ===== */

.nav,
nav.nav,
header nav,
.site-nav {
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  background: rgba(10, 9, 14, 0.72);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

/* Slightly more refined search input in nav */
.nav-search input,
.search-input,
.nav input[type="search"] {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all 0.2s var(--ease);
}
.nav-search input:focus,
.search-input:focus,
.nav input[type="search"]:focus {
  background: var(--surface-hi);
  border-color: var(--border-pop);
  box-shadow: 0 0 0 4px rgba(232, 93, 46, 0.1);
  outline: none;
}

/* Refined nav links — better tracking, subtle underline on hover */
.nav-links a,
.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  transition: color 0.2s var(--ease);
}

/* ===== Refined buttons ===== */

.btn,
button.btn,
a.btn {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 0.92rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--r-md);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary,
.btn.btn-primary,
button.primary {
  background: var(--brand-grad);
  color: white;
  box-shadow: var(--shadow-md), 0 0 24px rgba(232, 93, 46, 0.15);
}
.btn-primary:hover,
.btn.btn-primary:hover,
button.primary:hover {
  box-shadow: var(--shadow-lg), 0 0 32px rgba(232, 93, 46, 0.28);
}

.btn-secondary,
.btn.btn-secondary,
button.secondary {
  background: var(--surface-hi);
  color: var(--text-0);
  border-color: var(--border-hi);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover,
.btn.btn-secondary:hover,
button.secondary:hover {
  background: var(--surface-pop);
  border-color: var(--border-pop);
}

.btn-ghost,
.btn.btn-ghost {
  background: transparent;
  color: var(--text-1);
  border-color: var(--border);
}
.btn-ghost:hover,
.btn.btn-ghost:hover {
  background: var(--surface);
  color: var(--text-0);
  border-color: var(--border-hi);
}

/* ===== Refined cards & posters ===== */

/* Poster cards — subtle border, refined hover */
.poster,
.poster-card,
[data-movie] .poster {
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  position: relative;
}
.poster:hover,
.poster-card:hover,
[data-movie]:hover .poster {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-xl);
  z-index: 2;
}

/* Subtle gradient border on poster hover */
.poster::after,
.poster-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--brand-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
  z-index: 3;
}
.poster:hover::after,
.poster-card:hover::after,
[data-movie]:hover .poster::after { opacity: 0.6; }

/* ===== Refined sections ===== */

.section {
  padding: 3.5rem 0;
}
@media (max-width: 700px) {
  .section { padding: 2.5rem 0; }
}

.section-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

/* Section title with subtle accent bar */
.section-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1.2em;
  background: var(--brand-grad);
  border-radius: 2px;
  transform: translateY(0.15em);
}

/* Editorial italic in section titles */
.section-title em,
.section-title i {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Refined form elements ===== */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
  font-family: var(--font-body);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-0);
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  transition: all 0.2s var(--ease);
  width: 100%;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--brand-orange);
  background: var(--surface-hi);
  box-shadow: 0 0 0 4px rgba(232, 93, 46, 0.12);
}

label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-1);
  letter-spacing: 0.01em;
  margin-bottom: 0.4rem;
  display: block;
}

/* ===== Refined details — small numbers, badges ===== */

.badge,
.tag,
.genre-tag {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border-hi);
  background: var(--surface);
  color: var(--text-1);
  transition: all 0.2s var(--ease);
  display: inline-block;
}
.tag:hover,
.genre-tag:hover {
  background: var(--surface-hi);
  border-color: var(--border-pop);
  color: var(--text-0);
}

/* Rating star/number — refined */
.rating,
.imdb-rating {
  color: var(--gold);
  font-weight: 600;
}

/* ===== Refined footer ===== */

footer {
  background: var(--bg-0);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}
.foot-bottom,
footer .foot-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 0.82rem;
}

/* ===== Subtle global microinteractions ===== */

a, button, [role="button"] {
  -webkit-tap-highlight-color: transparent;
}

/* Smoother focus rings */
*:focus-visible {
  outline: 2px solid var(--brand-orange);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ============================================================
   YouTube cards (trailer row) + lightbox player
   ============================================================ */

.yt-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
@media (max-width: 700px) {
  .yt-row { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.85rem; }
}

.yt-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.yt-card:hover,
.yt-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--border-pop);
  background: var(--surface-hi);
  box-shadow: var(--shadow-lg);
}
.yt-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-2);
}
.yt-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.yt-card:hover .yt-card-thumb img,
.yt-card:focus-visible .yt-card-thumb img {
  transform: scale(1.05);
}
.yt-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease-back), background 0.3s var(--ease);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}
.yt-card:hover .yt-card-play,
.yt-card:focus-visible .yt-card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  background: var(--brand-grad);
  border-color: rgba(255, 255, 255, 0.6);
}
.yt-card-duration {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  background: rgba(0, 0, 0, 0.82);
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.22rem 0.5rem;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
}
.yt-card-body {
  padding: 0.9rem 1rem 1rem;
}
.yt-card-title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-0);
  letter-spacing: -0.005em;
  margin-bottom: 0.45rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.yt-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.78rem;
  color: var(--text-2);
}
.yt-card-channel {
  font-weight: 500;
  color: var(--text-1);
}
.yt-card-stats {
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

/* YouTube row placeholder (no API key) */
.yt-row-placeholder {
  grid-column: 1 / -1;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
  background: var(--surface);
  border: 1px dashed var(--border-hi);
  border-radius: var(--r-lg);
}
.yt-row-placeholder-icon {
  color: #ff0033;
  flex-shrink: 0;
  opacity: 0.85;
}
.yt-row-placeholder strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text-0);
  margin-bottom: 0.3rem;
}
.yt-row-placeholder p {
  color: var(--text-2);
  font-size: 0.9rem;
  margin: 0;
}
.yt-row-placeholder-note {
  margin-top: 0.5rem !important;
  font-size: 0.78rem !important;
  color: var(--text-3) !important;
}
.yt-row-placeholder code {
  background: var(--surface-hi);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.85em;
  font-family: ui-monospace, 'SF Mono', Consolas, monospace;
}
@media (max-width: 600px) {
  .yt-row-placeholder { flex-direction: column; text-align: center; }
}

.yt-row-loading,
.yt-row-error {
  grid-column: 1 / -1;
  padding: 2rem;
  text-align: center;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.yt-row-error strong {
  display: block;
  color: var(--text-0);
  margin-bottom: 0.3rem;
}

.yt-embed-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: var(--text-1);
  font-size: 0.9rem;
}

/* ===== Lightbox player ===== */
.yt-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 4, 8, 0.92);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: ytLightboxIn 0.25s var(--ease);
}
@keyframes ytLightboxIn {
  from { opacity: 0; backdrop-filter: blur(0); }
  to   { opacity: 1; backdrop-filter: blur(20px); }
}
.yt-lightbox-frame {
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 80px rgba(232, 93, 46, 0.2);
  position: relative;
  background: #000;
}
.yt-lightbox-player {
  position: absolute;
  inset: 0;
}
.yt-lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
  z-index: 2;
  backdrop-filter: blur(10px);
}
.yt-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* Footer YouTube button — indicator dot */
.yt-footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
}
.yt-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.yt-dot-on  { background: var(--good); box-shadow: 0 0 8px rgba(78, 203, 113, 0.6); }
.yt-dot-off { background: var(--text-3); }

/* ============================================================
   ============================================================
   v3 — NETFLIX-FORWARD OVERHAUL
   ------------------------------------------------------------
   Goal: pure black surface, restrained gradient (logo + ART
   element only), cleaner cards (no chrome, only the image),
   Netflix-signature scale-on-hover with sibling push, refined
   minimal typography, simpler section heads, solid-white CTAs.
   Loads last → wins all selector conflicts.
   ============================================================
   ============================================================ */

:root {
  /* Pure-black surface stack */
  --bg-0: #000000;
  --bg-1: #0a0a0a;
  --bg-2: #131313;
  --bg-3: #1a1a1a;
  --bg-4: #232323;

  /* Refined Netflix-style surfaces */
  --surface:     rgba(255, 255, 255, 0.04);
  --surface-hi:  rgba(255, 255, 255, 0.08);
  --surface-pop: rgba(255, 255, 255, 0.14);

  /* Less colorful, more cinematic */
  --border:     rgba(255, 255, 255, 0.06);
  --border-hi:  rgba(255, 255, 255, 0.12);
  --border-pop: rgba(255, 255, 255, 0.22);

  /* Text — higher contrast */
  --text-0: #ffffff;
  --text-1: #e5e5e5;
  --text-2: #b3b3b3;
  --text-3: #737373;

  /* Netflix-style accent only used on rewards/CTAs */
  --accent: #e85d2e;
}

body {
  background: #000;
  color: var(--text-0);
  font-family: 'Inter', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  letter-spacing: -0.005em;
  font-weight: 400;
}

/* Kill the body atmospheric color glow — Netflix is pure black */
body::before { display: none !important; }

/* ===== Strip ALL numbered overlays ===== */
.top10-row .poster::before,
.most-watched-row .poster::before,
.trending-list-section .poster::before,
[class*="rank-num"],
[class*="big-number"] {
  display: none !important;
  content: none !important;
}
.top10-row .poster,
.most-watched-row .poster,
.trending-list-section .poster {
  padding-left: 0 !important;
}

/* ===== Trending sidebar item — no rank, cleaner layout ===== */
.trend-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.trend-search-item:last-child { border-bottom: 0; }
.trend-search-name {
  flex: 1;
  color: var(--text-1);
  font-weight: 500;
}
.trend-search-delta {
  color: var(--text-3);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.trend-search-rank { display: none !important; }

/* ===== Navigation — pure black, fade-to-transparent at top ===== */
.nav, nav.nav, header nav, .site-nav {
  background: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 70%, transparent 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 0;
  transition: background 0.35s ease;
}
.nav.scrolled, nav.nav.scrolled {
  background: rgba(0,0,0,0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.nav-links a, .nav a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-1);
  letter-spacing: 0;
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav a:hover { color: var(--text-0); }
.nav-links a.active, .nav a.active { color: var(--text-0); font-weight: 600; }

/* ===== Typography — Netflix uses a strong sans-serif throughout ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  color: var(--text-0);
  line-height: 1.1;
  font-style: normal !important;
}
.section-title, .section-head h2, .row-title {
  font-size: 1.4rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.015em !important;
  margin-bottom: 1rem !important;
  display: block !important;
}
/* Kill the gradient accent bar before section titles */
.section-title::before, .section-head h2::before {
  display: none !important;
  content: none !important;
}
/* Kill the gradient-text italic em inside section titles */
.section-title em, .section-head h2 em,
.section-title i, .section-head h2 i {
  font-family: 'Inter', sans-serif !important;
  font-style: normal !important;
  font-weight: 600 !important;
  background: none !important;
  -webkit-background-clip: initial !important;
          background-clip: initial !important;
  -webkit-text-fill-color: var(--text-0) !important;
          color: var(--text-0) !important;
}

/* Display fonts only for: logo wordmark, ART element, billboard hero, detail hero */
.billboard-title,
.detail-title,
.about-hero h1,
.hero-title {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
  line-height: 0.98 !important;
  font-style: normal !important;
}

/* Eyebrow labels — tiny, simple */
.eyebrow, .section-eyebrow, [data-eyebrow] {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
}

/* ===== Section heads — minimal Netflix-style ===== */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
}
.section-head a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.section:hover .section-head a,
.section-head:hover a {
  opacity: 1;
  transform: translateX(0);
  color: var(--text-0);
}

/* ===== Buttons — solid white primary (Netflix-style) ===== */
.btn, button.btn, a.btn {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600;
  letter-spacing: 0;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  border: 0;
  transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.btn-primary, .btn.btn-primary, button.primary {
  background: #ffffff !important;
  color: #000000 !important;
  box-shadow: none !important;
}
.btn-primary:hover, .btn.btn-primary:hover, button.primary:hover {
  background: rgba(255,255,255,0.85) !important;
  transform: none;
  box-shadow: none !important;
}
.btn-primary:active { background: rgba(255,255,255,0.75) !important; }

.btn-secondary, .btn.btn-secondary, button.secondary {
  background: rgba(109, 109, 110, 0.7) !important;
  color: #ffffff !important;
  border: 0 !important;
  backdrop-filter: none !important;
}
.btn-secondary:hover, .btn.btn-secondary:hover, button.secondary:hover {
  background: rgba(109, 109, 110, 0.5) !important;
}

.btn-ghost, .btn.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: var(--text-0);
  border: 0;
}
.btn-ghost:hover, .btn.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
}

/* Tighter, smaller CTAs inside cards */
.btn-sm, .btn.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
  border-radius: 4px;
}

/* ===== Cards / posters — pure image, no chrome ===== */

.poster, .poster-card, [data-movie] .poster {
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-2);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s ease,
              z-index 0s 0.3s;
  position: relative;
  cursor: pointer;
}

/* Kill the gradient border that v2 added */
.poster::after, .poster-card::after {
  display: none !important;
  content: none !important;
}

/* Netflix-style hover: scale up, neighbors stay put (no shift) */
.poster:hover, .poster-card:hover, [data-movie]:hover .poster {
  transform: scale(1.06);
  box-shadow: 0 12px 32px rgba(0,0,0,0.7), 0 4px 12px rgba(0,0,0,0.5);
  z-index: 10;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s ease,
              z-index 0s;
}

/* Refined poster overlay on hover */
.poster-overlay {
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.95) 100%) !important;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.poster:hover .poster-overlay,
.poster-card:hover .poster-overlay,
[data-movie]:hover .poster-overlay {
  opacity: 1;
}
.poster-overlay-title {
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.005em !important;
  color: #fff !important;
}
.poster-overlay-meta {
  color: var(--text-2) !important;
  font-size: 0.72rem !important;
  margin-top: 0.2rem !important;
}

/* Strip the busy fallback poster artwork (monogram, badges) */
.poster-monogram { display: none !important; }
.poster-fallback-title small {
  font-weight: 400;
  letter-spacing: 0;
  color: rgba(255,255,255,0.65);
}
.poster-fallback-title {
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  font-size: 1.05rem !important;
  text-align: center;
  line-height: 1.2;
  padding: 1rem;
}

/* Row scrollers — tighter gap, smoother */
.row-scroller {
  display: flex;
  gap: 0.4rem !important;
  padding: 0.5rem 0 1.5rem !important;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.row-scroller::-webkit-scrollbar { display: none; }
.row-scroller .poster {
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: start;
}
@media (max-width: 700px) {
  .row-scroller .poster { width: 165px; }
}

/* ===== Billboard hero — fully cinematic ===== */
.billboard {
  position: relative;
  min-height: clamp(560px, 78vh, 820px);
  display: flex;
  align-items: center;
  padding-bottom: 8rem;
  margin-bottom: -5rem;
}
.billboard::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(77deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.55) 35%, transparent 65%),
    linear-gradient(180deg, transparent 0%, transparent 50%, #000 100%);
  pointer-events: none;
}
.billboard > * { position: relative; z-index: 2; }
.billboard-title {
  font-size: clamp(2.5rem, 6vw, 5.5rem) !important;
  max-width: 36rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.8);
  margin-bottom: 1.2rem !important;
}
.billboard-tagline,
.billboard-overview {
  font-size: 1.05rem;
  max-width: 32rem;
  color: var(--text-1);
  line-height: 1.45;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
  margin-bottom: 1.6rem;
}

/* ===== Form inputs — refined dark ===== */
input[type="text"], input[type="email"], input[type="password"],
input[type="search"], textarea, select {
  background: var(--bg-2);
  border: 1px solid transparent;
  border-radius: 4px;
  color: #fff;
  padding: 1rem 1rem 0.75rem;
  font-size: 1rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
input:focus, textarea:focus, select:focus {
  border-color: rgba(255,255,255,0.5) !important;
  background: var(--bg-3) !important;
  box-shadow: none !important;
  outline: none !important;
}

/* ===== Footer — pure black, minimal ===== */
footer {
  background: #000 !important;
  border-top: 0 !important;
  color: var(--text-3);
}
footer a { color: var(--text-2); }
footer a:hover { color: var(--text-0); }

/* ===== Tags / genre chips — minimal ===== */
.badge, .tag, .genre-tag {
  background: transparent;
  border: 1px solid var(--border-hi);
  color: var(--text-1);
  padding: 0.3rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 3px;
  text-transform: none;
}

/* ===== Cards / panels — flat, refined ===== */
.card, .panel {
  background: var(--bg-1) !important;
  border: 1px solid var(--border) !important;
  border-radius: 6px;
}
.card h4 {
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2) !important;
  margin-bottom: 0.6rem;
}

/* ===== ART rewards element — KEEP the brand gradient (one of two allowed) ===== */
.art-coin-decor div[style*="brand-grad"],
.art-coin-decor > div {
  /* the existing inline style with brand-grad stays — it's the rewards centerpiece */
}

/* ===== YouTube cards — already styled in v2, just tighten ===== */
.yt-card {
  background: var(--bg-1);
  border: 0;
  border-radius: 4px;
}
.yt-card:hover, .yt-card:focus-visible {
  background: var(--bg-2);
  border: 0;
  transform: scale(1.04);
  box-shadow: 0 12px 32px rgba(0,0,0,0.7);
}
.yt-card-title { font-weight: 500 !important; }

/* ===== Misc tighten: kill v2's decorative gradient text fills ===== */
.brand-grad-text {
  background: linear-gradient(120deg, #fff 0%, #fff 100%) !important;
  -webkit-background-clip: text !important;
          background-clip: text !important;
  -webkit-text-fill-color: white !important;
          color: white !important;
  font-style: normal !important;
}
/* But keep the ART-coin gradient (it IS the brand element) */
.art-coin-decor .brand-grad-text {
  background: var(--brand-grad) !important;
  -webkit-background-clip: text !important;
          background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* ===== Container — Netflix uses generous horizontal padding ===== */
.container { padding: 0 4% !important; }
@media (max-width: 800px) { .container { padding: 0 4% !important; } }
@media (max-width: 600px) { .container { padding: 0 4% !important; } }

/* ===== Detail page hero — full-bleed cinematic ===== */
.detail-hero {
  min-height: clamp(440px, 70vh, 720px);
}
.detail-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #000 0%, transparent 60%),
    linear-gradient(90deg, rgba(0,0,0,0.7), transparent 50%);
  pointer-events: none;
}
.detail-title {
  font-size: clamp(2.2rem, 5vw, 4rem) !important;
  letter-spacing: -0.035em !important;
  font-weight: 800 !important;
}

/* ===== Quiet down all the misc decorative panels w/ inline brand-grad-soft ===== */
[style*="brand-grad-soft"],
[style*="linear-gradient(135deg, rgba(209"] {
  background: var(--bg-1) !important;
  border: 1px solid var(--border) !important;
}
/* Re-allow ART rewards banner to keep its brand wash */
.art-rewards-banner {
  background: linear-gradient(135deg, rgba(232,93,46,0.10), rgba(46,78,200,0.08)) !important;
  border: 1px solid var(--border-hi) !important;
}

/* ===== Smoother global scroll ===== */
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }


/* ============================================================
   v3 FINAL — aggressive overrides for old elements
   ============================================================ */

/* HARDER kill on Top 10 outline numbers — match every variant */
.top10-row .poster::before,
.most-watched-row .poster::before,
.trending-list-section .poster::before,
.section .row-scroller .poster::before {
  display: none !important;
  content: '' !important;
  counter-increment: none !important;
}
.top10-row .poster,
.most-watched-row .poster {
  padding-left: 0 !important;
  margin-right: 0.4rem !important;
}

/* Kill the rating star + year badges that v3 didn't catch */
.poster-rating-badge,
.poster-year-badge,
.poster-art > .poster-meta-tl,
.poster-art > .poster-meta-tr,
.poster-art > [class*="-badge"] {
  display: none !important;
}

/* Kill the bottom genre tag baked into older posters */
.poster-genre-tag,
.poster-art > .genre-tag,
.poster-art .poster-art-genre {
  display: none !important;
}

/* Kill the "e" brand mark in the bottom-right corner */
.poster-brand-mark,
.poster-art > [class*="brand-mark"] {
  display: none !important;
}

/* When the JPG image loads, hide ALL fallback chrome */
.poster-art.has-image > * { display: none !important; }
.poster-art.has-image > .poster-image,
.poster-art.has-image > .poster-overlay { display: block !important; }
.poster-art.has-image > .poster-overlay { opacity: 0; transition: opacity 0.2s ease; }
.poster:hover .poster-art.has-image > .poster-overlay { opacity: 1; }

/* Ensure poster IMG itself fills properly */
.poster-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
}
.poster-art {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 2 / 3 !important;
  overflow: hidden !important;
  border-radius: 4px !important;
}
.poster-art .poster-overlay { z-index: 2 !important; }

/* Section spacing more generous */
.section { padding: 2.5rem 0 !important; }
@media (max-width: 800px) { .section { padding: 1.75rem 0 !important; } }

/* Section heads — left-align, bold, no decorative bar */
.section-head {
  margin-bottom: 1rem !important;
  border: 0 !important;
}
.section-head h2,
h2.section-title {
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  font-family: 'Inter', sans-serif !important;
  color: #fff !important;
  letter-spacing: -0.015em !important;
  font-style: normal !important;
  margin: 0 !important;
}
.section-head h2::before { display: none !important; content: none !important; }

/* Editor's italic eyebrow above section title — NEW editorial feel */
.section-head[data-eyebrow]::before {
  content: attr(data-eyebrow);
  display: block;
  font-family: 'DejaVu Serif', Georgia, serif;
  font-style: italic;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  color: var(--text-3);
  margin-bottom: 0.3rem;
}


/* ============================================================
   v4 — ONBOARDING / PREFERENCES MODAL
   ============================================================ */
.ew-onboard-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: ewOnbFadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes ewOnbFadeIn {
  from { opacity: 0; backdrop-filter: blur(0); }
  to   { opacity: 1; backdrop-filter: blur(24px) saturate(140%); }
}

.ew-onboard-card {
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  background: linear-gradient(180deg, #15131c 0%, #0a090e 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.7),
    0 0 80px rgba(232, 93, 46, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: ewOnbScaleIn 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
}
@keyframes ewOnbScaleIn {
  from { transform: scale(0.92) translateY(8px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

.ew-onb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}
.ew-onb-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}
.ew-onb-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.ew-onb-steps {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.ew-onb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  transition: all 0.3s ease;
}
.ew-onb-dot.is-done { background: rgba(232, 93, 46, 0.7); }
.ew-onb-dot.is-active {
  background: linear-gradient(135deg, #d12a44, #e85d2e);
  width: 24px;
  border-radius: 4px;
}
.ew-onb-close {
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.ew-onb-close:hover { background: rgba(255, 255, 255, 0.16); transform: rotate(90deg); }

.ew-onb-body {
  padding: 2rem 2rem 1.5rem;
  overflow-y: auto;
  flex: 1;
}
.ew-onb-step { display: flex; flex-direction: column; }

.ew-onb-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e85d2e;
  margin: 0 0 0.75rem !important;
}

.ew-onb-title {
  font-family: 'Inter', sans-serif !important;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.1 !important;
  color: #fff !important;
  margin: 0 0 0.75rem !important;
  font-style: normal !important;
}
.ew-onb-title em {
  font-family: 'DejaVu Serif', Georgia, serif !important;
  font-style: italic !important;
  font-weight: 500 !important;
  background: linear-gradient(135deg, #d12a44, #e85d2e, #6b2d5c, #2e4ec8);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ew-onb-sub {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 1.75rem !important;
  max-width: 36rem;
}

.ew-onb-field {
  display: block;
  margin-bottom: 1.5rem;
}
.ew-onb-field > span {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.ew-onb-field > span em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
  margin-left: 0.4rem;
}
.ew-onb-field input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  color: #fff !important;
  font-size: 1rem !important;
  padding: 0.85rem 1rem !important;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.ew-onb-field input:focus {
  outline: none;
  border-color: rgba(232, 93, 46, 0.55) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 0 0 4px rgba(232, 93, 46, 0.1) !important;
}

.ew-onb-grid {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.75rem;
}
.ew-onb-grid-countries { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.ew-onb-grid-chips     { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }

.ew-onb-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.ew-onb-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
  transform: translateY(-1px);
}
.ew-onb-chip.is-selected {
  background: linear-gradient(135deg, rgba(209, 42, 68, 0.85), rgba(232, 93, 46, 0.85));
  border-color: rgba(232, 93, 46, 0.4);
  color: #fff;
  box-shadow: 0 4px 14px rgba(232, 93, 46, 0.25);
  transform: translateY(-1px);
}
.ew-onb-country-chip { justify-content: flex-start; }
.ew-onb-flag { font-size: 1.15rem; flex-shrink: 0; }

.ew-onb-count {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  margin: -0.5rem 0 1.25rem !important;
}

.ew-onb-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.ew-onb-skip {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.7rem 1rem;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}
.ew-onb-skip:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
.ew-onb-primary {
  background: linear-gradient(135deg, #d12a44, #e85d2e);
  border: 0;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 6px 18px rgba(232, 93, 46, 0.25);
}
.ew-onb-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(232, 93, 46, 0.35);
}
.ew-onb-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.ew-onb-done {
  text-align: center;
  align-items: center;
}
.ew-onb-done-mark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d12a44, #e85d2e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 30px rgba(232, 93, 46, 0.35);
  animation: ewOnbCheck 0.5s cubic-bezier(0.34, 1.6, 0.64, 1);
}
@keyframes ewOnbCheck {
  from { transform: scale(0); }
  60%  { transform: scale(1.1); }
  to   { transform: scale(1); }
}

/* Personalized greeting hidden by default; revealed by JS */
[data-ew-greeting] { display: none; }

/* Mobile tightening */
@media (max-width: 640px) {
  .ew-onboard-card { max-height: 95vh; border-radius: 14px; }
  .ew-onb-body { padding: 1.5rem 1.25rem 1rem; }
  .ew-onb-head { padding: 1rem 1.25rem; }
  .ew-onb-actions { flex-direction: column-reverse; }
  .ew-onb-actions > * { width: 100%; }
}


/* ============================================================
   v4 — Editorial section eyebrow text
   ============================================================ */
.row-eyebrow {
  font-family: 'DejaVu Serif', Georgia, serif;
  font-style: italic;
  font-size: 0.78rem;
  letter-spacing: 0.005em;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 0.35rem !important;
  display: block;
}
.section-head {
  display: block !important;
}
.section-head h2 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.section-head h2 a,
.section-head > a {
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  color: rgba(255, 255, 255, 0.4) !important;
  font-family: 'Inter', sans-serif !important;
  text-transform: none;
  letter-spacing: 0;
}
.section-head h2 a:hover,
.section-head > a:hover {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Make billboard greeting badge nicer when shown */
.row-badge[data-ew-greeting] {
  font-family: 'DejaVu Serif', Georgia, serif !important;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.95rem !important;
  padding: 0.45rem 1rem !important;
}


/* ============================================================
   v5 — CARDS DESIGNED INTO THE CSS, NOT DEPENDENT ON JPGS
   ------------------------------------------------------------
   Make every .poster-art look like a designed card even when no
   image loads. JPGs become an enhancement, not a requirement.
   ============================================================ */

/* Reset the poster shell and give it intrinsic design */
.poster-art {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 6px;
  isolation: isolate;
  background: linear-gradient(135deg, #1e1825, #0f0c14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4);
}

/* Genre-coded gradients — applied per-art-class */
.poster-art.art-drama    { background: linear-gradient(155deg, #5a1e3a 0%, #1f0e1a 70%, #0a0309 100%); }
.poster-art.art-thriller { background: linear-gradient(155deg, #2a1d4a 0%, #110a1f 70%, #050309 100%); }
.poster-art.art-action   { background: linear-gradient(155deg, #6b1820 0%, #2a0a0e 60%, #0a0204 100%); }
.poster-art.art-scifi    { background: linear-gradient(155deg, #143669 0%, #0a1a36 60%, #02060f 100%); }
.poster-art.art-horror   { background: linear-gradient(155deg, #2a0608 0%, #0d0204 70%, #000 100%); }
.poster-art.art-comedy   { background: linear-gradient(155deg, #6e4a14 0%, #2a1c08 60%, #0a0703 100%); }
.poster-art.art-romance  { background: linear-gradient(155deg, #6b1d3a 0%, #2a0a15 60%, #0a0306 100%); }
.poster-art.art-doc      { background: linear-gradient(155deg, #143a5a 0%, #07182a 60%, #02060e 100%); }
.poster-art.art-anime    { background: linear-gradient(155deg, #2a3a8a 0%, #14183a 60%, #060818 100%); }
.poster-art.art-fantasy  { background: linear-gradient(155deg, #4a1f6e 0%, #1a0a2a 60%, #060310 100%); }

/* Soft luminous mark behind title — depth */
.poster-art::before {
  content: '';
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* Film grain SVG noise on top — premium texture */
.poster-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.45;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

/* The fallback title (was tiny text) becomes the CARD'S MAIN DESIGN */
.poster-fallback-title {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  align-items: stretch !important;
  padding: 0.9rem 0.85rem 0.8rem !important;
  margin: 0 !important;
  text-align: left !important;
  z-index: 3 !important;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.55) 75%, rgba(0, 0, 0, 0.85) 100%);
  font-family: 'Inter', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.015em !important;
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* The <small> inside title (year + rating) — styled into a meta row */
.poster-fallback-title small {
  display: block !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.7rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  color: rgba(255, 255, 255, 0.7) !important;
  margin-top: 0.3rem !important;
  text-transform: none;
}

/* Top-right rating chip — extracted via JS from <small>, repositioned via app.v5 */
.poster-rating-chip {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffd166;
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  z-index: 4;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Top-left genre dot — small accent based on .art-* class */
.poster-art::marker { display: none; }
.poster-genre-dot {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  z-index: 4;
  box-shadow: 0 0 12px currentColor;
}
.art-drama .poster-genre-dot, .art-romance .poster-genre-dot   { color: #e85d2e; }
.art-thriller .poster-genre-dot, .art-fantasy .poster-genre-dot{ color: #b08bff; }
.art-action .poster-genre-dot, .art-horror .poster-genre-dot   { color: #ff4d5e; }
.art-scifi .poster-genre-dot, .art-doc .poster-genre-dot       { color: #4ecbff; }
.art-comedy .poster-genre-dot                                  { color: #ffd166; }
.art-anime .poster-genre-dot                                   { color: #ff8eb0; }

/* When the JPG image DOES load, fade out the gradient design beautifully */
.poster-art.has-image::before,
.poster-art.has-image::after { opacity: 0; transition: opacity 0.3s ease; }
.poster-art.has-image .poster-fallback-title { background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7) 80%, rgba(0,0,0,0.95) 100%); }
.poster-art.has-image .poster-image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  z-index: 1 !important;
}

/* Hover: subtle lift, brighter title, ring */
.poster {
  border-radius: 6px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              z-index 0s 0.3s,
              box-shadow 0.3s ease;
  position: relative;
  cursor: pointer;
}
.poster:hover {
  transform: translateY(-4px) scale(1.04);
  z-index: 10;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              z-index 0s,
              box-shadow 0.3s ease;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Poster overlay (with play button + actions) reveals on hover */
.poster-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem 0.85rem;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.92) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.poster:hover .poster-overlay { opacity: 1; }
.poster-overlay-play {
  align-self: flex-end;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: auto;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.poster-overlay-play:hover { transform: scale(1.1); background: #fff; }

/* Card width tightening for premium row spacing */
.row-scroller {
  display: flex !important;
  gap: 0.75rem !important;
  padding: 0.75rem 0 2rem !important;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.row-scroller::-webkit-scrollbar { display: none; }
.row-scroller .poster {
  flex: 0 0 auto;
  width: 200px;
  scroll-snap-align: start;
}
@media (max-width: 900px) { .row-scroller .poster { width: 165px; } }
@media (max-width: 600px) { .row-scroller .poster { width: 140px; } }

/* PREFERENCE-FILTERED — cards that don't match user prefs are dimmed */
.poster.is-filtered-out {
  opacity: 0.25 !important;
  filter: grayscale(0.8);
  transition: opacity 0.3s ease, filter 0.3s ease;
}
.poster.is-filtered-out:hover { opacity: 0.6 !important; }

/* Section visually empty when all cards filtered out → hide it */
.section.has-no-matches { display: none; }


/* ============================================================
   v6 — Picked-for-you row & disable broken filter behaviour
   ============================================================ */

/* Belt-and-suspenders: even if old filter classes linger from v5, they
   must not hide or dim anything. */
.is-filtered-out      { opacity: 1 !important; filter: none !important; }
.section.has-no-matches { display: block !important; }

/* The Picked-for-you row gets a subtle premium treatment to set it apart */
.ew-picked-section {
  position: relative;
  padding: 2.5rem 0 2.75rem !important;
  background: linear-gradient(180deg, rgba(232, 93, 46, 0.05) 0%, transparent 60%);
}
.ew-picked-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 93, 46, 0.35), transparent);
}
.ew-picked-section .section-head {
  margin-bottom: 1.25rem;
  position: relative;
}
.ew-picked-section .section-head .row-eyebrow {
  color: #e85d2e !important;
  font-style: normal !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 0.45rem !important;
}
.ew-picked-section .section-head h2 {
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  font-size: clamp(1.6rem, 3vw, 2rem) !important;
  letter-spacing: -0.025em !important;
  color: #fff !important;
  margin: 0 0 0.4rem !important;
  display: block !important;
}
.ew-picked-section .section-head h2::before { display: none !important; }
.ew-picked-reason {
  font-family: 'DejaVu Serif', Georgia, serif;
  font-style: italic;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  letter-spacing: 0.005em;
}

/* Picked row cards — slightly larger than normal rows for emphasis */
.ew-picked-row .poster {
  width: 220px;
}
@media (max-width: 900px) { .ew-picked-row .poster { width: 180px; } }
@media (max-width: 600px) { .ew-picked-row .poster { width: 150px; } }

/* "Edit preferences" footer link gets a soft accent */
[data-onb-edit] {
  color: #e85d2e !important;
}
[data-onb-edit]:hover {
  color: #ff7a47 !important;
}


/* Empty greeting badge must collapse completely (no margin, no padding) */
[data-ew-greeting]:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}


/* ============================================================
   v7 — CONTENT-RICH CARDS + TIGHTER LAYOUT
   ------------------------------------------------------------
   Goal: cards never look "empty." Always-visible metadata chips
   (rating, year, runtime, genre, language) fill the corners and
   bottom. Shorter hero so content appears sooner. Cleaner logo.
   ============================================================ */

/* ===== HERO: TIGHTER ===== */
.billboard {
  min-height: clamp(440px, 60vh, 640px) !important;
  padding-bottom: 4rem !important;
  margin-bottom: -2rem !important;
}
.billboard-content {
  padding-top: 5rem;
  max-width: 36rem;
}
.billboard h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem) !important;
  margin-bottom: 0.75rem !important;
}
.billboard-overview {
  font-size: 1rem !important;
  margin-bottom: 1.5rem !important;
}
.billboard-actions { margin-bottom: 0 !important; }

/* ===== LOGO: PROPER SIZING + NO RED BOX ===== */
.brand-logo,
.nav-brand,
.nav-logo,
a[href="index.html"].brand,
a.brand-link {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  text-decoration: none !important;
  height: auto !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.brand-logo img,
.nav-brand img,
.nav-logo img,
a.brand-link img {
  height: 36px !important;
  width: auto !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}
@media (max-width: 700px) {
  .brand-logo img, .nav-brand img, .nav-logo img, a.brand-link img { height: 30px !important; }
}

/* ===== CARDS: INFORMATION-RICH ===== */

/* Container — keep our v6 work but tighten */
.poster-art {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 2 / 3 !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  isolation: isolate !important;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -60px 80px -40px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04) !important;
}

/* Stronger genre gradients with depth */
.poster-art.art-drama    { background: radial-gradient(ellipse at 30% 20%, rgba(232, 93, 46, 0.35), transparent 60%), linear-gradient(165deg, #3a1426 0%, #14060e 60%, #060204 100%) !important; }
.poster-art.art-thriller { background: radial-gradient(ellipse at 30% 20%, rgba(180, 130, 255, 0.3), transparent 60%), linear-gradient(165deg, #1c1545 0%, #0a0820 60%, #04030d 100%) !important; }
.poster-art.art-action   { background: radial-gradient(ellipse at 30% 20%, rgba(255, 80, 100, 0.35), transparent 60%), linear-gradient(165deg, #45131c 0%, #1a0608 60%, #0a0204 100%) !important; }
.poster-art.art-scifi    { background: radial-gradient(ellipse at 30% 20%, rgba(80, 180, 255, 0.3), transparent 60%), linear-gradient(165deg, #0a2347 0%, #061226 60%, #02060f 100%) !important; }
.poster-art.art-horror   { background: radial-gradient(ellipse at 30% 20%, rgba(220, 30, 30, 0.25), transparent 55%), linear-gradient(165deg, #1c0606 0%, #0a0203 70%, #000 100%) !important; }
.poster-art.art-comedy   { background: radial-gradient(ellipse at 30% 20%, rgba(255, 200, 80, 0.3), transparent 60%), linear-gradient(165deg, #4a3010 0%, #1a1006 60%, #0a0703 100%) !important; }
.poster-art.art-romance  { background: radial-gradient(ellipse at 30% 20%, rgba(255, 130, 110, 0.3), transparent 60%), linear-gradient(165deg, #4a142a 0%, #1a0610 60%, #0a0306 100%) !important; }
.poster-art.art-doc      { background: radial-gradient(ellipse at 30% 20%, rgba(110, 180, 230, 0.3), transparent 60%), linear-gradient(165deg, #0a2840 0%, #04101a 60%, #02060e 100%) !important; }
.poster-art.art-anime    { background: radial-gradient(ellipse at 30% 20%, rgba(255, 130, 180, 0.3), transparent 60%), linear-gradient(165deg, #1a2466 0%, #0a0e2a 60%, #060818 100%) !important; }
.poster-art.art-fantasy  { background: radial-gradient(ellipse at 30% 20%, rgba(200, 130, 255, 0.3), transparent 60%), linear-gradient(165deg, #341448 0%, #14061e 60%, #060310 100%) !important; }

/* Remove the old fancy circle ::before that took up space */
.poster-art::before { display: none !important; }

/* Film grain */
.poster-art::after {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.22 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>") !important;
  opacity: 0.4 !important;
  mix-blend-mode: overlay !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

/* ===== TOP META CHIPS — always visible, fills upper corners ===== */
.poster-meta-top {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  right: 0.55rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 4;
  gap: 0.4rem;
}
.poster-chip-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffc857;
  padding: 0.22rem 0.5rem;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.poster-chip-year {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.85);
  padding: 0.22rem 0.5rem;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== TITLE BLOCK — large, prominent, occupies the middle ===== */
.poster-fallback-title {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  align-items: flex-start !important;
  padding: 0 0.85rem 3.5rem !important;
  margin: 0 !important;
  text-align: left !important;
  z-index: 3 !important;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.85) 95%) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.02em !important;
  color: #fff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
  word-wrap: break-word;
}
.poster-fallback-title small {
  display: none !important;       /* moved to chips */
}

/* ===== BOTTOM META BAR — runtime + genre + language ===== */
.poster-meta-bottom {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  z-index: 4;
  pointer-events: none;
}
.poster-chip-genre {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.18rem 0.45rem;
  border-radius: 3px;
}
.poster-chip-lang {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.18rem 0.4rem;
  border-radius: 3px;
}

/* Genre dot from v6 still works — but slightly bigger glow */
.poster-genre-dot { display: none !important; }      /* replaced by genre chip */

/* Hover: scale + show play button center */
.poster {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), z-index 0s 0.25s;
  position: relative;
  cursor: pointer;
}
.poster:hover {
  transform: translateY(-4px) scale(1.04);
  z-index: 10;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), z-index 0s;
}
.poster:hover .poster-art {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -60px 80px -40px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 18px 40px rgba(0, 0, 0, 0.6) !important;
}

/* Big center-play button on hover */
.poster-art .poster-hover-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1);
  z-index: 5;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.poster:hover .poster-art .poster-hover-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Hide the old corner play; we use the center one now */
.poster-play-corner { display: none !important; }

/* JPG image — when present, overlays beneath all chips so chips remain visible */
.poster-art .poster-image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  z-index: 0 !important;
  opacity: 0;            /* fade in when loaded */
  transition: opacity 0.4s ease;
}
.poster-art.has-image .poster-image { opacity: 1; }

/* When image loaded, darken title bg a bit more for legibility */
.poster-art.has-image .poster-fallback-title {
  background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.92) 100%) !important;
}

/* Row tightening */
.row-scroller { gap: 0.85rem !important; padding: 0.75rem 0 2rem !important; }
.row-scroller .poster { width: 195px !important; }
@media (max-width: 900px) { .row-scroller .poster { width: 165px !important; } }
@media (max-width: 600px) { .row-scroller .poster { width: 145px !important; } }

/* Tighter section padding — content closer to hero */
.section { padding: 1.5rem 0 0.5rem !important; }
.section:first-of-type { padding-top: 0.5rem !important; }
.section + .section { padding-top: 0.75rem !important; }


/* ===== Real logo PNG in navbar (replaces .logo-mark letter) ===== */
.logo {
  display: flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
  text-decoration: none !important;
  color: #fff !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.15rem !important;
  letter-spacing: -0.02em !important;
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
}
.logo-mark-img {
  height: 32px !important;
  width: auto !important;
  background: transparent !important;
  filter: drop-shadow(0 2px 8px rgba(232, 93, 46, 0.3));
  transition: filter 0.3s ease, transform 0.3s ease;
}
.logo:hover .logo-mark-img {
  filter: drop-shadow(0 4px 14px rgba(232, 93, 46, 0.5));
  transform: scale(1.05);
}
.logo-tag {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  margin-left: 0.05em;
}
@media (max-width: 700px) {
  .logo-mark-img { height: 28px !important; }
  .logo { font-size: 1.05rem !important; }
}

/* Hide the OLD letter-E .logo-mark span if any remain anywhere */
.logo-mark {
  display: none !important;
}


/* ============================================================
   v8 — Real YouTube thumbnails on cards
   ============================================================ */

/* When the YouTube poster image lands, fade it in beneath the chips
   while keeping the gradient/grain as backup if it fails */
.poster-art .poster-image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 30% !important;   /* favour the upper-center where titles usually live */
  z-index: 1 !important;
  opacity: 0 !important;
  transition: opacity 0.5s ease !important;
}
.poster-art.has-image .poster-image { opacity: 1 !important; }

/* Above the image, ensure title block is legible with a stronger
   gradient overlay when image is loaded */
.poster-art.has-image .poster-fallback-title {
  background: linear-gradient(180deg, transparent 0%, transparent 30%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.95) 100%) !important;
  z-index: 3 !important;
}

/* Once image is loaded, soften the chip backgrounds slightly so they
   don't look as heavy against real imagery */
.poster-art.has-image .poster-chip-rating {
  background: rgba(0, 0, 0, 0.6) !important;
}
.poster-art.has-image .poster-chip-year {
  background: rgba(0, 0, 0, 0.45) !important;
}

/* Subtle loading shimmer while waiting for the thumbnail */
.poster-art[data-needs-poster]:not(.has-image)::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.04) 50%, transparent 70%) !important;
  background-size: 200% 100% !important;
  animation: posterShimmer 2.2s linear infinite !important;
  display: block !important;
  z-index: 2 !important;
  pointer-events: none;
}
@keyframes posterShimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}
.poster-art.has-image::before { display: none !important; animation: none !important; }


/* ============================================================
   v9 — TRAILER-CARD LAYOUT FOR MOVIE CARDS
   ------------------------------------------------------------
   Image at top, title + meta BELOW (not overlaid). Real data only —
   no made-up ratings or runtimes. Mirrors the trailer row visually.
   ============================================================ */

/* COMPACT HERO — kill the empty black space below the buttons */
.billboard {
  min-height: auto !important;
  padding-top: 6rem !important;
  padding-bottom: 2.5rem !important;
  margin-bottom: 0 !important;
}
.billboard-content {
  padding-top: 0 !important;
  max-width: 38rem;
}
.billboard h1 {
  font-size: clamp(2rem, 4.5vw, 3.6rem) !important;
  margin-bottom: 0.7rem !important;
}
.billboard-overview {
  font-size: 0.98rem !important;
  margin-bottom: 1.2rem !important;
  max-width: 32rem;
}
.billboard-meta { margin-bottom: 0.8rem !important; }
.billboard-actions { margin-bottom: 1.2rem !important; }

/* Hide the made-up rating chip (★ 8.5) and runtime in the hero meta */
.billboard-meta .rating,
.billboard-meta span:nth-child(3),   /* dot before runtime */
.billboard-meta span:nth-child(4),   /* runtime "3h 0m" */
.billboard-meta span:nth-child(5)    /* dot after runtime */ {
  display: none !important;
}

/* CARD: now flex column — image, then body */
.poster {
  display: flex !important;
  flex-direction: column !important;
  background: transparent !important;
  border-radius: 0 !important;
  overflow: visible !important;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.poster:hover { transform: translateY(-3px); box-shadow: none !important; }

/* The image box keeps 2:3 aspect ratio, holds only the image + hover play */
.poster-art {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 2 / 3 !important;
  overflow: hidden !important;
  border-radius: 6px !important;
  isolation: isolate !important;
  background: linear-gradient(165deg, #1a1422 0%, #0a070e 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04) !important;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.poster:hover .poster-art {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 14px 32px rgba(0, 0, 0, 0.55) !important;
}

/* HIDE all the v7/v8 overlaid chips — they're no longer needed */
.poster-meta-top,
.poster-meta-bottom,
.poster-chip-rating,
.poster-chip-year,
.poster-chip-genre,
.poster-chip-lang,
.poster-rating-chip,
.poster-year-badge,
.poster-rating-badge,
.poster-genre-dot,
.poster-play-corner {
  display: none !important;
}

/* Hide the overlaid fallback title — replaced by body below image */
.poster-fallback-title.is-hidden-overlay,
.poster-fallback-title {
  display: none !important;
}

/* The shimmer placeholder stays subtle when image is loading */
.poster-art[data-needs-poster]:not(.has-image)::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.05) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: posterShimmer 2.2s linear infinite;
  z-index: 1;
  display: block !important;
}

/* The TRAILER-STYLE BODY below the image */
.poster-body {
  padding: 0.7rem 0.1rem 0.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.poster-title {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.93rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.005em !important;
  color: #fff !important;
  margin: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.poster-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.76rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hover play button — only on the image, not the body */
.poster-art .poster-hover-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.75);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.4, 0.64, 1);
  z-index: 4;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}
.poster:hover .poster-art .poster-hover-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Row spacing — slightly more breathing room between rows */
.row-scroller { padding-bottom: 0.5rem !important; gap: 1rem !important; }
.section { padding: 1.5rem 0 1.25rem !important; }

