/* =========================
   Radio Panel (flex)
   ========================= */

.nav_current_song {
  white-space: nowrap;
  cursor: pointer;
  font: 1.25em 'Scada';
  border-radius: 4px;
  border: 1px solid #CFCFCF;
  height: 40px;

  background-size: 100px 48px;
  background-image: linear-gradient(to bottom, rgb(250 250 250 / 100%), rgb(220 220 220 / 80%)), url(./images/ezgif.gif);
  background-blend-mode: lighten;

  /* layout */
  display: flex;
  align-items: stretch;
  gap: 0;

  /* desktop placement */
  float: left;

  /* allow enlarged artist image to overflow */
  overflow: visible;
  box-sizing: border-box;
}

.nav_current_song:hover {
  background-image: linear-gradient(to bottom, rgb(230 230 230 / 100%), rgb(255 255 255 / 85%)), url(./images/ezgif.gif);
}

/* =========================
   Artist image (left)
   ========================= */

.radio_artist_link {
  display: inline-flex;
  align-items: stretch;
  flex: 0 0 auto;

  border-right: 1px solid #cfcfcf;

  /* stacking context for hover zoom */
  position: relative;
  overflow: visible;
  z-index: 2;
}

.artist_image {
  width: 38px;
  height: 38px;
  display: block;

  transition: transform 0.6s, border-radius 0.6s, box-shadow 0.6s;
  border-radius: 3px 0 0 3px;

  transform-origin: left center;
  will-change: transform;
}

.radio_artist_link:hover .artist_image {
  transform: scale(1.3);
  border-radius: 3px;
  box-shadow: 3px 3px 22px 0px rgba(128,128,128,1);
}

/* =========================
   Now playing (right)
   ========================= */

.radio_nowplaying {
  display: flex;
  align-items: center;
  gap: 10px;

  height: 40px;
  padding: 0 14px 0 10px;

  flex: 1 1 auto;
  min-width: 0; /* needed for ellipsis */
  color: #393b44;
}

.radio_nowplaying:hover {
  color: #833737;
}

.radio_nowplaying .rp-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 100%;
  /* min-width: 38px; */
  padding: 0 6px;

  font-size: 1.6em;
  line-height: 1;
  flex: 0 0 auto;
}

.radio_nowplaying .rp-title {
  display: flex;
  flex-direction: column;
  justify-content: center;

  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.2;
}

.radio_nowplaying .rp-title .rp-artist,
.radio_nowplaying .rp-title .rp-song {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.radio_nowplaying .rp-title .rp-artist {
  font-weight: 700;
}

.radio_nowplaying .rp-listeners {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  flex: 0 0 auto;
  white-space: nowrap;

  padding-left: 10px;
  border-left: 1px solid #cfcfcf;
  font-size: 1.3em;
}

/* =========================
   Responsive
   ========================= */

@media (min-width: 800px) {
  .nav_current_song {
    float: left;
  }
}

@media (max-width: 799px) {
  .nav_current_song {
    width: 100%;
    max-width: 100%;
    float: none;
  }

  /* keep image left, center the nowplaying content within remaining space */
  .radio_nowplaying {
    justify-content: center;
    padding-left: 10px;
    padding-right: 10px;
  }
}