:root {
  --cream: #f4ead8;
  --paper: #fbf4e6;
  --ink: #2b1a12;
  --rust: #b5451b;
  --rust-dark: #8a3213;
  --mustard: #e0a527;
  --teal: #1f6f6b;
  --line: #d9c6a3;
  --shadow: 0 2px 0 rgba(43, 26, 18, 0.15);
  font-size: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Rajdhani', system-ui, sans-serif;
  font-weight: 500;
}

body {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(43,26,18,0.06) 1px, transparent 0);
  background-size: 18px 18px;
}

h1, h2, h3, .brand-name {
  font-family: 'Baloo 2', system-ui, sans-serif;
}

a { color: var(--rust-dark); }
a:hover { color: var(--rust); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: var(--rust);
  color: var(--paper);
  padding: 28px 0 22px;
  border-bottom: 6px solid var(--rust-dark);
  position: relative;
  overflow: hidden;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255,255,255,0.05) 0 2px,
    transparent 2px 14px
  );
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark { font-size: 1.6rem; }

.brand-name {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--paper);
}

.brand-dot { color: var(--mustard); }

.tagline {
  margin: 6px 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(251, 244, 230, 0.85);
}

/* Hero / player */
.hero {
  background: linear-gradient(180deg, var(--paper), var(--cream));
  border-bottom: 2px dashed var(--line);
  padding: 40px 0 34px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.hero-illustration {
  width: 230px;
  margin-bottom: 6px;
}

.hero-illustration svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.hero-illustration .wave {
  opacity: 0;
  transform-origin: 90px 188px;
}

.hero-illustration.is-playing svg {
  animation: radio-bob 2.2s ease-in-out infinite;
}

.hero-illustration.is-playing .wave-1 { animation: wave-pulse 1.1s ease-in-out infinite; }
.hero-illustration.is-playing .wave-2 { animation: wave-pulse 1.1s ease-in-out infinite 0.2s; }
.hero-illustration.is-playing .wave-3 { animation: wave-pulse 1.1s ease-in-out infinite 0.35s; }

@keyframes wave-pulse {
  0%, 100% { opacity: 0; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes radio-bob {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-1.5deg); }
}

.play-toggle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f0c257, var(--mustard));
  border: 3px solid var(--rust-dark);
  box-shadow: 0 4px 0 var(--rust-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  padding: 0;
}

.play-toggle:hover { transform: translateY(-2px); }
.play-toggle:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 var(--rust-dark);
}

.play-toggle .icon-play {
  width: 0;
  height: 0;
  border-left: 20px solid var(--ink);
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  margin-left: 6px;
}

.play-toggle .icon-pause {
  display: none;
  gap: 6px;
}

.play-toggle .icon-pause span {
  width: 7px;
  height: 24px;
  background: var(--ink);
  border-radius: 2px;
  display: inline-block;
}

.play-toggle.is-playing .icon-play { display: none; }
.play-toggle.is-playing .icon-pause { display: flex; }

.hero-title {
  margin: 12px 0 0;
  font-family: 'Baloo 2', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--rust-dark);
}

.hero-status {
  margin: 2px 0 4px;
  font-size: 0.95rem;
  opacity: 0.7;
}

.hero-credit {
  font-size: 0.85rem;
  font-weight: 700;
}

.spotify-embed-hidden {
  position: fixed;
  top: -2000px;
  left: -2000px;
  width: 300px;
  height: 152px;
  opacity: 0;
  pointer-events: none;
}

/* Featured */
.featured {
  padding: 32px 0 12px;
}

.featured h2,
.catalogue h2 {
  font-size: 1.6rem;
  margin: 0 0 14px;
  color: var(--rust-dark);
}

.h2-sub {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.6;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.f-card {
  background: linear-gradient(160deg, var(--mustard), #d69420);
  border: 2px solid var(--rust-dark);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: transform 0.12s ease;
}

.f-card:hover { transform: translateY(-3px); }

.f-card .star { font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; opacity: 0.7; }
.f-card h3 { margin: 4px 0 6px; font-size: 1.25rem; }
.f-card p { margin: 0; font-size: 0.95rem; line-height: 1.35; }

/* Controls */
.catalogue { padding: 20px 0 60px; }

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 16px 0 10px;
  border-top: 2px dashed var(--line);
}

#search {
  flex: 1 1 240px;
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
}

#search:focus {
  outline: none;
  border-color: var(--rust);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 2px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 6px 14px;
  border-radius: 999px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.chip:hover { border-color: var(--rust); }

.chip.active {
  background: var(--rust);
  border-color: var(--rust-dark);
  color: var(--paper);
}

.count {
  font-size: 0.9rem;
  opacity: 0.65;
  margin: 8px 0 16px;
}

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

.card {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--ink);
}

.card p.card-tagline {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
  opacity: 0.85;
  flex-grow: 1;
}

.card .card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: rgba(31, 111, 107, 0.12);
  color: var(--teal);
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 700;
}

.visit {
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.credit {
  font-size: 0.78rem;
  opacity: 0.6;
}

.empty {
  text-align: center;
  padding: 40px 0;
  font-size: 1.05rem;
  opacity: 0.6;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(251, 244, 230, 0.8);
  padding: 22px 0 30px;
  font-size: 0.9rem;
  line-height: 1.5;
}

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

.footer-links { margin-top: 6px; }

@media (max-width: 560px) {
  .brand-name { font-size: 1.6rem; }
  .intro p { font-size: 1.05rem; }
}
