/* One listening workspace; the audio element stays outside its views. */
.persistent-player-host .mini-player__track {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #d5e2dc;
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: 12px;
  box-shadow: none;
}
.mini-player__track span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-status { color: #b8cec4; font-size: 12px; line-height: 1.4; text-transform: none; }
[data-playback-status="error"] .player-status { color: #ffd3ba; }
[data-playback-status="playing"] .mini-player .player-status { display: none; }
.persistent-player-host .mini-player__art { padding: 0; border-radius: 6px; overflow: hidden; }
.fullscreen-player {
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 16px;
  color: #f4f6f2;
  background: #122422;
  min-height: 0;
}
.fullscreen-player__workspace { display: grid; width: min(100%, 1180px); min-height: 0; margin: 0 auto; gap: 36px; }
.fullscreen-player__content { width: 100%; gap: 36px; padding: 12px 0; }
.fullscreen-player__details { overflow-wrap: anywhere; }
.fullscreen-player__details h2 { font-size: clamp(26px, 3.5vw, 44px); }
.fullscreen-player[data-panel] .fullscreen-player__workspace { grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr); }
.fullscreen-player[data-panel] .fullscreen-player__content { grid-template-columns: 1fr; align-content: center; justify-items: start; gap: 18px; overflow: auto; }
.fullscreen-player[data-panel] .fullscreen-player__art { width: min(100%, 30vh, 300px); justify-self: start; box-shadow: none; }
.fullscreen-player[data-panel] .fullscreen-player__details h2 { font-size: clamp(24px, 2.4vw, 32px); }
.fullscreen-player .fullscreen-player__art { max-height: none; height: auto; align-self: center; }
.fullscreen-player__controls { width: min(100%, 1180px); grid-template-columns: 1fr auto 1fr; padding-top: 14px; }
.fullscreen-player__utilities { gap: 8px; }
.fullscreen-player__utilities > [data-dsp-toggle] { display: none; }
.player-panel-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.player-panel-tabs button,
.player-panels__back { min-height: 44px; padding: 10px 16px; border: 1px solid #49635b; border-radius: 6px; background: transparent; color: #f4f6f2; font: inherit; font-size: 14px; cursor: pointer; }
.player-panel-tabs button[aria-expanded="true"] { background: #d8f3e6; color: #122422; border-color: #d8f3e6; }
.fullscreen-player :focus-visible { outline: 3px solid #8bdbb4; outline-offset: 3px; }
.player-panels { min-height: 0; overflow: auto; padding: 20px 24px; background: #f4f6f2; color: #122422; border-radius: 10px; scroll-behavior: auto; }
.player-panels__back { padding-left: 0; margin-bottom: 16px; color: #126f69; border: 0; font-weight: 700; }
.player-panels [hidden], .player-panels[hidden] { display: none; }
.player-panels .dsp-panel, .player-panels .lyrics-dialog { position: static; display: block; inset: auto; max-height: none; padding: 0; border: 0; background: transparent; box-shadow: none; overflow: visible; }
.player-panels .dsp-panel[hidden], .player-panels .lyrics-dialog[hidden] { display: none; }
.player-panels .dsp-panel__surface { width: 100%; max-height: none; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
.player-panels .dsp-panel__backdrop, .player-panels [data-dsp-close], .player-panels [data-lyrics-close], .player-panels .eyebrow { display: none; }
.player-panels .lyrics-dialog pre { color: #122422; font-size: 18px; line-height: 1.7; overflow-wrap: anywhere; }
.player-panels .lyrics-dialog__header { color: #122422; }
.player-panels .lyrics-dialog__header small { color: #53645f; }
.player-panels :focus-visible { outline-color: #126f69; }
.player-about h3 { margin: 0 0 24px; font-size: 22px; }
.player-about__title { margin-bottom: 6px; font-size: 24px; font-weight: 750; overflow-wrap: anywhere; }
.player-about__links { display: grid; gap: 0; margin: 24px 0; }
.player-about__links a { display: block; padding: 16px 0; border-bottom: 1px solid #d8e2db; color: #126f69; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.player-about__links a[hidden] { display: none; }
.player-about__note, [data-about-empty] { color: #53645f; font-size: 14px; line-height: 1.6; }
@media (max-width: 860px) {
  .fullscreen-player { padding: max(12px, env(safe-area-inset-top)) 16px max(12px, env(safe-area-inset-bottom)); gap: 10px; }
  .fullscreen-player__workspace { gap: 0; }
  .fullscreen-player__content { grid-template-columns: 1fr; justify-items: center; align-content: center; gap: 14px; overflow: auto; }
  .fullscreen-player__art { width: min(78vw, 39dvh, 340px); justify-self: center; }
  .fullscreen-player__details { width: 100%; text-align: center; }
  .fullscreen-player__details h2 { font-size: clamp(24px, 6vw, 32px); }
  .fullscreen-player__details > p:not(.fullscreen-player__year) { font-size: 18px; margin-top: 8px; }
  .fullscreen-player__station { justify-content: center; }
  .fullscreen-player__controls { display: flex; justify-content: center; gap: 16px; padding-top: 10px; }
  .fullscreen-player__transport { gap: 16px; }
  .fullscreen-player__utilities { width: auto; }
  .fullscreen-player__volume { display: grid; width: min(48vw, 200px); min-width: 0; }
  .fullscreen-player[data-panel] .fullscreen-player__workspace { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 12px; }
  .fullscreen-player[data-panel] .fullscreen-player__content { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 0; overflow: visible; }
  .fullscreen-player[data-panel] .fullscreen-player__art { width: 48px; }
  .fullscreen-player[data-panel] .fullscreen-player__details { text-align: left; }
  .fullscreen-player[data-panel] .fullscreen-player__details h2 { font-size: 17px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .fullscreen-player[data-panel] .fullscreen-player__details > p { display: none; }
  .fullscreen-player[data-panel] .fullscreen-player__station { margin-top: 4px; padding: 0; font-size: 12px; justify-content: flex-start; }
  .player-panels { padding: 12px 16px; }
  .player-panels__back { margin-bottom: 8px; }
  .player-panel-tabs { gap: 6px; }
  .player-panel-tabs button { flex: 1; padding: 8px; font-size: 13px; }
  .fullscreen-player__header > .player-status { display: block; font-size: 12px; }
  .player-panels .dsp-section__heading { flex-wrap: wrap; }
}
@media (max-width: 700px) {
  .persistent-player-host .mini-player { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px; padding: 8px; bottom: max(8px, env(safe-area-inset-bottom)); }
  .persistent-player-host .mini-player__art { display: grid; width: 44px; height: 44px; min-height: 44px; min-width: 44px; }
  .persistent-player-host .mini-player__controls { grid-column: auto; width: auto; gap: 2px; }
  .persistent-player-host .mini-player__controls > :not([data-player-toggle]):not([data-lyrics-toggle]) { display: none; }
  .persistent-player-host .mini-player__controls > [data-lyrics-toggle] { display: grid; }
  .persistent-player-host .mini-player__meta { min-width: 0; padding: 0; }
  .persistent-player-host .mini-player__meta strong { font-size: 12px; }
  .persistent-player-host .mini-player__track { min-height: 22px; font-size: 12px; }
  .persistent-player-host .mini-player__volume { display: none; }
  .persistent-player-host .mini-player .player-status { font-size: 10px; }
  body.has-mini-player .site-footer { margin-bottom: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  .fullscreen-player *, .mini-player * { animation: none !important; transition: none !important; }
}

.persistent-player-host .mini-player__art { color: #ffffff; }
.player-panels .dsp-actions button { color: #126f69; background: #ffffff; border-color: #9bbfb0; }
.player-panels .dsp-actions button:hover, .player-panels .dsp-actions button.is-active { color: #ffffff; background: #126f69; }
.player-panels__back { position: sticky; top: -1px; z-index: 2; width: 100%; background: #f4f6f2; text-align: left; }
@media (max-width: 860px) {
  .fullscreen-player[data-panel] .fullscreen-player__art,
  .fullscreen-player[data-panel] .fullscreen-player__art:has(img)::before { font-size: 22px; }
  .fullscreen-player__native { display: grid; }
  .fullscreen-player__header { grid-template-columns: 44px minmax(0, 1fr) 44px 28px; gap: 8px; }
  .fullscreen-player__brand strong { display: none; }
}

.player-workspace-footer { display: grid; gap: 12px; }
.player-track-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 20px; }
.player-track-actions button { min-height: 44px; padding: 6px 0; color: #c6d9d0; background: transparent; border: 0; font: inherit; font-size: 13px; cursor: pointer; }
.player-track-actions button:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.player-track-actions [aria-pressed="true"] { color: #8bdbb4; }
.player-track-actions [hidden] { display: none; }
.player-track-actions input { width: 100%; max-width: 480px; color: #122422; background: #f4f6f2; }
.player-track-actions [role="status"] { font-size: 12px; }
.persistent-player-host .mini-player__track:hover,
.persistent-player-host .mini-player__track:focus-visible { background: transparent; color: #fff; box-shadow: none; text-decoration: underline; text-decoration-color: #7f9c90; text-underline-offset: 3px; }
@media (max-width: 860px) {
  .fullscreen-player__controls { flex-wrap: wrap; gap: 8px; }
  .fullscreen-player__transport { flex-basis: 100%; justify-content: center; }
  .fullscreen-player__utilities { display: flex; justify-content: center; gap: 16px; }
  .fullscreen-player__volume input { width: 100%; min-width: 0; }
  .fullscreen-player__content { grid-template-rows: auto auto; flex-shrink: 0; }
  .fullscreen-player__art { min-height: 0; height: auto; aspect-ratio: 1; }
  .player-workspace-footer { gap: 4px; }
}
@media (max-height: 540px) and (max-width: 860px) {
  .fullscreen-player:not([data-panel]) .fullscreen-player__content { grid-template-columns: auto minmax(0, 1fr); align-content: center; }
  .fullscreen-player:not([data-panel]) .fullscreen-player__art { width: min(25vw, 30dvh); }
  .fullscreen-player__controls { flex-wrap: nowrap; }
  .fullscreen-player__transport { flex-basis: auto; }
  .fullscreen-player__details h2 { font-size: 20px; }
}

/* Reset generic compact-button padding on the two content buttons. */
.persistent-player-host .mini-player button.mini-player__art {
  padding: 0;
  border: 0;
  width: 52px;
  height: 52px;
  min-height: 52px;
  min-width: 52px;
  background: #213c37;
  box-shadow: none;
}
.persistent-player-host .mini-player button.mini-player__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.persistent-player-host .mini-player button.mini-player__track {
  min-height: 0;
  padding: 0;
  margin: 0;
  line-height: 1.4;
}
.persistent-player-host .mini-player__meta { align-content: center; gap: 2px; }
.persistent-player-host .mini-player__meta .player-status { margin: 0; }
.player-panels__back { position: static; }
@media (max-width: 700px) {
  .persistent-player-host .mini-player button.mini-player__art {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
}

.fullscreen-player__content::before { display: none; }
.fullscreen-player__details .fullscreen-player__volume { display: grid; width: min(100%, 240px); margin: 18px 0 0; }
.fullscreen-player__controls { display: flex; justify-content: center; border-top: 0; padding-top: 0; }
.fullscreen-player__transport { flex-basis: auto; gap: 16px; }
.fullscreen-player [data-player-favorite][aria-pressed="true"] { color: #8bdbb4; }
.fullscreen-player [data-player-favorite][aria-pressed="true"] svg { fill: currentColor; }
.fullscreen-player__header { grid-template-columns: 44px minmax(0, 1fr) 44px auto; }
.player-track-actions:has([data-player-share-url][hidden]):has([data-player-share-status]:empty) { display: none; }
@media (max-width: 860px) {
  .fullscreen-player__details .fullscreen-player__volume { width: min(64vw, 240px); margin: 14px auto 0; }
  .fullscreen-player[data-panel] .fullscreen-player__details .fullscreen-player__volume { width: min(100%, 240px); margin: 8px 0 0; }
  .fullscreen-player__transport { gap: 8px; }
  .fullscreen-player__header { grid-template-columns: 44px minmax(0, 1fr) 44px 28px; }
  .fullscreen-player__transport .fullscreen-player__icon { width: 44px; min-width: 44px; min-height: 44px; }
}
/* Volume and timer share a single row beneath the station. */
.fullscreen-player__sound-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 320px);
  margin: 18px 0 0;
}
.fullscreen-player__sound-row .fullscreen-player__volume {
  display: grid;
  flex: 1;
  width: auto;
  min-width: 0;
  margin: 0;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
}
[data-player-mute] { width: 44px; min-width: 44px; min-height: 44px; }
[data-player-mute] .volume-muted { display: none; }
[data-player-mute][aria-pressed="true"] .volume-muted { display: block; }
[data-player-mute][aria-pressed="true"] .volume-waves { display: none; }
.fullscreen-player [data-player-mute][aria-pressed="true"] { color: #122422; background: #d8f3e6; border-color: #d8f3e6; }
.fullscreen-player__sound-row .fullscreen-player__sleep { position: static; flex: 0 0 44px; }
.fullscreen-player__sound-row .sleep-timer__toggle { width: 44px; min-width: 44px; min-height: 44px; }
.fullscreen-player__sound-row .sleep-timer__menu { left: auto; right: 0; bottom: calc(100% + 8px); top: auto; }
.fullscreen-player__sound-row .sleep-timer__status { top: calc(100% + 6px); bottom: auto; right: 0; z-index: 2; }
@media (max-width: 860px) {
  .fullscreen-player__sound-row { margin: 14px auto 0; }
  .fullscreen-player[data-panel] .fullscreen-player__sound-row { margin: 8px 0 0; }
}
@media (max-height: 540px) {
  .fullscreen-player__sound-row .sleep-timer__menu {
    position: fixed;
    top: 64px;
    left: 16px;
    right: auto;
    bottom: auto;
    max-height: calc(100dvh - 80px);
    overflow: auto;
  }
}

.fullscreen-player__content > .fullscreen-player__sound-row { grid-column: 1 / -1; justify-self: center; margin: 0; }
@media (min-width: 861px) {
  .fullscreen-player__content { align-content: center; row-gap: 24px; }
  .fullscreen-player[data-panel] .fullscreen-player__content > .fullscreen-player__sound-row { justify-self: start; }
}
@media (max-width: 860px) {
  .fullscreen-player[data-panel] .fullscreen-player__content > .fullscreen-player__sound-row { grid-column: 2; justify-self: start; margin: 0; }
}

@media (min-width: 861px) {
  .fullscreen-player__controls { flex-direction: column; align-items: center; gap: 20px; }
  .fullscreen-player__controls > .fullscreen-player__sound-row { width: 324px; max-width: 100%; margin: 0; }
  .fullscreen-player__controls > .fullscreen-player__transport { justify-content: center; }
}

.persistent-player-host .mini-player__volume { grid-template-columns: 44px minmax(0, 1fr); }
.persistent-player-host .mini-player [data-player-mute][aria-pressed="true"] { color: #122422; background: #d8f3e6; border-color: #d8f3e6; }
.persistent-player-host .mini-player [data-player-mute] .icon { color: inherit; }
