@import url('/assets/home-choice-compact.css');
@import url('/assets/home-hero-latest.css');
@import url('/assets/home-stage-cinematic.css');
@import url('/assets/home-stage-image-v2.css');

/* Homepage-only responsive hardening for mobile navigation and image reflow. */
body:has(.hero-copy) .brand img {
  height: auto;
}

/* Preserve the About artwork's intrinsic aspect ratio. The HTML width/height
   attributes are only layout hints and must not stretch the source image. */
.home-about img {
  width: 100%;
  height: auto;
}

.hero-card,
.hero-latest,
.hero-media,
.mix-grid > *,
.mix-card,
.mix-card .media {
  min-width: 0;
}

.hero-media,
.mix-card .media {
  position: relative;
  width: 100%;
}

.hero-media img,
.mix-card .media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/* Listen player: author styles must never override the HTML hidden state. */
.listen-page .listen-player-placeholder[hidden],
.listen-page #listen-player[hidden] {
  display: none !important;
}

/* Keep every Latest Five card the same height. */
.listen-page .listen-latest-card {
  display: flex;
}

.listen-page .listen-card-action {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  height: 100%;
}

.listen-page .listen-card-copy {
  flex: 1 1 auto;
}

/* iPad/tablet landscape still has enough room for all five latest mixes. */
@media (min-width: 801px) and (max-width: 1100px) {
  .listen-page .listen-latest-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
  }

  .listen-page .listen-card-copy {
    gap: 5px;
    padding: 10px;
  }

  .listen-page .listen-card-copy strong {
    font-size: .84rem;
    line-height: 1.2;
  }

  .listen-page .listen-date {
    font-size: .72rem;
  }

  .listen-page .listen-card-chips {
    gap: 4px;
  }

  .listen-page .listen-chip {
    padding: 3px 5px;
    font-size: .62rem;
  }

  .listen-page .listen-play-badge {
    right: 8px;
    bottom: 8px;
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 900px) {
  .nav {
    gap: 10px;
  }

  .brand {
    flex: 0 0 auto;
  }

  .brand img {
    width: 104px;
    height: auto;
  }

  .nav-links {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 3px;
  }

  .nav-links a {
    display: none;
    padding: 7px 8px;
    border-radius: 999px;
    font-size: .74rem;
    white-space: nowrap;
  }

  .nav-links a:nth-child(-n+3) {
    display: inline-flex;
  }
}

@media (max-width: 360px) {
  .brand img {
    width: 84px;
  }

  .nav-links a:first-child {
    display: none;
  }

  .nav-links a {
    padding: 6px;
    font-size: .7rem;
  }
}
