.tsb-radio-player {
  --tsb-player-navy: #07065e;
  --tsb-player-magenta: #f000de;
  --tsb-player-cyan: #0bd9ee;
  --tsb-player-white: #ffffff;
  position: fixed;
  z-index: 99999;
  left: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 162px minmax(0, 468px);
  grid-template-rows: 132px 39px;
  width: min(630px, calc(100vw - 24px));
  height: 171px;
  overflow: visible;
  color: var(--tsb-player-white);
  background: var(--tsb-player-navy);
  box-shadow: 0 12px 34px rgba(3, 2, 47, 0.34), 0 0 18px rgba(240, 0, 222, 0.18);
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  letter-spacing: 0;
}

.tsb-radio-player *,
.tsb-radio-player *::before,
.tsb-radio-player *::after {
  box-sizing: border-box;
}

.tsb-radio-player__cover {
  grid-row: 1 / 3;
  min-width: 0;
  overflow: hidden;
  background: #12112c;
}

.tsb-radio-player__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tsb-radio-player__logo-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--tsb-player-cyan);
  background: linear-gradient(135deg, #12112c 0 48%, #bb00af 48% 52%, #12112c 52%);
  font-size: 34px;
  font-weight: 800;
}

.tsb-radio-player__info {
  position: relative;
  min-width: 0;
  padding: 9px 16px 10px;
  background: var(--tsb-player-navy);
}

.tsb-radio-player__live-label {
  width: calc(100% - 154px);
  overflow: hidden;
  color: var(--tsb-player-cyan);
  font-size: 14px;
  font-weight: 800;
  line-height: 24px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tsb-radio-player__utility {
  position: absolute;
  top: 13px;
  right: 10px;
  display: flex;
  gap: 10px;
}

.tsb-radio-player__utility button {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--tsb-player-white);
  background: var(--tsb-player-magenta);
  font: inherit;
  font-size: 23px;
  line-height: 1;
  cursor: default;
  opacity: 1;
}

.tsb-radio-player__track-title {
  margin-top: 17px;
  max-width: calc(100% - 12px);
  overflow: hidden;
  color: #bdeaff;
  font-size: 13px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tsb-radio-player__track-time {
  overflow: hidden;
  color: #bdeaff;
  font-size: 11px;
  line-height: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tsb-radio-player__track-meta {
  overflow: hidden;
  color: #92e6ed;
  font-size: 11px;
  line-height: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tsb-radio-player__status {
  overflow: hidden;
  color: #92e6ed;
  font-size: 12px;
  line-height: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tsb-radio-player__controls {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 0 66px 0 12px;
  background: var(--tsb-player-magenta);
}

.tsb-radio-player__volume-icon {
  font-size: 20px;
  line-height: 1;
}

.tsb-radio-player__volume-control {
  display: flex;
  width: 120px;
  align-items: center;
}

.tsb-radio-player__volume {
  --tsb-volume: 70%;
  width: 100%;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.tsb-radio-player__volume::-webkit-slider-runnable-track {
  height: 7px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--tsb-player-cyan) 0 var(--tsb-volume), rgba(255, 255, 255, 0.42) var(--tsb-volume) 100%);
}

.tsb-radio-player__volume::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -3.5px;
  border: 0;
  border-radius: 50%;
  background: #c9e4f5;
  box-shadow: 0 1px 4px rgba(3, 2, 47, 0.32);
  appearance: none;
  -webkit-appearance: none;
}

.tsb-radio-player__volume::-moz-range-track {
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.42);
}

.tsb-radio-player__volume::-moz-range-progress {
  height: 7px;
  border-radius: 4px;
  background: var(--tsb-player-cyan);
}

.tsb-radio-player__volume::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: #c9e4f5;
}

.tsb-radio-player__volume:focus-visible {
  outline: 2px solid var(--tsb-player-white);
  outline-offset: 3px;
}

.tsb-radio-player__quality {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  color: var(--tsb-player-white);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.tsb-radio-player__play {
  position: absolute;
  right: 18px;
  bottom: 8px;
  display: grid;
  width: 58px;
  height: 58px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #041450;
  background: var(--tsb-player-cyan);
  box-shadow: 0 4px 12px rgba(4, 20, 80, 0.28);
  cursor: pointer;
}

.tsb-radio-player__play span {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid currentColor;
}

.tsb-radio-player[data-playing="1"] .tsb-radio-player__play span {
  width: 14px;
  height: 14px;
  margin-left: 0;
  border: 0;
  background: currentColor;
}

.tsb-radio-player__play:focus-visible {
  outline: 3px solid var(--tsb-player-white);
  outline-offset: 3px;
}

.tsb-radio-player__play:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .tsb-radio-player {
    left: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-rows: 100px 38px;
    width: calc(100vw - 16px);
    height: 138px;
  }

  .tsb-radio-player__info {
    padding: 7px 10px;
  }

  .tsb-radio-player__live-label {
    width: calc(100% - 108px);
    font-size: 13px;
    line-height: 20px;
  }

  .tsb-radio-player__utility {
    top: 8px;
    right: 8px;
    gap: 6px;
  }

  .tsb-radio-player__utility button {
    width: 30px;
    height: 30px;
    font-size: 17px;
  }

  .tsb-radio-player__track-title {
    margin-top: 12px;
    font-size: 12px;
    line-height: 16px;
  }

  .tsb-radio-player__controls {
    padding-right: 56px;
  }

  .tsb-radio-player__volume-control {
    width: min(100px, 30vw);
  }

  .tsb-radio-player__quality {
    font-size: 10px;
  }

  .tsb-radio-player__play {
    right: 12px;
    bottom: 6px;
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 390px) {
  .tsb-radio-player {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .tsb-radio-player__utility button:nth-child(2) {
    display: none;
  }

  .tsb-radio-player__live-label {
    width: calc(100% - 72px);
  }

  .tsb-radio-player__quality span[aria-hidden="true"] {
    display: none;
  }

  .tsb-radio-player__quality {
    display: grid;
    gap: 1px;
  }
}
