.station-description {
    color: #fff;
    opacity: 0.6;
}
.station-img {
    border: 3px solid #ffffff00;
    padding: 0.15rem;
}
.player-artwork {
    padding: 0.75rem;
    border-radius: 1rem;
    background-color: #ffffff00;
}

.player-artwork::after {
    background: rgb(0 0 0 / 52%);
    content: "";
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transition: opacity var(--duration, 200ms);
    z-index: 5;
}

.player-artwork:hover::after,
.player-artwork:focus-within::after {
    opacity: 1;
}

.player-artwork img {
    border-radius: 0.65rem;
    box-shadow: var(--shadow-xl);
}
.player-cover-image {
    animation: bga 60s linear infinite;
}
@keyframes bga {
    50% {
        transform: scale(2);
    }
}
.items-start {
    align-items: flex-start;
    margin-top: 15px;
}

.history-itunes[href="#not-found"] {
  display: none;
}

.visualizer {
  filter: url(#gooey);
}

.visualizer-item {
  display: block;
  height: 100%;
  width: 100%;
}

.visualizer-filter {
  display: block;
  height: 0;
  overflow: hidden;
  position: absolute;
  width: 0;
}

.header-logo {
  align-items: center;
  background: rgb(0 0 0 / var(--header-logo-badge-opacity, 18%));
  border: 1px solid rgb(255 255 255 / var(--header-logo-border-opacity, 8%));
  border-radius: 1.15rem;
  box-shadow: 0 8px 22px rgb(0 0 0 / var(--header-logo-shadow-opacity, 18%));
  display: inline-flex;
  padding: 0.55rem 0.8rem;
  -webkit-backdrop-filter: blur(0.75rem);
  backdrop-filter: blur(0.75rem);
}

.header-logo-img {
  filter: drop-shadow(0 0 14px rgb(255 255 255 / var(--header-logo-glow-opacity, 34%)))
          drop-shadow(0 7px 18px rgb(0 0 0 / 58%));
}

@supports not ((backdrop-filter: blur(0.75rem)) or (-webkit-backdrop-filter: blur(0.75rem))) {
  .header-logo {
    background: rgb(0 0 0 / 34%);
  }
}

#app-player .player,
.modal-overlay {
  -webkit-backdrop-filter: blur(1rem);
}

@supports not ((backdrop-filter: blur(1rem)) or (-webkit-backdrop-filter: blur(1rem))) {
  #app-player .player {
    background-color: rgb(0 0 0 / 75%);
  }

  .modal-overlay {
    background: rgb(0 0 0 / 85%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .visualizer {
    display: none;
  }

  .station-name.is-scrolling,
  .station-description.is-scrolling {
    animation: none !important;
  }
}

.lyrics-modal-heading {
  min-width: 0;
  text-align: center;
  width: 100%;
}

#modal-lyrics .modal-title {
  position: relative;
}

#modal-lyrics .modal-title [data-close] {
  position: absolute;
  right: 0;
  top: 0;
}

.lyrics-song-title {
  color: rgb(255 255 255 / 70%);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
    font-weight: 600;
  margin: 0.6rem 0 0;
  overflow-wrap: anywhere;
  text-align: center;
}



/* Keep the lyrics source visible at the bottom of the modal body while lyrics scroll. */
#modal-lyrics .modal-content {
    display: flex;
    flex-direction: column;
}

#modal-lyrics .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

#modal-lyrics .lyrics-source {
    flex: 0 0 auto;
    display: block;
    width: 100%;
    margin: 0;
    padding: 12px 8px 0;
    border-top: 1px solid rgba(255,255,255,.14);
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
    opacity: 0.75;
    text-align: center;
}

#modal-lyrics .lyrics-source[hidden] {
    display: none !important;
}

/* Mobile waveform fix: keep the waveform enabled on phones/tablets unless the
   visitor has Reduce Motion enabled. Some mobile layouts can collapse the
   visualizer area, so force a visible, non-interactive canvas size here. */
@media (max-width: 991px) {
  .visualizer {
    display: flex !important;
    visibility: visible !important;
    min-height: 120px !important;
    height: 120px !important;
    inset: auto 0 -55px !important;
    opacity: 0.12 !important;
    pointer-events: none !important;
  }

  .visualizer-item {
    display: block !important;
    min-height: 120px !important;
    height: 120px !important;
    width: 100% !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .visualizer,
  .visualizer-item {
    display: none !important;
  }
}

/* Per-station font selection. Set from station admin and applied by JavaScript on station change. */
:root {
  --player-font-family: Montserrat, sans-serif;
}

body,
:where(.app-player),
.app-player,
.app-player button,
.app-player input,
.app-player select,
.app-player textarea {
  font-family: var(--player-font-family, Montserrat, sans-serif) !important;
}

/* User-facing protection: disable text selection/callout on public player pages. */
body.protect-public-page,
body.protect-public-page .app,
body.protect-public-page .app-player {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Keep controls usable even though page text cannot be selected. */
body.protect-public-page button,
body.protect-public-page a,
body.protect-public-page input,
body.protect-public-page select,
body.protect-public-page textarea,
body.protect-public-page [role="button"] {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}


/* User-facing protection: prevent images/artwork/logos from being dragged or long-pressed. */
body.protect-public-page img,
body.protect-public-page svg,
body.protect-public-page canvas,
body.protect-public-page .artwork,
body.protect-public-page .cover,
body.protect-public-page .cover-art,
body.protect-public-page .player-artwork,
body.protect-public-page .station-logo,
body.protect-public-page .header-logo,
body.protect-public-page .footer img,
body.protect-public-page .footer svg,
body.protect-public-page .footer-app img,
body.protect-public-page .footer-app svg,
body.protect-public-page .footer-copyright img,
body.protect-public-page .player-apps-item img,
body.protect-public-page .app-player img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
  -webkit-touch-callout: none;
}

body.protect-public-page .player-artwork {
  pointer-events: auto;
}

/* Keep clickable controls clickable if they contain an image/icon. */
body.protect-public-page button img,
body.protect-public-page a img,
body.protect-public-page [role="button"] img,
body.protect-public-page .player-button img {
  pointer-events: none;
}

/* Disable dragging/selecting user-facing social/media icons. */
body.protect-public-page .app-player img,
body.protect-public-page .app-player svg,
body.protect-public-page .app-player canvas,
body.protect-public-page .app-player .player-social,
body.protect-public-page .app-player .player-social-item,
body.protect-public-page .app-player .modal-social a,
body.protect-public-page .footer img,
body.protect-public-page .footer svg,
body.protect-public-page .footer-app img,
body.protect-public-page .footer-app svg,
body.protect-public-page .footer-copyright img,
body.protect-public-page .footer-copyright svg {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.player-artwork {
  pointer-events: auto;
}

.player-artwork .player-utility-controller,
.player-artwork .player-button-utility {
  pointer-events: auto;
}

.player-artwork > img {
  pointer-events: none;
}
.player-button-favorite,
.player-button-sleep,
.player-button-alarm {
    font: inherit;
    min-width: 0;
}

.player-controller {
    justify-content: center;
    position: relative;
}

.player-utility-controller {
    align-items: center;
    background: rgb(8 12 22 / 58%);
    border: 1px solid rgb(255 255 255 / 10%);
    border-radius: 999px;
    box-shadow: var(--shadow-l);
    -webkit-backdrop-filter: blur(0.75rem);
    backdrop-filter: blur(0.75rem);
    display: inline-flex;
    gap: 0.4rem;
    justify-content: center;
    left: 50%;
    margin: 0;
    opacity: 0;
    padding: 0.3rem;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    transition: opacity 90ms ease, transform 90ms ease;
    z-index: 12;
}

.player-artwork:hover .player-utility-controller,
.player-artwork:focus-within .player-utility-controller {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.player-artwork.is-tools-open::after {
    opacity: 1;
}

.player-artwork.is-tools-open .player-utility-controller {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.player-button-utility {
    align-items: center;
    display: inline-flex;
    flex: 0 0 2rem;
    font-size: 0.82rem;
    font-weight: 800;
    height: 2rem;
    justify-content: center;
    line-height: 1;
    overflow: hidden;
    padding: 0 !important;
    text-align: center;
    width: 2rem;
}

.player-button-sleep {
    letter-spacing: -0.08em;
}

.player-tool-panel {
    background: rgb(8 12 22 / 92%);
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 1rem;
    box-shadow: var(--shadow-l);
    color: #fff;
    display: grid;
    gap: 0.75rem;
    left: 50%;
    margin: 0;
    max-height: calc(100% - 1.25rem);
    max-width: calc(100% - 1.25rem);
    overflow-y: auto;
    padding: 0.9rem;
    position: absolute;
    text-align: center;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(100%, 360px);
    z-index: 14;
}

.player-tool-panel:not(.is-active) {
    display: none;
}

.player-tool-panel strong {
    font-size: 0.95rem;
}

.player-tool-panel label {
    display: grid;
    gap: 0.35rem;
    text-align: left;
}

.player-tool-panel input,
.player-tool-panel select {
    background: rgb(5 9 18 / 72%);
    border: 1px solid rgb(255 255 255 / 10%);
    border-radius: 0.65rem;
    color: #fff;
    color-scheme: dark;
    font: inherit;
    padding: 0.55rem 0.7rem;
    width: 100%;
}

.player-tool-panel input:focus,
.player-tool-panel select:focus {
    border-color: rgb(255 255 255 / 18%);
    box-shadow: 0 0 0 3px rgb(255 255 255 / 7%);
    outline: none;
}

.player-tool-panel select option {
    background: #080d1b;
    color: #f5f7ff;
}

.player-tool-panel select option:checked,
.player-tool-panel select option:hover {
    background: #14203b;
    color: #fff;
}

.player-tool-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.player-tool-actions button {
    background: rgb(255 255 255 / 12%);
    border: 1px solid rgb(255 255 255 / 16%);
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 0.45rem 0.75rem;
}

.player-tool-actions button:hover {
    background: var(--accent, rgb(255 255 255 / 22%));
}

.player-qr-panel {
    max-width: calc(100% - 1.25rem);
    width: min(100%, 300px);
}

.player-qr-code {
    align-items: center;
    background: #fff;
    border-radius: 1rem;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    padding: 0.75rem;
    width: min(68vw, 220px);
}

.player-qr-code svg {
    display: block;
    height: auto;
    max-width: 100%;
    pointer-events: none;
    width: 100%;
}

.player-qr-link {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    overflow-wrap: anywhere;
    text-decoration: underline;
}

@media (min-width: 992px) {
    .player-controller {
        gap: 1.25rem;
        padding-top: 1rem;
    }
}

@media (max-width: 520px) {
    .player-controller {
        gap: 0.65rem;
    }

    .player-utility-controller {
        gap: 0.35rem;
        padding: 0.25rem;
    }

    .player-button-utility {
        flex-basis: 1.85rem;
        height: 1.85rem;
        width: 1.85rem;
    }
}

@media (max-height: 680px) {
    .player-artwork {
        max-width: min(400px, 48vh);
    }

    .player-controller {
        padding-top: 0.75rem;
    }

    .player-utility-controller {
        transform: translate(-50%, -50%) scale(0.96);
    }
}

@media (hover: none), (pointer: coarse), (max-width: 991px) {
    .player-artwork::after,
    .player-artwork:hover::after,
    .player-artwork:focus-within::after {
        opacity: 0;
    }

    .player-utility-controller,
    .player-artwork:hover .player-utility-controller,
    .player-artwork:focus-within .player-utility-controller {
        opacity: 0;
        pointer-events: none;
        transform: translate(-50%, -50%) scale(0.96);
    }

    .player-artwork.is-tools-open::after,
    .player-artwork.is-tools-open:focus-within::after {
        opacity: 1;
    }

    .player-artwork.is-tools-open .player-utility-controller,
    .player-artwork.is-tools-open:focus-within .player-utility-controller {
        opacity: 1;
        pointer-events: auto;
        transform: translate(-50%, -50%) scale(1);
    }
}

html.game-system-browser .player-artwork:hover::after,
html.game-system-browser .player-artwork:focus-within::after,
.player-artwork.click-tools-only:hover::after,
.player-artwork.click-tools-only:focus-within::after {
    opacity: 0;
}

html.game-system-browser .player-artwork:hover .player-utility-controller,
html.game-system-browser .player-artwork:focus-within .player-utility-controller,
.player-artwork.click-tools-only:hover .player-utility-controller,
.player-artwork.click-tools-only:focus-within .player-utility-controller {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.96);
}

html.game-system-browser .player-artwork.is-tools-open::after,
html.game-system-browser .player-artwork.is-tools-open:hover::after,
html.game-system-browser .player-artwork.is-tools-open:focus-within::after,
.player-artwork.click-tools-only.is-tools-open::after,
.player-artwork.click-tools-only.is-tools-open:hover::after,
.player-artwork.click-tools-only.is-tools-open:focus-within::after {
    opacity: 1;
}

html.game-system-browser .player-artwork.is-tools-open .player-utility-controller,
html.game-system-browser .player-artwork.is-tools-open:hover .player-utility-controller,
html.game-system-browser .player-artwork.is-tools-open:focus-within .player-utility-controller,
.player-artwork.click-tools-only.is-tools-open .player-utility-controller,
.player-artwork.click-tools-only.is-tools-open:hover .player-utility-controller,
.player-artwork.click-tools-only.is-tools-open:focus-within .player-utility-controller {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

@media (max-height: 560px) {
    .player-tool-panel {
        max-height: calc(100% - 1rem);
        overflow-y: auto;
    }

    .player-artwork {
        max-width: min(400px, 42vh);
    }
}

.player-button-favorite.is-active {
    color: var(--accent, #ffd54f);
}

.station-saved-section {
    display: grid;
    gap: .75rem;
    margin-bottom: 1rem;
    width: 100%;
}

.station-saved-section h3 {
    margin: .5rem 0 0;
    font-size: 1rem;
    text-transform: uppercase;
}

.floating-mini-player {
    align-items: center;
    background: rgba(0, 0, 0, .78);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 18px;
    bottom: 1rem;
    color: #fff;
    display: flex;
    gap: .75rem;
    left: 50%;
    max-width: min(92vw, 520px);
    padding: .75rem 1rem;
    position: fixed;
    transform: translateX(-50%);
    z-index: 50;
}

.floating-mini-player[hidden] {
    display: none;
}

.floating-mini-player span,
.floating-mini-player strong {
    display: block;
}

.mini-player-meta {
    font-size: .9rem;
    opacity: .82;
}

.mini-player-toggle {
    align-items: center;
    background: var(--accent, #fff);
    border: 0;
    border-radius: 999px;
    color: #000;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}
