:root {
  --bg1: #090d1b;
  --bg2: #151b31;
  --stroke: rgba(185, 202, 244, .19);
  --accent: #ff8a28;
  --accent2: #ffb54d;
  --r: 20px;
}

body {
  background:
    radial-gradient(ellipse at 0 8%, color-mix(in srgb, var(--accent) 19%, transparent), transparent 38%),
    radial-gradient(ellipse at 100% 5%, color-mix(in srgb, var(--bg2) 85%, #254e86), transparent 48%),
    radial-gradient(ellipse at 75% 78%, color-mix(in srgb, var(--bg2) 70%, #41224f), transparent 50%),
    var(--bg1);
  background-attachment: fixed;
}

.container,
.topbar__inner,
.footer__inner {
  width: min(1280px, calc(100% - 48px));
}

.topbar,
.footer {
  background: color-mix(in srgb, var(--bg1) 92%, transparent);
}

.brand__text {
  display: grid;
  min-width: 0;
}

.brand__name {
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.brand__logo img {
  max-width: 56px;
  object-fit: contain;
}

.menu {
  gap: 4px;
}

.menu__link,
.menu__btn,
.menu__cta,
.btn {
  border-radius: 999px;
}

.menu__link,
.menu__btn,
.menu__cta {
  white-space: nowrap;
  font-size: .875rem;
}

.menu__link,
.menu__btn {
  border: 1px solid transparent;
}

.menu__link.is-active {
  background: var(--glass);
}

.menu__cta,
.btn--primary,
.btn--primary:hover,
.btn--primary:focus-visible {
  border-color: var(--accent);
  background: linear-gradient(125deg, var(--accent), var(--accent2));
  color: #10111b;
  font-weight: 750;
}

.menu__cta:hover,
.btn--primary:hover {
  box-shadow: 0 8px 25px color-mix(in srgb, var(--accent) 28%, transparent);
}

:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 3px;
}

.home {
  padding-top: 74px;
}

.home .hero {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: center;
  padding: clamp(44px, 7vw, 96px) 0;
  margin: 0;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  background: var(--glass);
}

.hero__badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}

.hero__badge.is-online::before {
  background: #64efad;
  box-shadow: 0 0 12px #64efad;
}

.home .hero__title {
  margin-bottom: 16px;
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.hero__station {
  display: block;
  margin-top: 8px;
  font-size: clamp(2.5rem, 5.8vw, 5.6rem);
  overflow-wrap: anywhere;
  color: var(--accent2);
}

@supports (background-clip: text) {
  .hero__station {
    background: linear-gradient(100deg, #e5f5ff 8%, #63baff 48%, var(--accent) 90%);
    background-clip: text;
    color: transparent;
  }
}

.home .hero__text {
  max-width: 46ch;
  margin-bottom: 22px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.home .stat,
.home-player,
.listener-hub .card {
  background: linear-gradient(160deg, var(--glass), rgba(0, 0, 0, .14));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), var(--shadow);
}

.home .stat {
  padding: clamp(8px, 1.3vw, 16px);
}

.home .stat__num {
  font-size: clamp(.875rem, 1.5vw, 1.15rem);
  overflow-wrap: anywhere;
}

.home .stat__label {
  font-size: .75rem;
}

.home-player {
  min-width: 0;
  margin: 0;
  padding: clamp(16px, 2.4vw, 30px);
  scroll-margin-top: 92px;
}

.home-player__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.home-player__meta {
  min-width: 0;
}

.home-player__label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.home-player .ptrack {
  display: block !important;
  font-size: 1.2rem;
  white-space: normal;
  overflow-wrap: anywhere;
}

.home-player .plive {
  margin-top: 10px;
}

.home-player__art {
  width: clamp(56px, 7vw, 96px);
  aspect-ratio: 1;
  object-fit: contain;
  border: 1px solid var(--stroke);
  border-radius: var(--r);
  background: var(--bg1);
}

.home-player__wave {
  height: 24px;
  margin: 22px 0 10px;
  opacity: .55;
  background: repeating-linear-gradient(90deg, transparent 0 5px, rgba(127, 183, 252, .55) 5px 9px);
  clip-path: polygon(0 45%, 9% 37%, 20% 49%, 29% 20%, 40% 38%, 50% 0, 60% 28%, 71% 20%, 81% 40%, 92% 25%, 100% 46%, 100% 60%, 90% 70%, 80% 60%, 70% 78%, 61% 64%, 50% 100%, 40% 65%, 31% 80%, 20% 58%, 10% 64%, 0 56%);
}

.home-player .playerbar {
  flex-wrap: nowrap;
  border: 0;
  background: none;
  padding: 0;
}

.home-player .pbtn {
  flex: 0 0 auto;
  border-radius: 50%;
}

#radioToggle {
  width: 48px;
  height: 48px;
  background: #f8faff;
  color: #111625;
}

#radioToggle:hover {
  background: var(--accent2);
}

.home-player .pvol {
  order: 0;
  flex: 1;
  min-width: 0;
}

.home-player #vol {
  flex: 1;
  width: 100%;
  min-width: 0;
}

.home-player__status {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 10px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: var(--glass);
  color: var(--muted);
  font-size: .75rem;
}

.home-greetings {
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--stroke);
  border-radius: var(--r);
  background: linear-gradient(110deg, color-mix(in srgb, var(--accent) 16%, var(--bg1)), var(--bg2) 50%, var(--bg1));
}

.home-greetings .btn {
  flex: 0 0 auto;
}

.home-greetings .ticker {
  flex: 1;
  min-width: 0;
  align-content: center;
}

.listener-hub {
  margin: 32px 0;
}

.listener-hub .card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
}

.listener-hub__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: var(--glass);
  color: var(--accent2);
  font-size: 1.2rem;
}

.listener-hub .card__text {
  flex: 1;
  margin-bottom: 16px;
}

@media (max-width: 1240px) {
  .burger {
    display: inline-block;
    flex: 0 0 auto;
  }

  .menu {
    position: absolute;
    top: 74px;
    right: 16px;
    display: none;
    width: min(360px, calc(100% - 32px));
    max-height: calc(100dvh - 84px);
    overflow: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--stroke);
    border-radius: var(--r);
    background: var(--bg1);
    box-shadow: var(--shadow);
  }

  .menu.is-open {
    display: flex;
  }

  .dropdown {
    position: static;
  }
}

@media (max-width: 760px) {
  .container,
  .topbar__inner,
  .footer__inner {
    width: calc(100% - 32px);
  }

  .home .hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 36px 0 28px;
  }
}

@media (max-width: 480px) {
  .home-greetings {
    flex-direction: column;
  }

  .home-greetings .ticker {
    min-height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-greetings .ticker__track {
    max-width: 100%;
    overflow-x: auto;
    padding: 0 10px;
    animation: none;
  }
}

.topbar .brand {
  min-width: 0;
}

.topbar .menu {
  flex-shrink: 0;
}

.topbar .dropdown {
  left: auto;
  right: 0;
}

.subpage {
  padding-top: 104px;
}

.station-intro {
  padding: clamp(24px, 4vw, 60px);
  margin-bottom: 24px;
  border: 1px solid var(--stroke);
  border-radius: var(--r);
  background:
    radial-gradient(ellipse at top right, color-mix(in srgb, var(--accent) 17%, transparent), transparent 65%),
    linear-gradient(125deg, var(--bg2), var(--bg1));
  box-shadow: var(--shadow);
}

.station-kicker {
  display: inline-block;
  color: var(--accent2);
  font-size: .8rem;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.station-intro h1 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 5vw, 4.25rem);
  line-height: 1;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}

.station-intro p {
  max-width: 56ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.station-intro .btn,
.station-choices .btn {
  margin-top: 16px;
}

.station-section {
  margin: 0 0 22px;
  padding: clamp(16px, 2.5vw, 28px);
  background: linear-gradient(155deg, var(--glass), rgba(0, 0, 0, .12));
}

.station-section__head,
.station-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.station-section__head {
  justify-content: space-between;
  margin-bottom: 16px;
}

.station-section__head .panel__title {
  margin: 0;
}

.schedule-layout,
.station-choices {
  display: grid;
  align-items: start;
  gap: 16px;
}

.schedule-layout {
  grid-template-columns: minmax(155px, 215px) minmax(0, 1fr);
}

.station-choices {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.schedule-days {
  display: grid;
  gap: 8px;
  margin: 0;
}

.schedule-days h2 {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: .875rem;
}

.schedule-days .btn {
  position: relative;
  justify-content: flex-start;
}

.schedule-days__today {
  position: absolute;
  top: -7px;
  right: 0;
  padding: 3px 7px;
  border-radius: 999px;
  background: #d72d38;
  color: #fff;
  font-size: .6875rem;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 2px 5px rgb(0 0 0 / 30%);
}

.station-section .schedule__row {
  grid-template-columns: minmax(120px, max-content) minmax(0, 1fr);
  align-items: start;
  background: var(--glass);
}

.station-section .schedule__row--now {
  border-color: var(--accent);
}

.station-section .schedule__time {
  color: var(--accent2);
}

.station-section .schedule__name {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.schedule-layout .station-section {
  scroll-margin-top: 92px;
}

.schedule-controls {
  gap: 6px;
}

.schedule-controls .btn {
  min-height: 40px;
  white-space: nowrap;
}

.station-section .schedule__details {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.station-section .schedule__details .panel__hint::before {
  content: "·";
  margin-right: 8px;
}

.station-form,
.station-auth {
  max-width: 760px;
}

.station-auth {
  padding-top: clamp(36px, 9vw, 100px);
}

.station-team {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
}

.station-team__member {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  padding: 20px;
  overflow-wrap: anywhere;
}

.station-team__avatar {
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid var(--stroke);
  border-radius: 16px;
}

.station-team__member .pill {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  color: var(--muted);
  font-size: .75rem;
}

.station-community {
  background:
    radial-gradient(ellipse at top right, color-mix(in srgb, var(--accent) 10%, transparent), transparent 56%),
    linear-gradient(155deg, var(--glass), rgba(0, 0, 0, .12));
}

.station-community .station-kicker {
  margin-bottom: 5px;
}

.station-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.station-link {
  --tile-accent: var(--accent2);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  align-items: center;
  gap: 6px 10px;
  flex: 1 1 170px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: color-mix(in srgb, var(--tile-accent) 6%, var(--bg1));
  transition: background-color .18s, border-color .18s;
}

.station-link--facebook { --tile-accent: #86b8ff; }
.station-link--discord { --tile-accent: #b0aaff; }
.station-link--live { --tile-accent: #ff9a9c; }
.station-link--forum { --tile-accent: #83dfc4; }

.station-link:hover,
.station-link:focus-visible {
  border-color: var(--tile-accent);
  background-color: color-mix(in srgb, var(--tile-accent) 13%, var(--bg1));
}

.station-link__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 4px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--tile-accent) 16%, transparent);
  color: var(--tile-accent);
}

.station-link__icon svg {
  width: 19px;
  height: 19px;
}

.station-link__arrow {
  color: var(--tile-accent);
}

.station-link strong,
.station-link__description {
  grid-column: 1 / -1;
  overflow-wrap: anywhere;
}

.station-link__description {
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.4;
}

.home-programme {
  display: grid;
  align-items: start;
  gap: 16px;
  margin-bottom: 22px;
}

.home-programme--with-chat {
  grid-template-columns: min(692px, 60%) minmax(0, 1fr);
}

.home-programme > .station-section {
  min-width: 0;
  margin: 0;
  padding: clamp(14px, 2vw, 20px);
}

.home-programme .schedule__row {
  grid-template-columns: minmax(100px, max-content) minmax(0, 1fr);
  gap: 8px;
  padding: 10px;
  font-size: .875rem;
  overflow-wrap: anywhere;
}

.home-chat {
  scroll-margin-top: 92px;
}

.home-chat__cover {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(156px, 17vw, 220px);
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: var(--r);
  background: radial-gradient(ellipse at top right, var(--accent), transparent 75%), var(--bg2);
  color: #fff;
}

.home-chat__cover[hidden] {
  display: none;
}

.home-chat__cover::before,
.home-chat__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-chat__image {
  z-index: -2;
  object-fit: cover;
}

.home-chat__cover::before {
  z-index: -1;
  content: "";
  background: linear-gradient(135deg, rgba(8, 13, 29, .8), rgba(8, 13, 29, .55));
}

.home-chat__caption {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.home-chat__caption strong {
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
}

.home-chat__icon {
  width: 34px;
  height: 34px;
  color: var(--accent2);
}

.home-chat__cover:hover {
  border-color: var(--accent2);
}

.home-chat iframe {
  display: block;
  max-width: 100%;
  margin-inline: auto;
  border: 0;
  box-shadow: 0 0 0 1px var(--stroke);
  border-radius: var(--r);
  background: var(--bg1);
}

@media (max-width: 760px) {
  .home-programme--with-chat,
  .schedule-layout,
  .station-choices {
    grid-template-columns: minmax(0, 1fr);
  }

  .schedule-days {
    display: flex;
    flex-wrap: wrap;
  }

  .schedule-days h2 {
    flex-basis: 100%;
  }

  .schedule-days .btn {
    font-size: .875rem;
  }
}

@media (max-width: 480px) {
  .station-section .schedule__row,
  .home-programme .schedule__row {
    grid-template-columns: minmax(0, 1fr);
  }
}
