/* ============================================================
   Encore — shared design system
   ============================================================ */

:root {
  --bg: #0b0b0d;
  --bg-elevated: #141417;
  --bg-card: #1a1a1f;
  --bg-hover: #212127;
  --border: #2a2a31;
  --border-light: #35353d;
  --text: #f5f5f7;
  --text-dim: #9a9aa5;
  --text-faint: #86868f;
  --accent: #2563eb;
  --accent-text: #4a7ff0;
  --accent-dim: #1d4ed8;
  --accent-ink: #ffffff;
  --danger: #ff5a5f;
  --success: #3ad97a;
  --info: #5a9cff;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --max-width: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }

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

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,11,13,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand .dot { color: var(--accent-text); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.15s;
}
.nav-links a.active { color: var(--text); }
.nav-links a:hover { color: var(--accent-text); }
.nav-search { flex: 0 1 220px; margin: 0 16px; }
.nav-search input {
  width: 100%; background: var(--bg-hover); border: 1px solid var(--border-light);
  border-radius: 999px; padding: 8px 16px; font-size: 13px; color: var(--text);
}
.nav-search input:focus { outline: none; border-color: var(--accent); }
.nav-search input::placeholder { color: var(--text-faint); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}
.nav-bell { position: relative; font-size: 18px; display: inline-flex; }
.nav-bell-badge {
  position: absolute; top: -6px; right: -8px; background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 800; padding: 1px 5px; border-radius: 999px; line-height: 1.4;
}
.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-hover);
  border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
  color: var(--accent-text);
  overflow: hidden;
  flex-shrink: 0;
}
.avatar-sm { width: 26px; height: 26px; font-size: 11px; }
.avatar-lg { width: 96px; height: 96px; font-size: 32px; }
.avatar img, .cover img, .mini-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.mini-cover { overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.1s, opacity 0.15s, background 0.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-dim); }
.btn-secondary { background: var(--bg-hover); color: var(--text); border: 1px solid var(--border-light); }
.btn-secondary:hover { background: var(--border-light); }
.btn-ghost { background: transparent; color: var(--text-dim); }
.btn-ghost:hover { color: var(--text); }
.btn-danger { background: rgba(255,90,95,0.15); color: var(--danger); }
.btn-danger:hover { background: rgba(255,90,95,0.25); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Layout helpers ---------- */
.section { padding: 64px 0; }
.section-tight { padding: 32px 0; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.grid { display: grid; gap: 20px; }
.grid > * { min-width: 0; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.center { text-align: center; }
.mt-8{margin-top:8px;} .mt-16{margin-top:16px;} .mt-24{margin-top:24px;} .mt-32{margin-top:32px;} .mt-48{margin-top:48px;}
.mb-8{margin-bottom:8px;} .mb-16{margin-bottom:16px;} .mb-24{margin-bottom:24px;} .mb-32{margin-bottom:32px;}

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { display: none; }
  .nav-search { display: none; }
  .chat-shell { grid-template-columns: minmax(0, 1fr); }
  .chat-list { max-height: 220px; }
}
@media (max-width: 560px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  #weekly-charts-grid { grid-template-columns: minmax(0, 1fr); }
  #overview-charts-grid { grid-template-columns: minmax(0, 1fr); }
  #overview-leaders-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(closest-side, rgba(37,99,235,0.15), transparent);
  pointer-events: none;
}
.hero h1 {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 880px;
  margin: 28px auto 0;
}
.hero p.lead {
  font-size: 19px;
  color: var(--text-dim);
  max-width: 560px;
  margin: 22px auto 0;
}
.hero-actions { margin-top: 34px; display: flex; gap: 14px; justify-content: center; }
@media (max-width: 700px) { .hero h1 { font-size: 38px; } }

/* ---------- Featured release ---------- */
.featured-release { padding: 8px 0 56px; }
.featured-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 44px;
  position: relative;
  overflow: hidden;
}
.featured-card::before {
  content: "";
  position: absolute;
  top: -140px; right: -140px;
  width: 420px; height: 420px;
  background: radial-gradient(closest-side, rgba(37,99,235,0.18), transparent);
  pointer-events: none;
}
.featured-art {
  position: relative;
  width: 360px;
  height: 270px;
  flex-shrink: 0;
}
.featured-vinyl {
  position: absolute;
  top: 50%;
  left: 5px;
  width: 220px;
  height: 220px;
  margin-top: -110px;
  border-radius: 50%;
  z-index: 1;
  background:
    radial-gradient(circle at center,
      #181818 0 7%, #0a0a0a 7% 8%,
      #181818 8% 15%, #0a0a0a 15% 16%,
      #181818 16% 28%, #0a0a0a 28% 29%,
      #181818 29% 42%, #0a0a0a 42% 43%,
      #181818 43%);
  box-shadow: 0 14px 44px rgba(0,0,0,0.55);
  animation: vinylspin 16s linear infinite;
}
.featured-vinyl::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 84px; height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899, #f5b120);
}
.featured-vinyl::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 9px; height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--bg);
  z-index: 2;
}
@keyframes vinylspin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.featured-sleeve {
  position: absolute;
  top: 0;
  left: 90px;
  z-index: 2;
  width: 270px;
  height: 270px;
  border-radius: 10px;
  overflow: hidden;
  transform: rotate(3deg);
  box-shadow: 0 22px 60px rgba(0,0,0,0.55);
  transition: transform 0.25s ease;
  display: block;
}
.featured-art:hover .featured-sleeve { transform: rotate(1deg) scale(1.02); }
.featured-sleeve img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-info { flex: 0 1 auto; min-width: 0; max-width: 460px; }
.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37,99,235,0.15);
  color: var(--accent-text);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.featured-info h2 { font-size: 36px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; color: var(--text); }
.featured-info .by { font-size: 15px; color: var(--text-dim); margin-top: 8px; }
.featured-info .by a { color: var(--text); font-weight: 700; }
.featured-info .desc { color: var(--text-dim); margin-top: 16px; max-width: 460px; font-size: 15px; line-height: 1.6; }
.featured-price-row { display: flex; align-items: center; gap: 22px; margin-top: 28px; flex-wrap: wrap; }
.featured-price { font-size: 34px; font-weight: 800; color: var(--accent-text); }
.featured-buy-btn {
  animation: featuredPulse 2.4s ease-in-out infinite;
}
@keyframes featuredPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0.5); }
  50% { box-shadow: 0 0 0 10px rgba(37,99,235,0); }
}
@media (max-width: 800px) {
  .featured-card { flex-direction: column; padding: 32px 24px; text-align: center; }
  .featured-art { margin: 0 auto; }
  .featured-info .desc { margin-left: auto; margin-right: auto; }
  .featured-price-row { justify-content: center; }
  .featured-info .by a { display: inline; }
}
@media (max-width: 420px) {
  .featured-art { width: 270px; height: 202px; margin: 0 auto; }
  .featured-vinyl { width: 165px; height: 165px; left: 4px; margin-top: -82.5px; }
  .featured-vinyl::after { width: 63px; height: 63px; margin: -31.5px 0 0 -31.5px; }
  .featured-sleeve { width: 202px; height: 202px; left: 67px; }
}

/* ---------- App promo ---------- */
.app-promo { padding: 16px 0 64px; }
.app-promo-header { text-align: center; max-width: 560px; margin: 48px auto 0; }
.app-promo-header h2 { font-size: 34px; font-weight: 800; letter-spacing: -0.01em; }
.app-promo-header p { color: var(--text-dim); margin-top: 14px; font-size: 15px; line-height: 1.6; }
.app-promo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  position: relative;
}
.app-promo-row::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 520px; height: 520px;
  background: radial-gradient(closest-side, rgba(37,99,235,0.22), transparent);
  pointer-events: none;
  z-index: 0;
}
.store-badge {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #000;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px 22px 13px 18px;
  line-height: 1.25;
  transition: border-color 0.15s, transform 0.15s;
  flex-shrink: 0;
}
.store-badge:hover { border-color: var(--accent); transform: translateY(-2px); }
.store-badge-icon { font-size: 26px; color: var(--accent-text); }
.store-badge-sub { display: block; font-size: 10px; color: #cfcfd4; }
.store-badge-main { display: block; font-size: 17px; font-weight: 700; color: #fff; }
.phone-mock { position: relative; z-index: 1; flex-shrink: 0; }
.phone-frame {
  width: 300px;
  height: 600px;
  background: #0a0a0c;
  border: 6px solid rgba(37,99,235,0.4);
  border-radius: 46px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 90px rgba(37,99,235,0.3), 0 30px 70px rgba(0,0,0,0.55);
}
.phone-notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 22px;
  background: #000;
  border-radius: 999px;
  z-index: 3;
}
.phone-screen { position: relative; width: 100%; height: 100%; }
.phone-art { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone-now-playing {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 22px 28px;
  background: linear-gradient(0deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.55) 60%, transparent 100%);
}
.phone-track-title { color: #fff; font-size: 18px; font-weight: 800; }
.phone-track-artist { color: rgba(255,255,255,0.7); font-size: 13px; margin-top: 3px; }
.phone-progress { height: 3px; background: rgba(255,255,255,0.25); border-radius: 999px; margin-top: 18px; }
.phone-progress-fill { width: 38%; height: 100%; background: var(--accent); border-radius: 999px; }
.phone-controls { display: flex; align-items: center; justify-content: center; gap: 32px; margin-top: 18px; color: #fff; font-size: 17px; }
.phone-controls .phone-play {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent);
  border-radius: 50%;
  font-size: 15px;
  color: var(--accent-ink);
}
@media (max-width: 900px) {
  .app-promo-row { flex-direction: column; gap: 28px; }
  .phone-frame { width: 260px; height: 520px; }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover { border-color: var(--border-light); }

.artist-card { display: block; }
.artist-card .cover {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--bg-hover), var(--bg-card));
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; font-weight: 800; color: var(--accent-text);
  position: relative;
}
.artist-card .body { padding: 16px; }
.artist-card .name { font-weight: 700; font-size: 16px; }
.artist-card .genre { font-size: 13px; color: var(--text-dim); margin-top: 2px; }
.artist-card .stats { font-size: 12px; color: var(--text-faint); margin-top: 10px; }

.item-card { display: flex; flex-direction: column; }
.item-card .cover {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #232329, #16161a);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  position: relative;
}
.item-card .type-badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,0.55);
  border: 1px solid var(--border-light);
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.item-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.item-card .title { font-weight: 700; font-size: 15px; }
.item-card .artist-name { font-size: 13px; color: var(--text-dim); }
.item-card .price-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 10px; }
.item-card .price { font-weight: 800; font-size: 15px; color: var(--accent-text); }

/* ---------- Section headers ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.section-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.section-head .link { font-size: 14px; font-weight: 700; color: var(--accent-text); }

/* ---------- For-artists benefits ---------- */
#for-artists { position: relative; overflow: hidden; padding-bottom: 48px; }
#for-fans { padding-top: 24px; }
#for-artists::before {
  content: "";
  position: absolute;
  inset: -120px;
  background:
    radial-gradient(closest-side, rgba(37,99,235,0.16), transparent) top left / 55% 55% no-repeat,
    radial-gradient(closest-side, rgba(37,99,235,0.16), transparent) top right / 55% 55% no-repeat;
  pointer-events: none;
}
#for-artists .container { position: relative; z-index: 1; }
.for-artists-bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.for-artists-bullets li {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; font-weight: 600; color: var(--text-dim);
  transition: transform 0.15s ease;
}
.for-artists-bullets li:hover { transform: translateX(4px); color: var(--text); }
.bullet-icon {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: transparent; border: 2px solid var(--accent); color: var(--accent-text);
  display: flex; align-items: center; justify-content: center;
}
.bullet-icon svg { width: 16px; height: 16px; }

.for-artists-visual-wrap { display: flex; flex-direction: column; align-items: center; }
.for-artists-visual {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 7 / 8;
  mask-image: radial-gradient(ellipse closest-side at center, black 20%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse closest-side at center, black 20%, transparent 90%);
}
.for-artists-visual img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.for-artists-cta { margin-top: 8px; }
@media (max-width: 640px) {
  .for-artists-visual { aspect-ratio: 16 / 10; }
  #for-artists .grid-2, #for-fans .grid-2 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Streaming vs direct comparison ---------- */
.vs-compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.vs-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px 24px; text-align: center; }
.vs-card-highlight { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 50px rgba(37,99,235,0.15); }
.vs-label { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); }
.vs-number { font-size: 44px; font-weight: 800; margin-top: 14px; letter-spacing: -0.02em; }
.vs-card-highlight .vs-number { color: var(--accent-text); }
.vs-sub { font-size: 14px; color: var(--text-dim); margin-top: 4px; }
.vs-detail { font-size: 12px; color: var(--text-faint); margin-top: 18px; line-height: 1.5; }
.vs-divider { font-weight: 800; color: var(--text-faint); font-size: 14px; }
@media (max-width: 700px) {
  .vs-compare { grid-template-columns: 1fr; }
  .vs-divider { justify-self: center; }
}

/* ---------- How it works ---------- */
.how-step { text-align: center; padding: 0 12px; }
.how-number {
  width: 56px; height: 56px; border-radius: 50%; background: rgba(37,99,235,0.12); border: 2px solid var(--accent);
  color: var(--accent-text); font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.how-step h3 { font-size: 19px; font-weight: 800; }

/* ---------- Genre boxes ---------- */
.genre-row {
  display: flex; gap: 16px; overflow-x: auto; justify-content: safe center;
  scrollbar-width: none; -ms-overflow-style: none;
}
.genre-row::-webkit-scrollbar { display: none; }
.genre-box {
  flex: 0 0 190px; height: 120px; border-radius: var(--radius); position: relative;
  display: flex; align-items: flex-end; padding: 14px; color: #fff; font-weight: 800; font-size: 17px;
  overflow: hidden; transition: transform 0.15s ease;
  border: 2px solid var(--accent);
  background-size: cover; background-position: center;
}
.genre-box::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.65) 0%, transparent 40%);
}
.genre-box span { position: relative; z-index: 1; }
.genre-box:hover { transform: translateY(-3px); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--text-dim); }
.form-control {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--accent); }
textarea.form-control { resize: vertical; min-height: 90px; }
.form-hint { font-size: 12px; color: var(--text-faint); margin-top: 6px; }
.form-row { display: flex; gap: 14px; }
.form-row .form-group { flex: 1; }
.role-toggle { display: flex; gap: 10px; }
.role-option {
  flex: 1;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 16px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}
.role-option.selected { border-color: var(--accent); background: rgba(37,99,235,0.08); }
.role-option .emoji { font-size: 22px; }
.role-option .label { font-weight: 700; margin-top: 6px; font-size: 14px; }
.role-option .desc { font-size: 12px; color: var(--text-dim); margin-top: 2px; }

.auth-shell {
  max-width: 420px;
  margin: 70px auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.auth-shell h1 { font-size: 24px; font-weight: 800; }
.auth-shell .sub { color: var(--text-dim); font-size: 14px; margin-top: 6px; }
.auth-switch { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-dim); }
.auth-switch a { color: var(--accent-text); font-weight: 700; }
.error-box {
  background: rgba(255,90,95,0.1);
  border: 1px solid rgba(255,90,95,0.3);
  color: var(--danger);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}
.error-box.show { display: block; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.tab {
  padding: 12px 4px;
  margin-right: 22px;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-dim);
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.tab.active { color: var(--text); border-color: var(--accent); }

/* ---------- Artist profile header ---------- */
.profile-banner {
  height: 220px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--bg-hover), var(--bg-card));
  position: relative;
  overflow: hidden;
}
.profile-header { display: flex; align-items: flex-end; gap: 22px; margin-top: 20px; padding: 0 8px; }
.profile-header .avatar-lg { border: 4px solid var(--bg); margin-top: -70px; flex-shrink: 0; }
.profile-info { flex: 1; padding-bottom: 6px; }
.profile-info h1 { font-size: 28px; font-weight: 800; }
.profile-meta { display: flex; gap: 16px; margin-top: 8px; font-size: 13px; color: var(--text-dim); }
.profile-bio { max-width: 640px; color: var(--text-dim); font-size: 14px; margin-top: 16px; }

/* ---------- Chat ---------- */
.chat-shell { display: grid; grid-template-columns: 300px 1fr; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; min-height: 520px; }
.chat-list { border-right: 1px solid var(--border); background: var(--bg-elevated); overflow-y: auto; max-height: 640px; }
.chat-list-item { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); cursor: pointer; }
.chat-list-item:hover, .chat-list-item.active { background: var(--bg-hover); }
.chat-list-item .name { font-weight: 700; font-size: 14px; }
.chat-list-item .preview { font-size: 12px; color: var(--text-faint); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.chat-main { display: flex; flex-direction: column; }
.chat-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; font-weight: 700; }
.chat-messages { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; max-height: 460px; }
.msg { max-width: 65%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.4; }
.msg.in { background: var(--bg-hover); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.out { background: var(--accent); color: var(--accent-ink); align-self: flex-end; border-bottom-right-radius: 4px; font-weight: 500; }
.msg .time { display: block; font-size: 10px; opacity: 0.6; margin-top: 4px; }
.chat-input-row { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--border); }
.chat-input-row input { flex: 1; }
.chat-empty { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--text-faint); font-size: 14px; }

/* ---------- Dashboard / backstage ---------- */
.dash-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 32px; align-items: start; }
.dash-shell > * { min-width: 0; }
.dash-sidebar {
  position: sticky; top: 92px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.dash-sidebar .side-link {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 2px;
}
.dash-sidebar .side-link:hover { background: var(--bg-hover); color: var(--text); }
.dash-sidebar .side-link.active { background: rgba(37,99,235,0.12); color: var(--accent-text); }
.dash-sidebar hr { border: none; border-top: 1px solid var(--border); margin: 10px 0; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.stat-card .label { font-size: 12px; color: var(--text-faint); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.stat-card .value { font-size: 28px; font-weight: 800; margin-top: 8px; }
.stat-card .delta { font-size: 12px; margin-top: 6px; font-weight: 700; }
.stat-card .delta.up { color: var(--success); }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } .dash-shell { grid-template-columns: 1fr; } .dash-sidebar { position: static; } }

.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 160px; padding-top: 10px; }
.bar-chart .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bar-chart .bar { width: 100%; max-width: 34px; background: var(--accent); border-radius: 6px 6px 0 0; opacity: 0.85; }
.bar-chart .bar-label { font-size: 11px; color: var(--text-faint); }

.panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.panel-head h3 { font-size: 17px; font-weight: 800; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-faint); font-weight: 700; padding: 0 12px 10px; }
td { padding: 12px; font-size: 14px; border-top: 1px solid var(--border); }
tr:hover td { background: var(--bg-hover); }
.row-thumb { display: flex; align-items: center; gap: 10px; }
.row-thumb .mini-cover { width: 38px; height: 38px; border-radius: 8px; background: var(--bg-hover); display: flex; align-items: center; justify-content: center; font-size: 16px; }

.badge { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.badge.music { background: rgba(90,156,255,0.15); color: var(--info); }
.badge.video { background: rgba(255,90,95,0.15); color: var(--danger); }
.badge.merch { background: rgba(37,99,235,0.15); color: var(--accent-text); }
.badge.experience { background: rgba(255,180,60,0.15); color: #ffb43c; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%; max-width: 460px;
  max-height: 90vh; overflow-y: auto;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-head h3 { font-size: 19px; font-weight: 800; }
.modal-close { background: none; border: none; color: var(--text-dim); font-size: 20px; }

.price-picker { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.price-chip { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border-light); font-weight: 700; font-size: 14px; background: var(--bg-elevated); }
.price-chip.selected { border-color: var(--accent); color: var(--accent-text); background: rgba(37,99,235,0.08); }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--text); color: var(--bg);
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 14px;
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
  z-index: 300;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 60px; }
.footer .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-size: 13px; color: var(--text-dim); }
.footer-links a:hover { color: var(--text); }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-faint); }
.empty-state .icon { font-size: 40px; margin-bottom: 12px; }

.followers-list { display: flex; flex-direction: column; gap: 4px; }
.follow-row { display: flex; align-items: center; justify-content: space-between; padding: 12px; border-radius: var(--radius-sm); }
.follow-row:hover { background: var(--bg-hover); }
.follow-row .who { display: flex; align-items: center; gap: 12px; }
.notif-row.unread { background: rgba(37,99,235,0.08); border: 1px solid rgba(37,99,235,0.25); }

/* ---------- Weekly top chart ---------- */
.chart-subhead { font-size: 13px; font-weight: 800; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 14px; }
.chart-list { display: flex; flex-direction: column; gap: 4px; }
.chart-row {
  display: flex; align-items: center; gap: 16px; padding: 12px 14px; border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}
.chart-row:hover { background: var(--bg-hover); }
.chart-rank { font-size: 22px; font-weight: 800; color: var(--text-faint); width: 32px; text-align: center; flex-shrink: 0; }
.chart-rank.rank-1 { color: #ffd54a; }
.chart-rank.rank-2 { color: #c9ccd6; }
.chart-rank.rank-3 { color: #cd8a4f; }
.chart-cover { width: 56px; height: 56px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; background: var(--bg-hover); }
.chart-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chart-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.chart-title { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-artist { font-size: 13px; color: var(--text-dim); }
.chart-count { font-weight: 700; font-size: 14px; color: var(--accent-text); white-space: nowrap; flex-shrink: 0; }
.chart-count-label { font-weight: 500; color: var(--text-faint); font-size: 12px; }
@media (max-width: 560px) {
  .chart-count-label { display: none; }
}

.search-bar { display: flex; gap: 10px; margin-bottom: 24px; }
.search-bar input { flex: 1; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border-light); font-size: 13px; font-weight: 600; color: var(--text-dim); background: var(--bg-card); }
.chip.active { border-color: var(--accent); color: var(--accent-text); background: rgba(37,99,235,0.08); }

.range-row { display: flex; align-items: center; gap: 14px; }
.range-row input[type=range] { flex: 1; accent-color: var(--accent); }

.item-detail-grid { grid-template-columns: 340px minmax(0, 1fr); align-items: start; }
@media (max-width: 700px) {
  .item-detail-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- The Circle (social feed) ---------- */
.circle-feed { max-width: 470px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }

.composer { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.composer-body { margin-top: 0; }
.composer-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.composer-thumb, .composer-add-tile {
  position: relative; flex: 0 0 84px; width: 84px; height: 84px; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--bg-elevated); border: 1px solid var(--border-light);
}
.composer-thumb img, .composer-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.composer-thumb .remove-thumb {
  position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,0,0,0.65); color: #fff; border: none; font-size: 11px; display: flex; align-items: center; justify-content: center;
}
.composer-add-tile {
  display: flex; align-items: center; justify-content: center; text-align: center; cursor: pointer;
  color: var(--text-faint); font-size: 11px; line-height: 1.4;
}
.composer-add-tile:hover { border-color: var(--accent); color: var(--text-dim); }
.composer-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; gap: 12px; }
.composer-caption { width: 100%; margin-top: 12px; }
.file-input-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

.post-card { background: var(--bg); border: none; border-radius: var(--radius); overflow: hidden; }
.post-head { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 14px; position: relative; }
.post-head .avatar { border-radius: 0; }
.post-head .who { min-width: 0; display: flex; flex-direction: column; }
.post-head .name { font-weight: 700; font-size: 14px; }
.post-head .role-tag { font-size: 11px; color: var(--text-faint); }
.post-head .time { font-size: 12px; color: var(--text-faint); }
.post-menu-btn {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-dim); font-size: 18px; padding: 4px 8px;
}

.post-carousel {
  position: relative; width: 85%; aspect-ratio: 1; background: var(--bg-elevated); overflow: hidden;
  border-radius: 50%; margin: 16px auto;
}
.carousel-track { display: flex; width: 100%; height: 100%; transition: transform 0.25s ease; }
.carousel-slide { flex: 0 0 100%; width: 100%; height: 100%; }
.carousel-slide img, .carousel-slide video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,0.55); color: #fff;
  border: none; font-size: 18px; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.carousel-arrow.prev { left: 10px; } .carousel-arrow.next { right: 10px; }
.carousel-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; z-index: 2; }
.carousel-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.45); }
.carousel-dot.active { background: #fff; }

.post-actions { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 12px 14px 6px; }
.like-btn { background: none; border: none; font-size: 22px; color: var(--text-dim); display: flex; align-items: center; gap: 8px; padding: 0; line-height: 1; }
.like-btn .heart { transition: transform 0.15s; }
.like-btn.liked { color: var(--danger); }
.like-btn.liked .heart { transform: scale(1.12); }
.like-btn:active .heart { transform: scale(0.85); }
.comment-btn { background: none; border: none; font-size: 20px; color: var(--text-dim); padding: 0; }
.like-count { padding: 0 14px; font-weight: 700; font-size: 13px; text-align: center; }
.post-caption { padding: 4px 14px 0; font-size: 14px; line-height: 1.5; }
.post-caption .name { font-weight: 700; margin-right: 6px; }

.post-comments { padding: 8px 14px 4px; display: flex; flex-direction: column; gap: 6px; }
.comment-row { font-size: 13px; line-height: 1.5; }
.comment-row.is-reply { margin-left: 26px; }
.comment-row .name { font-weight: 700; margin-right: 6px; }
.comment-row .time { color: var(--text-faint); font-size: 11px; margin-left: 6px; }
.comment-row-actions { display: inline-flex; gap: 12px; margin-left: 6px; }
.comment-like-btn, .comment-reply-btn {
  background: none; border: none; font-size: 11px; font-weight: 700; color: var(--text-faint); padding: 0;
}
.comment-like-btn.liked { color: var(--danger); }
.comment-reply-btn:hover, .comment-like-btn:hover { color: var(--text-dim); }

.reply-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 14px; margin: 0 14px; background: var(--bg-elevated); border-radius: var(--radius-sm);
  font-size: 12px; color: var(--text-dim);
}
.reply-banner span[data-role="reply-target"] { font-weight: 700; color: var(--text); }
.reply-banner button { background: none; border: none; color: var(--text-faint); font-size: 13px; }

.comment-form { display: flex; align-items: center; gap: 10px; padding: 10px 14px 14px; border-top: 1px solid var(--border); margin-top: 8px; }
.comment-form input { flex: 1; background: transparent; border: none; font-size: 14px; color: var(--text); }
.comment-form input:focus { outline: none; }
.comment-form button { background: none; border: none; color: var(--accent-text); font-weight: 700; font-size: 13px; padding: 0; }
.comment-form button:disabled { color: var(--text-faint); }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.post-grid-item { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 4px; cursor: pointer; background: var(--bg-elevated); }
.post-grid-item img, .post-grid-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-grid-item .overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.55); color: #fff; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center; gap: 18px; opacity: 0; transition: opacity 0.15s;
}
.post-grid-item:hover .overlay { opacity: 1; }
.post-grid-item .grid-badge { position: absolute; top: 6px; color: #fff; font-size: 13px; text-shadow: 0 1px 3px rgba(0,0,0,0.7); }
.post-grid-item .stack-badge { right: 6px; }
.post-grid-item .play-badge { left: 6px; }

/* ---------- Stories ---------- */
.story-tray { display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 12px; }
.story-bubble { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; width: 64px; }
.story-ring {
  position: relative; width: 60px; height: 60px; border-radius: 50%; padding: 3px;
  display: flex; align-items: center; justify-content: center; background: var(--bg-hover);
}
.story-ring.unseen { background: linear-gradient(135deg, #f5b120, #ec4899, var(--accent)); }
.story-ring.seen { background: var(--border-light); }
.story-ring.add { background: var(--border-light); }
.story-ring .avatar { width: 100%; height: 100%; border: 3px solid var(--bg); }
.story-ring .story-plus {
  position: absolute; bottom: -2px; right: -2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); border: 2px solid var(--bg);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800;
}
.story-label { font-size: 11px; color: var(--text-dim); max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.story-viewer {
  display: none; position: fixed; inset: 0; background: #000; z-index: 400;
  align-items: center; justify-content: center;
}
.story-viewer.open { display: flex; }
.story-viewer-inner { position: relative; width: 100%; max-width: 420px; height: 100%; max-height: 860px; background: #000; }
.story-progress-row { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; z-index: 3; }
.story-progress-seg { flex: 1; height: 3px; background: rgba(255,255,255,0.3); border-radius: 999px; overflow: hidden; }
.story-progress-fill { width: 0%; height: 100%; background: #fff; }
.story-progress-fill.done { width: 100%; }
.story-header { position: absolute; top: 22px; left: 12px; right: 12px; display: flex; align-items: center; gap: 10px; z-index: 3; }
.story-author-name { color: #fff; font-weight: 700; font-size: 14px; }
.story-header .time { color: rgba(255,255,255,0.7); font-size: 12px; }
.story-delete-btn, .story-close-btn { background: none; border: none; color: #fff; font-size: 14px; opacity: 0.85; }
.story-close-btn { font-size: 20px; }
.story-media { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.story-media img, .story-media video { width: 100%; height: 100%; object-fit: contain; }
.story-tap-zone { position: absolute; top: 0; bottom: 0; width: 35%; background: none; border: none; z-index: 2; }
.story-tap-zone.prev { left: 0; }
.story-tap-zone.next { right: 0; }

.avatar-upload { position: relative; display: inline-block; }
.avatar-upload .avatar { cursor: pointer; }
.avatar-upload .avatar-cam {
  position: absolute; bottom: -2px; right: -2px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); border: 2px solid var(--bg-card);
  display: flex; align-items: center; justify-content: center; font-size: 12px; cursor: pointer;
}

.post-modal .modal { max-width: 480px; padding: 0; }
.post-modal .post-card { border: none; border-radius: var(--radius-lg); }

/* ---------- Legal pages ---------- */
.legal-body h2 { font-size: 18px; font-weight: 800; margin: 32px 0 10px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body ul { color: var(--text-dim); font-size: 14px; line-height: 1.7; margin: 0 0 12px; }
.legal-body ul { padding-left: 20px; }
.legal-body li { margin-bottom: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
  font-weight: 700;
  font-size: 14px;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 500;
  max-width: 560px; margin: 0 auto;
  background: var(--bg-elevated); border: 1px solid var(--border-light); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 20px;
  display: none; align-items: center; gap: 16px; flex-wrap: wrap;
}
.cookie-banner.open { display: flex; }
.cookie-banner p { flex: 1 1 260px; margin: 0; font-size: 13px; color: var(--text-dim); }
.cookie-banner .actions { display: flex; gap: 10px; flex: 0 0 auto; }
