:root {
  --bg: #0f0f12;
  --bg-alt: #17171c;
  --text: #f2f2f2;
  --text-muted: #a3a3ab;
  --accent: #ff5a5f;
  --spotify: #1DB954;
  --apple: #fc3c44;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-nav {
  background: var(--bg-alt);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.hero {
  background: var(--bg-alt);
  padding: 64px 0 48px;
}

.page-header {
  padding: 48px 0 8px;
}

.page-header h1 {
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-muted);
  max-width: 60ch;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
  background: #222;
}

.card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.card .btn {
  align-self: flex-start;
  margin-top: 4px;
  background: var(--accent);
}

/* Non-interactive badge for products that aren't purchasable yet.
   Deliberately not a .btn — it must not read as clickable. */
.tag-soon {
  align-self: flex-start;
  margin-top: 4px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.social-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.15s ease;
}

.social-list li a:hover {
  background: #1f1f26;
}

.social-list .handle {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.9rem;
}

.placeholder-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 24px;
}

.hero-inner {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}

.cover-art {
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.hero-text {
  flex: 1;
  min-width: 260px;
}

h1 {
  font-size: 2.5rem;
  margin: 0 0 12px;
}

.tagline {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 24px;
  max-width: 55ch;
}

.listen-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  transition: opacity 0.15s ease;
}

.btn:hover {
  opacity: 0.85;
}

.btn-spotify {
  background: var(--spotify);
}

.btn-apple {
  background: var(--apple);
}

main {
  padding: 56px 0;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

#about {
  margin-top: 56px;
  color: var(--text-muted);
}

.embed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.embed-frame {
  border-radius: var(--radius);
  border: none;
}

.embed-frame-light {
  background: #fff;
  min-height: 300px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

#tiktok-embed-container .btn {
  margin: 24px auto;
}

.episode-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.episode {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.episode-meta {
  margin-bottom: 6px;
}

.episode-date {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.episode h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.episode h3 a {
  color: inherit;
  text-decoration: none;
}

.episode h3 a:hover {
  text-decoration: underline;
}

.episode p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Music News ---------- */
.page-header .news-updated {
  font-size: 0.85rem;
  margin: 0;
}

.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.news-filters button {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.news-filters button:hover {
  color: var(--text);
}

.news-filters button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.news-source {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-left: 10px;
}

.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.news-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.news-empty {
  color: var(--text-muted);
  list-style: none;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 500px) {
  h1 {
    font-size: 2rem;
  }
  .hero-inner {
    text-align: center;
    justify-content: center;
  }
  .listen-buttons {
    justify-content: center;
  }
}

/* ---------- Desktop ----------
   Everything above is the mobile-first base — it's what phones and tablets
   get. These rules only apply on wide screens, so they can't change mobile. */
@media (min-width: 900px) {
  /* Nav, content, and footer widen together so their left edges line up. */
  .container {
    max-width: 1140px;
  }

  /* auto-fit, not auto-fill: at this width auto-fill reserves a 4th empty
     track and leaves three cards narrow and hugging the left edge. */
  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
  }

  .hero {
    padding: 88px 0 72px;
  }

  .hero-inner {
    gap: 56px;
  }

  .cover-art {
    width: 280px;
    height: 280px;
  }

  .hero h1 {
    font-size: 3.25rem;
  }

  .tagline {
    font-size: 1.15rem;
  }

  /* Home: episodes and About sit side by side instead of stacking, which
     also keeps episode text at a readable line length at this width. */
  .home-columns {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }

  .home-columns #about {
    margin-top: 0;
  }

  /* Socials: the three profile links become a row of tiles. Handle drops
     under the name — side by side, "@art.of.artists.podcast" can't fit a
     third of the row near the breakpoint and has no spaces to wrap at. */
  .social-list {
    flex-direction: row;
  }

  .social-list li {
    flex: 1;
  }

  .social-list li a {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
