:root {
  --site-radio-height: 48px;
  --site-radio-bg: #292929;
  --site-radio-panel: #292929;
  --site-radio-text: #ffffff;
  --site-radio-muted: #b6b6b6;
  --site-radio-accent: #f51e25;
  --site-radio-border: rgba(255, 255, 255, .12);
}

#siteRadioPlayer {
  position: fixed;
  inset: 0 0 auto;
  z-index: 2100;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: var(--site-radio-height);
  padding: 5px 12px;
  box-sizing: border-box;
  overflow: hidden;
  color: var(--site-radio-text);
  background: var(--site-radio-bg);
  border-bottom: 1px solid var(--site-radio-border);
  font-family: inherit;
  isolation: isolate;
}

.site-radio-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 560px);
  margin-left: auto;
  min-width: 0;
  height: 100%;
}

.site-radio-song {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 2px;
}

.site-radio-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.site-radio-song #siteRadioTrack {
  display: block;
  max-width: none;
  max-height: none;
  white-space: nowrap;
}

.site-radio-song #siteRadioArtist {
  max-width: none;
  font-size: 11px;
  line-height: 1.1;
}

.site-radio-song #siteRadioArtist:not(:empty)::before {
  content: none;
}

.site-radio-volume-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

#siteRadioPlayer.is-disabled,
html.site-radio-disabled #siteRadioPlayer {
  display: none;
}

#siteRadioPlayer button,
#siteRadioPlayer input {
  font: inherit;
}

#siteRadioPlay,
#siteRadioMute {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--site-radio-text);
  background: var(--site-radio-panel);
  border: 1px solid var(--site-radio-border);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

#siteRadioPlay {
  width: 36px;
  height: 36px;
  color: #ffffff;
  background: transparent;
  border-color: #ffffff;
}

#siteRadioMute {
  width: 26px;
  border: 0;
  background: transparent;
  color: #ffffff;
}

#siteRadioPlay:hover,
#siteRadioPlay:focus-visible {
  color: #ffffff;
  background: transparent;
  border-color: #ffffff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .08);
}

#siteRadioMute:hover,
#siteRadioMute:focus-visible {
  color: #ffffff;
  background: transparent;
  outline: none;
}

#siteRadioPlay:active,
#siteRadioMute:active {
  transform: scale(.95);
}

#siteRadioPlay:disabled {
  opacity: .5;
  cursor: default;
}

#siteRadioPlayIcon {
  display: inline-block;
  font-size: 14px;
  line-height: 1;
}

#siteRadioPlayIcon svg,
#siteRadioMute svg {
  display: block;
}

.site-radio-meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 100%;
  overflow: hidden;
}

#siteRadioTrack,
#siteRadioArtist {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

#siteRadioTrack {
  display: -webkit-box;
  max-width: min(34vw, 360px);
  max-height: 2.2em;
  color: var(--site-radio-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.1;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#siteRadioArtist {
  max-width: min(28vw, 300px);
  color: var(--site-radio-muted);
  font-size: 12px;
  white-space: nowrap;
}

#siteRadioArtist:not(:empty)::before {
  content: '—';
  margin-right: 7px;
  color: var(--site-radio-accent);
}

.site-radio-live {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--site-radio-accent);
  color: #ffffff;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.site-radio-live::before {
  content: none;
}

.site-radio-equalizer {
  display: inline-flex;
  align-items: end;
  justify-content: center;
  gap: 2px;
  width: 18px;
  height: 17px;
  margin-left: 1px;
}

.site-radio-equalizer span {
  display: block;
  width: 3px;
  height: 5px;
  border-radius: 2px;
  background: var(--site-radio-accent);
  opacity: .38;
}

#siteRadioPlayer.is-playing .site-radio-equalizer span {
  opacity: 1;
  animation: site-radio-equalizer 1.05s ease-in-out infinite alternate;
}

#siteRadioPlayer.is-playing .site-radio-equalizer span:nth-child(2) {
  animation-delay: -.55s;
}

#siteRadioPlayer.is-playing .site-radio-equalizer span:nth-child(3) {
  animation-delay: -.25s;
}

@keyframes site-radio-equalizer {
  from { height: 4px; }
  to { height: 15px; }
}

#siteRadioVolume {
  flex: 0 1 76px;
  width: 76px;
  height: 18px;
  margin: 0;
  appearance: none;
  background: transparent;
  accent-color: var(--site-radio-accent);
  cursor: pointer;
}

#siteRadioVolume::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--site-radio-accent) 0 var(--radio-volume-percent, 65%), #666 var(--radio-volume-percent, 65%) 100%);
}

#siteRadioVolume::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: calc((4px - 12px) / 2);
  border: 0;
  border-radius: 50%;
  background: #ffffff;
}

#siteRadioVolume::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: #666;
}

#siteRadioVolume::-moz-range-progress {
  height: 4px;
  background: var(--site-radio-accent);
}

#siteRadioVolume::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
}

#siteRadioMute {
  font-size: 15px;
}

#siteRadioStatus {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#siteRadioStatus.is-error {
  position: static;
  flex: 0 1 180px;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  white-space: normal;
  font-size: 11px;
  line-height: 1.15;
  color: #ffb2a8;
}

#siteRadioContent {
  position: fixed;
  z-index: 1;
  inset: var(--site-radio-height) 0 0;
  display: block;
  width: 100%;
  height: calc(100vh - var(--site-radio-height));
  height: calc(100dvh - var(--site-radio-height));
  margin: 0;
  padding: 0;
  border: 0;
  background: #fff;
}

html.site-radio-disabled #siteRadioContent {
  inset: 0;
  height: 100vh;
  height: 100dvh;
}

html.site-radio-shell,
html.site-radio-shell body {
  width: 100%;
  height: 100%;
  overflow: hidden !important;
}

html.site-radio-shell body {
  padding-top: var(--site-radio-height);
}

html.site-radio-shell body > :not(#siteRadioPlayer):not(#siteRadioContent):not(script):not(style):not(link) {
  display: none !important;
}

html.site-radio-enabled #mainHeader {
  top: var(--site-radio-height) !important;
}

html.site-radio-disabled body {
  padding-top: 0;
}

html.site-radio-disabled #mainHeader {
  top: 0 !important;
}

/* The gallery overlay must remain above the fixed player and never lose its viewport. */
html.site-radio-enabled .photoGalleryLightbox,
html.site-radio-enabled [data-photo-lightbox] {
  z-index: 10050 !important;
}

@media (max-width: 720px) {
  #siteRadioPlayer {
    gap: 7px;
    padding-inline: 8px;
  }

  .site-radio-live {
    display: inline-flex;
  }

  #siteRadioTrack {
    max-width: 43vw;
  }

  #siteRadioArtist {
    max-width: 25vw;
  }

  .site-radio-inner {
    gap: 7px;
  }

  #siteRadioVolume {
    display: block;
    flex: 0 0 52px;
    width: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #siteRadioPlay,
  #siteRadioMute {
    transition: none;
  }

  #siteRadioPlayer.is-playing .site-radio-equalizer span {
    animation: none;
    height: 9px;
  }
}
