/* === Design tokens === */
:root {
  --yellow: #fde400;
  --bg: #f6f6f6;
  --text: #2f2f2f;
  --black: #0e0e0e;
  --muted: #686868;
  --player-reserved-height: 124px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, Arial, sans-serif;
  padding-bottom: var(--player-reserved-height, 96px);
}
h1, h2, h3, .label, .brand, .btn {
  font-family: "Space Grotesk", Arial, sans-serif;
  letter-spacing: -0.02em;
}

/* === Topbar === */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 246, 246, 0.8);
  backdrop-filter: blur(18px);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  font-weight: 800;
  font-size: 28px;
  text-transform: uppercase;
}

/* === Hero === */
.hero {
  min-height: 70vh;
  display: grid;
  align-content: center;
  padding: 28px 20px 64px;
  position: relative;
  overflow: hidden;
  background: var(--yellow);
}
.hero h1 {
  margin: 0;
  font-size: clamp(56px, 14vw, 180px);
  line-height: 0.88;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--black);
}
.hero p {
  max-width: 720px;
  font-size: clamp(18px, 2.7vw, 30px);
  margin: 28px 0;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  padding: 14px 18px;
  text-transform: uppercase;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  color: var(--black);
  background: var(--bg);
  font-size: 13px;
}
.btn.dark {
  background: var(--black);
  color: var(--bg);
}

/* === Dark sections === */
.section-dark {
  background: var(--black);
  color: #fff;
  padding: 72px 20px;
}
.section-wrap {
  max-width: 1120px;
  margin: 0 auto;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(34px, 6vw, 68px);
  text-transform: uppercase;
  font-weight: 800;
  line-height: 0.95;
}

/* === Mix grid (home) === */
.mix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 56px;
}
.mix-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}
.mix-art {
  background: #161616;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.mix-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
}
.mix-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.mix-meta h3 {
  margin: 0;
  font-size: clamp(36px, 5vw, 62px);
  text-transform: uppercase;
  line-height: 0.95;
  color: var(--yellow);
}
.mix-duration {
  color: #d7d7d7;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 20px;
  font-weight: 500;
}
.mix-desc {
  color: #a8a8a8;
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}
.mix-card-link {
  text-decoration: none;
  color: inherit;
}
.mix-load-error {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(253, 228, 0, 0.5);
  color: var(--yellow);
  font-family: "Space Grotesk", Arial, sans-serif;
  text-transform: uppercase;
}

/* === Mix detail (SPA shell on index + standalone mix pages) === */
.mix-page-shell {
  background: var(--black);
  color: var(--bg);
  padding: 28px 20px 48px;
}
.mix-page-shell[hidden] { display: none; }
.mix-page-body {
  background: var(--black);
  color: var(--bg);
}
.mix-page-body .topbar {
  color: var(--text);
}

.mix-page-shell .wrap,
.mix-page-body .wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}
.mix-page-shell .back,
.mix-page-body .back {
  color: var(--yellow);
  text-decoration: none;
  font-family: "Space Grotesk", Arial, sans-serif;
  text-transform: uppercase;
}
.mix-page-shell h1,
.mix-page-body h1 {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: clamp(42px, 10vw, 112px);
  margin: 20px 0 8px;
  text-transform: uppercase;
}
.mix-page-shell .meta,
.mix-page-body .meta {
  color: #cfcfcf;
  font-family: "Space Grotesk", Arial, sans-serif;
  margin-bottom: 24px;
}
.mix-page-shell .art,
.mix-page-body .art {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
  margin-bottom: 18px;
  filter: grayscale(100%) contrast(1.1);
}
.mix-page-shell p,
.mix-page-body p {
  color: #b5b5b5;
  font-size: 20px;
  line-height: 1.5;
}
.mix-page-shell audio,
.mix-page-body audio {
  width: 100%;
  margin-top: 8px;
}

/* === Mix page navigation (injected by app.js) === */
.mix-nav {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(253, 228, 0, 0.25);
}
.mix-nav-arrows {
  display: flex;
  gap: 14px;
  align-items: center;
  font-family: "Space Grotesk", Arial, sans-serif;
  text-transform: uppercase;
}
.mix-nav-link {
  color: var(--yellow);
  text-decoration: none;
}
.mix-nav-disabled {
  opacity: 0.45;
}
.mix-nav-sep {
  opacity: 0.45;
}
.mix-nav-canonical {
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.8;
}
.mix-nav-canonical strong {
  font-family: "Space Grotesk", Arial, sans-serif;
  text-transform: uppercase;
}
.mix-nav-canonical a {
  color: var(--yellow);
  text-decoration: none;
}
.mix-nav-pages {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
}
.mix-nav-pages a {
  color: var(--yellow);
  text-decoration: none;
}
.mix-nav-pages .active {
  opacity: 0.8;
}

/* === Feed / footer strips === */
audio {
  width: 100%;
  height: 34px;
  filter: grayscale(1) contrast(1.1);
}
.feed-strip {
  padding: 44px 20px;
  background: #ececec;
  color: var(--black);
}
.feed-link {
  display: inline-block;
  text-decoration: none;
  color: var(--black);
  font-weight: 800;
  text-transform: uppercase;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 2px;
}
.footer-dark {
  background: var(--black);
  color: var(--bg);
}
.footer-dark .feed-link {
  color: var(--bg);
  border-bottom-color: var(--yellow);
}
.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* === Play button (shared by grid cards + mix pages) === */
.play-mix-btn {
  width: max-content;
  border: 1px solid rgba(253, 228, 0, 0.5);
  color: #fde400;
  background: transparent;
  padding: 8px 12px;
  text-transform: uppercase;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.play-mix-btn:hover { border-color: #fde400; }

/* === Global player === */
.player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #f7f7f7;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  padding: 14px 20px 18px;
  z-index: 30;
}
.player-row {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  font-family: "Space Grotesk", Arial, sans-serif;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
}
.player .player-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.player .player-btn {
  width: 38px;
  height: 38px;
  border: 1px solid #1b1b1b;
  background: #f7f7f7;
  color: #161616;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  font-size: 16px;
  line-height: 1;
}
.player .player-btn.player-play {
  width: 84px;
  height: 84px;
  background: #0f0f0f;
  color: #fff;
  border-color: #0f0f0f;
  font-size: 36px;
  margin-top: -6px;
}
.player .player-main {
  min-width: 0;
  flex: 1;
  padding-top: 8px;
}
.player .player-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.player .player-title {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #141414;
  font-size: clamp(13px, 1.75vw, 24px);
  letter-spacing: 0.05em;
}
.player .player-time {
  color: #7d7d7d;
  font-size: clamp(12px, 1.5vw, 22px);
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
.player .player-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.player .player-volume {
  display: flex;
  align-items: center;
  gap: 8px;
}
.player .player-volume-btn {
  border: 0;
  background: transparent;
  color: #1b1b1b;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.player .player-volume-slider {
  width: 72px;
  height: 4px;
  margin: 0;
  accent-color: #0f0f0f;
  cursor: pointer;
}
.player .player-progress {
  width: 100%;
  margin-top: 10px;
  height: 8px;
  border: 0;
  background: #d8d8d8;
  padding: 0;
  position: relative;
  cursor: pointer;
  display: block;
  touch-action: none;
}
.player .player-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: #fde400;
  pointer-events: none;
}
.player .player-audio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* === Responsive === */
@media (max-width: 820px) {
  :root { --player-reserved-height: 152px; }
  .player .player-btn.player-play {
    width: 68px;
    height: 68px;
    font-size: 28px;
    margin-top: 0;
  }
  .player .player-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}
@media (max-width: 640px) {
  .player .player-volume { display: none; }
}
@media (max-width: 480px) {
  :root { --player-reserved-height: 172px; }
  .player { padding: 12px 14px 16px; }
  .player .player-row { gap: 10px; }
  .player .player-btn {
    width: 34px;
    height: 34px;
  }
  .player .player-btn.player-play {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }
}
