#player-picker-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  flex: none;
  min-height: 44px;
  padding: 0 10px;
  color: #ffe8be;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #b89c6a70;
  border-radius: 6px;
  background: linear-gradient(160deg,#33505a,#162e39);
  box-shadow: inset 0 1px #fffff01c;
}
#player-picker-button:hover { border-color: #d5b37b; background: #274752; }
.radio-art { width: 50px; position: relative; }
.radio-art img { width: 100%; filter: drop-shadow(1px 2px 2px #04131d99); }
.site-footer .footer-links { margin-left: auto; }
@media (max-width: 480px) {
  .site-footer { padding-inline: 12px; gap: 10px; }
  .site-footer .footer-links { gap: 10px; }
  #player-picker-button { padding-inline: 6px; gap: 4px; font-size: 13px; }
  .radio-art { width: 37px; }
}
@media (max-width: 360px) { .site-footer .footer-brand span { display: none; } }

.jukebox-rays {
  position: absolute;
  inset: 0 -9px;
  width: calc(100% + 18px);
  height: 100%;
  overflow: visible;
  color: #ffe4aa;
  stroke-width: 2.8px;
  filter: drop-shadow(0 1px 2px #37230b);
  opacity: 0;
  pointer-events: none;
}

#player-picker-button.is-playing .jukebox-rays {
  opacity: 1;
  animation: jukebox-rays 1.9s ease-out infinite;
}

#player-picker-button.is-playing img {
  animation: jukebox-shake 1.9s ease-in-out infinite;
}

body:has(dialog[open]) #player-picker-button {
  opacity: 0;
  pointer-events: none;
}

@keyframes jukebox-shake {
  0%, 32%, 100% { transform: none; }
  6%, 18% { transform: translateX(-1px) rotate(-5deg); }
  12%, 24% { transform: translateX(1px) rotate(5deg); }
}

@keyframes jukebox-rays {
  0%, 100% { opacity: .75; transform: scale(.96); }
  18% { opacity: 1; transform: scale(1.06); }
  55% { opacity: .32; transform: scale(1); }
}

#player-picker {
  --jukebox-brass: #dec08b;
  --jukebox-cream: #fff3da;
  --jukebox-muted: #c4d4cf;
  width: min(840px, calc(100vw - 26px));
  max-height: calc(100dvh - 24px);
  border: 1px solid #ac8a56;
  border-radius: 22px;
  background: radial-gradient(ellipse at 6% 3%, #6092ad38, transparent 58%),
              #172d3c url('/assets/images/blaat-laeder.webp') repeat 0 0 / 520px;
  box-shadow: inset 0 0 0 3px #142c36, inset 0 0 0 4px #7f897380, 0 26px 74px #030e16d4;
  color: var(--jukebox-cream);
  overflow: auto;
  overscroll-behavior: contain;
}

#player-picker::backdrop {
  background: #07141c9c;
  backdrop-filter: blur(3px);
}

#player-picker .jukebox-header {
  align-items: center;
  gap: 12px;
  margin: 4px 4px 0;
  padding: 13px 18px;
  border-radius: 17px 17px 0 0;
  border-color: #b59b6b84;
  background: linear-gradient(152deg, #43657442, #08182466),
              #172d3c url('/assets/images/blaat-laeder.webp') repeat 0 0 / 520px;
  box-shadow: inset 0 1px #c8ded140, 0 2px 5px #081a1e50;
}

.jukebox-header p {
  color: var(--jukebox-brass);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

#player-picker-title {
  margin-top: 1px;
  font-size: clamp(35px, 5vw, 49px);
  line-height: .95;
}

.jukebox-body {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.16fr);
  gap: 14px;
  padding: 14px;
}

.jukebox-deck,
.jukebox-shelf {
  min-width: 0;
  padding: 12px;
  border: 1px solid #92afa65a;
  border-radius: 12px;
  background: linear-gradient(155deg, #31596736, #07182459),
              #172d3c url('/assets/images/blaat-laeder.webp') repeat 0 0 / 520px;
  box-shadow: inset 0 1px #b4cac433, 0 3px 8px #081c25a3;
}

.jukebox-display {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 7px 9px;
  border: 1px solid #73929570;
  border-radius: 8px;
  background: #0d242d;
  box-shadow: inset 0 3px 10px #061720b8, 0 1px #a0c2bb39;
}

#player-cover {
  width: 64px;
  height: 64px;
  border: 1px solid #ddc7904a;
  border-radius: 5px;
  object-fit: contain;
}

#player-title,
#player-album {
  display: block;
  overflow-wrap: anywhere;
}

#player-title {
  font-family: var(--serif);
  font-size: clamp(21px, 3vw, 28px);
  line-height: 1;
}

#player-album,
#player-status {
  color: var(--jukebox-muted);
  font-size: 12px;
  line-height: 1.4;
}

#player-album {
  margin-top: 4px;
}

#player-status {
  margin-top: 2px;
  color: var(--jukebox-brass);
}

#player-title[href]:hover,
#player-album[href]:hover {
  text-decoration: underline;
  text-underline-offset: .15em;
}

.jukebox-timeline {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 10px 0 8px;
  color: var(--jukebox-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.jukebox-timeline input,
.jukebox-volume input {
  flex: 1;
  min-width: 0;
  height: 28px;
}

.jukebox-transport,
.jukebox-options,
.jukebox-volume {
  display: flex;
  align-items: center;
}

.jukebox-transport {
  justify-content: center;
  gap: clamp(3px, 1.2vw, 10px);
}

.jukebox-options {
  gap: 5px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #b59b6b4d;
}

.jukebox-volume {
  flex: 1;
  gap: 4px;
  min-width: 0;
}

#player-picker .icon-button {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #94b4ad72;
  border-radius: 8px;
  background: linear-gradient(#3f606a, #192f3b);
  box-shadow: inset 0 1px #d8e5d84d, 0 2px 4px #07151d80;
}

#player-picker .icon-button svg {
  width: 19px;
  height: 19px;
}

#player-picker .icon-button:hover:not(:disabled),
#player-picker .icon-button[aria-pressed=true] {
  color: var(--jukebox-brass);
  border-color: var(--jukebox-brass);
}

#player-picker .icon-button[aria-pressed=true]::after {
  bottom: 4px;
  margin-top: 0;
  background: var(--jukebox-brass);
}

#player-picker #player-play {
  flex-basis: 48px;
  width: 48px;
  height: 48px;
  border-color: #f7d8a0;
  border-radius: 50%;
  background: linear-gradient(155deg, #f6ddab, #c99852);
  color: #152732;
}

#player-picker #player-play:hover {
  background: linear-gradient(155deg, #fff0c5, #d9aa67);
  color: #152732;
}

.jukebox-decoration {
  display: block;
  width: 100%;
  height: min(180px, 22dvh);
  margin-top: 12px;
  background: radial-gradient(ellipse at center, #d6bf8e35, transparent 68%);
  filter: drop-shadow(0 4px 6px #06151eb0);
  object-fit: contain;
}

.jukebox-shelf {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.picker-album {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--jukebox-brass);
  font-size: 14px;
  font-weight: 600;
}

#player-picker-album {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 7px 9px;
  border: 1px solid #869b92;
  border-radius: 5px;
  background: #132b36;
  color: var(--jukebox-cream);
  font: inherit;
  font-size: 16px;
}

#player-picker-tracks {
  position: relative;
  max-height: min(380px, 56dvh);
  margin: 0;
  padding: 3px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #b18b51 #eee3cb;
  list-style: none;
  border: 1px solid #aa895e;
  border-radius: 7px;
  background: #fbf0dc url('/assets/images/papir.webp') 0 0 / 420px;
  box-shadow: inset 0 2px 7px #46331e4f;
  color: #1f3438;
}

#player-picker-tracks button {
  display: grid;
  grid-template-columns: 2ch minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 9px;
  width: 100%;
  min-height: 44px;
  padding: 8px 9px;
  border-bottom: 1px solid #987d573d;
  border-radius: 3px;
  font-size: 14px;
  line-height: 1.42;
  text-align: left;
}

#player-picker-tracks button:hover,
#player-picker-tracks button[aria-current="true"] {
  background: #d8bb87a6;
  color: #142630;
}

#player-picker-tracks button[aria-current="true"] {
  box-shadow: inset 3px 0 #806027;
}

#player-picker-tracks button:focus-visible {
  outline-color: #795722;
  outline-offset: -2px;
}

.picker-track-number,
.picker-track-duration {
  color: #52605e;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 610px) {
  #player-picker .jukebox-header {
    padding: 8px 13px;
  }

  .jukebox-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    padding: 9px;
  }

  .jukebox-deck,
  .jukebox-shelf {
    padding: 9px;
  }

  .jukebox-decoration {
    display: none;
  }

  #player-picker-tracks {
    max-height: min(265px, 36dvh);
  }
}

@media (prefers-reduced-motion: reduce) {
  #player-picker-button.is-playing img,
  #player-picker-button.is-playing .jukebox-rays {
    animation: none;
  }
}

.jukebox-studio-link { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; color: var(--gold); font-size: .8rem; min-height: 44px; }
.jukebox-studio-link:hover { text-decoration: underline; }
.jukebox-studio-link svg { width: 15px; height: 15px; }
