/* Reproductor STAR/FEST: compartido por la web (/web/) y la app (/). */
/* ---------- reproductor STAR/FEST (tocadiscos flotante) ---------- */
.radio { position: fixed; right: clamp(10px, 2vw, 24px); bottom: clamp(10px, 2vw, 24px); z-index: 90; display: flex; flex-direction: row-reverse; align-items: flex-end; gap: 0; --bass: 0; pointer-events: none; opacity: 0; translate: 0 20px; transition: opacity .4s, translate .4s var(--ease-out); }
.radio.is-ready { opacity: 1; translate: 0 0; }
.radio > * { pointer-events: auto; }
.radio[hidden] { display: none; }
.radio__deck { position: relative; z-index: 2; width: 5.5rem; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: #0b0a0d; cursor: pointer; box-shadow: 0 0 0 3px #000, 5px 5px 0 var(--magenta), 0 0 calc(var(--bass) * 40px) var(--magenta); transition: box-shadow .1s, scale .2s var(--ease-pop, ease); scale: calc(1 + var(--bass) * .06); }
.radio__deck:hover { scale: 1.06; }
.radio__deck:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.radio__disc { position: absolute; inset: 6%; border-radius: 50%; overflow: hidden; animation: spin 1.8s linear infinite; animation-play-state: paused; background: repeating-radial-gradient(circle, #111 0 2px, #1d1b20 2px 4px); }
.radio__disc img { width: 100%; height: 100%; object-fit: cover; }
.radio__hole { position: absolute; inset: 44%; border-radius: 50%; background: #0b0a0d; box-shadow: 0 0 0 2px var(--yellow); }
.radio.is-on .radio__disc { animation-play-state: running; }
@keyframes spin { to { rotate: 360deg; } }
.radio__arm { position: absolute; top: -6%; right: -4%; width: 8%; height: 58%; background: linear-gradient(#e9e3ea, #9a94a0); border-radius: 4px; transform-origin: 50% 8%; rotate: 32deg; transition: rotate .5s var(--ease-out); box-shadow: 2px 2px 0 #000; }
.radio__arm::after { content: ''; position: absolute; left: -60%; bottom: -10%; width: 220%; height: 18%; background: var(--yellow); border-radius: 2px; box-shadow: 2px 2px 0 #000; }
.radio.is-on .radio__arm { rotate: 12deg; }
.radio__panel { position: relative; z-index: 1; display: grid; gap: 6px; width: 17rem; margin-right: -1.6rem; padding: 12px 2.4rem 12px 14px; background: #0b0a0d; box-shadow: inset 0 0 0 1.5px var(--line), -6px 6px 0 var(--cyan); clip-path: polygon(0 0, 100% 0, 100% 82%, 92% 100%, 0 100%); rotate: 1.5deg; transform-origin: right center; scale: 0 1; opacity: 0; transition: scale .35s var(--ease-out), opacity .25s; }
.radio:hover .radio__panel, .radio:focus-within .radio__panel, .radio.is-peek .radio__panel, .radio.is-open .radio__panel { scale: 1 1; opacity: 1; }
.radio__more { position: absolute; right: -4px; top: -10px; z-index: 3; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--cyan); color: #000; font-weight: 700; cursor: pointer; box-shadow: 2px 2px 0 #000; display: none; }
.radio.is-on .radio__more { display: block; }
.radio__single { width: 8.5rem; height: auto; rotate: -3deg; margin: -4px 0 0 -4px; filter: drop-shadow(2px 2px 0 var(--magenta)); }
.radio__title { display: grid; gap: 2px; min-width: 0; }
.radio__title b { font: 400 1.35rem/1 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio__title span { font: 400 .68rem/1 var(--tech); letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.radio__eq { display: flex; align-items: flex-end; gap: 3px; height: 26px; }
.radio__eq i { flex: 1; height: calc(8% + var(--v, 0) * 92%); background: linear-gradient(var(--yellow), var(--magenta)); transition: height .06s linear; }
.radio:not(.is-on) .radio__eq i { --v: .08; }
.radio__bar { height: 6px; background: rgba(255,255,255,.12); cursor: pointer; }
.radio__bar i { display: block; height: 100%; width: 0; background: var(--magenta); box-shadow: 0 0 8px var(--magenta); }
.radio__ctl { display: flex; align-items: center; gap: 6px; }
.radio__ctl button { width: 34px; height: 30px; border: 0; background: #1d1b20; color: var(--text); cursor: pointer; font-size: .85rem; box-shadow: 2px 2px 0 #000; }
.radio__ctl button:hover { background: var(--ink-3, #2a2730); }
.radio__ctl .radio__play { width: 44px; background: var(--yellow); color: #000; box-shadow: 3px 3px 0 var(--magenta); }
.radio__vol { flex: 1; display: flex; }
.radio__vol input { width: 100%; accent-color: var(--magenta); }
.radio__logo { position: absolute; right: 2.6rem; top: 10px; width: 4.6rem; height: auto; rotate: 4deg; filter: drop-shadow(2px 2px 0 #000); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.radio__fx { position: absolute; right: 2.75rem; bottom: 2.75rem; width: 0; height: 0; pointer-events: none; }
.radio__fx img { position: absolute; left: -16px; top: -16px; width: 32px; height: auto; animation: radioPop 1.4s cubic-bezier(.2,.7,.3,1) forwards; filter: drop-shadow(2px 2px 0 #000); }
@keyframes radioPop { 0% { opacity: 0; transform: translate(0, 0) scale(.2); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(var(--s)) rotate(var(--r)); } }
@media (max-width: 560px) {
  .radio__deck { width: 4.4rem; }
  .radio__panel { width: min(15rem, calc(100vw - 6rem)); }
  .radio:not(.is-on):not(.is-open) .radio__panel { display: none; }
  .radio:hover:not(.is-open):not(.is-peek) .radio__panel { scale: 0 1; opacity: 0; }
  .radio__logo { display: none; }
}
@media (prefers-reduced-motion: reduce) { .radio__disc { animation: none; } }

