.mood-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.mood-card {
  padding: 1.1rem 1.15rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 8%, var(--bg-elevated)), var(--bg-elevated));
  display: flex; flex-direction: column; gap: 0.55rem;
  animation: moodIn 420ms ease both;
}
.mood-card:nth-child(2) { animation-delay: 80ms; }
.mood-card:nth-child(3) { animation-delay: 160ms; }
@keyframes moodIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.mood-card h3 { margin: 0; font-size: 1.15rem; }
.mood-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.mood-actions select {
  font: inherit; color: var(--fg); background: var(--bg);
  border: 1px solid var(--border); border-radius: 10px; padding: 0.4rem 0.55rem;
}
.mood-activity-btns { margin-bottom: 0.25rem; }
.chip-btn {
  border: 1px solid var(--border); background: var(--bg); color: var(--fg);
  border-radius: 999px; padding: 0.35rem 0.75rem; font: inherit; cursor: pointer;
}
.chip-btn.active, .chip-btn:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, var(--bg));
}
.mood-bpm-label {
  display: flex; flex-direction: column; gap: 0.25rem;
  font-size: 0.78rem; opacity: 0.9;
}
.mood-bpm-label input {
  font: inherit; color: var(--fg); background: var(--bg);
  border: 1px solid var(--border); border-radius: 10px; padding: 0.45rem 0.6rem; max-width: 140px;
}
@media (max-width: 980px) {
  .mood-grid { grid-template-columns: 1fr; }
}

/* Home listening hub */

.row-between {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: flex-end; justify-content: space-between;
}
.sel-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.85rem; }

.world-map-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
  align-items: start;
}
.world-map-visual {
  display: flex; flex-wrap: wrap; gap: 0.55rem;
  padding: 1rem;
  min-height: 220px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 30% 20%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 55%),
    radial-gradient(ellipse at 70% 80%, color-mix(in srgb, var(--secondary) 16%, transparent), transparent 50%),
    linear-gradient(160deg, var(--bg-elevated), color-mix(in srgb, var(--bg) 70%, var(--bg-elevated)));
  animation: mapPulse 8s ease-in-out infinite alternate;
}
.world-map-visual.world-atlas {
  flex-direction: column;
  flex-wrap: nowrap;
  animation: none;
  gap: 0.65rem;
}
@keyframes mapPulse {
  from { filter: saturate(1); }
  to { filter: saturate(1.15); }
}
.map-chip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.35rem 0.55rem;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 65%, transparent);
  color: var(--fg);
  cursor: pointer;
  font: inherit;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.map-chip:hover { transform: translateY(-2px); border-color: var(--accent); }
.map-chip.is-active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 18%, var(--bg-elevated));
}
.map-chip.has-tracks .map-count { color: var(--accent); font-weight: 600; }
.map-code { font-weight: 700; font-size: 0.78rem; letter-spacing: 0.04em; }
.map-name { font-size: 0.82rem; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 9rem; }
.map-count { font-size: 0.75rem; opacity: 0.75; }
.world-map-side { min-width: 0; }
.map-selected { margin: 0 0 0.65rem; font-weight: 600; }

.filter-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) 1.2fr auto;
  gap: 0.75rem;
  align-items: end;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}
.filter-bar label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.78rem; opacity: 0.95; }
.filter-bar select, .filter-bar input {
  font: inherit; color: var(--fg);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.5rem 0.65rem;
}
.filter-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.icon-heart {
  border: 0; background: transparent; cursor: pointer;
  font-size: 1.15rem; color: var(--fg); opacity: 0.7; padding: 0.2rem;
}
.icon-heart.is-on, .icon-btn.is-on { color: #e11d48; opacity: 1; }
.badge-e {
  display: inline-block; font-size: 0.65rem; font-weight: 700;
  padding: 0.05rem 0.3rem; border-radius: 4px;
  background: color-mix(in srgb, #e11d48 25%, transparent);
  vertical-align: middle;
}

@media (max-width: 980px) {
  .world-map-panel { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .filter-actions { grid-column: 1 / -1; }
}

.channel-card {
  display: flex; flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.channel-card .channel-body { padding: 0.9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.45rem; }
.channel-card .channel-art { display: block; }

.music-list { display: flex; flex-direction: column; gap: 0.35rem; }
.music-row {
  display: grid;
  grid-template-columns: auto 48px 1fr auto auto auto auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.45rem 0.55rem;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}
.music-row:hover { background: var(--surface-soft, rgba(255,255,255,0.04)); border-color: var(--border); }
.music-row .sel { display: grid; place-items: center; }
.music-row input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.music-thumb {
  width: 48px; height: 48px; border-radius: 10px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--cover-grad-a, var(--secondary)), var(--cover-grad-b, var(--accent)));
  background-size: cover; background-position: center;
}
.music-meta { min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.music-meta strong, .music-meta span {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* —— Fresh uploads Excel-style sheet —— */
#fresh .fresh-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin: 0 0 0.65rem;
}
#fresh .fresh-search { flex: 1 1 220px; min-width: 0; }
#fresh .fresh-search input,
#fresh .fresh-source select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-soft, var(--bg-elevated));
  color: var(--fg);
  font: inherit;
}
#fresh .fresh-source { flex: 0 0 140px; }
#fresh .fresh-count {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}
#fresh .sheet-wrap {
  max-height: min(70vh, 720px);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg-elevated) 92%, transparent), var(--bg-elevated)),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent calc(100% - 1px),
      color-mix(in srgb, var(--border) 55%, transparent) calc(100% - 1px)
    );
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 4%, transparent);
}
#fresh .data-sheet {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.82rem;
  table-layout: fixed;
  min-width: 1100px;
}
#fresh .data-sheet thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: color-mix(in srgb, var(--bg-elevated) 88%, var(--accent) 12%);
  color: var(--fg);
  font-weight: 600;
  text-align: left;
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  white-space: nowrap;
  user-select: none;
}
#fresh .data-sheet thead th.sortable { cursor: pointer; }
#fresh .data-sheet thead th.sortable:hover { color: var(--accent); }
#fresh .data-sheet thead th.is-asc::after { content: " ↑"; opacity: 0.7; }
#fresh .data-sheet thead th.is-desc::after { content: " ↓"; opacity: 0.7; }
#fresh .data-sheet tbody td {
  padding: 0.35rem 0.45rem;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
  border-right: 1px solid color-mix(in srgb, var(--border) 40%, transparent);
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 0;
}
#fresh .data-sheet tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--fg) 3.5%, transparent);
}
#fresh .data-sheet tbody tr:hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
#fresh .data-sheet .num,
#fresh .data-sheet th.num { text-align: right; font-variant-numeric: tabular-nums; }
#fresh .data-sheet .col-check { width: 36px; text-align: center; }
#fresh .data-sheet .col-num { width: 44px; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
#fresh .data-sheet .col-cover { width: 44px; }
#fresh .data-sheet .col-actions { width: 168px; overflow: visible; max-width: none; }
#fresh .data-sheet .col-actions .btn,
#fresh .data-sheet .col-actions .icon-heart { margin-right: 0.15rem; }
#fresh .sheet-thumb {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, var(--cover-grad-a, var(--secondary)), var(--cover-grad-b, var(--accent)));
  background-size: cover;
  background-position: center;
  display: block;
}
#fresh .cell-title { font-weight: 600; }
#fresh .cell-date { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 0.78rem; }
#fresh .sheet-empty td { text-align: center; padding: 1.5rem; max-width: none; white-space: normal; }
#fresh .sel { display: grid; place-items: center; }
#fresh .sel input { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }

/* —— Jamendo live (ui-ux-pro-max: dense dark catalog) —— */
.jam-live {
  --jam-ink: var(--fg);
  --jam-muted: var(--muted);
  --jam-line: color-mix(in srgb, var(--border) 80%, #312e81);
  --jam-play: var(--play, #22c55e);
  --jam-surface: color-mix(in srgb, var(--bg-elevated, #0f0f23) 92%, #1e1b4b 8%);
}
.jam-live .jam-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--jam-play) 70%, var(--jam-muted));
  font-weight: 600;
}
.jam-artist-rail {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.15rem 0.1rem 0.85rem;
  margin-bottom: 0.35rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.jam-artist-card {
  flex: 0 0 auto;
  width: 108px;
  scroll-snap-align: start;
  border: 1px solid var(--jam-line);
  border-radius: 14px;
  background: var(--jam-surface);
  padding: 0.55rem 0.5rem 0.65rem;
  cursor: pointer;
  text-align: center;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.jam-artist-card:hover,
.jam-artist-card:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--jam-play) 55%, var(--jam-line));
  box-shadow: 0 8px 24px color-mix(in srgb, #000 35%, transparent);
  outline: none;
}
.jam-artist-card img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 0.45rem;
  background: linear-gradient(135deg, #1e1b4b, #4338ca);
}
.jam-artist-card strong {
  display: block;
  font-size: 0.78rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.jam-artist-card span {
  display: block;
  font-size: 0.68rem;
  color: var(--jam-muted);
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.jam-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin: 0 0 0.55rem;
}
.jam-search { flex: 1 1 240px; min-width: 0; }
.jam-search input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--jam-line);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  color: var(--jam-ink);
  font: inherit;
}
.jam-count { font-size: 0.82rem; color: var(--jam-muted); white-space: nowrap; }
.jam-sheet-wrap,
.jam-drawer-sheet {
  max-height: min(62vh, 640px);
  overflow: auto;
  border: 1px solid var(--jam-line);
  border-radius: 12px;
  background: var(--jam-surface);
}
.jam-sheet {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.82rem;
  table-layout: fixed;
  min-width: 980px;
}
.jam-sheet thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: color-mix(in srgb, #0f0f23 70%, #1e1b4b 30%);
  color: var(--jam-ink);
  font-weight: 600;
  text-align: left;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid var(--jam-line);
  border-right: 1px solid color-mix(in srgb, var(--jam-line) 70%, transparent);
  white-space: nowrap;
}
.jam-sheet tbody td {
  padding: 0.38rem 0.4rem;
  border-bottom: 1px solid color-mix(in srgb, var(--jam-line) 55%, transparent);
  border-right: 1px solid color-mix(in srgb, var(--jam-line) 35%, transparent);
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 0;
}
.jam-sheet tbody tr:nth-child(even) { background: color-mix(in srgb, #fff 2.8%, transparent); }
.jam-sheet tbody tr:hover { background: color-mix(in srgb, var(--jam-play) 12%, transparent); }
.jam-sheet .num { text-align: right; font-variant-numeric: tabular-nums; }
.jam-sheet .col-check { width: 36px; text-align: center; }
.jam-sheet .col-num { width: 40px; text-align: right; color: var(--jam-muted); font-variant-numeric: tabular-nums; }
.jam-sheet .col-cover { width: 48px; }
.jam-sheet .col-star { width: 40px; text-align: center; }
.jam-sheet .col-actions { width: 150px; overflow: visible; max-width: none; }
.jam-avatar,
.jam-thumb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, #1e1b4b, #4338ca);
  background-size: cover;
  background-position: center;
  display: block;
}
.jam-thumb { border-radius: 8px; }
.jam-link {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  color: var(--jam-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.jam-link:hover,
.jam-link:focus-visible {
  color: var(--jam-play);
  outline: none;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.jam-star {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--jam-muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0.2rem;
}
.jam-star.is-on { color: #f5c518; text-shadow: 0 0 10px color-mix(in srgb, #f5c518 45%, transparent); }
.jam-sheet .sheet-empty td { text-align: center; padding: 1.4rem; max-width: none; white-space: normal; }
.jam-drawer {
  border: 1px solid var(--jam-line);
  border-radius: 16px;
  padding: 0;
  width: min(960px, calc(100vw - 1.5rem));
  max-height: min(88vh, 860px);
  background: color-mix(in srgb, #0f0f23 88%, #1e1b4b 12%);
  color: var(--fg);
  box-shadow: 0 24px 64px color-mix(in srgb, #000 55%, transparent);
}
.jam-drawer::backdrop {
  background: color-mix(in srgb, #050510 72%, transparent);
  backdrop-filter: blur(4px);
}
.jam-drawer-inner { margin: 0; padding: 1rem 1rem 1.1rem; display: grid; gap: 0.75rem; }
.jam-drawer-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: start;
}
.jam-drawer-photo {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  object-fit: cover;
  background: linear-gradient(145deg, #1e1b4b, #4338ca);
}
.jam-drawer-copy h3 { margin: 0.1rem 0 0.25rem; font-size: 1.25rem; }
.jam-drawer-copy .muted { margin: 0; }
.jam-ai {
  margin: 0.55rem 0 0;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--jam-play) 35%, transparent);
  background: color-mix(in srgb, var(--jam-play) 10%, transparent);
  font-size: 0.88rem;
  line-height: 1.4;
}
.jam-drawer-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.jam-drawer-sheet { max-height: min(48vh, 420px); }
@media (max-width: 720px) {
  .jam-drawer-head { grid-template-columns: auto 1fr; }
  .jam-drawer-close { grid-column: 1 / -1; justify-self: end; }
}
@media (prefers-reduced-motion: reduce) {
  .jam-artist-card { transition: none; }
  .jam-artist-card:hover { transform: none; }
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.album-card {
  position: relative;
  padding: 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  display: flex; flex-direction: column; gap: 0.45rem;
}
.album-sel { position: absolute; top: 12px; left: 12px; z-index: 2; }
.album-sel input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.album-art {
  aspect-ratio: 1; border-radius: 12px;
  background: linear-gradient(145deg, var(--cover-grad-a, var(--secondary)), var(--cover-grad-b, var(--accent)));
  background-size: cover; background-position: center;
}
.album-card h3 { margin: 0; font-size: 1rem; }
.album-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.queue-badge {
  font-size: 0.72rem; font-weight: 600;
  padding: 0.25rem 0.55rem; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--fg); border: 1px solid var(--border);
}

@media (max-width: 720px) {
  .music-row { grid-template-columns: auto 40px 1fr; }
  .music-row .btn { grid-column: 2 / -1; }
}

/* SSR crawlable lists on Discover (hidden after JS UI mounts) */
.seo-discover-ssr { margin-bottom: 1.5rem; }
.seo-discover-ssr[hidden] { display: none !important; }
.seo-discover-ssr h2 {
  margin: 1.25rem 0 0.5rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.35rem;
}
.seo-link-list {
  margin: 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.seo-link-list a { color: var(--accent); text-decoration: none; }
.seo-link-list a:hover { text-decoration: underline; }

/* ── Collection mode (?collection=chill|focus|workout) ── */
.page-collection .main {
  padding-top: 0;
}

.coll-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(68vh, 560px);
  display: grid;
  align-items: center;
  margin: 0 0 1.75rem;
  padding: clamp(1.75rem, 4vw, 3rem) 0 2.5rem;
  border-radius: 0 0 var(--radius) var(--radius);
  background:
    radial-gradient(ellipse 70% 55% at 75% 15%, color-mix(in srgb, var(--coll-tint, var(--accent)) 28%, transparent), transparent 58%),
    radial-gradient(ellipse 45% 40% at 8% 85%, color-mix(in srgb, var(--coll-tint-2, var(--secondary)) 22%, transparent), transparent 52%),
    linear-gradient(168deg, var(--bg), color-mix(in srgb, var(--bg-elevated) 50%, var(--bg)));
}

.coll-chill {
  --coll-tint: #5b9aa8;
  --coll-tint-2: #2d6a7a;
}
.coll-focus {
  --coll-tint: #4a7c9b;
  --coll-tint-2: #1e4a66;
}
.coll-workout {
  --coll-tint: #e07830;
  --coll-tint-2: #a34a12;
}

.coll-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.coll-wave {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.4;
  animation: collDrift 14s ease-in-out infinite alternate;
}
.coll-wave-a {
  width: min(52vw, 440px);
  height: min(52vw, 440px);
  right: -6%;
  top: -12%;
  background: color-mix(in srgb, var(--coll-tint, var(--accent)) 45%, transparent);
}
.coll-wave-b {
  width: min(38vw, 300px);
  height: min(38vw, 300px);
  left: 4%;
  bottom: 0;
  background: color-mix(in srgb, var(--coll-tint-2, var(--secondary)) 40%, transparent);
  animation-delay: -5s;
}
.coll-grain {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.coll-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  width: 100%;
}

.coll-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: color-mix(in srgb, var(--coll-tint, var(--accent)) 70%, var(--muted));
  animation: collRise 520ms ease both;
}
.coll-brand {
  margin: 0;
  font-family: var(--display), "Righteous", cursive;
  font-size: clamp(2.5rem, 6.5vw, 4rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.01em;
  animation: collRise 600ms ease both;
}
.coll-brand em {
  font-style: normal;
  color: var(--coll-tint, var(--accent));
}
.coll-lead {
  margin: 0.85rem 0 0;
  max-width: 36ch;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.5;
  color: color-mix(in srgb, var(--fg) 78%, var(--muted));
  animation: collRise 680ms ease both;
}
.coll-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.35rem;
  animation: collRise 760ms ease both;
}
.coll-hero-cta .btn,
.coll-switch-link,
.coll-feature-actions .btn,
.coll-card .btn,
.coll-more-links .btn {
  cursor: pointer;
}
.coll-hero-cta .btn.primary {
  box-shadow: 0 10px 28px color-mix(in srgb, var(--coll-tint, var(--accent)) 28%, transparent);
}
.coll-hero-cta .btn:focus-visible,
.coll-switch-link:focus-visible,
.coll-feature-actions .btn:focus-visible {
  outline: 2px solid var(--coll-tint, var(--accent));
  outline-offset: 3px;
}

.coll-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
  animation: collRise 840ms ease both;
}
.coll-switch-link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elevated) 80%, transparent);
  color: var(--fg);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}
.coll-switch-link:hover {
  border-color: color-mix(in srgb, var(--coll-tint, var(--accent)) 50%, var(--border));
}
.coll-switch-link.is-active {
  border-color: transparent;
  background: var(--coll-tint, var(--accent));
  color: var(--accent-ink, #fff);
}

.coll-hero-visual {
  position: relative;
  min-height: 260px;
  display: grid;
  place-items: center;
  animation: collRise 700ms ease both;
}
.coll-aura {
  position: absolute;
  width: min(280px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--coll-tint, var(--accent)) 35%, transparent), transparent 68%);
  filter: blur(8px);
  animation: collPulse 5.5s ease-in-out infinite;
}
.coll-disc {
  position: relative;
  z-index: 2;
  width: min(200px, 52vw);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, var(--bg-elevated) 11%, transparent 12%),
    repeating-radial-gradient(circle at center, transparent 0 5px, color-mix(in srgb, var(--fg) 7%, transparent) 5px 6px),
    linear-gradient(145deg, color-mix(in srgb, var(--coll-tint, var(--accent)) 55%, #1a1a1a), #0e1214);
  box-shadow: 0 20px 48px color-mix(in srgb, #000 28%, transparent);
  animation: collSpin 32s linear infinite;
}
.coll-disc-label {
  position: relative;
  z-index: 1;
  font-family: var(--display), "Righteous", cursive;
  font-size: 1.05rem;
  color: var(--fg);
  letter-spacing: 0.04em;
}
.coll-bars {
  position: absolute;
  bottom: 12%;
  left: 8%;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 42px;
}
.coll-bars i {
  display: block;
  width: 5px;
  border-radius: 3px;
  background: var(--coll-tint, var(--accent));
  opacity: 0.85;
  animation: collBar 1.25s ease-in-out infinite;
}
.coll-bars i:nth-child(1) { height: 28%; animation-delay: 0s; }
.coll-bars i:nth-child(2) { height: 62%; animation-delay: 0.1s; }
.coll-bars i:nth-child(3) { height: 40%; animation-delay: 0.22s; }
.coll-bars i:nth-child(4) { height: 88%; animation-delay: 0.05s; }
.coll-bars i:nth-child(5) { height: 50%; animation-delay: 0.18s; }
.coll-bars i:nth-child(6) { height: 70%; animation-delay: 0.28s; }

.coll-feature {
  display: grid;
  grid-template-columns: minmax(160px, 280px) 1fr;
  gap: 1.25rem;
  align-items: stretch;
  margin-bottom: 1.5rem;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--coll-tint, var(--accent)) 28%, var(--border));
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  animation: collRise 640ms ease both;
}
.coll-feature-art {
  display: block;
  min-height: 200px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--coll-tint, var(--accent)) 35%, #222), #111);
  background-size: cover;
  background-position: center;
  text-decoration: none;
}
.coll-feature-body {
  padding: 1.25rem 1.35rem 1.35rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  justify-content: center;
}
.coll-feature-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--coll-tint, var(--accent));
}
.coll-feature-body h3 {
  margin: 0;
  font-family: var(--display), "Righteous", cursive;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 400;
}
.coll-feature-body > p {
  margin: 0;
  color: var(--muted);
  max-width: 42ch;
  line-height: 1.45;
}
.coll-feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.coll-channel-grid .coll-card {
  animation: collRise 560ms ease both;
  border-color: color-mix(in srgb, var(--coll-tint, var(--accent)) 18%, var(--border));
}
.coll-channel-grid .coll-card:nth-child(1) { animation-delay: 60ms; }
.coll-channel-grid .coll-card:nth-child(2) { animation-delay: 120ms; }
.coll-channel-grid .coll-card:nth-child(3) { animation-delay: 180ms; }
.page-collection .channel-card:hover {
  border-color: color-mix(in srgb, var(--coll-tint, var(--accent)) 45%, transparent);
  box-shadow: 0 20px 48px color-mix(in srgb, var(--coll-tint, var(--accent)) 16%, transparent);
}

.coll-more-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.home-desk-layout.is-collection .home-desk-rail .desk-panel:first-child h3 {
  color: var(--coll-tint, var(--accent));
}

@keyframes collRise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes collDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(10px, 16px, 0); }
}
@keyframes collSpin {
  to { transform: rotate(360deg); }
}
@keyframes collPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.06); }
}
@keyframes collBar {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

@media (max-width: 980px) {
  .coll-hero-inner {
    grid-template-columns: 1fr;
  }
  .coll-hero-visual {
    order: -1;
    min-height: 200px;
  }
  .coll-feature {
    grid-template-columns: 1fr;
  }
  .coll-feature-art {
    min-height: 180px;
  }
  .coll-feature-body {
    padding: 0 1.1rem 1.2rem;
  }
}

@media (max-width: 640px) {
  .coll-hero {
    min-height: auto;
    padding-top: 1.25rem;
  }
  .coll-disc {
    width: min(150px, 42vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .coll-wave,
  .coll-disc,
  .coll-aura,
  .coll-bars i,
  .coll-kicker,
  .coll-brand,
  .coll-lead,
  .coll-hero-cta,
  .coll-switch,
  .coll-hero-visual,
  .coll-feature,
  .coll-channel-grid .coll-card {
    animation: none !important;
  }
}

/* Homepage Artist history strip (MusicBrainz) */
.ah-home-search {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 0 0 0.85rem;
}
.ah-home-search input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-soft, var(--bg-elevated));
  color: var(--fg);
  font: inherit;
}
.ah-home-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 190px);
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x mandatory;
}
.ah-home-card {
  scroll-snap-align: start;
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s;
}
.ah-home-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.ah-home-card strong {
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ah-home-card span {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (prefers-reduced-motion: reduce) {
  .ah-home-card { transition: none; }
  .ah-home-card:hover { transform: none; }
}
