:root {
  --navy: #041E38;
  --ink: #062440;
  --body: rgba(6, 30, 56, .66);
  --dim: rgba(6, 30, 56, .50);
  --line: rgba(6, 30, 56, .12);
  --cyan: #15D3D2;
  --teal: #109BB3;
  --teal-deep: #0D6681;
  --gold: #F4B50B;
  --orange: #F08B15;
  --orange-dp: #E5691A;
  --panel: rgba(255, 255, 255, .84);
  --panel-strong: rgba(255, 255, 255, .96);
  --shadow: rgba(6, 30, 56, .14);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: auto;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(78% 48% at 50% -3%, rgba(244, 181, 11, .18) 0%, rgba(240, 139, 21, .06) 40%, transparent 66%),
    radial-gradient(68% 46% at 84% 18%, rgba(21, 211, 210, .16) 0%, transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, #F6FBFC 55%, #E7F4F6 100%);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

.waves {
  bottom: 0;
  display: none !important;
  height: clamp(120px, 22vh, 220px);
  left: 0;
  pointer-events: none;
  position: fixed;
  right: 0;
  width: 100%;
  z-index: 0;
}

.waves svg {
  display: block;
  height: 100%;
  width: 200%;
}

.waves .layer {
  animation: drift linear infinite;
}

.waves .l1 {
  animation-duration: 22s;
}

.waves .l2 {
  animation-direction: reverse;
  animation-duration: 16s;
}

.waves .l3 {
  animation-duration: 12s;
}

@keyframes drift {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.wrap {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(1.4rem, 4vw, 2.2rem) clamp(1.25rem, 5vw, 2rem);
  position: relative;
  width: 100%;
  z-index: 2;
}

.bug {
  align-items: center;
  color: var(--dim);
  display: flex;
  font-family: "Space Mono", monospace;
  font-size: .72rem;
  gap: 1rem;
  justify-content: space-between;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.bug .ch {
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  padding: .34rem .6rem;
}

.onair {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  gap: .5rem;
}

.dot {
  animation: blink 1.7s steps(1) infinite;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(240, 139, 21, .7);
  height: .55rem;
  width: .55rem;
}

@keyframes blink {
  0%,
  62% {
    opacity: 1;
  }

  63%,
  100% {
    opacity: .2;
  }
}

.hero {
  align-items: center;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: clamp(.9rem, 2vw, 1.25rem);
  justify-content: flex-start;
  padding: 50px 0 0;
  text-align: center;
}

.logo {
  animation: pop 1s .1s cubic-bezier(.2, .85, .25, 1) forwards;
  display: block;
  filter: drop-shadow(0 14px 30px rgba(6, 30, 56, .14));
  height: auto;
  max-width: 165px;
  opacity: 0;
  transform: scale(.965);
  width: min(78vw, 165px);
}

@keyframes pop {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.headline {
  animation: rise .8s .5s cubic-bezier(.2, .8, .2, 1) forwards;
  color: var(--navy);
  font-size: clamp(1.85rem, 5.4vw, 3rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.04;
  max-width: 17ch;
  opacity: 0;
}

.headline .accent {
  background: linear-gradient(102deg, var(--teal-deep) 0%, var(--teal) 42%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lede {
  animation: rise .8s .6s cubic-bezier(.2, .8, .2, 1) forwards;
  color: var(--body);
  font-size: clamp(1rem, 2.5vw, 1.12rem);
  line-height: 1.62;
  max-width: 56ch;
  opacity: 0;
}

.lede .alive {
  color: var(--orange-dp);
  font-weight: 700;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.streaming {
  animation: rise .8s .7s cubic-bezier(.2, .8, .2, 1) forwards;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: minmax(0, 1.75fr) minmax(320px, .85fr);
  opacity: 0;
  padding: 30px 0 50px;
  text-align: left;
  width: 100%;
}

.player-panel,
.playlist-panel,
.empty-state {
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px var(--shadow);
}

.player-panel {
  overflow: hidden;
}

.video-shell {
  aspect-ratio: 16 / 9;
  background: #010912;
  border-bottom: 1px solid var(--line);
  position: relative;
  width: 100%;
}

.stream-player {
  display: block;
  height: 100%;
  width: 100%;
}

.now-playing {
  padding: 1rem clamp(1rem, 2vw, 1.3rem) 1.2rem;
}

.eyebrow {
  color: var(--teal-deep);
  font-family: "Space Mono", monospace;
  font-size: .72rem;
  letter-spacing: .14em;
  margin-bottom: .45rem;
  text-transform: uppercase;
}

.now-playing h2 {
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.18;
  margin-bottom: .35rem;
}

.now-playing p:last-child {
  color: var(--dim);
  font-family: "Space Mono", monospace;
  font-size: .82rem;
}

.playlist-panel {
  display: flex;
  flex-direction: column;
  max-height: min(72vh, 680px);
  min-height: 0;
  overflow: hidden;
}

.playlist-heading {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 1rem;
}

.playlist-heading .eyebrow {
  margin-bottom: 0;
}

.playlist-heading span {
  color: var(--dim);
  font-family: "Space Mono", monospace;
  font-size: .72rem;
}

.playlist {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  overflow: auto;
  padding: .6rem;
}

.playlist-item {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: .75rem;
  grid-template-columns: 96px minmax(0, 1fr);
  padding: .55rem;
  text-align: left;
  transition: background .2s, border-color .2s, transform .15s;
  width: 100%;
}

.playlist-item:hover,
.playlist-item:focus-visible {
  background: rgba(21, 211, 210, .10);
  border-color: rgba(16, 155, 179, .28);
  outline: none;
  transform: translateY(-1px);
}

.playlist-item.is-active {
  background: rgba(244, 181, 11, .16);
  border-color: rgba(244, 181, 11, .48);
}

.playlist-item img {
  aspect-ratio: 16 / 9;
  background: rgba(6, 30, 56, .08);
  border-radius: 6px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.playlist-item strong,
.playlist-item small {
  display: block;
}

.playlist-item strong {
  color: var(--ink);
  font-size: .95rem;
  line-height: 1.25;
}

.playlist-item small {
  color: var(--dim);
  font-family: "Space Mono", monospace;
  font-size: .72rem;
  line-height: 1.45;
  margin-top: .3rem;
}

.empty-state {
  color: var(--body);
  grid-column: 1 / -1;
  padding: clamp(2.5rem, 8vw, 5rem);
  text-align: center;
}

.empty-state p {
  color: var(--ink);
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  font-weight: 700;
}

.foot {
  border-top: 1px solid var(--line);
  color: var(--dim);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: auto;
  padding-top: 1.8rem;
  position: relative;
  z-index: 2;
}

.rebrand {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: .95rem;
  padding: 40px 0;
  text-align: center;
}

.rebrand-logos {
  align-items: center;
  display: flex;
  gap: clamp(1rem, 4vw, 2.2rem);
  justify-content: center;
}

.rebrand-item {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.rebrand-item img {
  height: auto;
  width: clamp(62px, 9vw, 84px);
}

.rebrand-item.is-new img {
  filter: drop-shadow(0 8px 20px rgba(6, 30, 56, .12));
  width: clamp(84px, 12vw, 112px);
}

.rebrand-item.is-old img {
  filter: none;
}

.rebrand-item figcaption {
  color: var(--dim);
  font-family: "Space Mono", monospace;
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.rebrand-item.is-new figcaption {
  color: var(--teal-deep);
}

.rebrand-arrow {
  color: var(--orange);
  font-size: 1.7rem;
  line-height: 1;
}

.rebrand-note {
  color: var(--body);
  font-size: .82rem;
  line-height: 1.55;
  max-width: 52ch;
}

.foot-meta {
  align-items: center;
  color: var(--dim);
  display: flex;
  flex-wrap: wrap;
  font-family: "Space Mono", monospace;
  font-size: .72rem;
  gap: 1rem;
  justify-content: space-between;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.foot a {
  color: var(--dim);
  text-decoration: none;
  transition: color .2s;
}

.foot a:hover {
  color: var(--orange-dp);
}

.social {
  display: flex;
  gap: 1.25rem;
}

h2#now-playing-title, .playlist-item strong {
    text-transform: capitalize;
}

@media (max-width: 900px) {
  .streaming {
    grid-template-columns: 1fr;
  }

  .playlist-panel {
    max-height: none;
  }
}

@media (max-width: 520px) {
  .wrap {
    padding: 10px 20px;
  }

  .bug {
    align-items: center;
    flex-direction: column;
  }

  .bug .ch {
    display: none;
  }

  .playlist-item {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .foot-meta {
    align-items: center;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .waves .layer,
  .dot {
    animation: none;
  }

  .logo,
  .headline,
  .lede,
  .streaming {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .playlist-item {
    transition: none;
  }
}
