.player-bar {
  position: sticky;
  bottom: 0;
  z-index: 30;
  flex: none;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -6px 24px rgba(72, 2, 6, 0.12);
}

.player-bar__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--player-h);
  padding-top: 10px;
  padding-bottom: 10px;
}

.player-bar__logo { height: 38px; width: auto; flex: none; }

.player-bar__cover {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  background: var(--red);
}

.player-bar__cover .cover__logo { width: 40px; height: auto; }

.player-bar__track { min-width: 0; flex: 0 1 240px; }
.player-bar__station { display: block; font-size: 11px; font-weight: 800; letter-spacing: 1px; color: var(--red-dark); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-bar__title { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-bar__artist { display: block; font-size: 13px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.player-bar__live {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  flex: none;
  border: 1.5px solid var(--red);
  border-radius: var(--pill);
  color: var(--red-dark);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1px;
}

.player-bar__play {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 20px;
  box-shadow: 0 6px 18px rgba(227, 6, 19, 0.35);
}

.player-bar__play:hover { filter: brightness(0.92); }
.player-bar__play.is-loading { animation: player-pulse 1s ease-in-out infinite; }

@keyframes player-pulse {
  50% { opacity: 0.6; }
}

.player-bar__volume { display: flex; align-items: center; gap: 10px; color: var(--red-dark); }
.player-bar__mute { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0 -12px; padding: 0; border: 0; background: none; color: inherit; font-size: 20px; }

/* The next-event teaser: its text is clipped when space runs out, the agenda pill keeps its size. */
.player-bar__next { margin-left: auto; display: flex; align-items: center; gap: 14px; min-width: 0; }
.player-bar__next-text { text-align: right; min-width: 0; overflow: hidden; }
.player-bar__next-text span { display: block; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-bar__next-text strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-bar__error { font-size: 13px; font-weight: 700; color: var(--red-dark); }

/* While the stream error shows, it takes the place of the next-event teaser. */
.player-bar__error:not([hidden]) ~ .player-bar__next { display: none; }

/* Tablets: everything has to fit next to the volume slider; the red cover still shows the logo. */
@media (max-width: 1000px) {
  .player-bar__next-text,
  .player-bar__logo { display: none; }
  .player-bar__next { flex: none; } /* only the pill is left, and it cannot shrink: the track title gives way */
}

@media (max-width: 760px) {
  .player-bar__inner { gap: 12px; }
  .player-bar__track { flex: 1 1 auto; }
  .player-bar__play { order: 3; flex-basis: 52px; width: 52px; height: 52px; }
}
