@font-face {
  font-family: 'es_buildregular';
  src:
    url('https://scoryx.com/assets/fonts/es_build-webfont.woff2') format('woff2'),
    url('https://scoryx.com/assets/fonts/es_build-webfont.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'es_buildmedium';
  src:
    url('https://scoryx.com/assets/fonts/es_build_medium-webfont.woff2') format('woff2'),
    url('https://scoryx.com/assets/fonts/es_build_medium-webfont.woff') format('woff');
  font-display: swap;
}

:root {
  --bg: #090914;
  --panel: #10101d;
  --text: #f5f4fa;
  --muted: #858293;
  --line: rgba(255,255,255,.09);
  --accent: #7958ff;
  --live: #ff466d;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: #090914;
  color: var(--text);
  font-family: 'es_buildregular', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: -25%;
  background:
    radial-gradient(
      circle at 20% 25%,
      rgba(88, 48, 172, .38),
      transparent 34%
    ),
    radial-gradient(
      circle at 78% 70%,
      rgba(0, 108, 122, .24),
      transparent 34%
    ),
    radial-gradient(
      circle at 68% 18%,
      rgba(73, 43, 134, .18),
      transparent 29%
    );

  transform: translate3d(0, 0, 0) scale(1.1);
  animation:
    scoryxBackground 32s
    ease-in-out
    infinite alternate;
}

@keyframes scoryxBackground {
  0% {
    transform:
      translate3d(-2%, -2%, 0)
      scale(1.08);
  }

  40% {
    transform:
      translate3d(3%, 1%, 0)
      scale(1.13);
  }

  70% {
    transform:
      translate3d(-1%, 4%, 0)
      scale(1.1);
    }

  100% {
    transform:
      translate3d(4%, -1%, 0)
      scale(1.15);
  }
}

.radio-shell {
  width: min(940px, 100%);
  min-height: 640px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 10, 22, .54);
  padding: 42px 48px;
}

.radio-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.brand img {
  display: block;
  width: 90px;
}

.on-air {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--live);
  font-family: 'es_buildmedium', sans-serif;
  font-size: 12px;
}

.on-air-dot {
  width: 7px;
  height: 7px;
  background: var(--live);
  border-radius: 50%;
}

.now-playing {
  margin-top: auto;
  text-align: left;
  max-width: 760px;
}

.now-label {
  margin-bottom: 16px;
  color: var(--muted);
  font-family: 'es_buildmedium', sans-serif;
  font-size: 11px;
}

.track-title-viewport {
  width: 100%;
  overflow: hidden;
}

.track-title {
  margin: 0;
  width: max-content;
  min-width: 100%;
  white-space: nowrap;
  font-family: 'es_buildmedium', sans-serif;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  font-weight: normal;
  transform: translateX(0);
}

.track-title.is-scrolling {
  animation:
    trackPan var(--track-duration, 16s)
    ease-in-out
    infinite alternate;
}

@keyframes trackPan {
  0%,
  14% {
    transform: translateX(0);
  }

  86%,
  100% {
    transform: translateX(var(--track-shift, 0px));
  }
}

.track-artist {
  margin-top: 13px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
}

.visualizer-wrap {
  height: 125px;
  display: flex;
  align-items: flex-end;
  margin: 30px 0 35px;
}

#visualizer {
  width: 100%;
  height: 100%;
}

.radio-footer {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.stream-meta {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
}

.stream-meta strong {
  color: var(--text);
  font-family: 'es_buildmedium', sans-serif;
  font-weight: normal;
}

.meta-divider {
  width: 3px;
  height: 3px;
  background: var(--muted);
  border-radius: 50%;
  opacity: .5;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 18px;
}

.play {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--text);
  color: #080810;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.play svg {
  width: 20px;
  height: 20px;
}

.volume-icon {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.volume-icon img {
  width: 22px;
  height: 22px;
}

#volume {
  flex: 1;
  max-width: 360px;
  accent-color: var(--accent);
}

.offline .on-air {
  color: var(--muted);
}

.offline .on-air-dot {
  background: var(--muted);
}

@media (max-width: 650px) {
  body {
    padding: 14px;
  }

  .radio-shell {
    min-height: calc(100vh - 28px);
    padding: 28px 24px;
  }

  .radio-header {
    grid-template-columns: 1fr auto;
  }

  .brand img {
    width: 90px;
  }

  .visualizer-wrap {
    height: 90px;
  }
}