/* Shared brand rules. Change these only when the owner requests a new direction. */
:root {
  --section-space: 64px;
  --section-intro-gap: 50px;
  --section-heading-gap: 36px;
  --live-track-size: clamp(18px, 2vw, 26px);
  --live-artist-size: 13px;
}
.compact-spacing { --section-space: 64px; }
.content-section, .compact-spacing .content-section, .mailing-strip {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}
.section-intro { margin-bottom: var(--section-intro-gap); }
.home-news-heading, .home-releases-heading, .home-events-heading,
.archive-heading, .platform-discover h2 { margin-bottom: var(--section-heading-gap); }

#hero-title span:last-child,
.home-news-heading h2 span,
.home-events-heading h2 span,
.archive-heading h2 span,
.platform-discover h2 span,
.mailing-strip h2 span,
.culture-grid h2 span,
.p-head h1 span { color: var(--accent); }
#hero-title span:not(:last-child) { color: var(--text); }

/* Equal track panels: artwork, title, artist and label use the same scale. */
.hero-listening {
  /* Four equal artwork/copy columns, then a 16:9 screen of the same height. */
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.777778fr);
  align-items: start;
  gap: clamp(18px, 1.8vw, 28px);
  max-width: none;
}
.hero-now-panel, .hero-live-next {
  display: contents;
  min-width: 0;
}
.hero-live-current, .hero-live-controls, .hero-live-next {
  grid-column: auto;
  grid-row: auto;
}
.hero-live-next { padding: 0; border: 0; background: none; }
.hero-live-next img { width: 100%; height: auto; aspect-ratio: 1; }
.hero-live-copy, .hero-live-next > div { gap: 8px; }
.hero-live-copy .player-kicker, .hero-live-next span {
  margin: 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-live-copy strong, .hero-live-next strong {
  font-size: var(--live-track-size);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.03em;
}
.hero-live-copy > span:last-child, .hero-live-next small {
  font-size: var(--live-artist-size);
  line-height: 1.5;
  color: #bdb6af;
}
.hero-listening .hero-actions { width: 100%; }
.hero-listening-links a, .hero-listening-links button { border-bottom-color: var(--line); }
.hero-tv-panel { min-width: 0; }
.hero-tv-kicker { margin: 16px 0 8px; font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.hero-tv-title { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text); }
.hero-tv-fallback { position: absolute; inset: 0; display: grid; place-items: start center; padding-top: 18px; font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--text); background: var(--panel); }
.hero-tv-player .featured-video-play { width: 48px; height: 48px; }

/* Native YouTube framing: never zoom, crop or stretch the video. */
.featured-video-player { aspect-ratio: 16 / 9; border: 0; border-radius: 0; }
.featured-video-thumbnail {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.featured-video-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.tv-feature, .blog-feature { border: 0; border-radius: 0; background: transparent; }

/* Minimal links and controls, with orange reserved for accents and playback. */
.home-events-footer { display: flex; flex-wrap: wrap; gap: 20px 44px; align-items: center; margin-top: 30px; }
.home-events-footer .home-events-more { margin: 0; }
.home-events-footer a { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.home-events-footer a:hover, .home-events-footer a:focus-visible { border-color: var(--accent); }
.platform-discover h2 { line-height: 1.05; }
.discover-links { gap: clamp(12px, 2vw, 28px); }
.discover-links > a {
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 280px; padding: 22px; overflow: hidden; isolation: isolate;
  border: 0; background: #18120f;
}
.discover-links > a:before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #08090a16 20%, #08090ae8 100%); }
.discover-links > a img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(.8); transition: transform .35s ease, filter .35s ease; }
.discover-links > a:hover img, .discover-links > a:focus-visible img { transform: scale(1.04); filter: saturate(1); }
.discover-links > a span { color: #eee2d7; position: relative; }
.discover-links > a strong { position: relative; color: #fff; border-bottom: 1px solid #ffffff55; padding-bottom: 12px; line-height: 1.2; }
.discover-links > a:hover strong { border-color: var(--accent); }
.community-links .community-button, .site-community .community-button, .player-route .community-button {
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: none; justify-content: flex-start; padding-left: 0; padding-right: 0;
}
.community-links .community-button:hover { border-bottom-color: var(--accent); background: none; }
.release-play {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 0;
  margin-top: auto; border: 0; background: none; color: #fff;
  font-size: 12px; font-weight: 700; min-height: 46px;
}
.release-play:hover, .release-play:focus-visible { color: var(--accent); background: none; }
.release-play-icon { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--accent); color: #fff; }
.release-play-icon .play-symbol { border-top-width: 5px; border-bottom-width: 5px; border-left-width: 8px; margin-left: 2px; }
.release-player { width: 100%; margin-top: 14px; min-height: 80px; border: 0; background: transparent; }
.release-player[hidden] { display: none; }
.release-player iframe { display: block; width: 100%; height: 80px; border: 0; }
.release-unavailable { color: var(--muted); font-size: 11px; }
.release-credit { margin-top: 14px; }
.underlined-link, .quiet-link, .footer-links a, .tv-card > a, .dj-card .dj-link {
  border-bottom: 1px solid var(--line); text-decoration: none; padding-bottom: 6px;
}
.underlined-link:hover, .quiet-link:hover, .footer-links a:hover, .tv-card > a:hover, .dj-card .dj-link:hover { border-color: var(--accent); }
.popout-button, .popout-button:hover, .popout-button:focus-visible,
.article-end .article-action, .more-button {
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none;
}
.article-end .article-action { padding-left: 0; padding-right: 0; }
.popout-button:hover, .article-end .article-action:hover, .more-button:hover { border-bottom-color: var(--accent); }
.home-events-actions a, .menu-links a { border-bottom: 1px solid var(--line); }
.home-events-actions a:hover, .menu-links a:hover { border-color: var(--accent); }

@media (min-width: 701px) and (max-width: 1100px) {
  .hero-listening { grid-template-columns: minmax(0, 1fr) minmax(0, 1.777778fr); gap: 28px; }
  .hero-now-panel { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; gap: 28px; }
  .hero-listening .hero-actions { max-width: 280px; }
  .hero-live-next { display: flex; flex-direction: column; gap: 16px; }
}
@media (max-width: 700px) {
  :root { --section-space: 40px; --section-intro-gap: 36px; --section-heading-gap: 26px; --live-track-size: 17px; --live-artist-size: 11px; }
  .compact-spacing { --section-space: 40px; }
  .hero-listening { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-now-panel, .hero-live-next { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
  .hero-live-next { padding-top: 28px; border-top: 1px solid var(--line); }
  .discover-links > a { min-height: 220px; }
}

/* Decorative indices are never part of the public brand. */
.radio-history-list {list-style:none;}
.e-aside ol, .e-steps {list-style:none;}

/* Live controls use the same restrained disclosures on the homepage and Player. */
.hero-live-current { aspect-ratio: auto; overflow: visible; background: none; }
.hero-live-current > img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.hero-track-buy { margin-top: 8px; }
.player-disclosure { min-width: 0; border-bottom: 1px solid var(--line); }
.player-disclosure > summary, .history-buy > summary { cursor: pointer; list-style: none; font-size: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 12px 2px; }
.player-disclosure > summary::-webkit-details-marker, .history-buy > summary::-webkit-details-marker { display: none; }
.player-disclosure > summary::after, .history-buy > summary::after { content: ''; flex: 0 0 7px; height: 7px; border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(45deg); margin: -4px 4px 0 0; }
.player-disclosure[open] > summary::after, .history-buy[open] > summary::after { transform: rotate(225deg); margin-top: 4px; }
.player-disclosure > summary:hover, .history-buy > summary:hover { color: var(--accent); }
.track-store-links { display: flex; flex-direction: column; }
.track-store-links .store-link { margin: 0; min-height: 40px; padding: 10px 2px; border: 0; gap: 12px; font-size: 12px; justify-content: space-between; }
.track-store-links .store-link small { display: none; }
.track-store-links .ui-icon { width: 14px; height: 14px; color: var(--accent); }
.track-action-note { font-size: 11px; color: var(--muted); line-height: 1.6; margin: 8px 0; }
.track-tweet { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 12px; min-height: 44px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.track-tweet:hover { color: var(--accent); }
.x-mark { color: var(--accent); font-size: 18px; }
.track-tweet[hidden] { display: none !important; }
body:not(.player-route) #player-tweet { display: none; }
.player-route #player-tweet:not([hidden]) { display: flex; }
.hero-recent { position: relative; }
.hero-recent-panel { position: absolute; top: 100%; left: 0; z-index: 20; width: min(380px, calc(100vw - 48px)); max-height: 420px; overflow-y: auto; overscroll-behavior: contain; padding: 8px 18px; background: #111311; border: 1px solid var(--line); box-shadow: 0 14px 30px #0006; }
.just-played-list { padding: 0; margin: 0; list-style: none; }
.just-played-list li, .radio-tracks-panel .just-played-list li { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: start; gap: 4px 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.just-played-list li:last-child { border-bottom: 0; }
.recent-track-artwork { width: 52px; height: 52px; object-fit: cover; grid-column: 1; grid-row: 1 / span 2; background: #20221f; }
.just-played-track { min-width: 0; grid-column: 2; }
.just-played-track strong { display: block; font-size: 13px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
.just-played-track > span { display: block; color: var(--muted); font-size: 11px; line-height: 1.5; margin-top: 4px; }
.history-buy { min-width: 0; grid-column: 2; }
.history-buy > summary { justify-content: flex-start; padding: 6px 0; min-height: 32px; }
.hero-listening-links .track-store-links a { border: 0; min-height: 40px; }
.radio-tracks-panel .track-store-links .store-link span { color: inherit; margin: 0; font-size: 12px; }
@media (max-width: 700px) {
  .hero-recent-panel { left: auto; right: 0; }
  .player-disclosure > summary { font-size: 11px; }
}

/* Locked section rhythm: no individual section adds extra outside spacing. */
#main > .content-section, #main > .mailing-strip { margin-block: 0; }
.mailing-strip { align-items: start; }
.mailing-fields { display: grid; gap: 20px; }
.mailing-field { display: grid; gap: 8px; }
.mailing-field > label { font-size: 12px; color: var(--text); }
.mailing-field input:not([type=checkbox]) { width: 100%; min-height: 44px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 0; background: none; color: var(--text); font: inherit; }
.mailing-field input:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
.mailing-form .mailing-submit { margin-top: 22px; border: 0; border-bottom: 1px solid var(--accent); padding: 10px 0; background: none; color: var(--text); font: inherit; cursor: pointer; }
.mailing-form .mailing-submit:disabled { opacity: .55; cursor: wait; }
.mailing-form > .mailing-privacy { display: block; width: fit-content; margin-top: 12px; }
.mailing-field-error { margin: 4px 0 0; font-size: 12px; color: var(--accent); }
.mailing-status:empty { display: none; }

/* Match the menu to the surrounding navigation and keep each row easy to tap. */
.menu-dialog {
  width: min(26rem, 100vw);
  padding-inline: clamp(1.5rem, 4vw, 2.5rem);
}
.menu-links a {
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  font-weight: 500;
  letter-spacing: normal;
  line-height: 1.35;
  min-height: 2.75rem;
  padding-block: 0.625rem;
}
