/* =========================================================
   Ronny's Pop Show – Stylesheet
   ========================================================= */

:root {
  --bg: #0f0f0f;
  --bg-card: #191919;
  --bg-card-hover: #222;
  --border: #2a2a2a;
  --text: #f0f0f0;
  --text-muted: #888;
  --accent: #e8325a;
  --accent-light: #ff6080;
  --font: system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --radius: 8px;
  --max-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

/* ---- Top bar ---- */

.top-bar {
  background: rgba(10, 10, 10, 0.9);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 0.35rem 1rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.top-bar a {
  color: #f5c842;
  font-weight: 600;
  white-space: nowrap;
}

.top-bar a:hover {
  color: #ffe87a;
  text-decoration: none;
}

.top-bar-sep {
  opacity: 0.4;
}

/* ---- Header ---- */

.site-header {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.nav-logo {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}

.nav-logo:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}

.nav-links a {
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: var(--bg-card-hover);
  text-decoration: none;
}

/* ---- Main ---- */

main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
}

/* ---- Hero ---- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  text-align: center;
}

.hero-mosaic {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.hero-mosaic-track {
  display: flex;
  gap: 4px;
  width: max-content;
  animation: mosaic-scroll 40s linear infinite;
  opacity: 0.35;
  filter: saturate(0.6);
}

.hero-mosaic-track img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

@keyframes mosaic-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Fade edges */
.hero-mosaic::before,
.hero-mosaic::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 1;
  pointer-events: none;
}

.hero-mosaic::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.hero-mosaic::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

/* Darken centre so text stays readable */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 10, 20, .55) 0%, rgba(10, 10, 20, .75) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 1.5rem 3rem;
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-light);
  color: #fff;
  text-decoration: none;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  color: var(--text);
  text-decoration: none;
}

/* ---- Stats Bar ---- */

.stats-bar {
  display: flex;
  gap: 0;
  margin: 0 0 3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 1rem;
  gap: 0.2rem;
  border-right: 1px solid var(--border);
  background: var(--bg-card);
}

.stat:last-child {
  border-right: none;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ---- Section heading ---- */

.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

/* ---- Sampler Grid ---- */

.sampler-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.875rem;
}

.sampler-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: border-color 0.15s, transform 0.15s;
  color: inherit;
  overflow: hidden;
}

.sampler-card--img {
  padding-top: 0;
}

.sampler-card-cover {
  display: block;
  width: calc(100% + 2.5rem);
  margin-left: -1.25rem;
  margin-bottom: 0.75rem;
  aspect-ratio: 1;
  object-fit: cover;
  flex-shrink: 0;
}

.sampler-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}

.sampler-card-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.sampler-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.sampler-card-year {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.sampler-card-artists {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 0.1rem;
}

/* ---- SEO / Intro Text Block ---- */

.seo-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.85;
}

.seo-block p+p {
  margin-top: 0.75rem;
}

.seo-block strong {
  color: var(--text);
}

/* ---- Breadcrumb ---- */

.breadcrumb {
  margin-bottom: 1.5rem;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  align-items: center;
}

.breadcrumb li+li::before {
  content: '/';
  margin-right: 0.25rem;
  color: var(--border);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ---- Page Header ---- */

.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-top: 0.5rem;
}

.page-header p {
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* ---- Decade grouping ---- */

.decade-section {
  margin-bottom: 3rem;
}

/* ---- Sampler Detail Layout ---- */

.sampler-detail {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 2rem 2.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .sampler-detail {
    grid-template-columns: 1fr;
  }
}

.sampler-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.sampler-cover {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
}

@media (max-width: 480px) {
  .sampler-header {
    flex-direction: column;
  }

  .sampler-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    max-width: 220px;
  }
}

.sampler-header-text {
  min-width: 0;
}

.sampler-spotify-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1ed760;
  border: 1px solid rgba(30, 215, 96, 0.35);
  border-radius: 2rem;
  padding: 0.3rem 0.75rem;
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
}

.sampler-spotify-link svg {
  fill: #1ed760;
  flex-shrink: 0;
}

.sampler-spotify-link:hover {
  background: rgba(30, 215, 96, 0.12);
  border-color: #1ed760;
  text-decoration: none;
  color: #1ed760;
}

.sampler-number {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.sampler-title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

.sampler-year {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.sampler-artists {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ---- Tracklist ---- */

.tracklist-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.tracklist-group+.tracklist-group {
  margin-top: 1.75rem;
}

.tracklist-group-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.tracklist {
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.track {
  display: grid;
  grid-template-columns: 3.5rem 1fr 1rem 1fr;
  align-items: baseline;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  gap: 0.5rem;
}

.track:last-child {
  border-bottom: none;
}

.track:nth-child(even) {
  background: rgba(255, 255, 255, 0.018);
}

.track-position {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.track-artist {
  font-weight: 600;
}

.track-artist-link {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}

.track-artist-link:hover {
  color: var(--accent);
  text-decoration: none;
}

.track-artist-sep {
  color: var(--text-muted);
  font-weight: 400;
}

.track-sep {
  color: var(--border);
}

.track-title {
  color: var(--text-muted);
}

/* ---- Sidebar Meta ---- */

.sampler-meta {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: sticky;
  top: 72px;
}

.sampler-meta h2 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.sampler-meta ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.sampler-meta li {
  color: var(--text-muted);
}

.sampler-meta strong {
  color: var(--text);
}

.sampler-meta a {
  color: var(--accent);
  font-size: 0.875rem;
}

/* ---- Spotify embed ---- */

.spotify-embed-wrap {
  margin-top: 1.25rem;
}

.spotify-embed-wrap iframe {
  display: block;
  border-radius: var(--radius);
  width: 100%;
}

.spotify-embed-trigger {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  background: #1a1a2e;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}

.spotify-embed-trigger:hover {
  background: #1ed76022;
  border-color: #1ed760;
}

.spotify-embed-trigger img {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
}

.spotify-embed-trigger-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.spotify-embed-trigger-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1ed760;
  font-family: var(--font);
}

.spotify-icon {
  fill: #1ed760;
  flex-shrink: 0;
}

.spotify-embed-notice {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.4;
}

/* ---- Ko-fi CTA ---- */

.kofi-cta {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.kofi-cta-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.kofi-cta-btn {
  display: inline-block;
  background: #f5c842;
  color: #1a1200;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.55rem 1.25rem;
  border-radius: 2rem;
  text-decoration: none;
  transition: background 0.15s;
}

.kofi-cta-btn:hover {
  background: #ffe87a;
  text-decoration: none;
  color: #1a1200;
}

/* ---- Prev / Next Nav ---- */

.sampler-nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  gap: 1rem;
}

.sampler-nav-prev,
.sampler-nav-next {
  color: var(--text-muted);
  font-size: 0.875rem;
  max-width: 45%;
  line-height: 1.4;
}

.sampler-nav-next {
  text-align: right;
  margin-left: auto;
}

.sampler-nav-prev:hover,
.sampler-nav-next:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ---- Artist Search ---- */

.search-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.btn-reset {
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--font);
  padding: 0.55rem 1rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.btn-reset:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.search-input {
  width: 100%;
  max-width: 600px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.15s;
  font-family: var(--font);
}

.search-input:focus {
  border-color: var(--accent);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.artist-count {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  min-height: 1.25rem;
}

.artist-results {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.artist-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
}

.artist-name {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.artist-appearances {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.artist-appearance {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.artist-tag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  background: rgba(232, 50, 90, 0.08);
  border: 1px solid rgba(232, 50, 90, 0.2);
  border-radius: 4px;
  padding: 0.2rem 0.55rem;
  font-size: 0.78rem;
  color: var(--accent-light);
  transition: background 0.15s;
}

.artist-tag:hover {
  background: rgba(232, 50, 90, 0.18);
  text-decoration: none;
  color: var(--accent-light);
}

.artist-track-titles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.artist-track-title {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- Footer ---- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.site-footer-note {
  font-size: 0.72rem;
  opacity: 0.6;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--accent);
}

/* ---- Legal page ---- */

.legal-page {
  max-width: 680px;
}

.legal-page h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 2rem;
}

.legal-page section {
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.legal-page p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.6rem;
}

.legal-page a {
  color: var(--accent-light);
}

.email-obfuscated {
  font-style: italic;
  color: var(--text);
  user-select: all;
}

/* ---- "More" link ---- */
.more-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.875rem;
}

/* ---- Responsive ---- */

@media (max-width: 640px) {
  .stats-bar {
    flex-wrap: wrap;
  }

  .stat {
    flex: 1 0 45%;
  }

  .track {
    grid-template-columns: 2.5rem 1fr;
    grid-template-rows: auto auto;
  }

  .track-sep {
    display: none;
  }

  .track-title {
    grid-column: 2;
    color: var(--text-muted);
    font-size: 0.8rem;
  }

  .sampler-nav-prev,
  .sampler-nav-next {
    max-width: 48%;
    font-size: 0.8rem;
  }
}

@media (max-width: 400px) {
  .nav-logo {
    font-size: 0.875rem;
  }

  .nav-links a {
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
  }
}