body.has-radio-player { padding-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px)); }
.radio-player { position: fixed; z-index: 28; inset: auto 0 0; width: 100%; margin: 0; min-height: 5.25rem; display: grid; grid-template-columns: auto minmax(12rem, 1fr) auto minmax(12rem, 1.2fr) auto; align-items: center; gap: 1.1rem; padding: .8rem 1.25rem max(.8rem, env(safe-area-inset-bottom, 0px)); color: var(--paper); background: rgba(11,11,11,.98); border-top: 1px solid rgba(241,239,231,.24); box-shadow: 0 -.5rem 2rem rgba(0,0,0,.12); backdrop-filter: blur(14px); font-family: var(--sans); }
.radio-player button { color: inherit; }
.radio-station { border: 0; padding: 0; background: transparent; text-transform: uppercase; letter-spacing: .13em; font-size: .78rem; cursor: pointer; }
.radio-track { min-width: 0; display: grid; grid-template-columns: 2.9rem 1fr; gap: .8rem; align-items: center; }
.radio-art { width: 2.9rem; height: 2.9rem; display: grid; place-items: center; color: var(--ink); background: var(--signal); font-size: 1.35rem; }
.radio-track-copy { min-width: 0; }
.radio-title, .radio-version { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.radio-title { font-family: var(--serif); font-size: 1.15rem; line-height: 1.1; }
.radio-version { margin-top: .18rem; color: rgba(241,239,231,.62); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; }
.radio-transport { display: flex; align-items: center; gap: .45rem; }
.radio-control { width: 2.25rem; height: 2.25rem; border: 1px solid rgba(241,239,231,.38); border-radius: 50%; display: grid; place-items: center; background: transparent; cursor: pointer; }
.radio-control:disabled { opacity: .3; cursor: default; }
.radio-play { width: 2.8rem; height: 2.8rem; color: var(--ink) !important; background: var(--signal); border-color: var(--signal); font-size: 1rem; }
.radio-progress-wrap { min-width: 0; display: grid; grid-template-columns: 2.8rem 1fr 2.8rem; align-items: center; gap: .7rem; font-size: .72rem; font-variant-numeric: tabular-nums; }
.radio-range { width: 100%; height: 2px; margin: 0; accent-color: var(--signal); cursor: pointer; }
.radio-tools { display: flex; align-items: center; gap: .7rem; }
.radio-volume { width: 4.2rem; accent-color: var(--signal); }
.radio-autoplay, .radio-queue-button { border: 1px solid rgba(241,239,231,.38); padding: .65rem .8rem; background: transparent; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; cursor: pointer; white-space: nowrap; }
.radio-autoplay[aria-pressed="true"] { color: var(--signal); border-color: var(--signal); }
.radio-autoplay-short { display: none; }
.radio-queue { position: fixed; z-index: 27; right: 1rem; bottom: 6.2rem; width: min(29rem, calc(100vw - 2rem)); max-height: min(70svh, 34rem); overflow: auto; padding: 1.25rem; color: var(--paper); background: var(--ink); border: 1px solid rgba(241,239,231,.28); box-shadow: 0 1.5rem 5rem rgba(0,0,0,.35); transform: translateY(1rem); opacity: 0; visibility: hidden; transition: opacity .22s ease, transform .22s ease, visibility .22s; }
.radio-queue.open { transform: none; opacity: 1; visibility: visible; }
.radio-queue-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid rgba(241,239,231,.25); }
.radio-queue-head p { margin: 0; font-family: var(--serif); font-size: 2rem; }
.radio-queue-head button { border: 0; background: transparent; cursor: pointer; }
.radio-queue-list { padding-top: .7rem; }
.radio-queue-track { width: 100%; display: grid; grid-template-columns: 2rem 1fr auto; gap: .75rem; align-items: center; padding: 1rem 0; color: inherit; background: transparent; border: 0; border-bottom: 1px solid rgba(241,239,231,.18); text-align: left; cursor: pointer; }
.radio-queue-track[aria-current="true"] { color: var(--signal); }
.radio-queue-number, .radio-queue-duration { font-size: .75rem; font-variant-numeric: tabular-nums; }
.radio-queue-duration.is-live { color: #ff4d4d; font-weight: 700; letter-spacing: .12em; }
.radio-queue-name strong, .radio-queue-name span { display: block; }
.radio-queue-name strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 400; }
.radio-queue-name span { margin-top: .15rem; color: rgba(241,239,231,.58); text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; }
@media (max-width: 900px) {
  body.has-radio-player { padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); }
  .radio-player { min-height: 5rem; grid-template-columns: minmax(9rem, 1fr) auto minmax(8rem, 1fr) auto; gap: .7rem; padding: .7rem 1rem; }
  .radio-station { display: none; }
  .radio-volume { display: none; }
}
@media (max-width: 620px) {
  body.has-radio-player { padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px)); }
  .radio-player { min-height: 4.25rem; grid-template-columns: minmax(0, 1fr) auto auto; gap: .4rem; padding: .45rem .65rem max(.45rem, env(safe-area-inset-bottom, 0px)); }
  .radio-art { width: 2.1rem; height: 2.1rem; font-size: 1rem; }
  .radio-track { grid-template-columns: 2.1rem 1fr; gap: .5rem; }
  .radio-title { font-size: 1rem; }
  .radio-play { width: 2.45rem; height: 2.45rem; }
  .radio-version { display: none; }
  .radio-transport { gap: .25rem; }
  .radio-control { width: 1.9rem; height: 1.9rem; }
  .radio-play { width: 2.45rem; height: 2.45rem; }
  .radio-progress-wrap { grid-column: 1 / -1; grid-row: 2; grid-template-columns: 1fr; position: absolute; left: 0; right: 0; bottom: 0; }
  .radio-progress-wrap span { display: none; }
  .radio-tools { gap: 0; }
  .radio-autoplay, .radio-queue-button { padding: .45rem .5rem; font-size: .62rem; }
  .radio-autoplay-long { display: none; }
  .radio-autoplay-short { display: inline; }
  .radio-queue { right: .6rem; bottom: calc(4.85rem + env(safe-area-inset-bottom, 0px)); width: calc(100vw - 1.2rem); }
}
@media (prefers-reduced-motion: reduce) {
  .radio-queue { transition: none; }
}
.radio-youtube { position: fixed; z-index: 38; right: 1rem; bottom: 6.4rem; width: min(220px, calc(100vw - 2rem)); padding: .45rem; background: #0b0b0b; color: #f1efe7; box-shadow: 0 14px 45px rgba(0,0,0,.35); opacity: 0; visibility: hidden; transform: translateY(12px); transition: width .25s ease, opacity .25s ease, transform .25s ease, visibility .25s; }
.radio-youtube.open { opacity: 1; visibility: visible; transform: translateY(0); }
.radio-youtube.open.video-hidden { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(12px); }
.radio-youtube.footer-active { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(12px); }
.radio-youtube.expanded { width: min(420px, calc(100vw - 2rem)); }
.radio-youtube-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .1rem .15rem .45rem; }
.radio-youtube-head > span { text-transform: uppercase; letter-spacing: .1em; font-size: .58rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-youtube-head > div { display: flex; gap: .3rem; }
.radio-youtube-head button { border: 1px solid rgba(241,239,231,.32); padding: .3rem .42rem; color: inherit; background: transparent; text-transform: uppercase; letter-spacing: .08em; font-size: .55rem; cursor: pointer; }
.radio-youtube-media { overflow: hidden; }
.radio-youtube iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.radio-twitch { position: fixed; z-index: 39; right: 1rem; bottom: 6.4rem; width: min(420px, calc(100vw - 2rem)); padding: .45rem; background: #0b0b0b; color: #f1efe7; box-shadow: 0 14px 45px rgba(0,0,0,.42); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s ease, transform .25s ease, visibility .25s; }
.radio-twitch.open { opacity: 1; visibility: visible; transform: translateY(0); }
.radio-twitch.open.video-hidden { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(12px); }
.radio-twitch-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .1rem .15rem .45rem; }
.radio-twitch-head > span { text-transform: uppercase; letter-spacing: .1em; font-size: .58rem; white-space: nowrap; }
.radio-twitch-head i { display: inline-block; width: .48rem; height: .48rem; margin-right: .35rem; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 0 .18rem rgba(255,77,77,.18); }
.radio-twitch-head > div { display: flex; align-items: center; gap: .3rem; }
.radio-twitch-head button, .radio-twitch-head a { border: 1px solid rgba(241,239,231,.32); padding: .3rem .42rem; color: inherit; background: transparent; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font: inherit; font-size: .55rem; cursor: pointer; }
.radio-twitch-media { width: 100%; aspect-ratio: 4 / 3; min-height: 300px; overflow: hidden; background: #000; }
.radio-twitch iframe { display: block; width: 100%; height: 100%; border: 0; }
.radio-live-restore { position: fixed; z-index: 39; right: .75rem; bottom: 5.8rem; border: 1px solid rgba(241,239,231,.4); border-radius: 99px; padding: .48rem .7rem; color: var(--paper); background: rgba(11,11,11,.94); text-transform: uppercase; letter-spacing: .1em; font-size: .62rem; cursor: pointer; }
.radio-live-restore[hidden] { display: none; }
.radio-video-restore { position: fixed; z-index: 38; right: .75rem; bottom: 5.8rem; border: 1px solid rgba(241,239,231,.4); border-radius: 99px; padding: .48rem .7rem; color: var(--paper); background: rgba(11,11,11,.94); text-transform: uppercase; letter-spacing: .1em; font-size: .62rem; cursor: pointer; }
.radio-video-restore[hidden] { display: none; }
@media (max-width: 620px) {
  .radio-youtube { right: .6rem; bottom: calc(4.85rem + env(safe-area-inset-bottom, 0px)); width: 160px; }
  .radio-youtube.expanded { width: calc(100vw - 1.2rem); }
  .radio-youtube-head > span { display: none; }
  .radio-youtube-head { justify-content: flex-end; padding-bottom: .35rem; }
  .radio-video-restore { right: .6rem; bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px)); }
  .radio-twitch { right: .6rem; bottom: calc(4.85rem + env(safe-area-inset-bottom, 0px)); width: calc(100vw - 1.2rem); }
  .radio-twitch-head > span { font-size: .54rem; }
  .radio-twitch-media { min-height: min(300px, 74vw); }
  .radio-live-restore { right: .6rem; bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 820px) {
  .radio-player { backdrop-filter: none; }
}
