/* =========================================================================
   Cassette Cafe — Design System
   Dark, cinematic, premium. One consistent token set drives every
   component: spacing, radius, color, shadow, typography.
   ========================================================================= */

:root {
  /* Palette */
  --bg: #0a0710;
  --bg-elevated: #120d1c;
  --bg-card: #17111f;
  --bg-card-hover: #1e1729;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f1f8;
  --text-muted: #a79fc0;
  --text-dim: #6f6787;

  --accent: #e7c368;       /* gold — primary brand accent */
  --accent-strong: #f4d989;
  --accent-ink: #241a06;   /* text-on-accent */
  --accent-2: #4fd8c4;     /* teal — Tollywood / secondary accent */
  --danger: #e0616f;
  --success: #5bc998;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(0,0,0,0.35);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.45);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.55);
  --shadow-glow: 0 0 0 1px rgba(231,195,104,0.25), 0 10px 40px rgba(231,195,104,0.12);

  --header-h: 72px;
  --player-h: 84px;
  --mobile-nav-h: 64px;

  --container: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

/* ---------------------------------------------------------------- Reset */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--player-h) + env(safe-area-inset-bottom));
}
h1, h2, h3, h4, h5 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; color: var(--text-muted); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
}

.section { padding: 56px 0; }
.section-tight { padding: 32px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 22px; flex-wrap: wrap;
}
.section-head h2 { margin: 0; font-size: 1.5rem; }
.section-head .eyebrow {
  display: block; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px; font-weight: 600;
}
.see-all { color: var(--text-muted); font-size: 0.875rem; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.see-all:hover { color: var(--accent); }

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-pill); border: 1px solid transparent;
  font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: transform .15s var(--ease), background .15s, border-color .15s, opacity .15s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-outline { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-danger { background: rgba(224,97,111,0.15); color: var(--danger); }
.btn-danger:hover { background: rgba(224,97,111,0.28); }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: 50%; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------------------------------------------------------------- Header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  /*height: var(--header-h); */
  display: flex; align-items: center;
  background: rgba(10, 7, 16, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.05rem; flex-shrink: 0; }
.brand svg { flex-shrink: 0; }
.brand-logo { width: 160px; height: 140px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.brand .brand-name { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.main-nav a {
  padding: 9px 14px; border-radius: var(--radius-pill); font-size: 0.9rem; font-weight: 500;
  color: var(--text-muted); transition: background .15s, color .15s;
}
.main-nav a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.main-nav a.is-active { color: var(--accent-ink); background: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-muted); background: transparent; border: 1px solid transparent; cursor: pointer;
}
.icon-btn:hover { background: rgba(255,255,255,0.08); color: var(--text); }
.user-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px;
  border-radius: var(--radius-pill); background: rgba(255,255,255,0.06); font-size: 0.85rem; font-weight: 500;
}
.user-chip .avatar-dot {
  width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: var(--accent-ink);
}
.hamburger { display: none; }

/* Search flyout */
.search-flyout {
  position: absolute; top: var(--header-h); left: 0; right: 0;
  background: var(--bg-elevated); border-bottom: 1px solid var(--border);
  padding: 18px 0; box-shadow: var(--shadow-lg);
  transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .2s var(--ease);
}
.search-flyout.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.search-input-wrap { position: relative; }
.search-input-wrap input {
  width: 100%; padding: 14px 18px 14px 46px; border-radius: var(--radius-md);
  border: 1px solid var(--border-strong); background: var(--bg-card); color: var(--text); font-size: 1rem;
}
.search-input-wrap svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-dim); }
.search-suggest { margin-top: 14px; display: grid; gap: 18px; max-height: 60vh; overflow: auto; }
.suggest-group h4 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 8px; }
.suggest-row { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-radius: var(--radius-sm); }
.suggest-row:hover { background: rgba(255,255,255,0.05); }
.suggest-row img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.suggest-row .t { font-weight: 600; font-size: 0.9rem; }
.suggest-row .s { color: var(--text-dim); font-size: 0.78rem; }

/* ---------------------------------------------------------------- Hero */
.hero {
  position: relative; border-radius: 0; overflow: hidden;
  min-height: 360px; display: flex; align-items: center; margin-bottom: 8px; padding: 40px 0;
}
/* Full-bleed, edge-to-edge wrapper (container-fluid) — unlike .container this
   has no max-width, so hero copy uses the full viewport width instead of
   leaving empty gutters on wide screens; padding scales with viewport. */
.hero-container {
  width: 100%;
  padding: 0 clamp(20px, 6vw, 72px);
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 12% 105%, rgba(231,195,104,0.18), transparent 60%),
    radial-gradient(ellipse 50% 50% at 92% -5%, rgba(79,216,196,0.16), transparent 60%),
    linear-gradient(180deg, rgba(10,7,16,0.32) 0%, rgba(10,7,16,0.6) 55%, var(--bg) 100%);
}

/* Soft floating color blobs — purely decorative, adds depth behind the copy */
.hero-glow {
  position: absolute; width: 440px; height: 440px; border-radius: 50%;
  filter: blur(100px); opacity: 0.32; pointer-events: none; z-index: 1;
  animation: heroFloat 10s ease-in-out infinite;
}
.hero-glow-gold { background: var(--accent); top: -140px; right: 4%; }
.hero-glow-teal { background: var(--accent-2); bottom: -180px; left: 0; animation-delay: -5s; }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-26px) scale(1.07); }
}

.hero-content { position: relative; z-index: 2; max-width: 680px; animation: heroRise .7s var(--ease) both; }
@keyframes heroRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero .eyebrow, .hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 12px; border-radius: var(--radius-pill);
  background: rgba(231,195,104,0.1); border: 1px solid rgba(231,195,104,0.28);
  color: var(--accent); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.72rem;
  margin-bottom: 20px;
}
.eq-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq-bars i { width: 3px; background: var(--accent); border-radius: 2px; animation: eqBounce 1s ease-in-out infinite; transform-origin: bottom; }
.eq-bars i:nth-child(1) { height: 40%; animation-delay: -0.6s; }
.eq-bars i:nth-child(2) { height: 100%; animation-delay: -0.2s; }
.eq-bars i:nth-child(3) { height: 65%; animation-delay: -0.9s; }
@keyframes eqBounce { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }

.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 16px; }
.text-gradient { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.1rem; color: var(--text-muted); max-width: 540px; margin-bottom: 30px; }

.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-bottom: 26px; }
.hero-ctas-main, .hero-ctas-utility { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-ctas-utility { padding-left: 22px; border-left: 1px solid var(--border); }
.btn-outline-teal:hover { border-color: var(--accent-2); color: var(--accent-2); }

.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 20px; padding-top: 20px; border-top: 1px solid var(--border); max-width: 480px; }
.hero-stats div { font-size: 0.82rem; color: var(--text-muted); }
.hero-stats strong { display: block; font-family: 'Poppins', sans-serif; font-size: 1.35rem; color: var(--text); }

.hero-note { font-size: 0.8rem; color: var(--text-dim); display: flex; align-items: center; gap: 8px; }
.hero-note-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); flex-shrink: 0; box-shadow: 0 0 0 3px rgba(91,201,152,0.18); }

@media (prefers-reduced-motion: reduce) {
  .hero-glow, .eq-bars i, .hero-content { animation: none; }
}

.page-hero {
  position: relative; padding: 70px 0 48px; overflow: hidden;
  background-size: cover; background-position: center;
}
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,7,16,0.35), var(--bg) 92%); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; font-weight: 700; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 8px 0 10px; }
.page-hero p { max-width: 560px; }
.page-hero-stats { display: flex; gap: 26px; margin-top: 18px; flex-wrap: wrap; }
.page-hero-stats div { font-size: 0.85rem; color: var(--text-muted); }
.page-hero-stats strong { color: var(--text); font-size: 1rem; display: block; font-family: 'Poppins', sans-serif; }

/* ---------------------------------------------------------------- Grids & Cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

.rail {
  display: flex; gap: 18px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.rail > * { scroll-snap-align: start; flex: 0 0 auto; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }

.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform .22s var(--ease), border-color .22s, background .22s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--bg-card-hover); }

.decade-card { width: 100%; position: relative; }
.decade-card .thumb { display: block; aspect-ratio: 1; background-size: cover; background-position: center; position: relative; }
.decade-card .thumb::after { content:''; position:absolute; inset:0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.75) 100%); }
.decade-card .body { padding: 16px 18px; }
.decade-card .body h3 { font-size: 1.15rem; margin-bottom: 4px; }
.decade-card .body p { font-size: 0.82rem; margin-bottom: 10px; }
.decade-card .meta { display: flex; gap: 14px; font-size: 0.76rem; color: var(--text-dim); margin-bottom: 12px; }

.singer-card { width: 168px; text-align: center; }
.singer-card .thumb { display: block; aspect-ratio: 1; background-size: cover; background-position: center; position: relative; }
.singer-card .thumb::after { content:''; position:absolute; inset:0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.55) 100%); }
.singer-card .body { padding: 14px 12px 16px; }
.singer-card h4 { font-size: 0.92rem; margin-bottom: 3px; }
.singer-card .count { font-size: 0.74rem; color: var(--text-dim); margin-bottom: 10px; }
.singer-card .row-actions { display: flex; gap: 6px; justify-content: center; }

.song-card { width: 184px; }
.song-card .thumb { display: block; aspect-ratio: 1; background-size: cover; background-position: center; position: relative; }
.song-card .body { padding: 12px 14px 16px; }
.song-card h4 { font-size: 0.9rem; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-card .artist { font-size: 0.78rem; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.play-overlay-btn {
  position: absolute; right: 10px; bottom: 10px; width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(6px) scale(0.9); transition: all .18s var(--ease); box-shadow: var(--shadow-md); border: none; cursor: pointer;
}
.card:hover .play-overlay-btn, .song-card:hover .play-overlay-btn, .decade-card:hover .play-overlay-btn { opacity: 1; transform: translateY(0) scale(1); }
.play-overlay-btn:hover { background: var(--accent-strong); }

.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: var(--radius-pill);
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.badge-demo { background: rgba(231,195,104,0.16); color: var(--accent); }
.badge-licensed { background: rgba(91,201,152,0.16); color: var(--success); }
.badge-industry-bollywood { background: rgba(231,195,104,0.14); color: var(--accent); }
.badge-industry-tollywood { background: rgba(79,216,196,0.14); color: var(--accent-2); }

/* ---------------------------------------------------------------- Song table/list */
.song-table { width: 100%; border-collapse: collapse; }
.song-table thead th {
  text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim);
  padding: 0 14px 10px; border-bottom: 1px solid var(--border); font-weight: 600;
}
.song-table tbody tr { border-radius: var(--radius-sm); cursor: pointer; }
.song-table tbody tr:hover { background: rgba(255,255,255,0.045); }
.song-table tbody tr.is-playing { background: rgba(231,195,104,0.09); }
.song-table td { padding: 11px 14px; vertical-align: middle; border-bottom: 1px solid rgba(255,255,255,0.04); }
.song-table td.num { color: var(--text-dim); width: 36px; font-variant-numeric: tabular-nums; }
.song-table .title-cell { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.song-table .title-cell img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.song-table .title-cell .t { font-weight: 600; font-size: 0.9rem; }
.song-table .title-cell .a { font-size: 0.78rem; color: var(--text-dim); }
.song-table td.col-movie, .song-table td.col-year { color: var(--text-muted); font-size: 0.85rem; }
.song-table td.col-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.row-icon-btn { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--text-dim); background: transparent; border: none; cursor: pointer; }
.row-icon-btn:hover { background: rgba(255,255,255,0.08); color: var(--accent); }
.row-icon-btn.is-active { color: var(--accent); }
.play-cell-btn { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.06); border: none; color: var(--text); cursor: pointer; }
.play-cell-btn:hover { background: var(--accent); color: var(--accent-ink); }

@media (max-width: 720px) {
  .song-table thead { display: none; }
  .song-table td.col-movie, .song-table td.col-year, .song-table td.num { display: none; }
  .song-table td { padding: 10px 4px; }
}

/* ---------------------------------------------------------------- Filters */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; align-items: center; }
.chip {
  padding: 8px 16px; border-radius: var(--radius-pill); background: var(--bg-card); border: 1px solid var(--border);
  font-size: 0.82rem; color: var(--text-muted); cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
select.form-select, .form-select {
  background: var(--bg-card); border: 1px solid var(--border-strong); color: var(--text);
  padding: 8px 14px; border-radius: var(--radius-pill); font-size: 0.82rem;
}

/* ---------------------------------------------------------------- Artist header */
.artist-header { display: flex; gap: 32px; align-items: flex-end; padding: 60px 0 36px; }
.artist-header .avatar { width: 200px; height: 200px; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow-lg); flex-shrink: 0; }
.artist-header .avatar img { width: 100%; height: 100%; object-fit: cover; }
.artist-header .kicker { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.artist-header h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 10px; }
.artist-header .bio { max-width: 620px; margin-bottom: 18px; }
.artist-header .meta-row { display: flex; gap: 18px; align-items: center; color: var(--text-dim); font-size: 0.85rem; margin-bottom: 20px; flex-wrap: wrap; }
.artist-header .actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 720px) {
  .artist-header { flex-direction: column; align-items: flex-start; text-align: left; padding-top: 40px; }
  .artist-header .avatar { width: 140px; height: 140px; }
}

/* ---------------------------------------------------------------- Forms (auth, admin) */
.auth-shell { max-width: 420px; margin: 64px auto; padding: 0 16px; }
.auth-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px 32px; }
.auth-card h1 { font-size: 1.5rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 26px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 7px; color: var(--text-muted); }
.form-control, input[type=text].form-control, textarea.form-control {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--bg-elevated); color: var(--text); font-size: 0.92rem; font-family: inherit;
}
.form-control:focus { border-color: var(--accent); }
textarea.form-control { resize: vertical; min-height: 90px; }
.field-error { color: var(--danger); font-size: 0.78rem; margin-top: 6px; }
.form-row { display: flex; gap: 14px; }
.form-row > * { flex: 1; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); }
.form-hint { font-size: 0.78rem; color: var(--text-dim); margin-top: 6px; }
.auth-foot { margin-top: 20px; text-align: center; font-size: 0.85rem; color: var(--text-dim); }
.auth-foot a { color: var(--accent); font-weight: 600; }

/* ---------------------------------------------------------------- Flash / toast */
.flash-banner {
  position: fixed; top: calc(var(--header-h) + 14px); left: 50%; transform: translateX(-50%); z-index: 200;
  padding: 12px 22px; border-radius: var(--radius-pill); font-size: 0.86rem; font-weight: 600;
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 10px;
  animation: flash-in .25s var(--ease);
}
.flash-banner.type-success { background: var(--success); color: #08261a; }
.flash-banner.type-error { background: var(--danger); color: #2a0a0d; }
.flash-banner.type-info { background: var(--bg-elevated); color: var(--text); border: 1px solid var(--border-strong); }
@keyframes flash-in { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }

.toast-stack { position: fixed; bottom: calc(var(--player-h) + 20px); left: 50%; transform: translateX(-50%); z-index: 210; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--bg-elevated); border: 1px solid var(--border-strong); padding: 10px 18px; border-radius: var(--radius-pill); font-size: 0.82rem; box-shadow: var(--shadow-md); animation: flash-in .2s var(--ease); }

/* ---------------------------------------------------------------- Empty / skeleton / error states */
.empty-state { text-align: center; padding: 70px 20px; color: var(--text-muted); }
.empty-state .icon { width: 72px; height: 72px; border-radius: 50%; background: var(--bg-card); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; color: var(--text-dim); }
.empty-state h3 { color: var(--text); margin-bottom: 6px; }

.skeleton { background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 37%, var(--bg-card) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--radius-md); }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.skeleton-card { aspect-ratio: 1; border-radius: var(--radius-lg); }
.skeleton-line { height: 12px; margin-top: 8px; border-radius: 4px; }

.error-page { text-align: center; padding: 110px 20px; }
.error-page .code { font-family: 'Poppins', sans-serif; font-size: 5rem; font-weight: 700; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------------------------------------------------------- Footer */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 110px; margin-top: 60px; color: var(--text-dim); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 30px; }
.footer-grid h5 { color: var(--text); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer-grid ul li { margin-bottom: 9px; font-size: 0.85rem; }
.footer-grid ul a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border); font-size: 0.78rem; flex-wrap: wrap; gap: 10px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- Player bar */
.player-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; height: var(--player-h);
  background: rgba(15, 11, 22, 0.92); backdrop-filter: blur(18px) saturate(140%);
  border-top: 1px solid var(--border); display: flex; align-items: center;
  padding: 0 18px; gap: 18px; transform: translateY(100%); transition: transform .3s var(--ease);
}
.player-bar.is-visible { transform: translateY(0); }
.player-bar .pb-track { display: flex; align-items: center; gap: 12px; width: 260px; min-width: 0; cursor: pointer; }
.player-bar .pb-track img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.player-bar .pb-track .meta { min-width: 0; }
.player-bar .pb-track .t { font-size: 0.87rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-bar .pb-track .a { font-size: 0.76rem; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-bar .pb-center { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 620px; margin: 0 auto; }
.player-bar .pb-controls { display: flex; align-items: center; gap: 6px; }
.player-bar .pb-progress-row { display: flex; align-items: center; gap: 10px; width: 100%; font-size: 0.7rem; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.pb-seek { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.14); position: relative; cursor: pointer; }
.pb-seek .fill { position: absolute; inset: 0; width: 0%; background: var(--accent); border-radius: 2px; }
.pb-seek .thumb { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); left: 0%; transform: translate(-50%, -50%); opacity: 0; transition: opacity .15s; }
.pb-seek:hover .thumb { opacity: 1; }
.player-bar .pb-right { width: 260px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.pb-volume { width: 84px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.14); position: relative; cursor: pointer; }
.pb-volume .fill { position: absolute; inset: 0; width: 70%; background: var(--text-muted); border-radius: 2px; }
.pb-play-btn { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; }
.pb-play-btn:hover { background: var(--accent-strong); }
.pb-icon-btn { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); background: none; border: none; cursor: pointer; }
.pb-icon-btn:hover { color: var(--text); background: rgba(255,255,255,0.08); }
.pb-icon-btn.is-active { color: var(--accent); }

@media (max-width: 860px) {
  .player-bar { padding: 0 10px; gap: 10px; }
  .player-bar .pb-track { width: auto; flex: 1; }
  .player-bar .pb-center { display: none; }
  .player-bar .pb-right { width: auto; }
}

/* ---------------------------------------------------------------- Full-screen player */
.player-full {
  position: fixed; inset: 0; z-index: 300; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 20px calc(var(--player-h) + 40px); transform: translateY(100%); opacity: 0;
  transition: transform .35s var(--ease), opacity .35s var(--ease); pointer-events: none;
}
.player-full.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.player-full-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(60px) brightness(0.5); transform: scale(1.2); opacity: 0.55; transition: background-image .4s; }
.player-full-inner { position: relative; z-index: 2; width: 100%; max-width: 480px; text-align: center; }
.player-full-close { position: absolute; top: -20px; right: 0; }
.player-full .art { width: min(72vw, 340px); height: min(72vw, 340px); margin: 0 auto 28px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.player-full .art img { width: 100%; height: 100%; object-fit: cover; }
.player-full h2 { font-size: 1.5rem; margin-bottom: 4px; }
.player-full .artist { color: var(--text-muted); margin-bottom: 2px; }
.player-full .movie { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 24px; }
.player-full .pb-progress-row { margin-bottom: 18px; }
.player-full .pb-controls { justify-content: center; gap: 22px; margin-bottom: 22px; }
.player-full .pb-controls .pb-play-btn { width: 64px; height: 64px; }
.player-full .pb-controls .pb-icon-btn { width: 44px; height: 44px; }
.player-full .extra-actions { display: flex; justify-content: center; gap: 10px; }
.lyrics-panel { margin-top: 28px; max-height: 240px; overflow-y: auto; text-align: left; background: rgba(255,255,255,0.04); border-radius: var(--radius-md); padding: 20px; white-space: pre-line; font-size: 0.9rem; color: var(--text-muted); display: none; }
.lyrics-panel.is-open { display: block; }

/* ---------------------------------------------------------------- Mobile nav */
.mobile-nav { display: none; }
@media (max-width: 860px) {
  .mobile-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 140; height: var(--mobile-nav-h);
    background: rgba(15,11,22,0.95); backdrop-filter: blur(16px); border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom);
  }
  body.has-player .mobile-nav { display: none; } /* player bar takes over the dock while playing */
  .mobile-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--text-dim); font-size: 0.66rem; font-weight: 600; }
  .mobile-nav a.is-active { color: var(--accent); }
  .main-nav { display: none; }
  .hamburger { display: inline-flex; }
}

/* Slide-out mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 250; display: none; }
.mobile-menu.is-open { display: block; }
.mobile-menu .backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.mobile-menu .panel { position: absolute; top: 0; right: 0; bottom: 0; width: 80%; max-width: 320px; background: var(--bg-elevated); padding: 24px; overflow-y: auto; }
.mobile-menu .panel a { display: block; padding: 14px 6px; font-size: 1rem; font-weight: 600; border-bottom: 1px solid var(--border); }

/* ---------------------------------------------------------------- Utility */
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.mt-0 { margin-top: 0; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.hide-mobile { }
.hide-desktop { display: none; }
@media (max-width: 720px) {
  .hide-mobile { display: none; }
  .hide-desktop { display: initial; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5, .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { min-height: 280px; padding: 28px 0; }
  .hero-glow { width: 260px; height: 260px; filter: blur(70px); }
  .hero-ctas-utility { padding-left: 0; border-left: none; flex-basis: 100%; }
  .hero-stats { gap: 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Page transition fade for pjax-style navigation */
#main-content { animation: page-in .25s var(--ease); }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.route-loading-bar { position: fixed; top: 0; left: 0; height: 2px; background: var(--accent); z-index: 400; width: 0%; transition: width .2s ease; }
.route-loading-bar.active { width: 70%; }
