*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0c0c0c;
  --surface:  #141414;
  --surface2: #1a1a1a;
  --border:   #242424;
  --accent:   #e94560;
  --accent2:  #b91c35;
  --green:    #34d399;
  --yellow:   #fbbf24;
  --blue:     #60a5fa;
  --red:      #f87171;
  --text:     #f0f0f0;
  --muted:    #666;
  --r:        10px;
}

body { background: var(--bg); color: var(--text); font-family: "Inter", sans-serif; font-size: 14px; line-height: 1.5; min-height: 100vh; }

/* ── Header ── */
header { display: flex; align-items: center; justify-content: space-between; padding: 16px 32px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.logo { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -.2px; }
.logo::first-letter { color: var(--accent); }
.header-right { display: flex; align-items: center; gap: 14px; }
.muted { color: var(--muted); font-size: 12px; }
.badge { background: var(--accent); color: #0c0c0c; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }

/* ── Main nav ── */
nav { display: flex; gap: 0; padding: 0 24px; background: var(--surface); border-bottom: 1px solid var(--border); overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
nav::-webkit-scrollbar { display: none; }
.tab { background: none; border: none; border-bottom: 2px solid transparent; color: #999; font: 13px/1 "Inter", sans-serif; padding: 0 16px; height: 44px; display: flex; align-items: center; cursor: pointer; transition: color .15s, border-color .15s; white-space: nowrap; text-decoration: none; flex-shrink: 0; font-weight: 500; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--accent); font-weight: 700; }

/* ── Sub-nav (Radar page sections) ── */
.subnav { display: flex; gap: 0; padding: 0 24px; background: var(--bg); border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subtab { background: none; border: none; border-bottom: 2px solid transparent; color: var(--muted); font: 12px/1 "Inter", sans-serif; padding: 0 14px; height: 36px; display: flex; align-items: center; cursor: pointer; transition: color .15s, border-color .15s; white-space: nowrap; flex-shrink: 0; font-weight: 500; }
.subtab:hover { color: var(--text); }
.subtab.active { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }

/* ── Main ── */
main { max-width: 1320px; margin: 0 auto; padding: 32px 32px 80px; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── Welcome intent picker ── */
.welcome {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 114px);
  padding: 40px 24px;
  transition: opacity .24s;
}
.welcome.is-open { display: flex; }
.welcome-inner { width: 100%; max-width: 520px; }
.welcome-heading {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.3px;
  margin-bottom: 24px;
}
.welcome-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.intent-tile {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 18px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: inherit;
  transition: border-color .15s, background .15s, transform .12s;
}
.intent-tile:hover {
  border-color: var(--accent);
  background: #160d36;
  transform: translateY(-2px);
}
.intent-icon { font-size: 26px; line-height: 1; margin-bottom: 2px; }
.intent-title { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.3; }
.intent-desc  { font-size: 12px; color: var(--muted); line-height: 1.45; }
.intent-skip {
  display: block;
  width: 100%;
  text-align: center;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  padding: 10px;
  transition: color .15s;
}
.intent-skip:hover { color: var(--text); }

/* ── Welcome step 2 elements ── */
.welcome-step { width: 100%; }
.welcome-back {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  margin-bottom: 20px;
  transition: color .15s;
  display: block;
}
.welcome-back:hover { color: var(--text); }
.welcome-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.w-chip {
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  border-color: var(--lc, var(--border));
}
.w-chip:hover {
  background: #1e1e1e;
  border-color: var(--lc, var(--accent));
}
.w-chip.active {
  background: color-mix(in srgb, var(--lc, var(--accent)) 15%, transparent);
  border-color: var(--lc, var(--accent));
  color: var(--lc, var(--accent));
  font-weight: 600;
}
.welcome-field-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
  margin-bottom: 10px;
}
.welcome-optional {
  font-size: 10px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  opacity: .7;
}
.welcome-cta {
  display: block;
  width: 100%;
  margin-top: 24px;
  padding: 14px 0;
  background: var(--accent);
  color: #0c0c0c;
  border: none;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: opacity .15s, transform .12s;
}
.welcome-cta:hover { opacity: .9; transform: translateY(-1px); }

@media (max-width: 500px) {
  .welcome-chips { gap: 6px; }
  .w-chip { padding: 6px 13px; font-size: 12px; }
  .welcome-heading { font-size: 17px; }
  .welcome-tiles { grid-template-columns: 1fr; }
}

/* collab bar pulse when arriving from intent picker */
.collab-hl {
  animation: collab-pulse 1.8s ease-out forwards;
}
@keyframes collab-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(167,139,250,.6); border-color: var(--accent); }
  50%  { box-shadow: 0 0 0 10px rgba(167,139,250,0); }
  100% { box-shadow: none; }
}

/* ── Discover hero ── */
.discover-hero { margin-bottom: 40px; }
.discover-hero-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.hero-new-chip { font-size: 10px; font-weight: 700; background: rgba(251,191,36,.15); color: var(--yellow); border-radius: 20px; padding: 2px 8px; text-transform: none; letter-spacing: 0; }
.hero-cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

.hero-card { position: relative; border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--text); display: block; aspect-ratio: 16/9; background: var(--surface2); transition: transform .2s, box-shadow .2s; }
.hero-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,.6); }
.hero-card img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .7; transition: opacity .2s; }
.hero-card:hover img { opacity: .85; }
.hero-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.9) 40%, transparent 70%); padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-rank { position: absolute; top: 12px; left: 12px; background: var(--accent); color: #0c0c0c; font-size: 10px; font-weight: 800; padding: 3px 9px; border-radius: 20px; text-transform: uppercase; letter-spacing: .5px; }
.hero-score { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,.7); border: 1px solid var(--accent); color: var(--accent); font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 8px; }
.hero-score-lbl { font-size: 9px; font-weight: 400; opacity: 0.7; margin-left: 3px; vertical-align: middle; }
.hero-title { font-size: 14px; font-weight: 700; line-height: 1.3; margin-bottom: 4px; }
.hero-channel { font-size: 12px; color: #aaa; margin-bottom: 8px; }
.hero-pills { display: flex; gap: 6px; margin-bottom: 8px; }
.hero-stats { display: flex; gap: 16px; font-size: 11px; color: #aaa; }
.hero-stats strong { color: var(--text); }

/* ── Discover body ── */
.discover-body { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.discover-divider {
  display: flex; align-items: center; gap: 14px;
  color: var(--muted); font-size: 12px;
  margin: 36px 0 18px;
}
.discover-divider::before,
.discover-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.list-controls {
  display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap;
}
.list-controls input {
  flex: 1; min-width: 200px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); padding: 9px 14px;
  font-size: 13px; font-family: inherit; outline: none;
  transition: border-color .15s;
}
.list-controls input:focus { border-color: var(--accent); }
.list-controls select {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); padding: 9px 14px;
  font-size: 13px; font-family: inherit; outline: none;
  transition: border-color .15s;
}
.list-controls select:focus { border-color: var(--accent); }

/* Pulse list */
.pulse-row { display: flex; flex-direction: column; gap: 10px; }
.pulse-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); transition: border-color .15s, background .15s; }
.pulse-item:hover { border-color: var(--accent); background: var(--surface2); }
.pulse-rank { font-size: 11px; color: var(--muted); font-weight: 700; width: 20px; text-align: center; flex-shrink: 0; }
.pulse-thumb { width: 56px; height: 32px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.pulse-info { flex: 1; min-width: 0; }
.pulse-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pulse-channel { font-size: 11px; color: var(--muted); }
.pulse-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.pulse-score { font-size: 18px; font-weight: 800; color: var(--accent); }
.pulse-score-label { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.pulse-meta { display: flex; gap: 8px; font-size: 11px; color: var(--muted); }
.pulse-meta .hi { color: var(--green); font-weight: 600; }

/* Breakdown boxes */
.breakdown-col { display: flex; flex-direction: column; gap: 16px; }
.breakdown-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 18px; }
.breakdown-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin-bottom: 14px; }
.bar-item { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 12px; }
.bar-item:last-child { margin-bottom: 0; }
.bar-label { width: 110px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; }
.bar-track { flex: 1; height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 3px; background: var(--accent); transition: width .4s ease; }
.bar-fill.green { background: var(--green); }
.bar-count { font-size: 11px; color: var(--muted); width: 28px; text-align: right; flex-shrink: 0; }

/* ── Filter bar ── */
.filter-bar { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-bar input, .filter-bar select { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 9px 14px; font-size: 13px; font-family: inherit; outline: none; transition: border-color .15s; }
.filter-bar input { flex: 1; min-width: 200px; }
.filter-bar input:focus, .filter-bar select:focus { border-color: var(--accent); }

/* ── Collab Finder bar ── */
.collab-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 12px 16px; margin-bottom: 16px;
}
.collab-bar-label { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.collab-bar select { background: var(--surface); border: 1px solid var(--border); border-radius: 7px; color: var(--text); padding: 7px 12px; font-size: 13px; font-family: inherit; outline: none; transition: border-color .15s; }
.collab-bar select:focus { border-color: var(--accent); }
.collab-legend { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); margin-left: auto; }
.collab-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-left: 8px; }
.collab-dot.collab-both  { background: #fbbf24; }
.collab-dot.collab-genre { background: #a78bfa; }
.collab-dot.collab-lang  { background: #34d399; }

/* ── Artist grid ── */
.artist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.artist-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; transition: transform .15s, border-color .15s; color: var(--text); display: flex; flex-direction: column; }
.artist-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.artist-card-fit { border-width: 2px; }
.artist-card-both  { border-color: #fbbf2466; }
.artist-card-both:hover  { border-color: #fbbf24; }
.artist-card-genre { border-color: #a78bfa55; }
.artist-card-genre:hover { border-color: var(--accent); }
.artist-card-lang  { border-color: #34d39955; }
.artist-card-lang:hover  { border-color: var(--green); }
.artist-card-inner { text-decoration: none; color: var(--text); display: block; flex: 1; }
.artist-card-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: linear-gradient(135deg, var(--surface2) 0%, #1f1440 100%); }
.artist-card-body { padding: 12px; }
.artist-card-name { font-size: 14px; font-weight: 700; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.artist-card-pills { display: flex; gap: 5px; margin-bottom: 10px; flex-wrap: wrap; }
.artist-card-stats { display: flex; justify-content: space-between; align-items: center; }
.artist-signals { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.signal-tag { font-size: 10px; background: var(--surface2); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; color: var(--muted); }
.artist-card-actions { display: flex; border-top: 1px solid var(--border); }
.action-btn { flex: 1; text-align: center; padding: 8px 4px; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; transition: background .15s, color .15s; }
.action-btn:hover { background: var(--surface2); color: var(--text); }
.action-btn + .action-btn { border-left: 1px solid var(--border); }
.action-btn-spotify { color: #1db954; }
.action-btn-spotify:hover { background: #1db95415; color: #1db954; }
.collab-fit-badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }
.collab-both  { background: rgba(251,191,36,.15); color: #fbbf24; }
.collab-genre { background: rgba(167,139,250,.15); color: #c4b5fd; }
.collab-lang  { background: rgba(52,211,153,.12); color: #6ee7b7; }
.artist-card-meta { font-size: 11px; color: var(--muted); margin-top: 6px; }

/* ── Video list ── */
.video-list { display: flex; flex-direction: column; gap: 8px; }
.video-row { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 12px 16px; display: grid; grid-template-columns: 28px 80px 1fr auto; gap: 14px; align-items: center; text-decoration: none; color: var(--text); transition: border-color .15s, background .15s; }
.video-row:hover { border-color: var(--accent); background: var(--surface2); }
.video-row-num { font-size: 12px; color: var(--muted); text-align: center; }
.video-row-thumb { width: 80px; height: 45px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
.video-row-info { min-width: 0; }
.video-row-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; }
.video-row-channel { font-size: 11px; color: var(--muted); }
.video-row-pills { display: flex; gap: 5px; margin-top: 5px; }
.video-row-metrics { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.video-score { font-size: 20px; font-weight: 800; color: var(--accent); }
.video-row-sub { font-size: 11px; color: var(--muted); text-align: right; }

/* ── Pills ── */
.pill { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }
.pill-genre { background: rgba(167,139,250,.15); color: #c4b5fd; }
.pill-lang  { background: rgba(52,211,153,.12); color: #6ee7b7; }
.pill-new   { background: rgba(251,191,36,.15); color: var(--yellow); }

/* ── Trends ── */
.trends-empty { color: var(--muted); padding: 60px 0; text-align: center; }
.trends-chart-note { color: var(--muted); font-size: 12px; padding: 14px 0 4px; }
.trends-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.trends-analytics-toggle { margin: 32px 0 0; }
.trends-toggle-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 16px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.trends-toggle-btn:hover { border-color: var(--accent); color: var(--text); }
/* ── Artist Discovery Log ── */
.artist-log { margin-top: 0; }
.artist-log-hd { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.artist-log-title { font-size: 16px; font-weight: 700; }
.artist-log-meta { font-size: 12px; color: var(--muted); }
.artist-log-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.artist-log-filters select {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); padding: 8px 12px;
  font-size: 13px; font-family: inherit; outline: none;
  transition: border-color .15s;
}
.artist-log-filters select:focus { border-color: var(--accent); }
.artist-log-table { width: 100%; }
.al-name { color: var(--accent); text-decoration: none; font-weight: 600; }
.al-name:hover { text-decoration: underline; }
.al-num { text-align: right; color: var(--text); font-weight: 600; font-size: 13px; }
.al-score { text-align: right; font-size: 13px; color: var(--muted); }
.al-recency { color: var(--muted); font-size: 12px; white-space: nowrap; }
.chart-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; }
.chart-card-title { font-size: 13px; font-weight: 600; margin-bottom: 16px; color: var(--muted); }

/* ── Data table (trends) ── */
.data-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); }
.data-table thead th { padding: 11px 16px; text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); background: var(--surface2); border-bottom: 1px solid var(--border); }
.data-table tbody tr { border-bottom: 1px solid var(--border); transition: background .1s; }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: var(--surface2); }
.data-table td { padding: 11px 16px; font-size: 13px; }

/* ── Language Insights ── */
.insights-header { display: flex; align-items: baseline; gap: 14px; margin: 32px 0 16px; }
.insights-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
.insights-meta { font-size: 12px; color: var(--muted); }
.insights-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

.insight-card { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--lc, var(--accent)); border-radius: var(--r); padding: 16px; }
.insight-card.insight-empty { opacity: .45; }
.insight-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.insight-lang { font-size: 13px; font-weight: 800; color: var(--lc, var(--accent)); }
.insight-dominant { font-size: 10px; font-weight: 600; background: color-mix(in srgb, var(--lc, var(--accent)) 15%, transparent); color: var(--lc, var(--accent)); padding: 2px 8px; border-radius: 20px; }
.insight-narrative { font-size: 12px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.insight-section-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin-bottom: 8px; }
.insight-artists { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.insight-artist-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.insight-artist-name { font-size: 12px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.insight-artist-stat { font-size: 10px; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.insight-genres { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.insight-genre-row { display: flex; align-items: center; gap: 8px; }
.insight-genre-artist { font-size: 11px; color: var(--text); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.insight-genre-days { font-size: 10px; color: var(--muted); flex-shrink: 0; }
.insight-genre-bars .bar-item { margin-bottom: 6px; }
.insight-genre-bars .bar-label { width: 100px; font-size: 11px; }
.insight-genre-bars .bar-count { font-size: 10px; }

/* ── Toggle buttons (filter bar) ── */
.toggle-btn { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; color: var(--muted); padding: 9px 14px; font-size: 13px; font-family: inherit; cursor: pointer; transition: color .15s, border-color .15s, background .15s; white-space: nowrap; }
.toggle-btn:hover { color: var(--text); border-color: #444; }
.toggle-btn.active { background: rgba(167,139,250,.15); border-color: var(--accent); color: var(--accent); }
/* ── More/Less filter expander ── */
.more-btn {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; color: var(--muted); padding: 9px 14px;
  font-size: 13px; font-family: inherit; cursor: pointer;
  transition: color .15s, border-color .15s; white-space: nowrap;
}
.more-btn:hover { color: var(--text); border-color: #444; }
.filter-more {
  display: flex; gap: 10px; flex-wrap: wrap;
  width: 100%; padding-top: 4px;
}
.filter-more[hidden] { display: none !important; }
.collab-hint { font-size: 11px; color: var(--muted); font-style: italic; margin-left: 6px; }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 48px 0; color: var(--muted); font-size: 14px; }

/* ── India rank (artist card) ── */
.india-rank-sm { font-size: 10px; font-weight: 700; color: var(--yellow); background: rgba(251,191,36,.12); padding: 2px 6px; border-radius: 20px; margin-top: 4px; display: inline-block; }

/* ── Trend badges ── */
.trend-badge { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 20px; white-space: nowrap; flex-shrink: 0; }
.trend-new  { background: rgba(167,139,250,.2); color: var(--accent); }
.trend-up   { background: rgba(52,211,153,.2);  color: var(--green); }
.trend-flat { background: rgba(96,165,250,.2);  color: var(--blue); }
.trend-dn   { background: rgba(248,113,113,.2); color: var(--red); }

/* ── Pill toggles (Trends tab) ── */
.toggle-group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pill-toggle { font-size: 10px; font-weight: 600; padding: 4px 10px; border-radius: 20px; border: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s, background .15s; font-family: inherit; white-space: nowrap; }
.pill-toggle.active { background: rgba(255,255,255,.06); color: var(--tc, var(--accent)); border-color: var(--tc, var(--accent)); }
.pill-toggle:hover { border-color: var(--tc, var(--accent)); color: var(--tc, var(--accent)); }

/* ── Responsive ── */
@media (max-width: 1000px) {
  .discover-body { grid-template-columns: 1fr; }
  .hero-cards { grid-template-columns: 1fr 1fr; }
  .trends-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  header, nav { padding-left: 16px; padding-right: 16px; }
  main { padding: 20px 16px 60px; }
  .hero-cards { grid-template-columns: 1fr; }
  .artist-grid { grid-template-columns: 1fr 1fr; }
  .video-row { grid-template-columns: 24px 64px 1fr auto; gap: 10px; }
}

/* ── Spotify badge ───────────────────────────────────────────────────────────── */
.spotify-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: #1db954;
  border: 1px solid #1db954;
  border-radius: 4px;
  padding: 1px 5px;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.spotify-badge:hover { background: #1db954; color: #000; }

/* ── Buzz / Social tab ──────────────────────────────────────────────────────── */
.buzz-empty {
  text-align: center;
  padding: 60px 0;
  color: var(--muted);
  font-size: 14px;
}
.buzz-section-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.buzz-split {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 4px;
}
.buzz-left,
.buzz-right { min-width: 0; }
.buzz-left .buzz-section-hd {
  margin-top: 0;
  border-left: 2px solid #a78bfa;
  padding-left: 10px;
  color: #c4b5fd;
}
.buzz-right .buzz-section-hd { margin-top: 0; }
.buzz-artist-empty {
  color: var(--muted);
  font-size: 13px;
  padding: 14px 0;
}
@media (max-width: 700px) {
  .buzz-split { grid-template-columns: 1fr; }
}
.buzz-show-more {
  display: block;
  width: 100%;
  margin: 18px 0 32px;
  padding: 10px 0;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.buzz-show-more:hover {
  border-color: #a78bfa55;
  color: var(--text);
}
.buzz-count {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface2);
  border-radius: 10px;
  padding: 1px 7px;
}

/* Artist blocks */
.buzz-artist-blocks { display: flex; flex-direction: column; gap: 20px; }
.buzz-artist-block {}
.buzz-artist-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 10px;
}
.buzz-chip-count {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border-radius: 8px;
  padding: 1px 6px;
}
.buzz-posts { display: flex; flex-direction: column; gap: 8px; }

/* Feed — date-grouped */
.buzz-feed { display: flex; flex-direction: column; gap: 0; }
.buzz-date-group { margin-bottom: 28px; }
.buzz-date-hd {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.buzz-date-cards { display: flex; flex-direction: column; gap: 6px; }

/* Card */
.buzz-card {
  display: block;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, background .15s;
}
.buzz-card:hover {
  border-color: #a78bfa55;
  background: #1c1040;
}
.buzz-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 7px;
}
.buzz-byline {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.buzz-source {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.buzz-dot {
  font-size: 10px;
  color: var(--border);
}
.buzz-lang-pill {
  font-size: 10px;
  font-weight: 600;
  color: var(--lc, #888);
  border: 1px solid var(--lc, #888);
  border-radius: 4px;
  padding: 1px 5px;
  opacity: .85;
}

/* ── Artist Profile Drawer ─────────────────────────────────── */
.artist-drawer { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.artist-drawer.open { pointer-events: all; }

.drawer-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.65);
  opacity: 0; transition: opacity .25s;
}
.artist-drawer.open .drawer-overlay { opacity: 1; }

.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(520px, 100vw);
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
.artist-drawer.open .drawer-panel { transform: translateX(0); }

.drawer-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.drawer-artist-name { font-size: 18px; font-weight: 700; line-height: 1.2; margin-bottom: 8px; }
.drawer-artist-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.drawer-header-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; margin-left: 12px; }

.drawer-save-btn {
  background: transparent; border: 1px solid var(--border);
  color: var(--muted); font-size: 12px; padding: 6px 12px;
  border-radius: 20px; cursor: pointer; transition: all .15s;
  white-space: nowrap;
}
.drawer-save-btn:hover { border-color: var(--accent); color: var(--accent); }
.drawer-save-btn.saved { border-color: var(--accent); color: var(--accent); background: #a78bfa18; }

.drawer-close {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--muted); width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; font-size: 14px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s; flex-shrink: 0;
}
.drawer-close:hover { color: var(--text); border-color: var(--muted); }

.drawer-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 20px; }

.drawer-embed-wrap { border-radius: 8px; overflow: hidden; background: #000; aspect-ratio: 16/9; }
.drawer-embed-wrap iframe { width: 100%; height: 100%; border: none; display: block; }
.drawer-embed-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: var(--surface2); color: var(--muted); font-size: 13px;
  text-decoration: none; flex-direction: column; gap: 8px;
}
.drawer-embed-placeholder:hover { color: var(--text); }
.drawer-embed-play { font-size: 32px; }

.drawer-stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border); border-radius: 10px; overflow: hidden;
}
.drawer-stat {
  background: var(--surface2); padding: 14px 12px; text-align: center;
}
.drawer-stat-val { font-size: 22px; font-weight: 800; color: var(--accent); }
.drawer-stat-lbl { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }

.drawer-platforms { display: flex; gap: 10px; flex-wrap: wrap; }
.drawer-platform-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--border); color: var(--text);
  transition: all .15s;
}
.drawer-platform-link:hover { border-color: var(--accent); color: var(--accent); }
.drawer-platform-yt  { border-color: #f87171; color: #f87171; }
.drawer-platform-yt:hover  { background: #f8717118; }
.drawer-platform-sp  { border-color: #1db954; color: #1db954; }
.drawer-platform-sp:hover  { background: #1db95418; }
.drawer-platform-copy { cursor: pointer; }
.drawer-platform-copy.copied { border-color: var(--green); color: var(--green); background: #34d39918; }

.drawer-videos-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px;
  color: var(--muted);
}
.drawer-videos { display: flex; flex-direction: column; gap: 10px; }
.drawer-video-row {
  display: flex; gap: 12px; align-items: center;
  text-decoration: none; color: var(--text);
  background: var(--surface2); border-radius: 8px; padding: 10px;
  border: 1px solid var(--border); transition: border-color .15s;
}
.drawer-video-row:hover { border-color: var(--accent); }
.drawer-video-thumb { width: 80px; height: 45px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.drawer-video-info { flex: 1; min-width: 0; }
.drawer-video-title { font-size: 12px; font-weight: 600; line-height: 1.3; margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-video-meta { font-size: 11px; color: var(--muted); display: flex; gap: 10px; }
.drawer-video-score { font-size: 16px; font-weight: 800; color: var(--accent); flex-shrink: 0; }

/* ── Artist card clickable ─────────────────────────────────── */
.artist-card { cursor: pointer; }
.artist-card-inner { cursor: pointer; }
/* ── Artist card — Last.fm row ── */
.artist-card-thumb-wrap { position: relative; }
.artist-card-trend {
  position: absolute; top: 6px; right: 6px;
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 20px;
}
.artist-lfm-row {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  margin-top: 8px; padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 11px;
}
.lfm-india { color: var(--accent); font-weight: 600; }
.lfm-global { color: var(--muted); }
.lfm-none { color: var(--muted); font-style: italic; }

/* ── Mobile / Responsive ───────────────────────────────────── */
@media (max-width: 900px) {
  main { padding: 24px 20px 80px; }
  .hero-cards { grid-template-columns: 1fr 1fr; }
  .discover-body { grid-template-columns: 1fr; }
  .breakdown-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .artist-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  header { padding: 12px 16px; }
  .logo { font-size: 13px; }
  #last-updated { display: none; }

  nav { padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
  nav::-webkit-scrollbar { display: none; }
  .tab { padding: 10px 14px; font-size: 12px; white-space: nowrap; }

  main { padding: 16px 16px 80px; }

  .hero-cards { grid-template-columns: 1fr; }
  .hero-card { aspect-ratio: 16/10; }
  .hero-title { font-size: 13px; }

  .discover-body { grid-template-columns: 1fr; gap: 16px; }
  .breakdown-col { grid-template-columns: 1fr; }

  .filter-bar { flex-wrap: wrap; gap: 8px; }
  .filter-bar select, .filter-bar input { flex: 1 1 45%; min-width: 140px; font-size: 12px; }
  .filter-bar .toggle-btn { flex: 1 1 auto; }

  .artist-grid { grid-template-columns: 1fr; }
  .artist-card-body { padding: 10px; }

  .video-list .video-row { padding: 10px 12px; gap: 10px; }
  .video-row-num { display: none; }
  .video-row-thumb { width: 72px; height: 40px; }
  .video-row-title { font-size: 12px; }
  .video-score { font-size: 16px; }

  .collab-bar { flex-wrap: wrap; padding: 12px 16px; gap: 8px; }
  .collab-bar select { flex: 1 1 45%; }

  .trends-grid { grid-template-columns: 1fr !important; }

  .drawer-panel { width: 100vw; border-left: none; }
  .drawer-stats-row { grid-template-columns: repeat(3, 1fr); }
  .drawer-stat-val { font-size: 18px; }

  .chart-card { padding: 16px; }
  .insight-card { padding: 16px; }
}

@media (max-width: 400px) {
  .hero-cards { display: flex; flex-direction: column; }
  .filter-bar select, .filter-bar input { flex: 1 1 100%; }
}

@media (max-width: 500px) {
  .welcome-tiles { grid-template-columns: 1fr; }
  .welcome-heading { font-size: 17px; }
}

/* ── Metric tooltips ── */
.metric-tip {
  border-bottom: 1px dashed #444;
  cursor: help;
  position: relative;
}
.metric-tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e1e1e;
  border: 1px solid var(--border);
  color: #ccc;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  padding: 7px 11px;
  border-radius: 8px;
  width: 220px;
  white-space: normal;
  text-align: left;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
  z-index: 50;
  text-transform: none;
  letter-spacing: 0;
}
.metric-tip:hover::after,
.metric-tip.tip-open::after { opacity: 1; }

/* ── Toolkit intro banner ── */
.toolkit-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #150810 0%, #111118 100%);
  border-bottom: 1px solid rgba(233,69,96,.18);
  flex-wrap: wrap;
}
.toolkit-banner-lhs { flex-shrink: 0; min-width: 160px; }
.toolkit-banner-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}
.toolkit-banner-tagline { font-size: 12px; color: #8888a8; display: block; line-height: 1.4; }
.toolkit-banner-tools {
  display: flex;
  gap: 7px;
  flex: 1;
  flex-wrap: wrap;
  min-width: 0;
}
.toolkit-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 9px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, background .15s;
  flex: 1;
  min-width: 148px;
}
.toolkit-pill:hover { border-color: var(--accent); background: rgba(233,69,96,.06); }
.toolkit-pill-active { border-color: rgba(233,69,96,.4); background: rgba(233,69,96,.07); pointer-events: none; }
.toolkit-pill-icon { font-size: 16px; flex-shrink: 0; width: 20px; text-align: center; }
.toolkit-pill-dot { color: var(--accent); font-size: 15px; flex-shrink: 0; width: 20px; text-align: center; }
.toolkit-pill-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.toolkit-pill-name { font-size: 12px; font-weight: 600; white-space: nowrap; }
.toolkit-pill-sub { font-size: 10px; color: var(--muted); white-space: nowrap; }
.toolkit-banner-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 4px;
  transition: color .15s;
  flex-shrink: 0;
  margin-left: auto;
  align-self: flex-start;
}
.toolkit-banner-close:hover { color: var(--text); }

/* ── Cross-nav strips (bottom of each tab) ── */
.cross-nav-bar {
  margin-top: 56px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cross-nav-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  flex-shrink: 0;
  padding-right: 8px;
  border-right: 1px solid var(--border);
  margin-right: 4px;
  white-space: nowrap;
}
.cross-nav-link {
  font-size: 12px;
  font-weight: 500;
  color: #b0b0c8;
  text-decoration: none;
  padding: 7px 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 7px;
  transition: border-color .15s, color .15s;
  white-space: nowrap;
}
.cross-nav-link:hover { border-color: var(--accent); color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 640px) {
  .toolkit-banner { padding: 12px 16px; gap: 12px; }
  .toolkit-banner-lhs { display: none; }
  .toolkit-pill { min-width: 120px; padding: 8px 10px; gap: 7px; }
  .toolkit-pill-sub { display: none; }
  .cross-nav-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cross-nav-label { border-right: none; padding-right: 0; margin-right: 0; }
}

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--border); padding: 24px 32px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 12px; }
.site-footer-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer-name { font-weight: 700; color: var(--text); font-size: 13px; }
.site-footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer-links a { color: var(--muted); transition: color .15s; text-decoration: none; }
.site-footer-links a:hover { color: var(--text); }
.site-footer-right { font-size: 11px; }
