:root { --pmd-radio-h: 0px; }
body.pmd-has-radio { --pmd-radio-h: calc(64px + env(safe-area-inset-bottom, 0px)); padding-bottom: var(--pmd-radio-h); }
.pmd-radio { box-sizing: border-box; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px clamp(12px, 3vw, 40px) calc(8px + env(safe-area-inset-bottom, 0px)); background: rgba(11,10,9,.94); backdrop-filter: blur(18px); color: #F5EFE8; font: 13px Manrope, system-ui, sans-serif; }
.pmd-radio::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, #C4221A, #FFC61E); }
.pmd-radio button { flex-shrink: 0; border: 1px solid #9A8F86; border-radius: 999px; width: 44px; height: 44px; color: #F5EFE8; background: transparent; cursor: pointer; font-size: 21px; }
.pmd-radio button.pmd-play { width: 44px; height: 44px; background: #C4221A; border-color: #C4221A; }
.pmd-radio :focus-visible { outline: 2px solid #00A6E0; outline-offset: 3px; }
.pmd-art { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; }
.pmd-art[hidden] { display: none; }
.pmd-info { flex: 1; min-width: 0; }
.pmd-heading { display: flex; align-items: center; gap: 12px; }
.pmd-live { font: 10px 'JetBrains Mono', monospace; color: #FFC61E; white-space: nowrap; }
.pmd-live i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #9A8F86; }
.is-playing .pmd-live i { background: #C4221A; animation: pmd-pulse 1.4s infinite; }
.pmd-track { color: #9A8F86; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; }
.pmd-volume { display: flex; align-items: center; gap: 8px; color: #9A8F86; }
.pmd-volume input { width: 90px; accent-color: #C4221A; }
.pmd-error:empty { display: none; }
.pmd-error { position: absolute; bottom: 100%; left: 12px; right: 12px; padding: 12px; background: #231713; border: 1px solid #C4221A; border-radius: 12px; }
.pmd-radio.is-minimized { left: auto; right: clamp(12px, 3vw, 24px); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); min-height: 0; width: 60px; height: 60px; padding: 0; border-radius: 50%; justify-content: center; box-shadow: 0 14px 34px rgba(0,0,0,.55); }
.pmd-radio.is-minimized::before { display: none; }
.pmd-radio.is-minimized .pmd-art, .pmd-radio.is-minimized .pmd-info, .pmd-radio.is-minimized .pmd-volume, .pmd-radio.is-minimized .pmd-pop { display: none; }
.pmd-radio.is-minimized .pmd-play { width: 60px; height: 60px; }
.pmd-radio.is-minimized .pmd-min { position: absolute; top: -4px; right: -4px; width: 26px; height: 26px; font-size: 13px; background: #0B0A09; }
.pmd-radio.is-minimized .pmd-min::before { content: ''; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }
body.pmd-has-radio.pmd-radio-minimized { --pmd-radio-h: 0px; padding-bottom: 0; }
@keyframes pmd-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .is-playing .pmd-live i { animation: none; } }
@media (min-width: 900px) {
  .pmd-radio:not(.pmd-radio-popup):not(.is-minimized) { left: 50%; right: auto; bottom: 16px; transform: translateX(-50%); width: min(760px, calc(100vw - 48px)); border-radius: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
  .pmd-radio:not(.pmd-radio-popup):not(.is-minimized)::before { border-radius: 18px 18px 0 0; }
  body.pmd-has-radio:not(.pmd-radio-minimized) { --pmd-radio-h: calc(96px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 639px) {
  body.pmd-has-radio:not(.pmd-radio-minimized) { --pmd-radio-h: calc(60px + env(safe-area-inset-bottom, 0px)); }
  .pmd-radio:not(.is-minimized) { min-height: 60px; gap: 8px; }
  .pmd-volume { display: none; }
  .pmd-art { width: 32px; height: 32px; }
  .pmd-heading { gap: 6px; font-size: 12px; }
}
body[data-radio-popup] { margin: 0; background: #0B0A09; color: #F5EFE8; font-family: Manrope, system-ui, sans-serif; text-align: center; }
.pmd-popup-logo { width: 100px; height: 100px; object-fit: contain; margin: 24px auto 12px; }
.pmd-radio-popup { position: relative; flex-direction: column; gap: 20px; padding: 24px; background: transparent; }
.pmd-radio-popup .pmd-art { width: 200px; height: 200px; border-radius: 24px; }
.pmd-radio-popup .pmd-play { width: 64px !important; height: 64px !important; }
.pmd-radio-popup .pmd-info { width: 100%; }
.pmd-radio-popup .pmd-heading { justify-content: center; }
.pmd-radio-popup .pmd-track { white-space: normal; }
.pmd-radio-popup .pmd-volume { display: flex; }
.pmd-radio-popup .pmd-pop, .pmd-radio-popup .pmd-min { display: none; }
.pmd-radio-popup .pmd-error { position: static; }
.pmd-site-link { display: inline-block; color: #F1741A; margin: 16px; }
