@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('/assets/fonts/fredoka-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('/assets/fonts/nunito-latin.woff2') format('woff2');
}

:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-200: #bae6fd;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-800: #075985;
  --navy-900: #0f2942;
  --navy-950: #091c2e;
  --sun-400: #fbbf24;
  --sun-500: #f59e0b;
  --warm-50: #fffaf0;
  --berry-500: #e11d48;
  --ink: #102a43;
  --muted: #486581;
  --border: rgba(15, 41, 66, 0.11);
  --surface: #ffffff;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --shadow-sm: 0 4px 14px rgba(15, 41, 66, 0.06);
  --shadow-md: 0 14px 36px rgba(15, 41, 66, 0.10);
  --shadow-lg: 0 24px 56px rgba(7, 89, 133, 0.16);
  --font-display: "Fredoka", "Avenir Next Rounded", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", "Avenir Next", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--navy-900); }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  background:
    radial-gradient(circle at 8% 4%, rgba(251, 191, 36, 0.34) 0%, rgba(251, 191, 36, 0.08) 18%, transparent 38%),
    radial-gradient(circle at 92% 12%, rgba(56, 189, 248, 0.25) 0%, transparent 40%),
    linear-gradient(180deg, #dff3ff 0%, #f4fbff 32%, #fff9ef 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  background: var(--navy-900);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus { left: 12px; }

.container {
  width: min(100% - 32px, 1120px);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 14px 0;
  backdrop-filter: blur(14px);
  background: rgba(240, 249, 255, 0.82);
  border-bottom: 1px solid rgba(15, 41, 66, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-avatar {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(7, 89, 133, 0.18);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-nav a {
  text-decoration: none;
  font-weight: 800;
  font-size: 0.94rem;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: background 150ms ease, color 150ms ease;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  background: rgba(2, 132, 199, 0.11);
  color: var(--sky-800);
  outline: none;
}

.top-nav .nav-cta {
  background: var(--sky-600);
  color: #fff;
  box-shadow: 0 3px 0 var(--sky-800);
}

.top-nav .nav-cta:hover,
.top-nav .nav-cta:focus-visible {
  background: var(--sky-500);
  color: #fff;
}

main { flex: 1; padding: 28px 0 72px; }

/* Hero */
.hero-card {
  background: var(--surface);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: minmax(250px, 340px) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.hero-art-wrap {
  position: relative;
  padding: 8px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--sun-400), #fb923c, var(--sky-500));
  box-shadow: 0 18px 40px rgba(7, 89, 133, 0.22);
  transform: rotate(-1.5deg);
}

.hero-art {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 23px;
  border: 4px solid #fff;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: #fff3d6;
  color: #9a3412;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--navy-900);
}

.hero-tagline {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--sky-800);
}

.hero-bio {
  margin: 14px 0 24px;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 56ch;
}

.listen-heading {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.platform-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.platform-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--navy-900);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.94rem;
  border: 2px solid var(--border);
  box-shadow: 0 3px 0 rgba(15, 41, 66, 0.09);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.platform-btn:hover,
.platform-btn:focus-visible {
  transform: translateY(-2px);
  border-color: var(--platform-color, var(--sky-600));
  box-shadow: 0 5px 0 var(--platform-color, var(--sky-600));
  outline: none;
}

.platform-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 var(--platform-color, var(--sky-600));
}

.platform-dot {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--platform-color, var(--sky-600));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.platform-dot svg { width: 15px; height: 15px; fill: currentColor; }

/* Section headers */
.section-block { margin-top: 48px; }

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  color: var(--navy-900);
  letter-spacing: -0.02em;
}

.section-count {
  margin: 0;
  font-weight: 800;
  color: var(--muted);
  font-size: 0.94rem;
}

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.filter-pill {
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--border);
  background: #fff;
  color: var(--navy-900);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 140ms ease;
}

.filter-pill:hover,
.filter-pill:focus-visible {
  border-color: var(--sky-500);
  color: var(--sky-800);
  transform: translateY(-1px);
  outline: none;
}

.filter-pill.is-active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
  box-shadow: 0 3px 0 rgba(9, 28, 46, 0.35);
}

/* Song Cards Grid */
.song-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.song-card {
  background: var(--surface);
  border: 2px solid rgba(15, 41, 66, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.song-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(2, 132, 199, 0.3);
}

.song-card[hidden] { display: none; }

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--navy-900);
  overflow: hidden;
  text-decoration: none;
}

.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
}

.song-card:hover .card-thumb { transform: scale(1.04); }

.card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.badge-mix {
  background: rgba(15, 41, 66, 0.88);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
}

.badge-play {
  margin-left: auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--berry-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.28rem;
  line-height: 1.22;
  color: var(--navy-900);
}

.card-title a {
  text-decoration: none;
  color: inherit;
}

.card-title a:hover,
.card-title a:focus-visible {
  color: var(--sky-600);
  outline: none;
}

.card-summary {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--sky-100);
  color: var(--sky-800);
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease;
}

.tag-chip:hover,
.tag-chip:focus-visible {
  background: var(--sky-600);
  color: #fff;
  outline: none;
}

.card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 41, 66, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-cta {
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--sky-800);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-cta:hover,
.card-cta:focus-visible {
  color: var(--sky-600);
  text-decoration: underline;
  outline: none;
}

.mini-platforms {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mini-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--platform-color, var(--sky-600));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 140ms ease, filter 140ms ease;
}

.mini-icon:hover,
.mini-icon:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
  outline: 2px solid var(--navy-900);
  outline-offset: 1px;
}

.mini-icon svg { width: 14px; height: 14px; fill: currentColor; }

/* Song Detail Page */
.breadcrumb {
  margin-bottom: 18px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  color: var(--navy-900);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}

.back-link:hover,
.back-link:focus-visible {
  background: #fff;
  border-color: var(--sky-500);
  color: var(--sky-800);
  outline: none;
}

.song-hero {
  background: var(--surface);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: start;
}

.song-page-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.08;
  color: var(--navy-900);
}

/* Click-to-load Media Facade */
.player-shell {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-950);
  box-shadow: var(--shadow-md);
}

.video-facade {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  cursor: pointer;
  border: 0;
  padding: 0;
  background: var(--navy-950);
  display: block;
}

.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: transform 250ms ease, opacity 200ms ease;
}

.video-facade:hover img { transform: scale(1.03); opacity: 1; }

.play-cta {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--berry-500);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  border: 4px solid #fff;
  transition: transform 150ms ease;
}

.video-facade:hover .play-cta { transform: scale(1.08); }

.play-caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(9, 28, 46, 0.85);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

.embed-frame-wrap {
  width: 100%;
  overflow: hidden;
  background: var(--navy-950);
}

.embed-frame-wrap.ratio-video { aspect-ratio: 16 / 9; }
.embed-frame-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Version & Embed Tabs */
.panel-card {
  background: var(--sky-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.panel-label {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.version-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.version-tab {
  appearance: none;
  cursor: pointer;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--border);
  background: #fff;
  color: var(--navy-900);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 800;
  transition: all 140ms ease;
}

.version-tab.is-active {
  background: var(--sky-600);
  border-color: var(--sky-600);
  color: #fff;
}

.version-blurb {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.94rem;
}

.version-links {
  display: grid;
  gap: 10px;
}

.version-links .platform-btn {
  width: 100%;
  justify-content: flex-start;
}

.version-links .btn-arrow {
  margin-left: auto;
  color: var(--muted);
  font-size: 1.1rem;
}

.embed-preview-toggle {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preview-chip {
  appearance: none;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--sky-800);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 800;
}

.preview-chip:hover,
.preview-chip.is-active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
}

.inline-embed-slot {
  margin-top: 14px;
  border-radius: 14px;
  overflow: hidden;
  max-width: 100%;
}

.inline-embed-slot iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
  border-radius: 14px;
}

/* Story section */
.story-card {
  margin-top: 28px;
  background: var(--surface);
  border: 2px solid rgba(15, 41, 66, 0.08);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.story-card h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--navy-900);
}

.story-card p {
  margin: 0 0 14px;
  color: #334e68;
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 72ch;
}

.story-card p:last-child { margin-bottom: 0; }

/* Sing-along lyrics card */
.lyrics-card {
  margin-top: 24px;
  background: var(--warm-50);
  border: 2px solid rgba(245, 158, 11, 0.24);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}

.lyrics-card h2 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--navy-900);
}

.lyrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 32px;
}

.lyrics-stanza {
  margin: 0;
  color: #243b53;
  font-size: 1rem;
  line-height: 1.72;
  white-space: pre-line;
}

@media (max-width: 680px) {
  .lyrics-grid { grid-template-columns: 1fr; }
  .lyrics-card { padding: 22px; }
}

/* Crawlable all-versions list on multi-mix song pages */
.mixes-card {
  margin-top: 24px;
  background: var(--surface);
  border: 2px solid rgba(15, 41, 66, 0.08);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}

.mixes-card h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy-900);
}

.mix-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.mix-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--sky-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.mix-name {
  font-family: var(--font-display);
  font-size: 1.06rem;
  color: var(--navy-900);
}

.mix-blurb {
  margin: 2px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

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

.mix-links a {
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--sky-800);
  border: 1px solid var(--border);
}

.mix-links a:hover,
.mix-links a:focus-visible {
  background: var(--sky-600);
  border-color: var(--sky-600);
  color: #fff;
  outline: none;
}

/* Tag Archive Header */
.archive-banner {
  background: var(--surface);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
}

.archive-banner h1 {
  margin: 6px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  color: var(--navy-900);
}

.archive-banner p {
  margin: 0;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--navy-900);
  color: #dbeafe;
  padding: 40px 0 32px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fff;
  margin: 0 0 8px;
}

.footer-copy {
  margin: 0;
  color: #bfdbfe;
  font-size: 0.93rem;
  max-width: 38ch;
}

.footer-heading {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sun-400);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-links a {
  color: #e0f2fe;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--sun-400);
  text-decoration: underline;
  outline: none;
}

.footer-bottom {
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.85rem;
  color: #93c5fd;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 26px;
  }
  .hero-art-wrap { max-width: 280px; margin-inline: auto; }
  .hero-bio { margin-inline: auto; }
  .platform-grid { justify-content: center; }
  .song-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .song-hero { grid-template-columns: 1fr; padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .song-grid { grid-template-columns: 1fr; }
  .top-nav a:not(.nav-cta) { display: none; }
  .story-card { padding: 22px; }
}
