/* ============================================================
   New Album — Design System (self-contained, no CDN dependency)
   Palette: ink #0B0B10 / raised #15151D / violet #7C5CFF /
            lime #D4FF3F / paper #EDEDF2 / muted #8A8A9A
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --ink: #0B0B10;
  --ink-raised: #15151D;
  --ink-raised-2: #1C1C26;
  --violet: #7C5CFF;
  --violet-dim: #5A3FD9;
  --lime: #D4FF3F;
  --paper: #EDEDF2;
  --muted: #8A8A9A;
  --border: #26262F;
  --deezer: #A238FF;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, button { font-family: inherit; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(11,11,16,0.92);
  backdrop-filter: blur(10px);
  z-index: 50;
  width: 100%;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 64px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
  min-width: 0;
}
.logo .dot { color: var(--lime); flex-shrink: 0; }
.logo img { height: 28px; width: auto; } /* drop an <img> in here later to replace the text logo */
.site-nav { display: none; gap: 26px; font-size: 0.92rem; color: var(--muted); flex-shrink: 0; }
.site-nav a:hover { color: var(--paper); }
.search-form {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
  max-width: 240px;
}
.search-box {
  background: var(--ink-raised);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  font-family: var(--font-body);
  color: var(--paper);
  font-size: 0.9rem;
  width: 100%;
  min-width: 0;
}
.search-box::placeholder { color: var(--muted); }
.search-box:focus { outline: none; box-shadow: 0 0 0 2px var(--lime); }

@media (min-width: 768px) {
  .site-header .wrap { height: 72px; }
  .logo { font-size: 1.3rem; }
  .site-nav { display: flex; }
  .search-form { max-width: 260px; }
}

/* ---------- Hero (signature: live pulse bars) ---------- */
.hero {
  padding: 56px 0 44px;
  position: relative;
  overflow: hidden;
  width: 100%;
}
.hero .wrap { position: relative; z-index: 2; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--lime);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.eyebrow .ping {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime);
  animation: ping 2s infinite;
  flex-shrink: 0;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(212,255,63,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(212,255,63,0); }
  100% { box-shadow: 0 0 0 0 rgba(212,255,63,0); }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  max-width: 16ch;
}
.hero h1 em { color: var(--violet); font-style: normal; }
.hero p.lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 46ch;
  margin: 0;
}

/* Pulse bars — signature element, contained within the hero so it
   never causes horizontal overflow on any screen size */
.pulse-meter {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  align-items: flex-end;
  gap: 6px;
  height: 160px;
  max-width: 30%;
  z-index: 1;
  opacity: 0.75;
  pointer-events: none;
}
.pulse-meter span {
  width: 9px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--violet), var(--violet-dim));
  animation: pulse 2.4s ease-in-out infinite;
  transform-origin: bottom;
}
.pulse-meter span:nth-child(odd) { background: linear-gradient(180deg, var(--lime), #9db82c); animation-duration: 1.8s; }
.pulse-meter span:nth-child(1) { height: 40%; animation-delay: 0s; }
.pulse-meter span:nth-child(2) { height: 68%; animation-delay: .2s; }
.pulse-meter span:nth-child(3) { height: 35%; animation-delay: .4s; }
.pulse-meter span:nth-child(4) { height: 85%; animation-delay: .1s; }
.pulse-meter span:nth-child(5) { height: 52%; animation-delay: .3s; }
.pulse-meter span:nth-child(6) { height: 70%; animation-delay: .5s; }
@keyframes pulse {
  0%, 100% { transform: scaleY(0.6); opacity: 0.7; }
  50%      { transform: scaleY(1); opacity: 1; }
}
@media (min-width: 1100px) { .pulse-meter { display: flex; } }

/* ---------- Filter chips ---------- */
.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.chip {
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.88rem;
  color: var(--muted);
  transition: all .15s ease;
  display: inline-block;
  line-height: 1.3;
}
.chip:hover { color: var(--paper); border-color: var(--violet); }
.chip.active { background: var(--violet); color: #fff; border-color: var(--violet); }

/* ---------- Release grid ---------- */
.section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 22px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.section-title small {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 400;
}

.release-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}
@media (min-width: 640px)  { .release-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .release-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; } }

.release-card {
  background: var(--ink-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease;
  display: flex;
  flex-direction: column;
}
.release-card:hover { transform: translateY(-4px); border-color: var(--violet); }
.release-card__art { position: relative; aspect-ratio: 1/1; background: var(--ink-raised-2); }
.release-card__art img { width: 100%; height: 100%; object-fit: cover; }
.release-card__badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(11,11,16,0.85);
  border: 1px solid var(--border);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 9px;
  border-radius: 100px;
}
.release-card__body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.release-card__title { font-weight: 600; font-size: 0.92rem; line-height: 1.3; overflow-wrap: break-word; }
.release-card__artist { color: var(--muted); font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.release-card__meta {
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  gap: 6px;
}

/* ---------- CTA buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn--deezer { background: var(--deezer); color: #fff; }
.btn--deezer:hover { background: #8B2AE0; }
.btn--outline { border-color: var(--border); color: var(--paper); }
.btn--outline:hover { border-color: var(--violet); }

/* ---------- Ad slots ---------- */
.ad-slot {
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 26px 0;
  background: var(--ink-raised);
  position: relative;
  overflow: hidden;
}
.ad-slot__label {
  position: absolute;
  top: 6px; left: 10px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ad-slot--leaderboard { min-height: 90px; }
.ad-slot--sidebar { min-height: 250px; }
.ad-slot--in-feed { grid-column: 1 / -1; min-height: 120px; }

/* ---------- Detail pages (album/track) ---------- */
.detail-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}
.detail-hero__art {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  max-width: 260px;
}
.detail-hero__kind {
  font-family: var(--font-mono);
  color: var(--lime);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.detail-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}
.detail-hero__artist { font-size: 1.05rem; color: var(--muted); margin-bottom: 18px; }
.detail-hero__artist a { color: var(--paper); font-weight: 600; }
.detail-hero__meta {
  display: flex;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.detail-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.detail-hero__actions audio { max-width: 220px; height: 40px; }

@media (min-width: 720px) {
  .detail-hero { grid-template-columns: 260px 1fr; gap: 36px; padding: 48px 0; }
  .detail-hero__art { max-width: none; }
}

/* Track list */
.tracklist { margin: 36px 0; border-top: 1px solid var(--border); }
.tracklist__row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.tracklist__row:hover { background: var(--ink-raised); }
.tracklist__num { font-family: var(--font-mono); color: var(--muted); font-size: 0.85rem; }
.tracklist__title { min-width: 0; overflow-wrap: break-word; }
.tracklist__title a:hover { color: var(--violet); }
.tracklist__badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--ink);
  background: var(--lime);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  white-space: nowrap;
}
.tracklist__duration { font-family: var(--font-mono); color: var(--muted); font-size: 0.82rem; white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
  margin-top: 50px;
  color: var(--muted);
  font-size: 0.85rem;
}
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.site-footer a:hover { color: var(--paper); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin: 36px 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
}
.pagination a:hover { border-color: var(--violet); color: var(--paper); }
.pagination .current { background: var(--violet); color: #fff; border-color: var(--violet); }

/* Not-found page */
.not-found { padding: 70px 0; }
.not-found h1 { font-family: var(--font-display); font-size: 1.9rem; margin-bottom: 12px; }
.not-found a { color: var(--violet); }
.not-found a:hover { text-decoration: underline; }

/* focus visibility for keyboard users */
a:focus-visible, button:focus-visible, .chip:focus-visible, input:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}
