/* 3LV7 RADIO styles. Sizes, colors and spacing are copied from the earlier ELVT build
   (reference.css and radio-dock.css in ELVT-Antigravity-Handoff), so the player looks the way it did there.
   Purple bars = #9d7ff2. Lime accent = #ccff33. */
.elvt-radio { --mono: ui-monospace, SFMono-Regular, Menlo, monospace; color: #eef0f6; min-width: 0; font-stretch: 100%; }
.elvt-radio button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; text-transform: none; letter-spacing: 0; border-radius: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- the capsule in the top bar ---------- */
.radio-mini { display: flex; align-items: center; min-height: 50px; border: 1px solid #ffffff29; border-radius: 16px; background: #08090ef2; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding: 0 6px; box-shadow: 0 12px 40px #00000080; }
.radio-mini button { display: flex; align-items: center; justify-content: center; min-height: 44px; background: none; color: #eef0f6; }
.radio-mini .radio-mini-play { width: 46px; flex-shrink: 0; border-right: 1px solid #ffffff1f; }
.radio-mini .radio-mini-open { gap: 14px; padding: 0 12px 0 14px; }
.radio-mini-label { display: flex; flex-direction: column; align-items: start; gap: 3px; width: 136px; text-align: left; }
.radio-mini-label strong { font: 700 10px/1.2 var(--mono); letter-spacing: .14em; color: #f4f5f8; }
.radio-mini-label small { display: block; font: 400 9px/1.3 var(--mono); letter-spacing: .06em; color: #9b9ea9; max-width: 136px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-mini-chevron { display: flex; }
.radio-mini button:focus-visible { outline: 2px solid #ccff33; outline-offset: 2px; border-radius: 10px; }
.radio-bars { display: flex; align-items: center; height: 16px; gap: 2.5px; }
.radio-bars i { display: block; background: #9d7ff2; border-radius: 2px; width: 2.5px; height: 5px; }
.radio-bars i:nth-child(2) { height: 9px; } .radio-bars i:nth-child(3) { height: 12px; } .radio-bars i:nth-child(4) { height: 15px; }
.is-playing .radio-bars i { animation: radioPulse .9s ease-in-out infinite alternate; }
.is-playing .radio-bars i:nth-child(2) { animation-delay: -.45s; } .is-playing .radio-bars i:nth-child(3) { animation-delay: -.7s; } .is-playing .radio-bars i:nth-child(4) { animation-delay: -.2s; }
@keyframes radioPulse { from { transform: scaleY(.3); } to { transform: scaleY(1.1); } }

/* ---------- the drop-down panel ---------- */
.radio-shade { position: fixed; inset: 0; z-index: 1000; background: #02040a40; }
.radio-panel { position: fixed; z-index: 1001; inset: calc(4.4% + 62px) 2.3% auto auto; margin: 0; width: min(392px, calc(100vw - 28px)); max-width: none; max-height: calc(91vh - 68px); max-height: calc(91dvh - 68px); overflow: auto; overscroll-behavior: contain; color: #eef0f6; border: 1px solid #ffffff29; border-radius: 20px; background: linear-gradient(180deg, #090a0ef9, #06070af9); box-shadow: 0 36px 96px #000d; padding: 0; animation: radioPanelIn .18s ease-out; scrollbar-width: thin; scrollbar-color: #3a3e4d transparent; }
.radio-panel[hidden], .radio-shade[hidden] { display: none; }
@keyframes radioPanelIn { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
.radio-panel-inner { padding: 20px 22px 18px; }
.radio-panel button { background: none; color: #d8dce8; min-height: 44px; border: 0; cursor: pointer; }
.radio-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.radio-panel-head > div > span { display: block; font: 500 8.5px/1.4 var(--mono); letter-spacing: .18em; color: #8f94a3; }
.radio-panel-head h2 { display: flex; flex-direction: column; margin: 8px 0 0; line-height: 1; }
.radio-panel-head h2 strong { font: 800 50px/.9 "Oxanium", "Rajdhani", sans-serif; letter-spacing: .05em; background: linear-gradient(180deg, #f5f6fa 0%, #aeb3bf 52%, #eaecf2 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 2px 18px #ffffff14; }
.radio-panel-head h2 small { display: block; font: 500 12px/1.2 "Oxanium", "Rajdhani", sans-serif; letter-spacing: .92em; color: #a7acb9; margin-top: 6px; padding-left: 2px; }
.radio-panel-head > button { display: grid; place-items: center; width: 40px; height: 40px; margin: -4px -8px 0 0; color: #b8bcc8; }
.radio-channels { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #ffffff1f; margin-bottom: 18px; }
.radio-channels > button { position: relative; border-radius: 0; font: 600 9.5px/1.2 var(--mono); letter-spacing: .18em; min-height: 38px; color: #848997; padding: 8px 4px 11px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.radio-channels > button[aria-pressed=true] { background: none; color: #ccff33; border-bottom-color: #ccff33; }
.radio-now { display: grid; grid-template-columns: 168px 1fr; gap: 18px; align-items: start; margin: 4px 0 18px; }
.radio-cover-wrap { width: 168px; aspect-ratio: 1 / 1; border: 1px solid #ffffff2e; background: #0b0d13; overflow: hidden; box-shadow: 0 14px 32px #0009; }
.radio-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.radio-now-meta { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding-top: 4px; }
.radio-now h3 { font: 700 clamp(20px, 4.5vw, 31px)/1.02 "Rajdhani", "Oxanium", sans-serif; text-transform: uppercase; letter-spacing: .02em; margin: 0; color: #f5f6fa; overflow-wrap: anywhere; }
.radio-now-artist { display: block; font: 500 11px/1.3 var(--mono); letter-spacing: .18em; color: #8c91a0; margin-top: 5px; }
.radio-now-details { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 16px; padding-left: 11px; border-left: 1px solid #ffffff2b; }
.radio-now-details > span { font: 400 7.5px/1.4 var(--mono); letter-spacing: .18em; color: #8d92a0; }
.radio-explicit-badge { display: inline-block; margin-top: 4px; padding: 3px 7px; border: 1px solid #ffffff45; font: 500 7.5px/1.2 var(--mono); letter-spacing: .18em; color: #cfd3de; }
.radio-explicit-badge[hidden] { display: none; }
.radio-progress { margin: 4px 0 8px; }
.radio-progress input, .radio-volume input { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 99px; background: linear-gradient(90deg, #ccff33 var(--radio-fill, 0%), #ffffff29 var(--radio-fill, 0%)); cursor: pointer; margin: 8px 0; padding: 0; }
.radio-volume input { background: linear-gradient(90deg, #ccff33 var(--volume-fill, 0%), #ffffff29 var(--volume-fill, 0%)); }
.radio-progress input::-webkit-slider-thumb, .radio-volume input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #ccff33; border: 0; box-shadow: 0 0 10px #ccff3366; cursor: pointer; }
.radio-progress input::-moz-range-thumb, .radio-volume input::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #ccff33; border: 0; box-shadow: 0 0 10px #ccff3366; cursor: pointer; }
.radio-progress input:disabled { cursor: default; opacity: .55; }
.radio-progress > div { display: flex; justify-content: space-between; font: 500 9.5px/1.3 var(--mono); letter-spacing: .06em; color: #9398a6; margin-top: 3px; }
.radio-transport { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0 12px; padding: 0 4px; }
.radio-transport > button { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: #cfd3df; }
.radio-transport > .radio-main-play { border-radius: 50%; background: #ccff33; color: #080a0c; width: 52px; height: 52px; box-shadow: 0 0 24px #ccff3338; }
.radio-transport > .radio-repeat, .radio-transport > .radio-shuffle { color: #9ea3b2; }
.radio-repeat[aria-pressed=true], .radio-shuffle[aria-pressed=true] { color: #ccff33; }
.radio-volume { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.radio-volume > button { display: grid; place-items: center; min-width: 36px; margin-left: -4px; color: #b2b7c4; }
.radio-volume > input { min-width: 0; flex: 1; }
.radio-volume > span { font: 500 9px/1.2 var(--mono); letter-spacing: .06em; width: 36px; text-align: right; color: #989dab; }
.radio-message { font: 9px/1.5 var(--mono); color: #aca2bf; margin: 6px 0 12px; }
.radio-message[hidden] { display: none; }
.radio-error { color: #f5b6c0; }
.radio-track-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid #ffffff1a; border-bottom: 1px solid #ffffff1a; }
.radio-track-list li + li { border-top: 1px solid #ffffff14; }
.radio-track-list button { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; min-height: 46px; width: 100%; padding: 8px 2px; text-align: left; }
.radio-track-list button > span:first-child { font: 500 10px/1.3 var(--mono); letter-spacing: .08em; color: #8c91a0; }
.radio-track-list button > span:nth-child(2) { min-width: 0; display: flex; align-items: center; }
.radio-track-list strong { font: 600 11px/1.35 var(--mono); letter-spacing: .12em; text-transform: uppercase; overflow-wrap: anywhere; color: #eaecf2; }
.radio-track-list button > span:last-child { font: 500 10px/1.3 var(--mono); letter-spacing: .08em; color: #9398a6; }
.radio-track-list button[aria-current=true] strong, .radio-track-list button[aria-current=true] > span:first-child, .radio-track-list button[aria-current=true] > span:last-child { color: #ccff33; }
.radio-footnote { font: 500 7.5px/1.6 var(--mono); letter-spacing: .14em; color: #828795; margin: 14px 0 4px; text-align: center; text-transform: uppercase; }
.radio-panel .radio-project { display: block; box-sizing: border-box; width: 100%; border: 1px solid #c6ade667; border-radius: 22px; padding: 10px 14px; font: 10px/1.5 var(--mono); text-align: left; text-decoration: none; color: #ece1fd; margin: 6px 0; background: none; cursor: pointer; }
.radio-panel button:focus-visible, .radio-panel input:focus-visible, .radio-panel a:focus-visible { outline: 2px solid #ccff33; outline-offset: 2px; }

@media (max-width: 1000px) and (min-width: 651px) {
  .radio-mini-label { width: 96px; } .radio-mini-label small { max-width: 96px; }
  .radio-mini .radio-mini-open { gap: 8px; padding-inline: 9px; } .radio-mini-chevron { display: none; }
}
@media (max-width: 650px) {
  .radio-mini { min-height: 44px; padding: 0 2px; }
  .radio-mini .radio-mini-play { width: 36px; }
  .radio-mini .radio-mini-open { min-width: 36px; padding: 0 8px; }
  .radio-mini-label, .radio-mini-chevron { display: none; }
  .radio-panel { top: calc(74px + env(safe-area-inset-top, 0px)); right: 14px; width: calc(100vw - 28px); max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }
  .radio-panel-inner { padding: 16px 16px 14px; }
  .radio-now { grid-template-columns: 132px 1fr; gap: 14px; }
  .radio-cover-wrap { width: 132px; }
  .radio-panel-head h2 strong { font-size: 42px; }
  .radio-track-list button { min-height: 44px; }
  .radio-panel .radio-track-list strong { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .radio-bars i, .radio-panel { animation: none !important; } }
