:root {
  --bg: #050505;
  --bg-2: #0a0a0a;

  --text: #f7f7f7;
  --muted: #a4a4a8;

  --red: #f10919;
  --red-bright: #ff1628;

  --line: rgba(255, 255, 255, 0.14);

  --max: 1220px;

  --font-ui:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    Helvetica,
    sans-serif;
}


/* =========================================================
   RESET / BASE
   ========================================================= */

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;

  background: var(--bg);
  color: var(--text);

  font-family: var(--font-ui);

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

svg {
  display: block;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.sr-only {
  position: absolute !important;

  width: 1px !important;
  height: 1px !important;

  padding: 0 !important;
  margin: -1px !important;

  overflow: hidden !important;

  clip: rect(0, 0, 0, 0) !important;

  white-space: nowrap !important;

  border: 0 !important;
}

.skip-link {
  position: fixed;

  z-index: 999;

  top: -60px;
  left: 16px;

  background: #fff;
  color: #000;

  padding: 10px 14px;

  border-radius: 4px;

  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;

  min-height: 100svh;

  display: grid;
  place-items: center;

  isolation: isolate;

  overflow: hidden;

  background: #030303;
}


/* Background image */

.hero__backdrop {
  position: absolute;

  inset: 0;

  z-index: -4;

  background-image: url("../images/hero-bg.webp");
  background-size: cover;
  background-position: center 55%;

  transform: scale(1.02);
}


/* Background darkness / vignette */

.hero__overlay {
  position: absolute;

  inset: 0;

  z-index: -3;

  background:
    radial-gradient(
      circle at 50% 33%,
      rgba(0, 0, 0, 0.1) 0 18%,
      rgba(0, 0, 0, 0.64) 58%,
      rgba(0, 0, 0, 0.9) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.46),
      rgba(0, 0, 0, 0.06) 35%,
      rgba(0, 0, 0, 0.12) 63%,
      rgba(0, 0, 0, 0.92)
    );
}


/* Film grain */

.grain {
  position: absolute;

  inset: 0;

  z-index: -2;

  opacity: 0.17;

  pointer-events: none;

  background-image:
    url(
      "data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.26'/%3E%3C/svg%3E"
    );

  mix-blend-mode: overlay;
}


/* =========================================================
   TOP BAR
   ========================================================= */

.topbar {
  position: absolute;

  z-index: 5;

  top: 0;
  left: 0;

  width: 100%;

  display: flex;

  justify-content: space-between;
  align-items: center;

  padding:
    26px
    clamp(20px, 4vw, 64px);
}


/* Small brand */

.mini-brand {
  display: flex;

  gap: 10px;

  align-items: center;

  font-size: 12px;
  font-weight: 600;

  letter-spacing: 0.12em;

  text-transform: uppercase;

  color: #ddd;
}

.mini-brand strong {
  color: #fff;
}

.mini-brand__dot {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: var(--red);

  box-shadow:
    0 0 18px var(--red);
}


/* Live pill */

.live-pill {
  display: flex;

  align-items: center;

  gap: 9px;

  border:
    1px solid
    rgba(241, 9, 25, 0.65);

  padding: 9px 14px;

  border-radius: 999px;

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 0.16em;

  background:
    rgba(0, 0, 0, 0.35);

  backdrop-filter:
    blur(8px);
}

.live-pill__dot {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: var(--red-bright);

  box-shadow:
    0 0 16px var(--red);

  animation:
    pulse
    1.7s
    infinite;
}

.live-pill.is-error {
  border-color:
    rgba(255, 255, 255, 0.22);

  color: #aaa;
}

.live-pill.is-error
.live-pill__dot {
  background: #666;

  box-shadow: none;

  animation: none;
}

.live-pill.is-connecting
.live-pill__dot {
  animation:
    pulse
    0.7s
    infinite;
}


/* =========================================================
   HERO CONTENT
   ========================================================= */

.hero__content {
  width:
    min(92vw, 850px);

  min-height: 100svh;

  padding:
    88px
    0
    36px;

  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  text-align: center;
}


/* Logo */

.station-logo {
  width:
    min(72vw, 590px);

  height: auto;

  max-height: 46svh;

  object-fit: contain;

  filter:
    drop-shadow(
      0
      22px
      28px
      rgba(0, 0, 0, 0.72)
    );

  margin-bottom: -4px;
}


/* Tagline */

.tagline {
  margin: 0;

  font-weight: 800;

  letter-spacing: 0.22em;

  font-size:
    clamp(
      16px,
      2vw,
      24px
    );

  text-transform: uppercase;

  text-shadow:
    0
    3px
    18px
    #000;
}


/* Frequency */

.frequency {
  margin:
    9px
    0
    26px;

  color: #d2d2d2;

  letter-spacing: 0.18em;

  font-weight: 600;

  font-size:
    clamp(
      10px,
      1vw,
      13px
    );
}

.frequency span {
  color: var(--red);

  margin:
    0
    0.45em;
}


/* =========================================================
   STREAM SWITCH
   ========================================================= */

.station-switch {
  width:
    min(92vw, 470px);

  display: grid;

  grid-template-columns:
    1fr
    1fr;

  gap: 0;

  padding: 4px;

  border:
    1px solid
    rgba(255, 255, 255, 0.2);

  border-radius: 999px;

  background:
    rgba(0, 0, 0, 0.48);

  backdrop-filter:
    blur(14px);

  box-shadow:
    0
    12px
    40px
    rgba(0, 0, 0, 0.35);
}

.station-switch__item {
  border: 0;

  color: #e7e7e7;

  background: transparent;

  border-radius: 999px;

  padding:
    10px
    16px;

  display: flex;

  align-items: center;
  justify-content: center;

  gap: 12px;

  cursor: pointer;

  transition:
    0.25s ease;
}

.station-switch__item.is-active {
  background:
    linear-gradient(
      135deg,
      #d70313,
      #ff1327
    );

  box-shadow:
    0
    5px
    22px
    rgba(241, 9, 25, 0.34),

    inset
    0
    1px
    rgba(255, 255, 255, 0.24);
}

.station-switch__item:disabled {
  cursor: not-allowed;

  opacity: 0.43;
}

.station-switch__copy {
  display: flex;

  flex-direction: column;

  text-align: left;

  line-height: 1.15;
}

.station-switch__copy strong {
  font-size: 12px;

  font-weight: 700;

  letter-spacing: 0.07em;
}

.station-switch__copy small {
  margin-top: 4px;

  color:
    rgba(255, 255, 255, 0.72);

  font-size: 11px;

  font-weight: 400;

  letter-spacing: 0;
}


/* Mini equalizer */

.eq-mini {
  width: 20px;
  height: 22px;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 2px;
}

.eq-mini i {
  display: block;

  width: 2px;

  background: #fff;

  border-radius: 2px;

  animation:
    eq
    1s
    ease-in-out
    infinite
    alternate;
}

.eq-mini i:nth-child(1) {
  height: 45%;

  animation-delay: -0.6s;
}

.eq-mini i:nth-child(2) {
  height: 85%;

  animation-delay: -0.2s;
}

.eq-mini i:nth-child(3) {
  height: 62%;

  animation-delay: -0.8s;
}

.eq-mini i:nth-child(4) {
  height: 35%;

  animation-delay: -0.4s;
}

.eq-mini.is-muted i {
  animation: none;

  background: #888;
}


/* =========================================================
   PLAYER
   ========================================================= */

.player {
  position: relative;

  width:
    min(96vw, 700px);

  min-height: 235px;

  margin-top: 6px;

  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;
}


/* Visualizer */

.visualizer {
  position: absolute;

  left: 0;
  right: 0;

  top: 63px;

  height: 96px;

  display: flex;

  align-items: center;
  justify-content: center;

  gap: 3px;

  opacity: 0.82;

  mask-image:
    linear-gradient(
      to right,
      transparent,
      #000 9%,
      #000 91%,
      transparent
    );
}

.visualizer span {
  width: 3px;

  min-height: 5px;

  height: 22%;

  border-radius: 2px;

  background:
    linear-gradient(
      to top,
      rgba(241, 9, 25, 0.06),
      var(--red-bright),
      rgba(255, 80, 90, 0.38)
    );

  box-shadow:
    0
    0
    9px
    rgba(241, 9, 25, 0.3);

  transform-origin: center;
}

.player[data-state="playing"]
.visualizer span {
  animation:
    wave
    0.65s
    ease-in-out
    infinite
    alternate;
}

.player[data-state="playing"]
.visualizer span:nth-child(3n) {
  animation-duration: 0.82s;
}

.player[data-state="playing"]
.visualizer span:nth-child(4n) {
  animation-duration: 0.54s;
}

.player[data-state="playing"]
.visualizer span:nth-child(5n) {
  animation-duration: 1.02s;
}

.player[data-state="loading"]
.visualizer span {
  animation:
    wave
    1.1s
    ease-in-out
    infinite
    alternate;
}


/* Play button */

.play-button {
  z-index: 2;

  width: 112px;
  height: 112px;

  display: grid;

  place-items: center;

  margin-top: 2px;

  border-radius: 50%;

  border:
    2px solid
    #ff2436;

  color: #fff;

  background:
    rgba(13, 0, 2, 0.38);

  box-shadow:
    0
    0
    0
    7px
    rgba(241, 9, 25, 0.05),

    0
    0
    33px
    rgba(241, 9, 25, 0.56),

    inset
    0
    0
    30px
    rgba(241, 9, 25, 0.22);

  cursor: pointer;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;

  backdrop-filter:
    blur(10px);
}

.play-button:hover {
  transform:
    scale(1.06);

  background:
    rgba(130, 0, 13, 0.38);

  box-shadow:
    0
    0
    0
    9px
    rgba(241, 9, 25, 0.07),

    0
    0
    48px
    rgba(241, 9, 25, 0.72),

    inset
    0
    0
    34px
    rgba(241, 9, 25, 0.27);
}

.play-button:focus-visible {
  outline:
    3px solid
    #fff;

  outline-offset: 5px;
}

.icon {
  width: 46px;
  height: 46px;

  fill: currentColor;
}

.icon--play {
  transform:
    translateX(3px);
}

.icon--pause {
  display: none;
}

.player[data-state="playing"]
.icon--play {
  display: none;
}

.player[data-state="playing"]
.icon--pause {
  display: block;
}

.player[data-state="loading"]
.play-button {
  animation:
    pulseButton
    1s
    ease-in-out
    infinite;
}

.player[data-state="error"]
.play-button {
  border-color: #999;

  box-shadow: none;
}


/* Player status */

.player__status {
  z-index: 2;

  margin-top: 18px;

  display: flex;

  flex-direction: column;

  gap: 5px;

  text-transform: uppercase;
}

.player__status span {
  letter-spacing: 0.24em;

  font-size: 13px;

  font-weight: 700;
}

.player__status small {
  color: #b6b6ba;

  letter-spacing: 0.12em;

  font-size: 10px;

  font-weight: 500;
}


/* Scroll cue */

.scroll-cue {
  margin-top: 4px;

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 8px;

  color: #c9c9c9;

  font-size: 9px;

  font-weight: 600;

  letter-spacing: 0.16em;

  opacity: 0.76;

  transition: 0.2s;
}

.scroll-cue:hover {
  opacity: 1;

  color: #fff;
}

.scroll-cue svg {
  width: 19px;
  height: 19px;

  fill: none;

  stroke: currentColor;

  stroke-width: 1.5;
}


/* =========================================================
   CONTACT SECTION
   ========================================================= */

.contact {
  position: relative;

  background:
    linear-gradient(
      180deg,
      #070707 0,
      #050505 100%
    );

  border-top:
    1px solid
    rgba(255, 255, 255, 0.08);
}

.contact::before {
  content: "";

  position: absolute;

  inset: 0;

  opacity: 0.08;

  background-image:
    url(
      "data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"
    );
}

.contact__inner {
  position: relative;

  width:
    min(
      calc(100% - 40px),
      var(--max)
    );

  margin:
    0
    auto;

  padding:
    76px
    0
    64px;

  text-align: center;
}


/* Small heading */

.eyebrow {
  margin:
    0
    0
    14px;

  color: var(--red-bright);

  font-weight: 800;

  letter-spacing: 0.24em;

  font-size: 11px;
}


/* Main contact title */

.contact h2 {
  margin: 0;

  font-size:
    clamp(
      28px,
      4vw,
      46px
    );

  line-height: 1.14;

  letter-spacing: 0.11em;

  font-weight: 800;
}

.contact h2 span {
  color: #bdbdc2;
}


/* Red slash */

.red-stroke {
  width: 70px;
  height: 5px;

  margin:
    24px
    auto
    40px;

  background:
    var(--red);

  transform:
    skewX(-28deg)
    rotate(-4deg);

  box-shadow:
    17px
    6px
    0
    -2px
    rgba(241, 9, 25, 0.52);
}


/* =========================================================
   CONTACT GRID
   ========================================================= */

.contact-grid {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 0;

  border-top:
    1px solid
    var(--line);

  border-bottom:
    1px solid
    var(--line);
}


/* Contact card */

.contact-card {
  position: relative;

  min-height: 150px;

  padding:
    30px
    24px;

  display: flex;

  align-items: center;
  justify-content: center;

  gap: 18px;

  text-align: left;

  transition:
    background 0.25s ease;
}

.contact-card + .contact-card::before {
  content: "";

  position: absolute;

  left: 0;

  top: 24%;
  bottom: 24%;

  width: 1px;

  background:
    var(--line);
}

.contact-card:hover {
  background:
    rgba(
      255,
      255,
      255,
      0.035
    );
}


/* Icon */

.contact-card__icon {
  width: 34px;
  height: 34px;

  flex:
    0
    0
    auto;

  color:
    var(--red-bright);
}

.contact-card__icon svg {
  width: 100%;
  height: 100%;

  fill:
    currentColor;
}


/* Text wrapper */

.contact-card
> span:last-child {
  display: flex;

  flex-direction: column;

  gap: 8px;
}


/* Label */

.contact-card strong {
  display: block;

  color: #fff;

  font-size: 11px;

  font-weight: 700;

  line-height: 1.2;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}


/* Contact actual data */

.contact-card small {
  display: block;

  color: #d0d0d3;

  font-size: 15px;

  font-weight: 400;

  line-height: 1.55;

  letter-spacing: 0;
}


/* Phone links inside card */

.contact-card small a {
  color: #d0d0d3;

  transition:
    color 0.2s ease;
}

.contact-card small a:hover {
  color: #fff;
}


/* Hover emphasis */

.contact-card:hover
.contact-card__icon {
  filter:
    drop-shadow(
      0
      0
      8px
      rgba(
        241,
        9,
        25,
        0.45
      )
    );
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  min-height: 92px;

  width:
    min(
      calc(100% - 40px),
      var(--max)
    );

  margin:
    0
    auto;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 20px;

  color: #88888d;

  font-size: 11px;

  font-weight: 500;

  line-height: 1.5;

  letter-spacing: 0.035em;

  text-transform: uppercase;
}

.footer__line {
  height: 1px;

  flex: 1;

  max-width: 85px;

  background:
    rgba(
      255,
      255,
      255,
      0.16
    );
}

.footer a {
  color: #a9a9ae;

  transition:
    color 0.2s ease;
}

.footer a:hover {
  color: #fff;
}


/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes pulse {

  0%,
  100% {
    opacity: 1;

    transform:
      scale(1);
  }

  50% {
    opacity: 0.48;

    transform:
      scale(0.82);
  }

}

@keyframes eq {

  from {
    transform:
      scaleY(0.5);
  }

  to {
    transform:
      scaleY(1.1);
  }

}

@keyframes wave {

  from {
    transform:
      scaleY(0.25);
  }

  to {
    transform:
      scaleY(3.1);
  }

}

@keyframes pulseButton {

  0%,
  100% {
    transform:
      scale(1);
  }

  50% {
    transform:
      scale(1.04);
  }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 850px) {

  .hero__content {
    padding-top: 78px;
    padding-bottom: 26px;
  }

  .station-logo {
    width:
      min(
        86vw,
        540px
      );

    max-height: 42svh;
  }

  .contact-grid {
    grid-template-columns:
      1fr
      1fr;
  }

  .contact-card:nth-child(3)::before {
    display: none;
  }

  .footer {
    flex-wrap: wrap;

    justify-content: center;

    padding:
      26px
      0;
  }

  .footer__line {
    display: none;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 560px) {

  .topbar {
    padding:
      18px
      16px;
  }

  .mini-brand {
    font-size: 10px;

    letter-spacing: 0.08em;
  }

  .live-pill {
    font-size: 10px;

    padding:
      7px
      10px;

    letter-spacing: 0.12em;
  }

  .hero__content {
    width: 100%;

    padding-left: 14px;
    padding-right: 14px;
  }

  .station-logo {
    width:
      min(
        92vw,
        470px
      );

    margin-top: 8px;
  }

  .tagline {
    font-size: 14px;

    letter-spacing: 0.16em;
  }

  .frequency {
    margin-bottom: 20px;

    letter-spacing: 0.12em;
  }

  .station-switch {
    width:
      min(
        96vw,
        430px
      );
  }

  .station-switch__item {
    padding:
      9px
      8px;

    gap: 8px;
  }

  .station-switch__copy strong {
    font-size: 11px;
  }

  .station-switch__copy small {
    font-size: 10px;
  }

  .player {
    min-height: 210px;
  }

  .visualizer {
    top: 55px;

    height: 84px;
  }

  .play-button {
    width: 96px;
    height: 96px;
  }

  .icon {
    width: 40px;
    height: 40px;
  }

  .player__status span {
    font-size: 12px;

    letter-spacing: 0.20em;
  }

  .player__status small {
    font-size: 10px;

    letter-spacing: 0.1em;
  }

  .contact__inner {
    padding:
      60px
      0
      48px;

    width:
      min(
        calc(100% - 28px),
        var(--max)
      );
  }

  .eyebrow {
    font-size: 10px;

    letter-spacing: 0.18em;
  }

  .contact h2 {
    font-size:
      clamp(
        26px,
        8vw,
        36px
      );

    letter-spacing: 0.07em;

    line-height: 1.15;
  }

  .red-stroke {
    margin-bottom: 30px;
  }

  .contact-grid {
    grid-template-columns:
      1fr;
  }

  .contact-card {
    min-height: 106px;

    justify-content: flex-start;

    padding:
      22px
      9vw;
  }

  .contact-card + .contact-card::before {
    left: 8%;
    right: 8%;

    top: 0;
    bottom: auto;

    width: auto;
    height: 1px;
  }

  .contact-card strong {
    font-size: 11px;
  }

  .contact-card small {
    font-size: 15px;

    line-height: 1.5;
  }

  .contact-card__icon {
    width: 31px;
    height: 31px;
  }

  .footer {
    width:
      calc(
        100% - 28px
      );

    flex-direction: column;

    gap: 9px;

    padding:
      24px
      0;

    text-align: center;

    font-size: 10px;
  }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

  .station-switch__copy strong {
    font-size: 10px;
  }

  .station-switch__copy small {
    font-size: 9px;
  }

  .contact-card {
    padding-left: 7vw;
    padding-right: 7vw;
  }

  .contact-card small {
    font-size: 14px;
  }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration:
      0.01ms !important;

    animation-iteration-count:
      1 !important;

    scroll-behavior:
      auto !important;
  }

}


/* =========================================================
   RESPONSIVE BACKGROUND
   ========================================================= */

@media (max-width: 900px) {

  .hero__backdrop {
    background-image:
      url(
        "../images/hero-bg-1280.webp"
      );
  }

}