/* ============================================================
   Pacific Coast Highway Radio — static recreation
   ============================================================ */

@font-face {
  font-family: "Bungee";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/bungee.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("fonts/dm-sans.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 100 1000;
  font-display: swap;
  src: url("fonts/dm-sans-italic.woff2") format("woff2");
}

:root {
  --background: 216 45% 10%;
  --foreground: 40 30% 94%;
  --card: 216 40% 13%;
  --primary: 30 92% 58%;
  --primary-foreground: 216 50% 8%;
  --secondary: 216 35% 18%;
  --muted: 216 30% 20%;
  --muted-foreground: 40 15% 70%;
  --accent: 22 85% 52%;
  --border: 216 30% 22%;
  --input: 216 30% 22%;
  --ring: 30 92% 58%;
  --radius: .75rem;

  --font-body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Bungee", "Righteous", ui-sans-serif, sans-serif;
  --font-script: "Righteous", cursive;

  --header-h: 76px;
  --player-space: 112px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }

.skip-link {
  position: fixed; top: -100px; left: 12px; z-index: 100;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  padding: 10px 18px; border-radius: 999px; font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

/* ---------- Icons ---------- */
.icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--xs { width: .875rem; height: .875rem; }
.icon--sm { width: .9rem; height: .9rem; }
.icon--lg { width: 2rem; height: 2rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: 999px;
  padding: .875rem 1.5rem;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
  border: 1px solid transparent;
}
.btn--primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.btn--primary:hover { transform: scale(1.03); }
.btn--primary:active { transform: scale(.95); }
.btn--ghost {
  background: hsl(var(--card) / .6);
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}
.btn--ghost:hover { background: hsl(var(--card)); }
.btn--compact { padding: .5rem 1rem; }
.btn--lg { padding: .875rem 1.5rem; }
.btn--block { width: 100%; }

:is(a, button, input, textarea, [tabindex]):focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: .625rem; min-width: 0; }
.brand__logo { width: 2.25rem; height: 2.25rem; border-radius: .5rem; object-fit: cover; flex: none; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.1;
  color: hsl(var(--foreground));
}
.brand__short { display: none; }
.dot { color: hsl(var(--primary)); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 40; }
.site-header__wrap {
  max-width: 90rem;
  margin-inline: auto;
  padding: .75rem 1rem 0;
}
.header-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background) / .7);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-radius: 999px;
  padding: .625rem 1rem;
}
.nav { display: none; align-items: center; gap: 2rem; font-size: .875rem; font-weight: 500; }
.nav a { color: hsl(var(--muted-foreground)); transition: color .15s ease; }
.nav a:hover { color: hsl(var(--foreground)); }

.header-actions { display: flex; align-items: center; gap: .5rem; }
.header-actions .btn--compact { display: none; }

.menu-toggle {
  display: grid;
  place-items: center;
  padding: .25rem;
  color: hsl(var(--foreground));
  border-radius: .5rem;
}
.menu-toggle .icon { width: 1.5rem; height: 1.5rem; }
.menu-toggle .icon--close { display: none; }
.menu-toggle[aria-expanded="true"] .icon--menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon--close { display: block; }

.mobile-menu {
  margin-top: .5rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card) / .97);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-radius: 1.5rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  box-shadow: 0 20px 45px hsl(0 0% 0% / .45);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  padding: .75rem 1rem;
  border-radius: .875rem;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
}
.mobile-menu a:hover { background: hsl(var(--secondary)); color: hsl(var(--foreground)); }
.mobile-menu .btn { margin-top: .5rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 75dvh;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; }
.hero__shade--v { background: linear-gradient(to top, hsl(var(--background)), hsl(var(--background) / .7) 50%, hsl(var(--background) / .3)); }
.hero__shade--h { background: linear-gradient(to right, hsl(var(--background) / .8), transparent); }

.hero__inner {
  position: relative;
  width: 100%;
  max-width: 90rem;
  margin-inline: auto;
  padding: 7rem 1rem 4rem;
}
.hero__content { max-width: 42rem; }

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid hsl(var(--primary) / .4);
  background: hsl(var(--primary) / .1);
  color: hsl(var(--primary));
  border-radius: 999px;
  padding: .25rem .75rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 1.6;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 9vw, 3.75rem);
  line-height: .95;
  margin-top: 1.25rem;
  color: hsl(var(--primary));
  filter: drop-shadow(0 2px 20px rgb(0 0 0 / .5));
}
.hero__copy {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 1rem;
  color: hsl(var(--foreground) / .8);
}
.hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }

[data-hero] {
  opacity: 0;
  animation: hero-in .7s cubic-bezier(.22, .61, .36, 1) forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Generic section ---------- */
.section { padding-block: 5rem; }
.kicker {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: hsl(var(--primary));
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 5vw, 2.25rem);
  line-height: 1.15;
  margin-top: .75rem;
  color: hsl(var(--foreground));
}

/* ---------- On Air ---------- */
.on-air { padding-top: 2.5rem; padding-bottom: 5rem; }
.on-air__grid { display: grid; gap: 2rem; }

.now-card {
  position: relative;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  background: linear-gradient(135deg, hsl(var(--secondary)), hsl(var(--card)));
  border-radius: 1.5rem;
  padding: 2rem;
}
.label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: hsl(var(--primary));
}
.pulse { position: relative; display: inline-flex; width: .625rem; height: .625rem; flex: none; }
.pulse__ping {
  position: absolute; inset: 0;
  border-radius: 999px;
  background: hsl(var(--primary));
  opacity: .35;
  animation: ping 1.6s cubic-bezier(0, 0, .2, 1) infinite;
}
.pulse__dot { position: relative; width: 100%; height: 100%; border-radius: 999px; background: hsl(var(--primary)); }
@keyframes ping {
  0% { transform: scale(1); opacity: .5; }
  75%, 100% { transform: scale(2.4); opacity: 0; }
}

.now-card__body { margin-top: 2rem; display: flex; align-items: center; gap: 1.25rem; }
.now-card__art {
  position: relative;
  width: 6rem;
  height: 6rem;
  flex: none;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0 0 2px hsl(var(--primary) / .3);
}
.now-card__art img { width: 100%; height: 100%; object-fit: cover; }
.now-card__art-overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgb(0 0 0 / .3);
  color: hsl(var(--primary-foreground));
}
.disc { animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.now-card__meta { min-width: 0; }
.now-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 5.5vw, 1.875rem);
  line-height: 1.1;
  color: hsl(var(--foreground));
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  overflow-wrap: anywhere;
}
.now-card__artist {
  margin-top: .25rem;
  font-size: 1rem;
  color: hsl(var(--primary));
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  overflow-wrap: anywhere;
}
.now-card__note { margin-top: .75rem; font-size: .875rem; color: hsl(var(--muted-foreground)); }

.recent-card {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  border-radius: 1.5rem;
  padding: 1.5rem;
}
.recent-card__head {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: hsl(var(--muted-foreground));
}
.recent-card__head .icon { color: hsl(var(--primary)); }
.recent-list { margin-top: 1.25rem; }
.recent-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 0;
  border-top: 1px solid hsl(var(--border));
}
.recent-item:first-child { border-top: 0; }
.recent-item__art {
  width: 2.5rem; height: 2.5rem;
  flex: none;
  border-radius: .375rem;
  object-fit: cover;
  background: hsl(var(--secondary));
}
.recent-item__meta { min-width: 0; }
.recent-item__title {
  font-size: .875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.recent-item__artist {
  font-size: .75rem;
  color: hsl(var(--muted-foreground));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.recent-item.is-new { animation: row-in .45s ease; }
@keyframes row-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid hsl(var(--border));
  background: hsl(var(--secondary) / .4);
  padding-block: 1rem;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee__item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-inline: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: hsl(var(--foreground) / .7);
  white-space: nowrap;
}
.marquee__item .icon { color: hsl(var(--primary)); width: 1rem; height: 1rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- About ---------- */
.about { padding-block: 5rem; }
.about__grid { display: grid; gap: 3rem; align-items: center; }
.body-copy { margin-top: 1.5rem; color: hsl(var(--muted-foreground)); line-height: 1.7; }
.about__copy .body-copy + .body-copy { margin-top: 1rem; }

.stats { margin-top: 2rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.stat__value { font-family: var(--font-display); font-size: 1.5rem; color: hsl(var(--primary)); }
.stat__label { margin-top: .25rem; font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }

.about__media { position: relative; }
.about__main {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1.5rem;
  border: 1px solid hsl(var(--border));
}
.about__inset {
  display: none;
  position: absolute;
  bottom: -2rem;
  left: -2rem;
  width: 11rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1rem;
  border: 4px solid hsl(var(--background));
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / .5);
}
.about__badge {
  position: absolute;
  top: -1.5rem;
  right: -1rem;
  width: 7rem;
  transform: rotate(6deg);
  filter: drop-shadow(0 25px 25px rgb(0 0 0 / .35));
}

/* ---------- Schedule ---------- */
.schedule {
  border-block: 1px solid hsl(var(--border));
  background: hsl(var(--secondary) / .3);
}
.schedule__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.schedule__note { max-width: 20rem; font-size: .875rem; color: hsl(var(--muted-foreground)); }
.schedule__grid { margin-top: 2.5rem; display: grid; gap: 1rem; }

.show-card {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  border-radius: 1rem;
  padding: 1.5rem;
  transition: border-color .2s ease, transform .2s ease;
}
.show-card:hover { border-color: hsl(var(--primary) / .5); }
.show-card__when {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: hsl(var(--primary));
}
.show-card__when span { background: hsl(var(--primary) / .1); border-radius: 999px; padding: .25rem .625rem; }
.show-card__title { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.25; margin-top: 1rem; color: hsl(var(--foreground)); }
.show-card__time { margin-top: .25rem; display: flex; align-items: center; gap: .375rem; font-size: .875rem; color: hsl(var(--muted-foreground)); }
.show-card__desc { margin-top: .75rem; font-size: .875rem; color: hsl(var(--foreground) / .7); }
.show-card__host { margin-top: 1rem; font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; gap: 2.5rem; }
.contact__panel { position: relative; overflow: hidden; border-radius: 1.5rem; min-height: 280px; display: flex; align-items: flex-end; }
.contact__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact__shade { position: absolute; inset: 0; background: linear-gradient(to top, hsl(var(--background) / .9), transparent 75%); }
.contact__content { position: relative; padding: 2rem; }
.contact__content .section-title { margin-top: .75rem; }
.contact__list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .75rem; font-size: .875rem; color: hsl(var(--foreground) / .85); }
.contact__list li { display: flex; align-items: center; gap: .75rem; }
.contact__list .icon { color: hsl(var(--primary)); align-self: flex-start; margin-top: .15rem; }
.contact__list a:hover { color: hsl(var(--primary)); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  border-radius: 1.5rem;
  padding: 1.5rem;
}
.field { display: flex; flex-direction: column; gap: .5rem; }
.field label { font-size: .875rem; font-weight: 600; color: hsl(var(--foreground)); }
.field input, .field textarea {
  width: 100%;
  border-radius: .75rem;
  border: 1px solid hsl(var(--input));
  background: hsl(var(--secondary) / .5);
  padding: .75rem 1rem;
  font-size: .875rem;
  color: hsl(var(--foreground));
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: hsl(var(--muted-foreground)); }
.field textarea { resize: none; }
.field input:focus, .field textarea:focus { border-color: hsl(var(--ring)); box-shadow: 0 0 0 2px hsl(var(--ring) / .35); }
.form-status { min-height: 0; font-size: .85rem; color: hsl(var(--primary)); }
.form-status:empty { display: none; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  padding: 3rem 0 calc(var(--player-space) + 1.5rem);
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: center;
}
.site-footer__legal { font-size: .75rem; color: hsl(var(--muted-foreground)); }
.site-footer .brand__name { font-size: 1rem; }

/* ---------- Player dock ---------- */
.player-dock { position: fixed; inset: auto 0 0; z-index: 50; }
.player-dock__wrap { max-width: 90rem; margin-inline: auto; padding: 0 .75rem .75rem; }
.player {
  display: flex;
  align-items: center;
  gap: .75rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card) / .95);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / .5);
  padding: .75rem;
}

.player__start { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.player__art { width: 3rem; height: 3rem; border-radius: .75rem; object-fit: cover; background: hsl(var(--secondary)); }
.play-btn {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  flex: none;
  border-radius: 999px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  transition: transform .15s ease;
}
.play-btn:hover { transform: scale(1.05); }
.play-btn:active { transform: scale(.95); }
.play-btn .icon { width: 1.25rem; height: 1.25rem; }
.play-btn .icon--play { transform: translateX(1px); }
.play-btn .icon--pause { display: none; }
.player.is-playing .play-btn .icon--play { display: none; }
.player.is-playing .play-btn .icon--pause { display: block; }

.player__info { min-width: 0; flex: 1; }
.player__status {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: hsl(var(--primary));
}
.pulse--sm { width: .5rem; height: .5rem; }
.player__title {
  margin-top: .125rem;
  font-family: var(--font-display);
  font-size: .875rem;
  line-height: 1.25;
  color: hsl(var(--foreground));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.player__artist {
  font-size: .75rem;
  color: hsl(var(--muted-foreground));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.equalizer { display: flex; align-items: flex-end; gap: 3px; height: 1.25rem; flex: none; }
.eq-bar {
  width: 3px;
  height: 100%;
  border-radius: 999px;
  background: hsl(var(--primary));
  transform-origin: bottom;
  transform: scaleY(.3);
  opacity: .35;
  animation: eq .8s ease-in-out infinite;
  animation-play-state: paused;
}
.player.is-playing .eq-bar { opacity: 1; animation-play-state: running; }
@keyframes eq {
  0%, 100% { transform: scaleY(.3); }
  50% { transform: scaleY(1); }
}

.volume { display: none; align-items: center; gap: .5rem; width: 9rem; }
.volume__btn { display: grid; place-items: center; color: hsl(var(--muted-foreground)); transition: color .15s ease; }
.volume__btn:hover { color: hsl(var(--foreground)); }
.volume__btn .icon { width: 1.25rem; height: 1.25rem; }
.volume__btn .icon--mute { display: none; }
.volume.is-muted .icon--vol { display: none; }
.volume.is-muted .icon--mute { display: block; }

.volume__range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 1.5rem;
  background: transparent;
  cursor: pointer;
  --vol: 80%;
}
.volume__range::-webkit-slider-runnable-track {
  height: .375rem;
  border-radius: 999px;
  background: linear-gradient(to right, hsl(var(--primary)) var(--vol), hsl(var(--primary) / .2) var(--vol));
}
.volume__range::-moz-range-track { height: .375rem; border-radius: 999px; background: hsl(var(--primary) / .2); }
.volume__range::-moz-range-progress { height: .375rem; border-radius: 999px; background: hsl(var(--primary)); }
.volume__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1rem;
  height: 1rem;
  margin-top: calc(.1875rem - .5rem);
  border-radius: 999px;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--primary) / .5);
  box-shadow: 0 1px 3px rgb(0 0 0 / .3);
}
.volume__range::-moz-range-thumb {
  width: 1rem; height: 1rem;
  border-radius: 999px;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--primary) / .5);
}

.player__station {
  display: none;
  align-items: center;
  gap: .5rem;
  padding-left: .5rem;
  border-left: 1px solid hsl(var(--border));
  color: hsl(var(--primary));
}
.player__station .icon { width: 1.25rem; height: 1.25rem; }
.player__station span { font-size: .75rem; font-weight: 700; color: hsl(var(--primary)); }

.player-error {
  position: fixed;
  bottom: calc(var(--player-space) + .25rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  font-size: .8rem;
  padding: .6rem 1rem;
  border-radius: 999px;
  box-shadow: 0 18px 40px rgb(0 0 0 / .45);
}
.player-error[hidden] { display: none; }

/* ---------- Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--delay, 0s);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (min-width: 400px) {
  .now-card__art { width: 7rem; height: 7rem; }
}

@media (min-width: 640px) {
  .container, .hero__inner { padding-inline: 1.5rem; }
  .site-header__wrap { padding-inline: 1.5rem; }
  .hero { min-height: 75dvh; }
  .hero__title { font-size: clamp(3rem, 7.5vw, 3.75rem); }
  .hero__copy { font-size: 1.125rem; }
  .section { padding-block: 7rem; }
  .on-air { padding-top: 4rem; padding-bottom: 7rem; }
  .now-card { padding: 2.5rem; }
  .recent-card { padding: 2rem; }
  .now-card__art { width: 7rem; height: 7rem; }
  .about__inset { display: block; }
  .about__badge { width: 9rem; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .schedule__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-form { padding: 2rem; }
  .site-footer__inner { flex-direction: row; text-align: left; }
  .player__station { display: none; }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .brand__name { font-size: .8rem; }
  .nav { gap: 1.25rem; font-size: .8rem; }
}

@media (min-width: 768px) {
  .nav { display: flex; }
  .nav a { white-space: nowrap; }
  .header-actions .btn--compact { display: inline-flex; }
  .menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
  .volume { display: flex; }
  .player__art { width: 3rem; height: 3rem; }
  .player { padding-inline: 1.25rem; }
  .player__title { font-size: 1rem; }
  .player__station { display: none; }
}

@media (min-width: 1024px) {
  .hero__title { font-size: 4.5rem; }
  .on-air__grid { grid-template-columns: 1.1fr 1fr; align-items: stretch; }
  .about__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
  .schedule__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; }
  .player__station { display: flex; }
}

@media (max-width: 639px) {
  .brand__name { font-size: .66rem; letter-spacing: 0; white-space: nowrap; }
  .header-pill { padding: .5rem .625rem; gap: .5rem; }
  .brand { gap: .5rem; }
  .brand__logo { width: 2rem; height: 2rem; }
  .site-footer .brand__name { font-size: .95rem; max-width: none; }
  .player { gap: .5rem; padding: .5625rem; }
  .player__art { display: none; }
  .player__title { font-size: .8rem; }
  .player__status { letter-spacing: .1em; }
  .equalizer { height: 1rem; }
  .player__station { display: none; }
  .volume { display: none; }
  .form-status { font-size: .8rem; }
}

@media (max-width: 359px) {
  .brand__full { display: none; }
  .brand__short { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track, .eq-bar, .disc, .pulse__ping, [data-hero] {
    animation: none !important;
  }
  [data-hero] { opacity: 1; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .recent-item.is-new { animation: none; }
}
