/* ================================================================
   ANNE — Design System v3
   Mobile-first · Cinematic · Streaming Platform
   ================================================================ */

/* ── TOKENS ──────────────────────────────────────────────────── */
:root {
  --bg:           #0A0A0A;
  --bg2:          #111111;
  --card:         #181818;
  --card2:        #222222;
  --border:       rgba(255,255,255,0.08);
  --border-h:     rgba(255,255,255,0.18);
  --text:         #FFFFFF;
  --text-2:       #B0B0B0;
  --text-3:       #707070;
  --accent:       #D62839;
  --accent-dim:   rgba(214,40,57,0.15);
  --success:      #2ECC71;
  --warning:      #F39C12;
  --r:            10px;
  --r-sm:         6px;
  --r-lg:         16px;
  --t:            250ms ease;
  --t-md:         350ms ease;
  --shadow:       0 4px 20px rgba(0,0,0,0.6);
  --shadow-lg:    0 16px 48px rgba(0,0,0,0.8);
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }

/* ── AUTH: SPLASH ────────────────────────────────────────────── */
#auth-splash {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease;
}
#auth-splash.fade-out { opacity: 0; pointer-events: none; }
.splash-wordmark {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: 0.35em;
  color: var(--text);
  opacity: 0;
  animation: splash-appear 0.9s cubic-bezier(0.16,1,0.3,1) 0.4s forwards;
}
@keyframes splash-appear {
  from { opacity: 0; transform: scale(0.92) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── AUTH: PROFILE SCREEN ────────────────────────────────────── */
#profile-screen {
  position: fixed; inset: 0; z-index: 900;
  background: var(--bg);
  display: none; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 40px; padding: 24px;
}
#profile-screen.visible { display: flex; }
#profile-screen.fade-out { animation: anim-fade-out 0.4s ease forwards; }

.profile-heading {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 400; letter-spacing: 0.01em;
  color: var(--text);
}

.profiles-grid {
  display: flex; gap: 20px; flex-wrap: wrap; justify-content: center;
}

.profile-card {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.profile-avatar {
  width: 96px; height: 96px;
  border-radius: 14px;
  border: 3px solid transparent;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 700;
  color: rgba(255,255,255,0.95);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  background: var(--card);
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
/* Netflix-style illustrated avatar treatment */
.profile-avatar::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.08) 0%, transparent 60%);
  border-radius: 11px;
  pointer-events: none;
}
.profile-card:hover .profile-avatar,
.profile-card:focus-visible .profile-avatar {
  border-color: rgba(255,255,255,0.9);
  transform: scale(1.07) translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.6);
}
.profile-name {
  font-size: 13px; font-weight: 400;
  color: var(--text-3);
  transition: color var(--t);
  letter-spacing: 0.02em;
}
.profile-card:hover .profile-name { color: var(--text); }

@media (max-width: 480px) {
  .profile-avatar { width: 80px; height: 80px; font-size: 1.7rem; }
  .profiles-grid { gap: 16px; }
}

/* ── AUTH: PIN SCREEN ────────────────────────────────────────── */
#pin-screen {
  position: fixed; inset: 0; z-index: 800;
  background: var(--bg);
  display: none; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 32px; padding: 24px;
}
#pin-screen.visible { display: flex; }

.pin-header { text-align: center; }
.pin-profile-name { font-size: 17px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.pin-label { font-size: 13px; color: var(--text-3); }

.pin-dots { display: flex; gap: 12px; }
.pin-dot {
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid var(--text-3); background: transparent;
  transition: background var(--t), border-color var(--t), transform 0.12s;
}
.pin-dot.filled {
  background: var(--accent); border-color: var(--accent);
  transform: scale(1.15);
}

.pin-numpad {
  display: grid; grid-template-columns: repeat(3, 68px); gap: 10px;
}
.pin-key {
  width: 68px; height: 68px; border-radius: 50%;
  background: #1C1C1C; border: 1px solid var(--border);
  color: var(--text); font-size: 20px; font-weight: 400;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t), transform 0.1s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.pin-key:hover { background: #2A2A2A; }
.pin-key:active { transform: scale(0.93); background: #333; }
.pin-key.backspace { font-size: 15px; color: var(--text-2); }
.pin-key.empty { opacity: 0; pointer-events: none; }

.pin-error {
  font-size: 13px; color: var(--accent);
  min-height: 18px; text-align: center;
  opacity: 0; transition: opacity 0.2s;
}
.pin-error.visible { opacity: 1; }
.pin-screen-shake { animation: anim-shake 0.4s ease; }

@keyframes anim-shake {
  0%,100%{transform:translateX(0)} 20%{transform:translateX(-10px)} 40%{transform:translateX(10px)} 60%{transform:translateX(-6px)} 80%{transform:translateX(6px)}
}
@keyframes anim-fade-out { from{opacity:1} to{opacity:0;pointer-events:none} }

/* ── NAV ─────────────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 56px;
  display: flex; align-items: center;
  padding: 0 20px;
  gap: 0;
  transition: background var(--t-md), backdrop-filter var(--t-md);
}
#nav.scrolled {
  background: rgba(10,10,10,0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-logo {
  font-size: 1.25rem; font-weight: 800;
  letter-spacing: 0.2em; color: var(--text);
  flex-shrink: 0; margin-right: 32px;
}
.nav-links {
  display: flex; gap: 24px; flex: 1;
}
.nav-link {
  font-size: 13px; font-weight: 500;
  color: var(--text-2);
  transition: color var(--t);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.nav-avatar {
  width: 30px; height: 30px; border-radius: 6px;
  background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; cursor: pointer;
  transition: border-color var(--t);
  overflow: hidden; position: relative;
}
.nav-avatar:hover { border-color: var(--border-h); }
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }

.nav-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: #1C1C1C; border: 1px solid var(--border);
  border-radius: var(--r); min-width: 150px;
  opacity: 0; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--t), transform var(--t);
  box-shadow: var(--shadow-lg);
}
.nav-dropdown.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav-dropdown-item {
  padding: 11px 16px; font-size: 13px; color: var(--text-2);
  cursor: pointer; display: flex; align-items: center; gap: 10px;
  transition: background var(--t), color var(--t);
}
.nav-dropdown-item:hover { background: var(--card2); color: var(--text); }
.nav-dropdown-item.danger { color: var(--accent); }
.nav-dropdown-item.danger:hover { background: var(--accent-dim); }

@media (max-width: 600px) {
  .nav-links { display: none; }
  #nav { padding: 0 16px; }
  .nav-logo { margin-right: 0; }
}

/* ── HERO ────────────────────────────────────────────────────── */
#hero {
  position: relative; min-height: 90vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  background: #111;
}
.hero-video {
  width: 100%; height: 100%;
  object-fit: cover; opacity: 0.55;
}
.hero-fallback {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1c1c1c 0%, #0a0a0a 100%);
}
.hero-grad-bottom {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 75%; pointer-events: none;
  background: linear-gradient(to top, var(--bg) 0%, rgba(10,10,10,0.7) 40%, transparent 100%);
}
.hero-grad-left {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to right, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.3) 50%, transparent 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 0 5% 72px; max-width: 600px;
  animation: hero-in 0.8s cubic-bezier(0.16,1,0.3,1) 0.2s both;
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800; line-height: 1.0; letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.hero-season { font-size: 13px; color: var(--text-3); margin-bottom: 14px; }
.hero-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.hero-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px; background: var(--accent); color: #fff;
}
.hero-pill {
  font-size: 11px; color: var(--text-3);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 2px 8px; border-radius: 4px;
}
.hero-desc {
  font-size: 14px; color: var(--text-2); line-height: 1.65;
  margin-bottom: 24px; max-width: 420px;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 600px) {
  #hero { min-height: 75vh; }
  .hero-content { padding: 0 16px 56px; }
  .hero-title { font-size: clamp(2rem, 9vw, 3rem); }
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600; font-family: inherit;
  transition: background var(--t), opacity var(--t), transform 0.1s;
  white-space: nowrap; -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #be2232; }
.btn-secondary { background: rgba(255,255,255,0.15); color: var(--text); }
.btn-secondary:hover { background: rgba(255,255,255,0.22); }
.btn-ghost { background: transparent; color: var(--text-2); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--border-h); }
.btn:disabled { opacity: 0.4; pointer-events: none; }

/* ── SECTIONS ────────────────────────────────────────────────── */
.section { padding: 40px 5%; }
.section-inner { max-width: 1400px; margin: 0 auto; }
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 16px; gap: 12px;
}
.section-title { font-size: 17px; font-weight: 600; }
.section-more { font-size: 13px; color: var(--text-3); display: flex; align-items: center; gap: 4px; transition: color var(--t); }
.section-more:hover { color: var(--text); }

@media (max-width: 600px) {
  .section { padding: 28px 16px; }
  .section-title { font-size: 15px; }
}

/* ── EPISODE CARDS (horizontal scroll) ───────────────────────── */
.cards-row {
  display: flex; gap: 10px; overflow-x: auto;
  padding-bottom: 6px; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.cards-row::-webkit-scrollbar { display: none; }

/* ── EPISODE CARD ────────────────────────────────────────────── */
.ep-card {
  flex: 0 0 160px; border-radius: var(--r);
  background: var(--card); overflow: hidden;
  scroll-snap-align: start; cursor: pointer;
  border: 1px solid var(--border);
  transition: border-color var(--t), transform var(--t-md), box-shadow var(--t-md);
  -webkit-tap-highlight-color: transparent;
}
.ep-card:not(.locked):hover { border-color: var(--border-h); transform: translateY(-4px) scale(1.01); box-shadow: var(--shadow-lg); }
.ep-card.locked { cursor: default; opacity: 0.55; }

.ep-card-thumb {
  aspect-ratio: 16/9; position: relative;
  background: var(--bg2); overflow: hidden;
}
.ep-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.ep-card:not(.locked):hover .ep-card-thumb img { transform: scale(1.05); }

.ep-card-play {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--t);
}
.ep-card:not(.locked):hover .ep-card-play { opacity: 1; }
.ep-card-play-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(214,40,57,0.5);
}

.ep-card-lock {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
  color: var(--text-3);
}
.ep-card-lock span { font-size: 11px; }

.ep-card-prog {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: rgba(255,255,255,0.1);
}
.ep-card-prog-fill { height: 100%; background: var(--accent); }

.ep-card-new {
  position: absolute; top: 7px; left: 7px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--accent); color: #fff; padding: 2px 7px; border-radius: 3px;
}
.ep-card-watched {
  position: absolute; top: 7px; right: 7px;
  font-size: 10px; color: var(--success);
  background: rgba(0,0,0,0.65); padding: 2px 7px; border-radius: 3px;
  display: flex; align-items: center; gap: 3px;
}

.ep-card-meta { padding: 10px 12px 12px; }
.ep-card-num { font-size: 10px; color: var(--text-3); margin-bottom: 3px; }
.ep-card-title { font-size: 13px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep-card-info { font-size: 11px; color: var(--text-3); margin-top: 5px; }

@media (max-width: 600px) {
  .ep-card { flex: 0 0 140px; }
}

/* ── EPISODE LIST — chronological with BIG NUMBERS ───────────── */
.episode-list { display: flex; flex-direction: column; }

.eli {
  display: flex; align-items: center; gap: 0;
  position: relative;
  border-bottom: 1px solid var(--border);
  transition: background var(--t);
  cursor: pointer; overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.eli:last-child { border-bottom: none; }
.eli:not(.locked):hover { background: rgba(255,255,255,0.03); }
.eli.locked { cursor: default; }
.eli.next-up { background: rgba(214,40,57,0.04); }

/* Big background episode number */
.eli-big-num {
  position: relative; flex-shrink: 0;
  width: 80px; text-align: center;
  font-size: 52px; font-weight: 900;
  color: rgba(255,255,255,0.06);
  letter-spacing: -0.04em;
  line-height: 1;
  padding: 20px 0 20px 16px;
  user-select: none;
  font-variant-numeric: tabular-nums;
}
.eli.next-up .eli-big-num { color: rgba(214,40,57,0.18); }

.eli-thumb {
  flex-shrink: 0; width: 130px; aspect-ratio: 16/9;
  border-radius: var(--r-sm); overflow: hidden;
  background: var(--bg2); position: relative; margin: 16px 16px 16px 0;
}
.eli-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.eli:not(.locked):hover .eli-thumb img { transform: scale(1.05); }
.eli-thumb-play {
  position: absolute; inset: 0; background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--t);
}
.eli:not(.locked):hover .eli-thumb-play { opacity: 1; }
.eli-thumb-lock {
  position: absolute; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
}

.eli-info { flex: 1; min-width: 0; padding: 16px 16px 16px 0; }
.eli-title { font-size: 15px; font-weight: 500; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eli-desc { font-size: 13px; color: var(--text-3); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; }
.eli-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.eli-runtime { font-size: 12px; color: var(--text-3); }
.eli-date { font-size: 12px; color: var(--text-3); }

.eli-prog { height: 2px; background: rgba(255,255,255,0.08); border-radius: 1px; margin-top: 8px; }
.eli-prog-fill { height: 100%; background: var(--accent); border-radius: 1px; }

.eli-status { flex-shrink: 0; padding: 0 16px; }
.eli-badge {
  font-size: 11px; padding: 4px 10px; border-radius: 20px; font-weight: 500; white-space: nowrap;
}
.eli-badge.available { background: rgba(255,255,255,0.06); color: var(--text-2); }
.eli-badge.watched   { background: rgba(46,204,113,0.1); color: var(--success); }
.eli-badge.today     { background: var(--accent-dim); color: var(--accent); }
.eli-badge.locked    { background: transparent; color: var(--text-3); border: 1px solid var(--border); }
.eli-lock-date       { font-size: 10px; color: var(--text-3); margin-top: 3px; text-align: center; }

/* Song badge on list item */
.eli-song {
  display: flex; align-items: center; gap: 6px;
  margin-top: 7px; flex-wrap: wrap;
}
.eli-song-label { font-size: 11px; color: var(--text-3); }
.eli-song-title { font-size: 11px; color: var(--text-2); font-style: italic; }
.eli-song-links { display: flex; gap: 6px; }
.eli-song-link {
  font-size: 10px; padding: 2px 8px; border-radius: 10px;
  font-weight: 600; letter-spacing: 0.03em;
  transition: opacity var(--t);
}
.eli-song-link:hover { opacity: 0.8; }
.eli-song-link.spotify { background: #1DB954; color: #000; }
.eli-song-link.apple   { background: #FC3C44; color: #fff; }

@media (max-width: 700px) {
  .eli-big-num { width: 48px; font-size: 36px; padding: 14px 0 14px 10px; }
  .eli-thumb   { width: 100px; }
  .eli-status  { display: none; }
  .eli-title   { font-size: 14px; }
  .eli-desc    { display: none; }
}
@media (max-width: 480px) {
  .eli-thumb { width: 80px; margin: 12px 10px 12px 0; }
  .eli-info  { padding: 12px 10px 12px 0; }
  .eli-big-num { width: 40px; font-size: 28px; }
}

/* ── DAILY SONG CARD ─────────────────────────────────────────── */
.song-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 16px;
  display: flex; gap: 14px; align-items: center;
  flex: 0 0 260px; scroll-snap-align: start;
  transition: border-color var(--t), transform var(--t-md);
}
.song-card:hover { border-color: var(--border-h); transform: translateY(-2px); }
.song-cover {
  width: 56px; height: 56px; border-radius: var(--r-sm);
  flex-shrink: 0; background: var(--bg2); overflow: hidden;
}
.song-cover img { width: 100%; height: 100%; object-fit: cover; }
.song-cover-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--text-3);
}
.song-info { flex: 1; min-width: 0; }
.song-day { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 3px; }
.song-title { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.song-artist { font-size: 12px; color: var(--text-3); margin-bottom: 8px; }
.song-links { display: flex; gap: 6px; }

/* ── TODAY BANNER ────────────────────────────────────────────── */
.today-banner {
  margin: 0; background: var(--card);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.today-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; gap: 0; align-items: stretch;
  padding: 0 5%;
}
.today-content { flex: 1; padding: 24px 24px 24px 0; }
.today-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.today-ep-title { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.today-ep-sub { font-size: 13px; color: var(--text-3); margin-bottom: 10px; }
.today-desc { font-size: 13px; color: var(--text-2); line-height: 1.6; max-width: 400px; margin-bottom: 16px; }
.today-thumb {
  flex-shrink: 0; width: 200px; position: relative;
  background: var(--bg2); overflow: hidden; cursor: pointer;
}
.today-thumb img { width: 100%; height: 100%; object-fit: cover; }
.today-play-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.35);
  display: flex; align-items: center; justify-content: center;
}
.today-play-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(214,40,57,0.5);
  transition: transform 0.15s;
}
.today-thumb:hover .today-play-btn { transform: scale(1.1); }

@media (max-width: 600px) {
  .today-inner { flex-direction: column-reverse; padding: 0 16px; }
  .today-thumb { width: 100%; height: 180px; }
  .today-content { padding: 16px 0; }
  .today-banner { margin: 0; }
}

/* ── NEXT EP BANNER ──────────────────────────────────────────── */
.next-ep-bar {
  background: var(--card2);
  border-bottom: 1px solid var(--border);
  padding: 12px 5%;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.next-ep-bar.hidden { display: none; }
.neb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.neb-label { font-size: 12px; color: var(--text-3); }
.neb-title { font-size: 13px; font-weight: 500; }
.neb-countdown { font-size: 12px; color: var(--text-3); margin-left: auto; }
.neb-countdown strong { color: var(--text); font-variant-numeric: tabular-nums; }

@media (max-width: 600px) {
  .next-ep-bar { padding: 12px 16px; }
}

/* ── WATCH PAGE ──────────────────────────────────────────────── */
#watch-page {
  position: fixed; inset: 0; z-index: 200;
  background: #000; display: none; flex-direction: column;
}
#watch-page.active { display: flex; }

.watch-header {
  position: absolute; top: 0; left: 0; right: 0; height: 60px;
  display: flex; align-items: center; padding: 0 20px; gap: 14px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.75) 0%, transparent 100%);
  z-index: 10;
}
.watch-back {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center; color: #fff;
  transition: background var(--t);
}
.watch-back:hover { background: rgba(255,255,255,0.2); }

.player-wrap { position: relative; background: #000; flex: 1; }
.player-video { width: 100%; height: 100%; object-fit: contain; }

.player-controls {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  opacity: 0; transition: opacity var(--t);
}
.player-wrap:hover .player-controls,
.player-wrap.paused .player-controls { opacity: 1; }

.player-progress {
  width: 100%; height: 4px; background: rgba(255,255,255,0.18);
  border-radius: 2px; cursor: pointer; margin-bottom: 12px;
}
.player-progress-fill { height: 100%; background: var(--accent); border-radius: 2px; pointer-events: none; }

.player-btns { display: flex; align-items: center; gap: 14px; }
.player-btn {
  color: rgba(255,255,255,0.8); width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  transition: color var(--t);
}
.player-btn:hover { color: #fff; }
.player-time { font-size: 12px; color: rgba(255,255,255,0.6); }
.player-right { margin-left: auto; display: flex; gap: 10px; }

.player-big-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.player-big-play-btn {
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 2px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: background var(--t), transform 0.15s;
}
.player-big-play-btn:hover { background: var(--accent); transform: scale(1.08); }

.watch-info {
  padding: 20px 5%;
  background: var(--bg);
  overflow-y: auto;
  max-height: 38vh;
}
.watch-ep-label { font-size: 12px; color: var(--text-3); margin-bottom: 5px; }
.watch-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.watch-desc { font-size: 14px; color: var(--text-2); line-height: 1.6; max-width: 640px; }
.watch-nav { display: flex; gap: 10px; margin-top: 16px; }

/* Song in watch page */
.watch-song {
  margin-top: 16px; padding: 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r);
  display: flex; gap: 12px; align-items: center; max-width: 400px;
}
.watch-song-cover { width: 48px; height: 48px; border-radius: 6px; flex-shrink: 0; background: var(--bg2); overflow: hidden; }
.watch-song-cover img { width: 100%; height: 100%; object-fit: cover; }
.watch-song-info { flex: 1; }
.watch-song-label { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.watch-song-title { font-size: 14px; font-weight: 500; margin-bottom: 1px; }
.watch-song-artist { font-size: 12px; color: var(--text-3); margin-bottom: 8px; }
.watch-song-links { display: flex; gap: 6px; }

.auto-next-overlay {
  position: absolute; bottom: 90px; right: 20px;
  background: rgba(0,0,0,0.9); border: 1px solid var(--border);
  border-radius: var(--r); padding: 16px 18px;
  min-width: 240px; display: none;
}
.auto-next-overlay.visible { display: block; }
.auto-next-label { font-size: 11px; color: var(--text-3); margin-bottom: 5px; }
.auto-next-title { font-size: 14px; font-weight: 500; margin-bottom: 12px; }
.auto-next-bar { height: 2px; background: rgba(255,255,255,0.1); border-radius: 1px; margin-bottom: 12px; }
.auto-next-bar-fill { height: 100%; background: var(--accent); border-radius: 1px; transition: width 1s linear; }

.locked-message {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; padding: 24px; background: var(--bg);
}
.locked-message h3 { font-size: 18px; font-weight: 500; }
.locked-message p { font-size: 14px; color: var(--text-2); max-width: 280px; }
.locked-countdown { font-size: 32px; font-weight: 200; letter-spacing: 0.04em; margin: 6px 0; font-variant-numeric: tabular-nums; }

/* ── BIRTHDAY SECTION ────────────────────────────────────────── */
.birthday-section {
  padding: 80px 5%; text-align: center;
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg2) 50%, var(--bg) 100%);
}
.birthday-eyebrow { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); margin-bottom: 20px; }
.birthday-countdown { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.countdown-unit { text-align: center; }
.countdown-num { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 200; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown-label { font-size: 10px; color: var(--text-3); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 5px; }
.countdown-sep { font-size: 2.5rem; color: var(--text-3); align-self: center; font-weight: 200; opacity: 0.4; }

/* ── MODAL ───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.75);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-md);
  padding: 0;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: #161616; border: 1px solid var(--border);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
  transform: translateY(40px);
  transition: transform var(--t-md);
  box-shadow: var(--shadow-lg);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-hero { aspect-ratio: 16/9; position: relative; background: var(--bg); }
.modal-hero img { width: 100%; height: 100%; object-fit: cover; }
.modal-hero-grad { position: absolute; inset: 0; background: linear-gradient(to top, #161616 0%, transparent 60%); }
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0,0,0,0.65); color: #fff; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t);
}
.modal-close:hover { background: rgba(0,0,0,0.85); }
.modal-body { padding: 20px 20px 32px; }
.modal-ep-num { font-size: 11px; color: var(--text-3); margin-bottom: 5px; }
.modal-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.modal-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.modal-tag { font-size: 11px; color: var(--text-3); background: var(--card2); padding: 3px 9px; border-radius: 4px; }
.modal-desc { font-size: 14px; color: var(--text-2); line-height: 1.65; margin-bottom: 12px; }
.modal-quote { font-style: italic; color: var(--text-3); font-size: 13px; border-left: 2px solid var(--border); padding-left: 12px; margin-bottom: 18px; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── TOAST ───────────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 20px; right: 16px; z-index: 999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  background: #1C1C1C; border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 12px 16px; font-size: 13px;
  display: flex; align-items: center; gap: 9px;
  pointer-events: auto; box-shadow: var(--shadow);
  animation: toast-in 0.25s cubic-bezier(0.16,1,0.3,1);
  max-width: 300px;
}
@keyframes toast-in { from{transform:translateX(16px);opacity:0} to{transform:translateX(0);opacity:1} }
.toast-icon { flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; }
.toast.success .toast-icon { background: rgba(46,204,113,0.15); color: var(--success); }
.toast.error   .toast-icon { background: rgba(214,40,57,0.15); color: var(--accent); }
.toast.info    .toast-icon { background: rgba(255,255,255,0.06); color: var(--text-2); }
.toast.unlock  .toast-icon { background: rgba(214,40,57,0.15); color: var(--accent); }
.toast-body { flex: 1; }
.toast-title { font-weight: 500; }
.toast-sub { font-size: 11px; color: var(--text-3); margin-top: 2px; }

/* ── FILTER TABS ─────────────────────────────────────────────── */
.filter-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-tab { font-size: 13px; padding: 7px 14px; border: 1px solid var(--border); border-radius: 20px; color: var(--text-3); transition: all var(--t); -webkit-tap-highlight-color: transparent; }
.filter-tab:hover { color: var(--text); border-color: var(--border-h); }
.filter-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── FOOTER ──────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); padding: 40px 5%; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-logo { font-size: 16px; font-weight: 800; letter-spacing: 0.2em; margin-bottom: 6px; }
.footer-tagline { font-size: 13px; color: var(--text-3); margin-bottom: 24px; }
.footer-links { display: flex; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.footer-link { font-size: 13px; color: var(--text-3); transition: color var(--t); }
.footer-link:hover { color: var(--text); }
.footer-copy { font-size: 12px; color: var(--text-3); }

/* ── UTILITIES ───────────────────────────────────────────────── */
.hidden { display: none !important; }
.section-reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.section-reveal.revealed { opacity: 1; transform: translateY(0); }
.skeleton { background: linear-gradient(90deg, var(--card) 25%, #222 50%, var(--card) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--r-sm); }
@keyframes shimmer { from{background-position:200% 0} to{background-position:-200% 0} }

/* ── REDUCED MOTION ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
