/* AP Radio · single canonical frontend stylesheet · v0.4.3 */

:root {
  color-scheme: dark;
  --bg: #0d1017;
  --panel: #171c28;
  --line: #323a4b;
  --text: #edf0f7;
  --muted: #9ca5b8;
  --accent: #9386ff;
  --accent-rgb: 147,134,255;
}
* {
  box-sizing: border-box;
}
html,body {
  min-height: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}
body:before {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
  background: radial-gradient(ellipse at 50% -10%,#24244055,transparent 52%),linear-gradient(130deg,#0d1017,#10121b);
  z-index: -1;
}
button,input {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
.topbar,.footer {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px,3.5vw,64px);
  padding-left: clamp(16px,2.8vw,52px);
  padding-right: clamp(16px,2.8vw,52px);
}
.topbar {
  height: auto;
  border-bottom: 0;
  gap: 24px;
  min-height: 62px;
  padding-top: 12px;
  padding-bottom: 12px;
  position: relative;
  top: auto;
  z-index: auto;
  background: transparent;
  backdrop-filter: none;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  letter-spacing: 1.5px;
  font-weight: 550;
}
.logo b {
  font-weight: 800;
}
.logo-bars {
  height: 21px;
  display: flex;
  align-items: center;
  gap: 2px;
}
.logo-bars b {
  display: block;
  height: 9px;
  width: 3px;
  border-radius: 3px;
  background: var(--accent);
}
.logo-bars b:nth-child(2),.logo-bars b:nth-child(4) {
  height: 17px;
}
.logo-bars b:nth-child(3) {
  height: 21px;
}
.onair {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 1.2px;
  font-weight: 750;
  color: #a9b2c0;
}
.onair i,.playing-dot,.art-badge i {
  width: 7px;
  height: 7px;
  background: #727f92;
  border-radius: 50%;
}
.onair.live i,.art-badge i,.playing-dot {
  background: #7be4ac;
  box-shadow: 0 0 0 4px #7be4ac1c;
}
.stage {
  flex: 1;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 24px clamp(16px,2.8vw,52px) 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
/* Canonical desktop width: home and all subpages use the same layout. */
@media (min-width:1051px){
  .stage,.topbar,.footer{width:80%;max-width:1600px;padding-left:0;padding-right:0}
}

.section-tag {
  font-size: 9px;
  letter-spacing: 2.1px;
  font-weight: 800;
  color: var(--accent);
}
h1 {
  font-size: clamp(27px,3.2vw,51px);
  letter-spacing: -.05em;
  line-height: 1.09;
  margin: 10px 0 8px;
  font-weight: 760;
}
h1 em {
  font-style: normal;
  color: var(--accent);
}


.radio-card {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(185px,25%) minmax(0,1fr);
  gap: clamp(16px,2.4vw,36px);
  background: linear-gradient(130deg,#1a1e2c,#151923);
  border: 1px solid #353d4f;
  border-radius: 17px;
  padding: clamp(15px,2.25vw,30px);
  box-shadow: 0 22px 75px #05070e80;
  order: 0;
}
.radio-card.playing {
  border-color: #776daa88;
}
.artwork {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 10px;
  overflow: hidden;
  max-height: 230px;
  align-self: center;
  background: #29263f;
}
.artwork img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.art-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border: 1px solid #ffffff25;
  border-radius: 5px;
  background: #10121ecc;
  padding: 6px 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
}
.radio-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.playing-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 1.6px;
  font-weight: 800;
  color: var(--accent);
  flex-wrap: wrap;
}
.station-id {
  margin-left: auto;
  color: #788197;
  font-size: 9px;
  white-space: nowrap;
}
.song h2 {
  font-size: clamp(21px,2.2vw,30px);
  line-height: 1.1;
  letter-spacing: -.038em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 5px 0;
}
.song-artist {
  color: #d2d8e3;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.song-album {
  color: #818a9e;
  font-size: 11px;
  margin: 4px 0 0;
  min-height: 12px;
}
.visualizer-wrap {
  position: relative;
  height: 43px;
  border: 1px solid #ffffff12;
  background: #0e111a88;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.visualizer-wrap.off {
  display: none;
}
.visualizer-wrap canvas {
  width: 100%;
  height: 39px;
  display: block;
}
.transport {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 46px;
  padding-top: 2px;
}
.play {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 0;
  flex: none;
  background: var(--accent);
  color: #121425;
  display: grid;
  place-items: center;
  transition: transform .2s,box-shadow .2s;
}
.play:hover {
  transform: scale(1.045);
  box-shadow: 0 0 0 5px #9386ff20;
}
.play:focus-visible,.vote:focus-visible,input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
/* Compact track timing (estimated from Icecast metadata, not a seek bar). */
.track-clock {display:flex;flex-direction:column;gap:6px;min-width:110px;max-width:150px;font-variant-numeric:tabular-nums;flex:0 1 140px;color:#b7bfd0;font-size:10px;letter-spacing:.2px}
.track-clock[hidden] {display:none}
.track-clock-rail {display:block;width:100%;height:3px;background:#364055;border-radius:20px;overflow:hidden}
.track-clock-rail>span {display:block;height:100%;width:0;background:var(--accent);border-radius:20px;transition:width 1s linear}
/* Soft section surfaces, keeping the hero minimal. */
.news-block,.content-page {border:1px solid #293246;background:rgba(22,28,40,.54);border-radius:14px;padding:clamp(16px,2vw,30px)}
@media (max-width:600px){.track-clock {min-width:100px;max-width:130px;flex:0 1 112px}.news-block,.content-page {padding:16px}}
.play-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.play-meta strong {
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 1px;
}
.play-meta small {
  font-size: 10px;
  color: var(--muted);
}
.likes {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.vote {
  border: 1px solid #3c4454;
  border-radius: 7px;
  min-width: 51px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #171d29;
  color: #a8b2c5;
  font-size: 11px;
}
.vote svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.vote.selected {
  color: var(--accent);
  border-color: var(--accent);
  background: #9386ff19;
}
.vote:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.volume {
  margin-left: 8px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #929db1;
}
.volume svg {
  width: 16px;
  height: 16px;
}
.volume input {
  width: clamp(65px,8vw,115px);
  accent-color: var(--accent);
}
.ticker {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 7px;
  background: #0e121b;
  border: 1px solid #ffffff13;
  overflow: hidden;
  margin-top: 4px;
}
.ticker.off {
  display: none;
}
.ticker-tag {
  flex: none;
  font-size: 9px;
  letter-spacing: 1px;
  background: #744f5a3c;
  color: #f0b0b0;
  border-radius: 3px;
  padding: 4px 6px;
  font-weight: 800;
}
.ticker-mask {
  overflow: hidden;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}
.ticker-scroll {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 25s linear infinite;
  font-size: 10px;
  letter-spacing: 1.1px;
  font-weight: 650;
  color: #b6c0d2;
  animation-duration: 34s;
}
.ticker-scroll>span {
  padding-right: 0;
  flex: none;
  display: inline-flex;
  gap: 0;
  white-space: nowrap;
}
.ticker:hover .ticker-scroll {
  animation-play-state: paused;
}
.stream-error {
  height: 20px;
  margin: 10px 0 0;
  color: #ffbbbb;
  font-size: 11px;
  order: 2;
}
.footer {
  min-height: 54px;
  border-top: 1px solid #ffffff12;
  font-size: 10px;
  color: #98a2b4;
  margin-top: 25px;
}
.footer a {
  color: #b7bfd0;
}
.footer a:hover {
  color: #fff;
}
.radio-card.art-right {
  grid-template-columns: minmax(0,1fr) minmax(185px,25%);
}
.art-right .artwork {
  grid-column: 2;
  grid-row: 1;
}
.art-right .radio-main {
  grid-column: 1;
  grid-row: 1;
}
.radio-card.title-small .song h2 {
  font-size: clamp(18px,1.9vw,25px);
}
.radio-card.title-large .song h2 {
  font-size: clamp(25px,2.9vw,37px);
}
.song-album.hide {
  display: none;
}
.likes.off {
  display: none;
}
.site-nav {
  display: flex;
  gap: clamp(10px,1.6vw,28px);
  align-items: center;
  margin-left: auto;
}
.site-nav a {
  font-size: 12px;
  color: #b9bfcb;
  white-space: nowrap;
  transition: color .2s;
}
.site-nav a.nav-desktop-hidden{display:none}
.site-nav a.active,.site-nav a:hover {
  color: #fff;
}
.header-tools {
  display: flex;
  gap: 3px;
  align-items: center;
  border: 1px solid #414958;
  border-radius: 7px;
  padding: 2px;
}
.lang-btn {
  background: none;
  border: 0;
  color: #9da6b7;
  font-size: 10px;
  padding: 5px 7px;
  border-radius: 5px;
}
.lang-btn.active {
  background: var(--accent);
  color: #11141d;
  font-weight: 800;
}

.radio-card,.radio-card.art-right {
  grid-template-columns: minmax(160px,230px) minmax(0,1fr);
  max-width: none;
  padding: clamp(13px,1.5vw,23px);
  gap: clamp(14px,2vw,28px);
  box-shadow: 0 12px 38px #05070e3d;
}
.news-block,.content-page {
  margin-top: 30px;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}
.section-head h2 {
  font-size: clamp(18px,1.7vw,23px);
  font-weight: 720;
  margin: 5px 0 0;
  letter-spacing: -.035em;
}
.news-nav {
  display: flex;
  gap: 7px;
}
.news-nav button {
  width: 31px;
  height: 31px;
  border-radius: 7px;
  border: 1px solid #343e53;
  background: #1a2030;
  color: #d7dfec;
}
.news-nav button:hover {
  border-color: var(--accent);
}
.news-list {
  display: grid;
  grid-auto-columns: minmax(235px,calc((100% - 3*15px)/4));
  grid-auto-flow: column;
  gap: 15px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding: 2px 0 12px;
}
.news-list.grid-mode {
  grid-auto-flow: row;
  grid-template-columns: repeat(var(--news-cols,4),minmax(0,1fr));
  grid-auto-columns: auto;
  overflow: visible;
}
.news-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #30394a;
  background: #171d29;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  color: inherit;
  scroll-snap-align: start;
  padding: 0;
  transition: transform .2s,border-color .2s;
  min-height: 248px;
}
.news-card:hover {
  transform: translateY(-2px);
  border-color: #5a6583;
}
.news-card img {
  width: 100%;
  height: 135px;
  object-fit: cover;
  display: block;
  background: #262c3d;
}
.news-copy {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 13px;
  flex: 1;
}
.news-copy strong {
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: -.01em;
}
.news-copy span {
  color: #9ca5b8;
  font-size: 11px;
  line-height: 1.55;
}
.news-empty {
  color: var(--muted);
}
.content-page {
  max-width: none;
  margin-bottom: 36px;
  order: 5;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.page-text {
  font-size: 13px;
  color: #c1c8d5;
  line-height: 1.9;
}
.page-text h2,.page-text h3 {
  color: #edf0f7;
}
.page-text a:not(.cta-button):not(.article-back) {
  color: var(--accent);
  text-decoration: underline;
}
body.page-mode .about-cta,body.page-mode .radio-card,body.page-mode .below,body.page-mode .stream-error {
  display: none;
}
body.page-mode .news-block {
  margin-top: 30px;
}
body.page-mode:not(.articles-mode) .news-block {
  display: none;
}
body.page-mode.articles-mode .news-list {
  grid-auto-flow: row;
  grid-template-columns: repeat(var(--news-cols,4),minmax(0,1fr));
  overflow: visible;
  grid-auto-columns: auto;
}
body.page-mode.articles-mode #content-page {
  display: none;
}
/* Articles directory uses the same subpage header as Events / About / Contact. */
body.page-mode.articles-mode .news-block .section-head{justify-content:center;text-align:center;margin-bottom:24px}
body.page-mode.articles-mode .news-block .section-head h2{font-size:clamp(21px,2.4vw,33px);line-height:1.2}
body.page-mode.articles-mode .news-nav{display:none}
.article-body {
  font-size: 14px;
  line-height: 1.85;
  max-width: 850px;
  color: #d0d7e4;
}
.article-body img {
  max-width: 100%;
  max-height: 370px;
  object-fit: cover;
  border-radius: 10px;
  margin: 8px 0 18px;
}
.article-back {
  padding: 7px 11px;
  margin: 0 0 12px;
  background: #1a2131;
  border: 1px solid #364055;
  color: #eee;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  text-decoration: none;
}
.visualizer-wrap.native-audio {
  position: relative;
  overflow: hidden;
}
.visualizer-wrap.native-audio canvas {
  opacity: 0;
}
.visualizer-wrap.native-audio:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  opacity: .32;
  pointer-events: none;
  background: repeating-linear-gradient(90deg,var(--accent) 0 3px,transparent 3px 9px);
  mask-image: linear-gradient(0deg,transparent 15%,#000 16%,transparent 93%);
  animation: apradio-native-wave 2.2s ease-in-out infinite alternate;
}
.news-block {
  order: 4;
}
.playing-tag #now-playing-kicker {
  white-space: nowrap;
}
.up-next {
  margin-top: 8px;
  font-size: 11px;
  color: #aeb9cc;
  line-height: 1.5;
}
.mini-player {
  display: none;
  position: relative;
  inset: auto;
  padding: 8px clamp(16px,2.8vw,52px);
  align-items: center;
  gap: 12px;
  background: #101520;
  border-bottom: 0;
  min-width: 0;
  width: 100%;
  min-height: 56px;
  border-top: 1px solid #46506a;
}
body.has-mini .mini-player {
  display: flex;
}
.mini-player img {
  width: 39px;
  height: 39px;
  object-fit: cover;
  border-radius: 6px;
  flex: none;
}
.mini-copy {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
}
.mini-copy span {
  font-size: 8px;
  letter-spacing: 1.2px;
  color: var(--accent);
  font-weight: 800;
}
.mini-copy strong {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-copy small {
  font-size: 9px;
  color: #a7b0c1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#mini-play {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #101425;
  border: 0;
  border-radius: 50%;
  font-size: 16px;
  flex: none;
  font-weight: 800;
}
.mini-volume {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #9aa6ba;
}
.mini-volume input {
  width: 95px;
  accent-color: var(--accent);
}
.ticker-message {
  display: inline-flex;
  align-items: center;
  margin-right: 75px;
  padding-right: 75px;
  position: relative;
  font-size: 10px;
  letter-spacing: 1.05px;
  line-height: 1.5;
}
.ticker-message::after {
  content: "✦";
  position: absolute;
  right: 65px;
  color: var(--accent);
  opacity: .55;
}
.news-copy .read-more {
  margin-top: auto;
  color: var(--accent);
  font-weight: 750;
  font-size: 11px;
}
.news-copy>span:not(.read-more) {
  min-height: 50px;
}
.content-page .section-head {
  justify-content: center;
  text-align: center;
  margin-bottom: 24px;
}
.content-page .section-head h2 {
  font-size: clamp(21px,2.4vw,33px);
  line-height: 1.2;
}
.page-text,.article-body {
  margin: 0 auto;
  width: 100%;
  max-width: none;
}
.article-prose {
  max-width: min(100%,960px);
  margin: 25px auto 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.article-prose>p:first-child {
  margin-top: 0;
}
.article-prose p {
  margin: 0 0 17px;
}
.article-prose h2 {
  font-size: 22px;
  margin-top: 32px;
}
.article-hero-image {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  max-height: none;
  object-fit: cover;
  border-radius: 12px;
  margin: 14px auto 26px;
}
.contact-unavailable {
  max-width: 720px;
  padding: 18px;
  border-radius: 9px;
  border: 1px solid #373e50;
  margin: 25px auto;
  background: #171c28;
  color: #aab4c7;
  text-align: center;
}
.contact-form {
  max-width: 730px;
  margin: 25px auto;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 15px;
}
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  color: #aeb8c8;
}
.contact-field input,.contact-field select,.contact-field textarea {
  background: #151a26;
  color: var(--text);
  border: 1px solid #414b5c;
  padding: 11px 13px;
  border-radius: 8px;
  max-width: 100%;
}
.contact-field:has(textarea),.contact-form .cf-turnstile,.contact-send,.contact-feedback {
  grid-column: 1/-1;
}
.contact-send {
  width: max-content;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #111525;
  padding: 11px 19px;
  font-weight: 700;
}
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  background: rgba(14,17,25,.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #30384b;
}
html {
  scroll-padding-top: 122px;
}

@keyframes marquee{to{transform:translateX(-50%)}}

@keyframes apradio-native-wave{from{transform:scaleY(.25)}to{transform:scaleY(.9)}}

@media (max-width:1120px) {
  .site-nav {
    gap: 11px;
  }
  .site-nav a {
    font-size: 10px;
  }
  .topbar {
    gap: 12px;
  }
  .news-list.grid-mode {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
}

@media (max-width:770px) {


  .stage {
    padding: 20px 14px 18px;
  }
  .topbar,.footer {
    padding-left: 14px;
    padding-right: 14px;
  }
  .radio-card,.radio-card.art-right {
    grid-template-columns: 110px minmax(0,1fr);
    padding: 12px;
    gap: 12px;
  }
  .artwork {
    max-height: 110px;
  }
  .news-list {
    grid-auto-columns: 72%;
  }
  .news-list.grid-mode,body.page-mode.articles-mode .news-list {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .radio-main {
    gap: 7px;
  }
}

@media (max-width:760px) {
  .mini-player {
    padding: 7px 12px;
    gap: 8px;
  }
  .mini-player img {
    width: 34px;
    height: 34px;
  }
  .mini-volume {
    display: none;
  }
  .mini-copy small {
    font-size: 8px;
  }

}

@media (max-width:730px) {

  .stage {
    padding-top: 20px;
  }

  .radio-card,.radio-card.art-right {
    grid-template-columns: 118px minmax(0,1fr);
    padding: 12px;
    gap: 12px;
  }
  .artwork {
    align-self: start;
    max-height: 118px;
  }
  .art-right .artwork {
    grid-column: 1;
    grid-row: 1;
  }
  .art-right .radio-main {
    grid-column: 2;
    grid-row: 1;
  }
  .radio-main {
    gap: 9px;
  }
  .playing-tag {
    font-size: 8px;
    letter-spacing: .8px;
  }
  .station-id {
    display: none;
  }
  .song h2 {
    font-size: 19px;
    margin: 4px 0;
  }
  .song-artist {
    font-size: 11px;
  }
  .song-album {
    font-size: 10px;
  }
  .visualizer-wrap {
    height: 36px;
  }
  .visualizer-wrap canvas {
    height: 35px;
  }
  .transport {
    flex-wrap: wrap;
  }
  .play {
    width: 38px;
    height: 38px;
  }
  .play-meta strong {
    font-size: 10px;
  }
  .volume {
    margin-left: auto;
  }
}

@media (max-width:600px) {
  .ticker-message {
    margin-right: 40px;
    padding-right: 40px;
  }
  .ticker-message::after {
    right: 32px;
  }
  .contact-form {
    grid-template-columns: 1fr;
  }
  .content-page {
    padding: 16px;
  }
  .news-card {
    min-height: 210px;
  }
}

@media (max-width:580px) {
  .mini-copy small {
    display: none;
  }
}

@media (max-width:490px) {
  .radio-card,.radio-card.art-right {
    grid-template-columns: 95px minmax(0,1fr);
  }
  .artwork {
    max-height: 95px;
  }

  .news-list.grid-mode,body.page-mode.articles-mode .news-list {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 9px;
  }
  .news-card img {
    height: 100px;
  }
  .news-copy {
    padding: 9px;
  }
  .news-copy strong {
    font-size: 11px;
  }
  .news-list {
    grid-auto-columns: 83%;
  }


  .volume {
    width: 120px;
  }
}

@media (max-width:480px) {
  .radio-card,.radio-card.art-right {
    grid-template-columns: 96px minmax(0,1fr);
  }
  .artwork {
    max-height: 96px;
  }

  .song-artist {
    white-space: normal;
    max-height: 2.8em;
  }
  .likes {
    margin-left: auto;
  }
  .volume {
    margin: 5px 0 0 auto;
  }
.footer {
    padding-top: 12px;
    padding-bottom: 12px;
  }

}

@media (prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation-duration: 0.001s;
    transition: none;
  }
  .ticker-scroll {
    animation: none;
  }
  .visualizer-wrap.native-audio:after {
    animation: none;
  }
}

/* AP Radio 0.4.5 — single hero CTA and responsive primary navigation */
.about-cta {
  order: 1;
  display: grid;
  grid-template-columns: minmax(0,1.5fr) minmax(190px,.5fr);
  align-items: center;
  gap: clamp(18px,3vw,44px);
  padding: clamp(22px,3.1vw,45px);
  margin: 18px 0 12px;
  background: linear-gradient(120deg,rgba(33,39,58,.94),rgba(24,28,43,.88));
  border: 1px solid #364059;
  border-radius: 16px;
  overflow: hidden;
}
.about-cta[hidden]{display:none}
.about-cta-content{max-width:none;min-width:0}
.about-cta h1{font-size:clamp(23px,2.45vw,37px);line-height:1.12;letter-spacing:-.045em;margin:10px 0}
.about-cta p{font-size:clamp(12px,1vw,15px);line-height:1.7;color:#bbc5d6;max-width:100%;margin:0 0 18px;white-space:pre-line}
.cta-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:12px 18px;border-radius:8px;background:var(--accent);color:#101321;font-weight:800;font-size:12px;text-decoration:none}
.cta-button:hover{filter:brightness(1.1)}
.about-cta-art{display:flex;align-items:center;justify-content:center;max-height:255px;min-height:180px;border-radius:12px;background:radial-gradient(ellipse,rgba(111,93,196,.22),transparent 75%);overflow:hidden}
.about-cta-art img{max-width:100%;width:100%;height:100%;max-height:255px;object-fit:contain}
.nav-toggle{display:none;border:1px solid #424b61;border-radius:8px;background:#1a2030;padding:9px;width:38px;height:36px;align-items:center;justify-content:center;flex-direction:column;gap:4px;color:var(--text)}
.nav-toggle span{display:block;width:17px;height:2px;background:currentColor;border-radius:2px}
@media (max-width:770px){
  .topbar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:9px;min-height:58px;padding:9px 14px;flex-wrap:nowrap}
  .topbar .logo{grid-column:1;grid-row:1;min-width:0;white-space:nowrap;font-size:13px}
  .topbar .header-tools{grid-column:2;grid-row:1;margin:0;justify-self:end}
  .topbar .nav-toggle{display:flex;grid-column:3;grid-row:1}
  .topbar .onair{display:none}
  .site-nav{display:none;grid-column:1/-1;grid-row:2;width:100%;order:0;gap:4px;margin:0;padding:8px 0 2px;border-top:1px solid #333a4c}
  .site-nav.is-open{display:grid;grid-template-columns:1fr}
  .site-nav a{padding:11px 12px;border-radius:8px;background:#191e2b;font-size:12px}
  .site-nav a.nav-desktop-hidden{display:block}
  .site-nav a.nav-mobile-hidden{display:none}
  .about-cta{grid-template-columns:minmax(0,1fr) minmax(100px,.4fr);gap:14px;padding:19px;margin-top:12px}
  .about-cta-art{min-height:115px;max-height:185px}
  .about-cta h1{font-size:clamp(21px,4vw,29px)}
}
@media (max-width:490px){
  .about-cta{grid-template-columns:1fr;padding:18px}
  .about-cta-art{grid-row:1;max-height:150px;min-height:115px}
  .about-cta-art img{max-height:150px}
  .about-cta h1{font-size:24px}
  .about-cta p{font-size:12px}
}


/* AP Radio v0.4.7: events calendar, canonical stylesheet */
.events-home{order:3;margin-top:25px;border:1px solid #293246;background:rgba(22,28,40,.54);border-radius:14px;padding:clamp(16px,2vw,30px)}
.events-home[hidden]{display:none}
.events-home-grid,.events-full-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}
.events-full-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.event-card{min-width:0;display:flex;flex-direction:column;background:#171d29;border:1px solid #30394a;border-radius:12px;overflow:hidden;transition:transform .2s,border-color .2s}
.event-card:hover{transform:translateY(-2px);border-color:#736cba}

.event-cover{height:145px;position:relative;overflow:hidden;background:#262c3d}
.event-cover img{width:100%;height:100%;object-fit:cover;display:block}
.event-ended .event-cover img{filter:grayscale(1);opacity:.56}
.event-ended-badge{position:absolute;top:11px;right:11px;padding:5px 9px;border-radius:6px;background:#101521ed;color:#e5e8f1;font-size:11px;font-weight:700}
.event-archived{padding:10px 14px;border:1px solid #485063;border-radius:8px;color:#d4d8e1}
.event-date-badge{position:absolute;left:11px;bottom:11px;padding:5px 9px;border-radius:6px;background:#151b28e6;color:#fff;font-size:11px;font-weight:750;backdrop-filter:blur(6px)}
.event-copy{display:flex;flex-direction:column;gap:8px;padding:13px;flex:1}
.event-location{font-size:10px;color:#a6a0ff;letter-spacing:.04em;font-weight:750}
.event-copy strong{font-size:13px;line-height:1.4}
.event-venue{font-size:11px;color:#9ca5b8}
.events-all-link{white-space:nowrap;border:1px solid #444961;padding:9px 12px;border-radius:8px;font-size:11px;color:#d5d9e7}
.events-all-link:hover{border-color:var(--accent);color:#fff}
.events-intro{margin:0 0 20px;color:#b3bbca;line-height:1.7}
.event-filters{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr)) auto;align-items:end;gap:12px;padding:17px;border:1px solid #31394e;border-radius:12px;background:#171d2b;margin-bottom:20px}
.event-filter-field{display:flex;flex-direction:column;gap:7px;font-size:11px;color:#aeb8cb}
.event-filter-field :is(input,select){width:100%;min-width:0;min-height:39px;border:1px solid #3b455d;background:#111622;color:#e5e8f0;padding:7px 10px;border-radius:7px;color-scheme:dark;font:inherit}
.event-filter-check{display:flex;align-items:center;gap:7px;min-height:39px;white-space:nowrap;color:#ccd1df;font-size:11px}
.event-filter-check input{accent-color:var(--accent)}
.event-filter-reset{min-height:39px;padding:7px 11px;background:#292f40;color:#dde1eb;border:1px solid #454c62;border-radius:8px;font-size:11px}
.events-results{font-size:11px;letter-spacing:.08em;color:#a1a9bb;text-transform:uppercase;margin:6px 0 14px}
.events-none{grid-column:1/-1;padding:24px;color:#b6bfcd;border:1px dashed #3c455c;border-radius:10px}
.event-detail{max-width:none;margin:0 auto;color:#d0d7e4}
.event-detail-cover{width:100%;max-height:450px;object-fit:cover;border-radius:12px;margin:12px 0 20px}
.event-detail-info{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;background:#171e2d;border:1px solid #344056;border-radius:10px;padding:18px;margin-bottom:25px}
.event-info-piece{font-size:12px;color:#d2d8e6}
.event-detail .article-prose{font-size:14px;line-height:1.9;max-width:min(100%,960px);margin-bottom:20px}
.event-detail>a.cta-button{color:#101321;text-decoration:none;background:#a99dff;box-shadow:0 4px 18px #05061255}
.event-detail>a.cta-button:hover{background:#beb6ff;filter:none}
/* One desktop card system shared by news and events; mobile rules remain unchanged. */
@media (min-width:1101px) {
  .news-card,.event-card { aspect-ratio:1/1; }
  .news-card img { height:60%; min-height:0; flex:0 0 60%; }
  .event-cover { height:auto; min-height:0; flex:0 0 62%; }
  .news-copy,.event-copy { min-height:0; overflow:hidden; }
  .news-copy strong,.event-copy strong {
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:3;
    overflow:hidden;
  }
  .news-copy>span:not(.read-more) {
    min-height:0;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:3;
    overflow:hidden;
  }
}

body.page-mode .events-home{display:none}
@media(max-width:1050px){.event-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.event-filter-reset{justify-content:flex-start}}
@media(max-width:760px){.events-home-grid,.events-full-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.event-cover{height:120px}.event-copy{padding:10px}.event-copy strong{font-size:12px}.event-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.event-filter-field:first-child{grid-column:1/-1}}
@media(max-width:490px){.events-home{padding:15px}.events-home-grid,.events-full-grid{gap:9px}.event-cover{height:100px}.event-copy{gap:5px;padding:9px}.event-copy strong{font-size:11px}.event-location,.event-venue{font-size:10px}.event-filters{padding:12px;gap:10px}.event-detail-info{grid-template-columns:1fr}.events-all-link{font-size:10px}}
.contact-captcha{grid-column:1/-1;min-height:54px;max-width:100%;overflow:hidden}

/* Event poster viewer - shares the existing public stylesheet. */
.event-poster-trigger{position:relative;display:block;width:100%;padding:0;border:0;background:#101522;border-radius:12px;overflow:hidden;cursor:zoom-in;margin:12px 0 20px}
.event-poster-trigger .event-detail-cover{display:block;margin:0;max-height:540px;width:100%;height:auto;object-fit:contain}
.event-poster-hint{position:absolute;right:14px;bottom:14px;z-index:1;padding:7px 11px;border-radius:7px;background:#101522dd;border:1px solid #bcb0ff;color:#fff;font-size:11px;font-weight:800;letter-spacing:.1em;box-shadow:0 4px 16px #0008}
.event-poster-trigger:hover .event-poster-hint,.event-poster-trigger:focus-visible .event-poster-hint{background:#9386ff;color:#101321}
.event-lightbox{width:min(96vw,1240px);max-width:none;max-height:94vh;padding:44px 14px 14px;border:1px solid #424867;border-radius:16px;background:#111725;box-shadow:0 20px 80px #000d;color:#f5f4ff}
.event-lightbox::backdrop{background:#040611ee;backdrop-filter:blur(6px)}
.event-lightbox img{display:block;max-width:100%;max-height:calc(94vh - 75px);width:auto;height:auto;object-fit:contain;margin:auto}
.event-lightbox-close{position:absolute;top:8px;right:12px;width:32px;height:32px;border:1px solid #424d66;border-radius:7px;background:#252d3e;color:#fff;font-size:23px;line-height:1}
@media(max-width:770px){.event-poster-hint{bottom:10px;right:10px}.event-lightbox{padding:40px 8px 8px}}
