/* ════════════════════════════════════════
   DESIGN TOKENS
════════════════════════════════════════ */
:root {
  --p:        #8B5CF6;   /* primary purple   */
  --p-dk:     #6D28D9;   /* darker shade     */
  --p-lt:     #A78BFA;   /* lighter shade    */
  --p-glow:   rgba(139,92,246,0.28);
  --cyan:     #22D3EE;   /* AI accent        */
  --dark:     #07070F;
  --card:     #0E0E1C;
  --surface:  #15152A;
  --surface2: #1C1C34;
  --border:   rgba(139,92,246,0.14);
  --border2:  rgba(255,255,255,0.06);
  --muted:    #7878A0;
  --gold:     #FBBF24;
  --sidebar-w: 240px;
  --sidebar-rail: 64px;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--dark);
  color: #fff;
  font-family: 'Inter', sans-serif;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--p); border-radius: 2px; }

a { text-decoration: none; color: inherit; }

/* ════════════════════════════════════════
   LAYOUT SHELL
════════════════════════════════════════ */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* ── SIDEBAR (desktop only) ── */
.sidebar {
  display: none;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: rgba(7,7,15,0.97);
  border-right: 1px solid var(--border);
  flex-direction: column;
  z-index: 900;
  padding: 0 0 24px;
  backdrop-filter: blur(20px);
  overflow-x: hidden;
  transition: width 0.25s cubic-bezier(0.4,0,0.2,1);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 24px 24px;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.8px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
}

.logo-animated {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.logo-r {
  color: rgba(139,92,246,0.55);
  transition: color 0.25s cubic-bezier(0.4,0,0.2,1);
  flex-shrink: 0;
}

.logo-eelio {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  color: #fff;
  transition: max-width 0.25s cubic-bezier(0.4,0,0.2,1), opacity 0.18s;
}

.sidebar:hover .logo-r    { color: #fff; }
.sidebar:hover .logo-eelio { max-width: 120px; opacity: 1; }

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s, padding 0.25s cubic-bezier(0.4,0,0.2,1);
}

.sidebar-nav-item i { font-size: 1.15rem; width: 20px; text-align: center; color: #fff; }

.sidebar-nav-item:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
}

.sidebar-nav-item.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.sidebar-nav-item.active i { color: #fff; }

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}

.sidebar-section-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.28);
  padding: 6px 14px 4px;
}

.sidebar-bottom {
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-sub-card {
  background: linear-gradient(135deg, rgba(109,40,217,0.25), rgba(34,211,238,0.08));
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: 12px;
  padding: 14px;
}

.sidebar-sub-card .sc-title {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.sidebar-sub-card .sc-desc {
  font-size: 0.68rem;
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.4;
}

/* ── MAIN CONTENT AREA ── */
.main-content {
  flex: 1;
  min-width: 0;
}

/* ════════════════════════════════════════
   TOPBAR (mobile + desktop)
════════════════════════════════════════ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 800;
  height: calc(56px + env(safe-area-inset-top));
  background: transparent;
  display: flex;
  align-items: center;
  padding: env(safe-area-inset-top) 16px 0;
  transition: background 0.3s;
}

.topbar.solid { background: rgba(7,7,15,0.98); }

.topbar-logo {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.8px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 24px;
}

.topbar-actions { margin-left: auto; display: flex; gap: 6px; align-items: center; }

.topbar-search-desktop {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 14px;
  align-items: center;
  gap: 8px;
  width: 240px;
}

.topbar-search-desktop input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.82rem;
  width: 100%;
}

.topbar-search-desktop input::placeholder { color: var(--muted); }
.topbar-search-desktop i { color: var(--muted); font-size: 0.9rem; }

.btn-icon {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.15rem;
  padding: 5px 8px;
  line-height: 1;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.btn-icon:hover { color: #fff; background: rgba(255,255,255,0.07); }

.btn-sub {
  background: linear-gradient(135deg, var(--p), var(--p-dk));
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 16px;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 12px var(--p-glow);
  transition: opacity 0.15s, box-shadow 0.15s;
}
.btn-sub:hover { opacity: 0.88; color: #fff; box-shadow: 0 4px 20px var(--p-glow); }

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 520px;
  max-height: 720px;
  overflow: hidden;
}

/* Fallback bg (shows before video loads) */
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0d0030 0%, #08001e 40%, #000815 100%);
}

/* Background video */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-video.ready { opacity: 1; }

/* Left-to-right black scrim over the video */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.45) 55%, transparent 100%);
}

/* Grid texture */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139,92,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero-glow {
  position: absolute;
  top: 10%; right: 15%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  bottom: 5%; left: 30%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Phone mockup */
.hero-phone {
  display: none; /* hidden for now */
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  width: 130px;
  height: 232px;
  background: var(--card);
  border-radius: 24px;
  border: 1.5px solid rgba(139,92,246,0.3);
  box-shadow:
    0 24px 80px rgba(0,0,0,0.8),
    0 0 0 1px rgba(255,255,255,0.04),
    0 0 40px rgba(139,92,246,0.15);
  overflow: hidden;
  flex-direction: column;
  z-index: 10;
}

.hero-phone-screen {
  flex: 1;
  background: #0a0a18;
  background-size: cover;
  background-position: center top;
  position: relative;
  overflow: hidden;
}

.hero-phone-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
  z-index: 1;
}

.hero-phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 5px;
  background: rgba(0,0,0,0.55);
  border-radius: 3px;
  z-index: 3;
}

.hero-phone-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px;
  background: rgba(139,92,246,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(139,92,246,0.4);
  font-size: 1rem;
  color: #fff;
  z-index: 2;
}

.hero-phone-bar {
  height: 24px;
  background: #0a0a18;
  display: flex; align-items: center; justify-content: center;
}
.hero-phone-bar::before {
  content: '';
  width: 48px; height: 4px;
  background: rgba(139,92,246,0.3);
  border-radius: 2px;
}

.hero-phone-label {
  position: absolute;
  bottom: 20px; left: 12px; right: 12px;
  font-size: 0.55rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  line-height: 1.3;
  z-index: 2;
}

.hero-phone-ep {
  position: absolute;
  top: 10px; right: 8px;
  font-size: 0.48rem;
  background: var(--p);
  color: #fff;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
  z-index: 2;
}

.hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 65%;
  background: linear-gradient(to top, var(--dark) 0%, transparent 100%);
}

.hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0 20px 28px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.3);
  color: var(--p-lt);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--p-lt), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.77rem;
  color: var(--muted);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.hero-meta .dot { width: 3px; height: 3px; background: var(--muted); border-radius: 50%; }

.hero-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.58);
  line-height: 1.6;
  margin-bottom: 18px;
  max-width: 340px;
}

.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; }

/* Hero carousel nav */
.hero-content {
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.hero-content.is-fading {
  opacity: 0;
  transform: translateY(14px);
}
.hero-carousel-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.hero-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, width 0.3s;
}
.hero-dot.active {
  background: var(--p);
  width: 22px;
}
.hero-carr-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  transition: background 0.2s, color 0.2s;
}
.hero-carr-arrow:hover {
  background: rgba(139,92,246,0.3);
  color: #fff;
}

.btn-play {
  background: linear-gradient(135deg, var(--p), var(--p-dk));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 20px var(--p-glow);
}
.btn-play:hover { opacity: 0.88; color: #fff; }

.btn-info {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 18px;
  backdrop-filter: blur(6px);
}
.btn-info:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ════════════════════════════════════════
   GENRE PILLS
════════════════════════════════════════ */
.genre-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 20px;
}
.genre-scroll::-webkit-scrollbar { display: none; }

.genre-pill {
  white-space: nowrap;
  background: var(--surface);
  border: 1px solid var(--border2);
  color: rgba(255,255,255,0.65);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 7px 16px;
  cursor: pointer;
  transition: all 0.18s;
  flex-shrink: 0;
}
.genre-pill:hover { background: rgba(139,92,246,0.1); border-color: var(--border); color: #fff; }
.genre-pill.active {
  background: linear-gradient(135deg, var(--p), var(--p-dk));
  border-color: var(--p);
  color: #fff;
  box-shadow: 0 2px 12px var(--p-glow);
}

/* ════════════════════════════════════════
   SECTION LAYOUT
════════════════════════════════════════ */
.section-label {
  font-size: 0.63rem;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 3px;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.section-link {
  font-size: 0.78rem;
  color: var(--muted);
  margin-left: auto;
  white-space: nowrap;
  transition: color 0.15s;
}
.section-link:hover { color: var(--p-lt); }

.section-gap    { padding-top: 32px; }
.section-gap-sm { padding-top: 16px; }

.section-header {
  padding: 0 20px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 16px;
}

/* ── SCROLL ROW ── */
.scroll-row {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 20px;
  display: flex;
  gap: 14px;
}
.scroll-row::-webkit-scrollbar { display: none; }

/* ════════════════════════════════════════
   PORTRAIT CARD  (9:16)
════════════════════════════════════════ */
.card-portrait {
  flex-shrink: 0;
  width: 136px;
  cursor: pointer;
}

.card-portrait-thumb {
  width: 136px;
  height: 242px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: var(--card);
  border: 1px solid var(--border2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card-portrait:hover .card-portrait-thumb {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.6), 0 0 0 1px var(--border);
}

.thumb-gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 100%);
}

.thumb-ep {
  position: absolute;
  top: 8px; left: 8px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  backdrop-filter: blur(4px);
}

.thumb-lock {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(109,40,217,0.85);
  color: #fff;
  font-size: 0.65rem;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.thumb-free {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(34,211,238,0.85);
  color: #000;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
}

.thumb-genre {
  position: absolute;
  bottom: 28px; left: 8px;
  font-size: 0.58rem;
  color: rgba(255,255,255,0.5);
}

.thumb-title {
  position: absolute;
  bottom: 10px; left: 8px; right: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
}

.card-portrait-info { margin-top: 8px; }
.info-title {
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.info-sub {
  font-size: 0.63rem;
  color: var(--muted);
  margin-top: 3px;
}
.info-rating { color: var(--gold); }

/* ════════════════════════════════════════
   WIDE CARD
════════════════════════════════════════ */
.card-wide {
  flex-shrink: 0;
  width: 248px;
  cursor: pointer;
}

.card-wide-thumb {
  width: 248px;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: var(--card);
  border: 1px solid var(--border2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card-wide:hover .card-wide-thumb {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 0 1px var(--border);
}

.art-wide-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(139,92,246,0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 70%, rgba(34,211,238,0.12) 0%, transparent 50%);
}

.thumb-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 34px; height: 34px;
  background: rgba(139,92,246,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  border: 1px solid rgba(139,92,246,0.4);
  backdrop-filter: blur(4px);
  transition: background 0.15s;
}
.card-wide:hover .thumb-play-btn { background: rgba(139,92,246,0.4); }

.thumb-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.12);
}
.thumb-progress-fill { height: 100%; background: linear-gradient(90deg, var(--p), var(--cyan)); }

.thumb-ep-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  backdrop-filter: blur(4px);
}

.thumb-sub-badge {
  position: absolute;
  top: 8px; right: 8px;
  background: linear-gradient(135deg, var(--p), var(--p-dk));
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
}

.card-wide-info { margin-top: 8px; }
.w-title {
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.w-sub { font-size: 0.68rem; color: var(--muted); margin-top: 2px; }

/* ════════════════════════════════════════
   RANKED CARD
════════════════════════════════════════ */
.card-ranked {
  flex-shrink: 0;
  width: 120px;
  position: relative;
  cursor: pointer;
}

.card-ranked-num {
  position: absolute;
  bottom: 38px; left: -6px;
  font-size: 4.2rem;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(139,92,246,0.3);
  z-index: 2;
  letter-spacing: -4px;
}

.card-ranked-thumb {
  width: 110px;
  height: 165px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: var(--card);
  border: 1px solid var(--border2);
  margin-left: 16px;
  transition: transform 0.2s;
}
.card-ranked:hover .card-ranked-thumb { transform: translateY(-3px); }

.card-ranked-info { margin-top: 6px; margin-left: 16px; }
.r-title { font-size: 0.72rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-views { font-size: 0.62rem; color: var(--muted); }

/* ════════════════════════════════════════
   CONTINUE WATCHING
════════════════════════════════════════ */
.continue-list { padding: 0 20px; display: flex; flex-direction: column; gap: 10px; }

.continue-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}
.continue-card:hover { background: var(--surface); border-color: var(--border); }

.continue-thumb {
  width: 72px; height: 108px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: var(--surface2);
}

.continue-progress-wrap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.12);
}
.continue-progress-fill { height: 100%; background: linear-gradient(90deg, var(--p), var(--cyan)); }

.continue-info { flex: 1; min-width: 0; }
.c-title { font-size: 0.83rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-ep     { font-size: 0.7rem; color: var(--muted); margin-top: 3px; }
.c-time   { font-size: 0.68rem; color: rgba(255,255,255,0.65); margin-top: 3px; }
.c-locked { font-size: 0.68rem; color: rgba(255,255,255,0.65); margin-top: 3px; }

.continue-play {
  width: 34px; height: 34px;
  background: rgba(139,92,246,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: background 0.15s;
}
.continue-card:hover .continue-play { background: rgba(139,92,246,0.22); }

/* ════════════════════════════════════════
   FREE BANNER
════════════════════════════════════════ */
.free-banner {
  margin: 0 20px;
  border-radius: 12px;
  background: rgba(34,211,238,0.05);
  border: 1px solid rgba(34,211,238,0.18);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.free-banner-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(34,211,238,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.free-banner-text { flex: 1; }
.free-banner-text strong { font-size: 0.82rem; font-weight: 700; }
.free-banner-text p { font-size: 0.71rem; color: var(--muted); margin: 2px 0 0; }

/* ════════════════════════════════════════
   SUBSCRIPTION PLANS BANNER
════════════════════════════════════════ */
.sub-banner {
  margin: 0 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(109,40,217,0.18) 0%, rgba(34,211,238,0.06) 100%);
  border: 1px solid rgba(139,92,246,0.22);
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.sub-banner::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.14) 0%, transparent 70%);
  pointer-events: none;
}

.sub-banner::after {
  content: '';
  position: absolute;
  bottom: -60px; left: 10%;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.sub-banner-crown { font-size: 2rem; margin-bottom: 8px; }
.sub-banner h4 { font-size: 1.4rem; font-weight: 800; margin-bottom: 6px; }
.sub-banner > p { font-size: 0.8rem; color: rgba(255,255,255,0.55); margin-bottom: 18px; line-height: 1.5; }

.sub-plans { display: flex; gap: 10px; margin-bottom: 16px; }

.plan-card {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 18px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s;
  position: relative;
}
.plan-card:hover { border-color: rgba(139,92,246,0.35); background: rgba(139,92,246,0.06); }

.plan-card.featured {
  border-color: var(--p);
  background: rgba(139,92,246,0.1);
  box-shadow: 0 0 0 1px rgba(139,92,246,0.2);
}

.plan-badge {
  position: absolute;
  top: -9px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--p), var(--p-dk));
  color: #fff;
  font-size: 0.56rem;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 10px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.plan-period { font-size: 0.72rem; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.4px; }
.plan-price  { font-size: 2.2rem; font-weight: 900; line-height: 1; }
.plan-price sup { font-size: 0.8rem; font-weight: 600; vertical-align: super; }
.plan-save   { font-size: 0.65rem; color: var(--cyan); margin-top: 4px; }

/* Remove glow from Start Watching Now button */
#subBannerBtn { box-shadow: none; }
#subBannerBtn:hover { box-shadow: none; }

/* App store buttons */
.store-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 9px 18px;
  color: #fff;
  transition: background 0.15s, border-color 0.15s;
  flex: 1;
  justify-content: center;
}

.store-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.22);
}

.store-btn i { font-size: 1.5rem; }

.store-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  font-size: 0.82rem;
  font-weight: 700;
}

.store-btn-text small {
  font-size: 0.58rem;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
}

/* ════════════════════════════════════════
   GRADIENT ARTS  (CSS placeholder thumbs)
════════════════════════════════════════ */
.art-1 { background: linear-gradient(160deg, #1e0050 0%, #0d0038 40%, #000a1a 100%); }
.art-2 { background: linear-gradient(160deg, #001040 0%, #000828 40%, #0a001e 100%); }
.art-3 { background: linear-gradient(160deg, #200050 0%, #10003a 40%, #000510 100%); }
.art-4 { background: linear-gradient(160deg, #001430 0%, #000e24 40%, #050010 100%); }
.art-5 { background: linear-gradient(160deg, #150030 0%, #0a0024 40%, #000010 100%); }
.art-6 { background: linear-gradient(160deg, #0a0040 0%, #050030 40%, #00000f 100%); }
.art-7 { background: linear-gradient(160deg, #0d0050 0%, #0d1440 50%, #1a0050 100%); }
.art-8 { background: linear-gradient(160deg, #200050 0%, #300030 50%, #001020 100%); }

.art-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 60% 20%, rgba(139,92,246,0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(34,211,238,0.12) 0%, transparent 50%);
}

.art-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: 0.12;
}

/* ════════════════════════════════════════
   SEARCH BAR (mobile inline)
════════════════════════════════════════ */
.search-wrap { padding: 12px 20px 0; }

.search-bar {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  transition: border-color 0.15s;
}
.search-bar:focus-within { border-color: rgba(139,92,246,0.4); }

.search-bar input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.85rem;
  flex: 1;
}
.search-bar input::placeholder { color: var(--muted); }
.search-bar i { color: var(--muted); font-size: 1rem; }

/* ════════════════════════════════════════
   BOTTOM NAV (mobile)
════════════════════════════════════════ */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: calc(64px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(7,7,15,0.97);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 800;
  backdrop-filter: blur(16px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: color 0.15s;
}
.nav-item i { font-size: 1.3rem; }
.nav-item.active { color: var(--p-lt); }

.nav-item-center {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--p), var(--p-dk));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  color: #fff;
  margin-top: -20px;
  box-shadow: 0 4px 24px var(--p-glow);
  cursor: pointer;
  transition: box-shadow 0.15s;
}
.nav-item-center:hover { box-shadow: 0 6px 30px rgba(139,92,246,0.45); }

/* ════════════════════════════════════════
   TOAST
════════════════════════════════════════ */
.toast-reelio {
  position: fixed;
  bottom: 80px; left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--surface2);
  border: 1px solid var(--border);
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 20px;
  opacity: 0;
  transition: all 0.22s;
  z-index: 2000;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.toast-reelio.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ════════════════════════════════════════
   PAYWALL MODAL
════════════════════════════════════════ */
.paywall-modal .modal-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: #fff;
}
.paywall-modal .modal-header { border-bottom: 1px solid var(--border2); padding: 18px 20px; }
.paywall-modal .modal-body   { padding: 20px; }
.paywall-modal .modal-footer { border-top: 1px solid var(--border2); padding: 14px 20px; }

.paywall-thumb {
  width: 80px; height: 120px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

/* ════════════════════════════════════════
   PAGE PADDING
════════════════════════════════════════ */
.page-bottom-pad { height: 80px; }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border2);
  padding: 32px 20px 100px; /* extra bottom for mobile nav */
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-links a {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.15s;
}

.footer-links a:hover { color: #fff; }

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-social-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color 0.15s, border-color 0.15s;
}

.footer-social-btn:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}

.footer-store-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.68rem;
  color: var(--muted);
  margin: 0;
}

/* ════════════════════════════════════════
   DESKTOP  ≥ 992px
════════════════════════════════════════ */
@media (min-width: 992px) {

  .sidebar { display: flex; width: var(--sidebar-rail); }
  .sidebar:hover { width: var(--sidebar-w); }
  .bottom-nav { display: none; }
  .topbar-search-desktop { display: flex; }

  .topbar { left: var(--sidebar-rail); height: 64px; padding: 0 32px; }
  .main-content { margin-left: var(--sidebar-rail); }

  /* ── Sidebar logo: static purple R mark, always centred ── */
  .sidebar-logo { padding: 16px 14px 16px 20px; justify-content: flex-start; }

  /* ── Nav items: always left-aligned, text hidden via font-size 0 ── */
  .sidebar-nav-item {
    font-size: 0;
    justify-content: flex-start;
    padding: 12px 14px;
  }
  .sidebar-nav-item i { font-size: 1.2rem; }
  .sidebar:hover .sidebar-nav-item { font-size: 0.875rem; }
  .sidebar:hover .sidebar-nav-item i { font-size: 1.15rem; }

  /* ── Section labels and subscribe card: fade in on hover ── */
  .sidebar-section-label,
  .sidebar-bottom { opacity: 0; visibility: hidden; transition: opacity 0.15s, visibility 0.15s; pointer-events: none; }
  .sidebar:hover .sidebar-section-label,
  .sidebar:hover .sidebar-bottom { opacity: 1; visibility: visible; pointer-events: auto; }

  .toast-reelio { bottom: 32px; }

  .hero { max-height: 600px; height: 70vh; }
  .hero-content { padding: 0 44px 44px; max-width: 560px; }
  .hero-title { font-size: 3.2rem; }
  .hero-desc { font-size: 0.9rem; max-width: 420px; }
  .hero-phone { width: 200px; height: 356px; right: 5%; transform: translateY(-50%); }
  .hero-phone-play { width: 44px; height: 44px; font-size: 1.1rem; }
  .hero-phone-label { font-size: 0.65rem; bottom: 26px; }
  .hero-phone-ep { font-size: 0.56rem; top: 14px; right: 10px; }

  .section-header { padding: 0 32px; margin-bottom: 18px; }
  .section-title  { font-size: 1.35rem; }
  .scroll-row     { padding: 0 32px; gap: 16px; }
  .continue-list  { padding: 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .search-wrap    { display: none; }
  .genre-scroll   { padding: 0 32px; }
  .free-banner    { margin: 0 32px; }
  .sub-banner     { margin: 0 32px; }

  .card-portrait       { width: 162px; }
  .card-portrait-thumb { width: 162px; height: 288px; }

  .card-wide       { width: 290px; }
  .card-wide-thumb { width: 290px; height: 163px; }

  .card-ranked       { width: 136px; }
  .card-ranked-thumb { width: 122px; height: 183px; }
  .card-ranked-num   { font-size: 5rem; }

  .plan-price    { font-size: 3rem; }
  #subBannerBtn  { width: auto; min-width: 300px; display: block; margin-left: auto; margin-right: auto; }
  .store-btns    { max-width: 420px; margin-left: auto; margin-right: auto; }
  .page-bottom-pad { height: 40px; }

  .site-footer { padding: 32px 32px 48px; }
  .footer-inner { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 16px 32px; }
  .footer-links { flex: 1; min-width: 0; }
  .footer-socials { order: 2; }
  .footer-store-btns { order: 3; display: flex; gap: 8px; margin-left: auto; }
  .footer-store-btns .store-btn { flex: none; }
  .footer-copy { width: 100%; order: 4; }
}

/* ════════════════════════════════════════
   DESKTOP WIDE  ≥ 1280px
════════════════════════════════════════ */
@media (min-width: 1280px) {
  :root { --sidebar-w: 260px; }

  .hero-title { font-size: 3.8rem; }
  .hero-phone { width: 240px; height: 427px; right: 7%; }
  .hero-phone-play { width: 52px; height: 52px; font-size: 1.3rem; }
  .hero-phone-label { font-size: 0.75rem; bottom: 30px; }
  .hero-phone-ep { font-size: 0.63rem; }

  .card-portrait       { width: 176px; }
  .card-portrait-thumb { width: 176px; height: 313px; }

  .card-wide       { width: 316px; }
  .card-wide-thumb { width: 316px; height: 178px; }

  .continue-list { grid-template-columns: 1fr 1fr 1fr; }
}

/* ════════════════════════════════════════
   TABLET  768–991px
════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991px) {
  .card-portrait       { width: 152px; }
  .card-portrait-thumb { width: 152px; height: 270px; }
  .card-wide           { width: 270px; }
  .card-wide-thumb     { width: 270px; height: 152px; }
}

/* ════════════════════════════════════════
   iOS ADD TO HOME SCREEN NUDGE
════════════════════════════════════════ */
.a2hs-nudge {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: calc(100% - 32px);
  max-width: 340px;
  background: rgba(14,14,28,0.97);
  border: 1px solid rgba(139,92,246,0.35);
  border-radius: 18px;
  padding: 14px 16px 20px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(139,92,246,0.1);
}
.a2hs-nudge.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.a2hs-close {
  position: absolute;
  top: 10px; right: 12px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.a2hs-close:hover { background: rgba(255,255,255,0.14); color: #fff; }

.a2hs-body {
  display: flex;
  align-items: center;
  gap: 12px;
}
.a2hs-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
}
.a2hs-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.a2hs-text strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
}
.a2hs-text span {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}
.a2hs-text i  { color: #60a5fa; }
.a2hs-text em { font-style: normal; color: rgba(255,255,255,0.75); }

/* Arrow pointing down toward the Safari share button */
.a2hs-arrow {
  width: 14px; height: 14px;
  border-right: 2px solid rgba(139,92,246,0.5);
  border-bottom: 2px solid rgba(139,92,246,0.5);
  transform: rotate(45deg);
  margin: 10px auto 0;
  animation: arrow-bounce 1s ease-in-out infinite;
}
@keyframes arrow-bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(4px); }
}
