/* BASC Radio (radio1, Mortimer 19-10-2026; radio2: loaded on every page for the record in the header and its panel).
   The player card: a spinning record with the club logo, an "On air" light, what is playing, live equalizer bars and
   the controls. radio.js sets .is-live (on air), .is-playing (sound on) and .is-loading (connecting) on every view.
   With reduced motion: nothing spins. */
.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; }

.rd-page { max-width: 980px; margin: 0 auto; }

.rd-player { position: relative; display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: center; padding: 36px 40px;
    border-radius: 26px; border: 1px solid var(--line-strong); overflow: hidden; isolation: isolate;
    background: radial-gradient(520px 300px at 100% 0%, rgba(0,221,235,0.16), transparent 70%),
                radial-gradient(420px 280px at 0% 100%, rgba(249,115,22,0.14), transparent 70%), rgba(12,6,26,0.82);
    box-shadow: 0 30px 80px rgba(0,0,0,0.45), 0 0 60px rgba(147,112,219,0.18); }
.rd-player::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.8s;
    background: conic-gradient(from 200deg at 22% 50%, rgba(153,69,255,0.22), rgba(20,241,149,0.12), rgba(0,194,255,0.18), rgba(153,69,255,0.22)); }
.rd-player.is-playing::before { opacity: 1; }

/* The record */
.rd-disc { position: relative; width: 240px; aspect-ratio: 1; }
.rd-disc-vinyl { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center;
    background: radial-gradient(circle, #1a1030 0 27%, transparent 27.5%),
                repeating-radial-gradient(circle, #0b0614 0 2px, #181026 2.5px 4px),
                #0b0614;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.06), 0 20px 50px rgba(0,0,0,0.55);
    animation: rd-spin 7s linear infinite; animation-play-state: paused; }
.rd-disc-vinyl::after { content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
    background: conic-gradient(from 30deg, transparent 0 12%, rgba(255,255,255,0.10) 16%, transparent 22% 62%, rgba(255,255,255,0.07) 66%, transparent 72%); }
.rd-disc-vinyl img { width: 44%; height: 44%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px rgba(0,221,235,0.45), 0 0 18px rgba(0,221,235,0.35); }
.rd-disc-glow { position: absolute; inset: -14%; z-index: -1; border-radius: 50%; opacity: 0; transition: opacity 0.8s;
    background: radial-gradient(circle, rgba(0,221,235,0.35), rgba(153,69,255,0.18) 45%, transparent 68%); filter: blur(6px); }
.rd-player.is-playing .rd-disc-vinyl { animation-play-state: running; }
.rd-player.is-playing .rd-disc-glow { opacity: 1; animation: rd-breathe 3.2s ease-in-out infinite; }
@keyframes rd-spin { to { transform: rotate(360deg); } }
@keyframes rd-breathe { 50% { transform: scale(1.06); opacity: 0.7; } }

/* Status line */
.rd-body { min-width: 0; }
.rd-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 18px; }
.rd-onair { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px; font-size: 0.74rem; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,0.05); border: 1px solid var(--line); }
.rd-onair i { width: 9px; height: 9px; border-radius: 50%; background: #64748b; }
.rd-player.is-live .rd-onair { color: #ffb4b4; border-color: rgba(255,77,77,0.45); background: rgba(255,59,59,0.10); }
.rd-player.is-live .rd-onair i { background: #ff3b3b; box-shadow: 0 0 0 0 rgba(255,59,59,0.7); animation: rd-live 1.8s ease-out infinite; }
@keyframes rd-live { 70% { box-shadow: 0 0 0 9px rgba(255,59,59,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,59,0); } }
.rd-listeners { display: inline-flex; align-items: center; gap: 6px; font-size: 0.86rem; color: var(--muted); }
.rd-listeners svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rd-listeners span { color: var(--text); font-weight: 700; }
[data-r-listen-text] em { font-style: italic; font-weight: 400; color: var(--muted); }

.rd-label { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
.rd-title { margin: 6px 0 10px; font-size: clamp(1.4rem, 3.2vw, 2.1rem); line-height: 1.15; font-weight: 900; overflow-wrap: anywhere;
    background: linear-gradient(100deg, #fff 30%, #c9f7ff 70%, #e0d3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rd-title.is-new { animation: rd-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes rd-in { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } }
.rd-genre { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; color: #ffd2b0;
    background: rgba(249,115,22,0.12); border: 1px solid rgba(249,115,22,0.4); }

/* Equalizer: still and low when silent, dancing while playing */
.rd-eq { display: flex; align-items: flex-end; gap: 4px; height: 34px; margin: 22px 0 24px; }
.rd-eq i { flex: 1; max-width: 10px; height: 14%; border-radius: 3px; transform-origin: bottom;
    background: linear-gradient(180deg, #19fb9b, #00c2ff 50%, #9945ff); opacity: 0.35; transition: opacity 0.4s; }
.rd-player.is-playing .rd-eq i { opacity: 1; height: 100%; animation: rd-bar calc(0.62s + var(--i) * 29ms) ease-in-out calc(var(--i) * -0.17s) infinite alternate; }
@keyframes rd-bar { 0% { transform: scaleY(0.15); } 40% { transform: scaleY(0.75); } 70% { transform: scaleY(0.4); } 100% { transform: scaleY(0.95); } }

/* Controls */
.rd-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.rd-play { position: relative; width: 72px; height: 72px; flex: none; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #0b0418;
    background: linear-gradient(135deg, #19fb9b, #00c2ff 45%, #9945ff); box-shadow: 0 12px 34px rgba(0,194,255,0.35), inset 0 1px 0 rgba(255,255,255,0.5);
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s; }
.rd-play:hover:not(:disabled) { transform: scale(1.06); box-shadow: 0 16px 44px rgba(0,194,255,0.5), inset 0 1px 0 rgba(255,255,255,0.5); }
.rd-play:active:not(:disabled) { transform: scale(0.97); }
.rd-play:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.rd-play:disabled { cursor: not-allowed; filter: grayscale(1) brightness(0.6); box-shadow: none; }
.rd-play svg { width: 30px; height: 30px; fill: currentColor; }
.rd-ico-play { margin-left: 4px; }
.rd-ico-stop, .rd-player.is-playing .rd-ico-play { display: none; }
.rd-player.is-playing .rd-ico-stop { display: block; }
.rd-spin { position: absolute; inset: -6px; border-radius: 50%; border: 3px solid transparent; border-top-color: #fff; opacity: 0; }
.rd-player.is-loading .rd-spin { opacity: 1; animation: rd-spin 0.9s linear infinite; }

.rd-volume { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.rd-volume svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.rd-volume input { --v: 80%; width: 130px; height: 6px; border-radius: 6px; -webkit-appearance: none; appearance: none; cursor: pointer;
    background: linear-gradient(90deg, #00c2ff, #9945ff) 0 0 / var(--v) 100% no-repeat, rgba(255,255,255,0.12); }
.rd-volume input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(0,194,255,0.3); }
.rd-volume input::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(0,194,255,0.3); }

.rd-note { min-height: 1.3em; margin: 14px 0 0; font-size: 0.88rem; color: var(--muted); }

/* Cards under the player */
.rd-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.rd-card { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
    color: inherit; text-decoration: none; transition: border-color 0.2s, background 0.2s, transform 0.2s; }
a.rd-card:hover { border-color: rgba(88,101,242,0.6); background: rgba(88,101,242,0.10); transform: translateY(-2px); }
.rd-card b { display: block; margin-bottom: 4px; }
.rd-card em { font-style: normal; font-size: 0.88rem; color: var(--muted); }
.rd-card-ico { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; color: #fff; background: #5865f2; box-shadow: 0 8px 22px rgba(88,101,242,0.4); }
.rd-card-ico svg { width: 24px; height: 24px; }
.rd-card-go { margin-left: auto; font-size: 1.2rem; color: var(--muted); }

@media (max-width: 760px) {
    .rd-player { grid-template-columns: 1fr; gap: 24px; padding: 26px 20px; justify-items: center; text-align: center; }
    .rd-disc { width: min(200px, 60vw); }
    .rd-status, .rd-controls, .rd-eq, .rd-tags { justify-content: center; }
    .rd-eq { width: 100%; max-width: 300px; margin-left: auto; margin-right: auto; }
    .rd-cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .rd-disc-vinyl, .rd-player.is-playing .rd-disc-glow, .rd-player.is-live .rd-onair i, .rd-title.is-new { animation: none; }
    .rd-player.is-playing .rd-eq i { animation: none; transform: scaleY(0.6); }
}

/* =====================================================================
   radio2 (19-10-2026): the record in the header, its panel, and the new /radio sections
   ===================================================================== */
.rd-here { padding: 8px 14px; border-radius: 999px; font: inherit; font-size: 0.84rem; color: var(--muted); cursor: pointer;
    background: rgba(255,255,255,0.05); border: 1px dashed var(--line-strong); transition: background 0.2s, color 0.2s; }
.rd-here b { color: var(--cyan); }
.rd-here:hover { color: #fff; background: rgba(0,221,235,0.1); }
.rd-here[hidden], .rd-genre[hidden], .rd-listeners[hidden] { display: none; }
/* radio4: "!play N" next to the genre, copied for Discord on click */
.rd-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rd-playn { display: inline-block; padding: 4px 11px; border-radius: 999px; font: inherit; font-size: 0.8rem; font-weight: 800; color: #c9f7ff; cursor: pointer;
    background: rgba(0,221,235,0.10); border: 1px solid rgba(0,221,235,0.35); font-variant-numeric: tabular-nums; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.rd-playn:hover { color: #fff; border-color: rgba(0,221,235,0.7); background: rgba(0,221,235,0.18); }
.rd-playn.is-copied { color: #052e16; background: #4ade80; border-color: #4ade80; }
.rd-playn.is-copied::after { content: ' ✓'; }
.rd-playn[hidden] { display: none; }
.rdp-now .rd-tags { gap: 6px; }
.rdp-now .rd-playn { padding: 3px 9px; font-size: 0.74rem; }

/* The record in the header (left of the 🔔): still when off, spinning when on */
.rdock { position: relative; display: inline-flex; margin-right: 8px; }
.rdock-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; cursor: pointer;
    background: rgba(0,0,0,0.25); border: 1px solid var(--navy-line); transition: background 0.2s, border-color 0.2s, box-shadow 0.3s; }
.rdock-btn:hover, .rdock-btn[aria-expanded="true"] { background: rgba(0,0,0,0.45); border-color: rgba(0,221,235,0.55); }
.rdock-vinyl { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
    background: radial-gradient(circle, #1a1030 0 30%, transparent 31%), repeating-radial-gradient(circle, #07030e 0 1px, #1d1430 1.5px 2.5px), #07030e;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.10), 0 2px 8px rgba(0,0,0,0.5);
    animation: rd-spin 3.2s linear infinite; animation-play-state: paused; }
.rdock-vinyl::after { content: ''; position: absolute; inset: 0; border-radius: 50%;
    background: conic-gradient(from 20deg, transparent 0 14%, rgba(255,255,255,0.16) 18%, transparent 24% 62%, rgba(255,255,255,0.10) 66%, transparent 72%); }
.rdock-vinyl img { width: 13px; height: 13px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px rgba(0,221,235,0.7); }
.rdock-ring { position: absolute; inset: -3px; border-radius: 50%; border: 2px solid transparent; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.rdock-bars { position: absolute; right: -4px; bottom: -3px; display: flex; align-items: flex-end; gap: 1.5px; height: 13px; padding: 2px 3px; border-radius: 6px;
    background: #0b0418; box-shadow: 0 0 0 1.5px #12052a; opacity: 0; transform: scale(0.6); transition: opacity 0.25s, transform 0.25s; }
.rdock-bars i { width: 2.5px; height: 100%; border-radius: 1px; background: linear-gradient(180deg, #19fb9b, #00c2ff); transform-origin: bottom; }
.rdock.is-playing .rdock-btn { border-color: rgba(25,251,155,0.6); box-shadow: 0 0 0 3px rgba(0,194,255,0.12), 0 0 18px rgba(0,194,255,0.35); }
.rdock.is-playing .rdock-vinyl { animation-play-state: running; }
.rdock.is-playing .rdock-bars { opacity: 1; transform: none; }
.rdock.is-playing .rdock-bars i { animation: rd-bar 0.7s ease-in-out infinite alternate; }
.rdock.is-playing .rdock-bars i:nth-child(2) { animation-duration: 0.55s; animation-delay: -0.2s; }
.rdock.is-playing .rdock-bars i:nth-child(3) { animation-duration: 0.8s; animation-delay: -0.4s; }
.rdock.is-loading .rdock-ring { opacity: 1; border-top-color: #00c2ff; animation: rd-spin 0.9s linear infinite; }
.rdock.is-blocked .rdock-ring { opacity: 1; border-color: rgba(25,251,155,0.75); animation: rd-tap 1.6s ease-out infinite; }
.rdock.is-blocked .rdock-vinyl { animation-play-state: paused; }
@keyframes rd-tap { 0% { transform: scale(0.92); opacity: 1; } 100% { transform: scale(1.45); opacity: 0; } }

/* Its panel: under the record on computers, a sheet from the bottom on phones */
.rdock-panel { position: fixed; z-index: 70; top: 90px; right: 20px; width: min(392px, calc(100vw - 24px)); max-height: calc(100vh - 110px); overflow: auto;
    padding: 18px; border-radius: 22px; isolation: isolate; overscroll-behavior: contain;
    background: radial-gradient(420px 220px at 100% 0%, rgba(0,221,235,0.18), transparent 70%),
                radial-gradient(360px 240px at 0% 100%, rgba(153,69,255,0.22), transparent 70%), rgba(14,7,30,0.97);
    border: 1px solid rgba(255,255,255,0.16); box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,0,0,0.4), 0 0 50px rgba(0,194,255,0.12);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    opacity: 0; transform: translateY(-8px) scale(0.98); transform-origin: top right; transition: opacity 0.2s, transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1); }
.rdock-panel.is-open { opacity: 1; transform: none; }
.rdock-panel[hidden] { display: none; }
.rdock-panel::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity 0.8s;
    background: conic-gradient(from 210deg at 22% 30%, rgba(153,69,255,0.20), rgba(20,241,149,0.10), rgba(0,194,255,0.16), rgba(153,69,255,0.20)); }
.rdock-panel.is-playing::before { opacity: 1; }
.rdp-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.rdp-brand { font-weight: 900; letter-spacing: 0.04em; background: linear-gradient(100deg, #19fb9b, #00c2ff 50%, #b98aff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rdp-top .rd-onair { padding: 4px 10px 4px 8px; font-size: 0.66rem; }
.rdock-panel.is-live .rd-onair { color: #ffb4b4; border-color: rgba(255,77,77,0.45); background: rgba(255,59,59,0.10); }
.rdock-panel.is-live .rd-onair i { background: #ff3b3b; animation: rd-live 1.8s ease-out infinite; }
.rdp-close { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; font-size: 0.9rem; color: var(--muted); cursor: pointer; background: rgba(255,255,255,0.05); border: 1px solid var(--line); }
.rdp-close:hover { color: #fff; background: rgba(255,255,255,0.1); }
.rdp-hero { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: center; }
.rdp-disc { position: relative; width: 104px; aspect-ratio: 1; }
.rdp-disc .rd-disc-vinyl { animation-duration: 4.5s; }
.rdp-disc .rd-disc-vinyl img { box-shadow: 0 0 0 2px rgba(0,221,235,0.5), 0 0 12px rgba(0,221,235,0.35); }
.rdp-arm { position: absolute; top: -6px; right: 0; width: 7px; height: 56px; border-radius: 4px; transform-origin: 50% 5px; transform: rotate(4deg);
    background: linear-gradient(180deg, #e2e8f0, #94a3b8); box-shadow: 0 4px 10px rgba(0,0,0,0.5); transition: transform 0.7s cubic-bezier(0.3, 1.4, 0.5, 1); }
.rdp-arm::after { content: ''; position: absolute; left: -3px; bottom: -6px; width: 14px; height: 12px; border-radius: 3px; background: #cbd5e1; }
.rdock-panel.is-playing .rdp-arm { transform: rotate(26deg); }
/* The same tonearm on the big record of /radio (radio3, Mortimer 19-10-2026: "esa barrita ... la puedes poner también en el disco de la web") */
.rd-disc .rdp-arm { top: -12px; right: 2%; width: 14px; height: 54%; border-radius: 7px; transform-origin: 50% 10px; box-shadow: 0 8px 22px rgba(0,0,0,0.55); }
.rd-disc .rdp-arm::after { left: -6px; bottom: -12px; width: 26px; height: 24px; border-radius: 6px; }
.rd-player.is-playing .rd-disc .rdp-arm { transform: rotate(26deg); }
.rdock-panel.is-playing .rd-disc-vinyl { animation-play-state: running; }
.rdock-panel.is-playing .rd-disc-glow { opacity: 1; animation: rd-breathe 3.2s ease-in-out infinite; }
.rdp-now { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.rdp-title { font-size: 1.08rem; line-height: 1.2; font-weight: 900; overflow-wrap: anywhere;
    background: linear-gradient(100deg, #fff 30%, #c9f7ff 70%, #e0d3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rdp-title.is-new { animation: rd-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.rdp-now .rd-genre { padding: 3px 9px; font-size: 0.74rem; }
.rdp-listen { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--muted); }
.rdp-listen svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rdp-listen[hidden] { display: none; }
.rdp-eq { height: 26px; margin: 16px 0; gap: 3px; }
.rdp-eq i { max-width: none; }
.rdock-panel.is-playing .rd-eq i { opacity: 1; height: 100%; animation: rd-bar calc(0.62s + var(--i) * 29ms) ease-in-out calc(var(--i) * -0.17s) infinite alternate; }
.rdp-controls { display: flex; align-items: center; gap: 18px; }
.rdp-play { width: 58px; height: 58px; }
.rdp-play svg { width: 24px; height: 24px; }
.rdock-panel .rd-ico-stop, .rdock-panel.is-playing .rd-ico-play { display: none; }
.rdock-panel.is-playing .rd-ico-stop { display: block; }
.rdock-panel.is-loading .rd-spin { opacity: 1; animation: rd-spin 0.9s linear infinite; }
.rdp-controls .rd-volume { flex: 1; }
.rdp-controls .rd-volume input { flex: 1; width: auto; min-width: 0; }
.rdp-note { margin: 8px 0 0; min-height: 0; font-size: 0.8rem; }
.rdp-note:empty { display: none; }
.rdock-panel .rd-here { margin-top: 10px; width: 100%; }
.rdp-bonus, .rd-live-bonus { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.rdp-bonus[hidden] { display: none; }
.rd-bonus-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 0.8rem; color: #fef3c7;
    background: linear-gradient(90deg, rgba(245,158,11,0.22), rgba(249,115,22,0.14)); border: 1px solid rgba(245,158,11,0.5); box-shadow: 0 0 18px rgba(245,158,11,0.18); }
.rd-bonus-chip b { color: #fbbf24; font-weight: 900; }
.rdp-earn { margin-top: 16px; padding: 14px; border-radius: 16px; display: grid; gap: 4px; font-size: 0.84rem; color: var(--muted);
    background: rgba(88,101,242,0.12); border: 1px solid rgba(88,101,242,0.4); }
.rdp-earn b { color: #fff; font-size: 0.92rem; }
.rdp-earn[hidden] { display: none; }
.rdp-me { margin-top: 16px; }
.rdp-me[hidden] { display: none; }
.rdp-links { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 16px; }
.rdp-link { display: inline-flex; align-items: center; justify-content: center; padding: 11px 14px; border-radius: 12px; font-weight: 800; font-size: 0.86rem; color: #fff;
    background: rgba(255,255,255,0.06); border: 1px solid var(--line-strong); transition: background 0.2s, transform 0.2s; }
.rdp-link:hover { transform: translateY(-1px); background: rgba(255,255,255,0.12); }
.rdp-link--main { color: #0b0418; border: 0; background: linear-gradient(135deg, #19fb9b, #00c2ff 45%, #9945ff); }
.rdp-link--main:hover { background: linear-gradient(135deg, #19fb9b, #00c2ff 45%, #9945ff); filter: brightness(1.08); }
.rdp-link--discord { background: #5865f2; border-color: #5865f2; }
.rdp-link--discord:hover { background: #4752c4; }

/* The member's radio (panel: compact; /radio: full) */
.rdm-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rdm-points b { display: block; font-size: 1.7rem; font-weight: 900; line-height: 1; background: linear-gradient(100deg, #19fb9b, #00c2ff 60%, #b98aff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rdm-points span { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.rdm-voice { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: 0.76rem; color: var(--muted); background: rgba(255,255,255,0.05); border: 1px solid var(--line); }
.rdm-voice::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #64748b; }
.rdm-voice.is-on { color: #bbf7d0; border-color: rgba(34,197,94,0.5); background: rgba(34,197,94,0.1); }
.rdm-voice.is-on::before { background: #22c55e; box-shadow: 0 0 10px #22c55e; animation: rd-breathe 2s ease-in-out infinite; }
/* radio5: earning on the web (cyan), waiting for the bot's first web minute (amber) */
.rdm-voice.is-web { color: #a5f3fc; border-color: rgba(34,211,238,0.5); background: rgba(34,211,238,0.1); }
.rdm-voice.is-web::before { background: #22d3ee; box-shadow: 0 0 10px #22d3ee; }
.rdm-voice.is-wait { color: #fde68a; border-color: rgba(251,191,36,0.45); background: rgba(251,191,36,0.08); }
.rdm-voice.is-wait::before { background: #fbbf24; animation: rd-breathe 1.4s ease-in-out infinite; }
.rdm-web { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; margin: 10px 0 0; padding: 9px 12px; border-radius: 12px; background: rgba(34,211,238,0.05); border: 1px solid rgba(34,211,238,0.22); }
.rdm-web span { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.rdm-web b { font-size: 0.86rem; color: #a5f3fc; }
.rdm-web .rdm-bar { grid-column: 1 / -1; }
.rdm-web .rdm-bar i { background: linear-gradient(90deg, #22d3ee, #9945ff); }
.rdm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.rdm-stat { display: grid; gap: 2px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); }
.rdm-stat span { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.rdm-stat b { font-size: 1rem; }
.rdm-stat em { font-style: normal; font-size: 0.74rem; color: var(--cyan); }
.rdm-missions { display: grid; gap: 10px; margin-top: 12px; }
.rdm-mission { padding: 12px; border-radius: 14px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); display: grid; gap: 8px; }
.rdm-mission.is-ready { border-color: rgba(25,251,155,0.6); box-shadow: 0 0 22px rgba(25,251,155,0.15); }
.rdm-mission.is-claimed { border-color: rgba(34,197,94,0.35); }
.rdm-mission-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.rdm-mission-head b { font-size: 0.88rem; }
.rdm-mission-head span { font-size: 0.8rem; font-weight: 800; color: #fbbf24; }
.rdm-mission.is-claimed .rdm-mission-head span { color: #4ade80; }
.rdm-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: 0.8rem; color: #cbd5e1; }
.rdm-item-val { color: var(--muted); font-variant-numeric: tabular-nums; }
.rdm-item.is-done .rdm-item-label::after { content: ' ✓'; color: #4ade80; font-weight: 900; }
.rdm-bar { grid-column: 1 / -1; height: 5px; border-radius: 5px; overflow: hidden; background: rgba(255,255,255,0.08); }
.rdm-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #9945ff, #00c2ff, #19fb9b); transition: width 0.6s; }
.rdm-item.is-done .rdm-bar i { background: linear-gradient(90deg, #22c55e, #19fb9b); }
.rdm-claim { margin: 0; font-size: 0.82rem; font-weight: 700; color: #a7f3d0; }
.rdm-dailies { margin: 0; font-size: 0.8rem; color: var(--muted); }
/* Your Top 10 on /radio (radio3): the Playlist rows, two columns of 5 read top to bottom */
.rdm-top { margin-top: 18px; padding: 16px; border-radius: 16px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); }
.rdm-top-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 10px; }
.rdm-top-head b { font-size: 0.95rem; }
.rdm-top-head span { font-size: 0.78rem; color: var(--muted); }
.rd-song-list.rdm-top-list { max-height: none; overflow: visible; grid-auto-flow: column; grid-template-rows: repeat(var(--rows, 5), auto); }
.rdm-top-list li.is-podium .rd-song-i { color: #1a1205; background: linear-gradient(135deg, #fde68a, #f59e0b); box-shadow: 0 0 14px rgba(245,158,11,0.25); }
.rdm-top-list li.is-2 .rd-song-i { background: linear-gradient(135deg, #f1f5f9, #94a3b8); box-shadow: 0 0 14px rgba(148,163,184,0.2); }
.rdm-top-list li.is-3 .rd-song-i { background: linear-gradient(135deg, #fdba74, #b45309); box-shadow: 0 0 14px rgba(180,83,9,0.22); }
.rd-song-list.rdm-top-list li:not(:has(.rd-copy)) { grid-template-areas: 'i n k' 'i g k'; grid-template-columns: 42px minmax(0, 1fr) auto; }

/* /radio page sections */
.rd-page + .rd-page { margin-top: 0; }
.rd-browse { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 16px 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.rd-browse p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.rd-browse b { color: #fff; }
.rd-browse-disc { flex: none; width: 38px; height: 38px; animation-play-state: running; }
.rd-browse-disc img { width: 16px; height: 16px; }
.rd-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 24px; border-radius: var(--radius);
    background: linear-gradient(120deg, rgba(88,101,242,0.16), rgba(0,194,255,0.08)); border: 1px solid rgba(88,101,242,0.45); }
.rd-cta div { display: grid; gap: 4px; }
.rd-cta span { color: var(--muted); font-size: 0.92rem; }
.rd-me { padding: 24px; border-radius: 22px; background: rgba(12,6,26,0.7); border: 1px solid var(--line-strong); }
.rd-me[hidden] { display: none; }
.rd-me .rdm-points b { font-size: 2.6rem; }
.rd-me .rdm-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.rd-me .rdm-stat { padding: 14px 16px; }
.rd-me .rdm-stat b { font-size: 1.3rem; }
.rd-me .rdm-missions { grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.rd-me .rdm-mission { padding: 16px; gap: 10px; }
.rd-me .rdm-item { font-size: 0.86rem; }
.rd-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rd-how-card { position: relative; padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); transition: border-color 0.2s, transform 0.2s; }
.rd-how-card:hover { border-color: rgba(0,221,235,0.4); transform: translateY(-2px); }
.rd-how-card--listen { background: linear-gradient(160deg, rgba(25,251,155,0.10), rgba(0,194,255,0.04) 60%), var(--panel); }
.rd-how-card--raffle { background: linear-gradient(160deg, rgba(245,158,11,0.12), rgba(249,115,22,0.04) 60%), var(--panel); }
.rd-how-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; font-size: 1.35rem; background: rgba(255,255,255,0.06); border: 1px solid var(--line); }
.rd-how-card h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 14px 0 10px; font-size: 1.1rem; }
.rd-how-card h3 em { font-style: normal; font-size: 0.86rem; font-weight: 900; color: #fbbf24; }
.rd-how-card ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 0.88rem; color: #cbd5e1; }
.rd-how-card p { margin: 10px 0 0; font-size: 0.84rem; color: var(--muted); }
.rd-how-card code, .rd-page .section-head code { padding: 1px 6px; border-radius: 6px; font-size: 0.82em; color: #c9f7ff; background: rgba(0,221,235,0.10); border: 1px solid rgba(0,221,235,0.25); }
.rd-raffle-now { margin: 0 0 10px !important; color: #fff !important; font-size: 0.92rem !important; }
.rd-pill-live { display: inline-block; padding: 2px 8px; margin-right: 4px; border-radius: 999px; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: #052e16; background: #4ade80; }
.rd-join { margin-top: 18px; }
.rd-join .rd-card { max-width: 560px; }
.rd-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rd-box { padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.rd-box h3 { margin: 0 0 14px; font-size: 1.1rem; }
.rd-top, .rd-recent { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.rd-top li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,0.03); font-size: 0.9rem; }
.rd-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-top-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 0.78rem; font-weight: 900; color: var(--muted); background: rgba(255,255,255,0.06); }
.rd-top li.is-podium .rd-top-n { color: #1a0f00; background: linear-gradient(135deg, #fde68a, #f59e0b); }
.rd-top li.is-podium:nth-child(2) .rd-top-n { background: linear-gradient(135deg, #f1f5f9, #94a3b8); }
.rd-top li.is-podium:nth-child(3) .rd-top-n { background: linear-gradient(135deg, #fdba74, #c2410c); }
.rd-top-t { color: #c9f7ff; font-variant-numeric: tabular-nums; }
.rd-top-p { color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.rd-recent li { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,0.03); }
.rd-recent li:first-child { background: rgba(0,221,235,0.08); }
.rd-recent time { grid-row: span 2; align-self: center; font-size: 0.76rem; color: var(--muted); }
.rd-recent b { font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-recent span { grid-column: 2; font-size: 0.76rem; color: var(--muted); }
.rd-recent-side { grid-column: 3; grid-row: 1 / span 2; display: flex; align-items: center; gap: 10px; }
.rd-recent-side em { font-style: normal; }
.rd-empty { margin: 0; font-size: 0.88rem; color: var(--muted); }
.rd-empty[hidden] { display: none; }
.rd-hits { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.rd-hit { display: grid; gap: 4px; padding: 14px; border-radius: 16px; background: linear-gradient(160deg, rgba(249,115,22,0.14), transparent 70%), var(--panel); border: 1px solid rgba(249,115,22,0.3); min-width: 0; }
.rd-hit-n { font-size: 0.74rem; font-weight: 900; color: var(--orange); }
.rd-hit b { font-size: 0.9rem; overflow-wrap: anywhere; }
.rd-hit span { font-size: 0.76rem; color: var(--muted); }
.rd-songs { padding: 18px; border-radius: 22px; background: rgba(12,6,26,0.6); border: 1px solid var(--line-strong); }
.rd-songs-tools { display: grid; gap: 12px; margin-bottom: 14px; }
.rd-songs-tools input { width: 100%; padding: 12px 16px; border-radius: 12px; font: inherit; color: #fff; background: rgba(255,255,255,0.06); border: 1px solid var(--line-strong); }
.rd-songs-tools input:focus { outline: none; border-color: rgba(0,221,235,0.6); box-shadow: 0 0 0 3px rgba(0,221,235,0.15); }
.rd-genres { display: flex; flex-wrap: wrap; gap: 6px; }
.rd-genres button { padding: 6px 12px; border-radius: 999px; font: inherit; font-size: 0.8rem; font-weight: 700; color: #cbd5e1; cursor: pointer; background: rgba(255,255,255,0.05); border: 1px solid var(--line); transition: background 0.2s, color 0.2s, border-color 0.2s; }
.rd-genres button:hover { color: #fff; border-color: var(--line-strong); }
.rd-genres button.is-on { color: #0b0418; border-color: transparent; background: linear-gradient(135deg, #19fb9b, #00c2ff 50%, #9945ff); }
.rd-song-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; max-height: 620px; overflow: auto; overscroll-behavior: contain; }
.rd-song-list li { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto; grid-template-areas: 'i n k c' 'i g k c'; gap: 0 10px; align-items: center; padding: 8px 10px; border-radius: 12px; transition: background 0.15s; }
.rd-song-list li:hover { background: rgba(255,255,255,0.05); }
.rd-song-list li[hidden] { display: none; }
.rd-song-i { grid-area: i; display: grid; place-items: center; height: 30px; border-radius: 9px; font-size: 0.78rem; font-weight: 900; color: #c9f7ff; background: rgba(0,221,235,0.10); font-variant-numeric: tabular-nums; }
.rd-song-list b { grid-area: n; font-size: 0.9rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-song-g { grid-area: g; font-size: 0.74rem; color: var(--muted); }
.rd-song-k { grid-area: k; font-size: 0.76rem; color: #fda4af; }
.rd-copy { grid-area: c; padding: 5px 9px; border-radius: 8px; font: inherit; font-size: 0.74rem; font-weight: 700; color: var(--muted); cursor: pointer; background: none; border: 1px solid var(--line); white-space: nowrap; transition: color 0.2s, border-color 0.2s, background 0.2s; }
.rd-copy:hover { color: #fff; border-color: rgba(0,221,235,0.5); }
.rd-copy.is-copied { color: #052e16; background: #4ade80; border-color: #4ade80; }
.rd-copy.is-copied::after { content: ' ✓'; }

@media (max-width: 1100px) {   /* the 🔔 moves into the drawer, the record stays next to the avatar */
    .nav .rdock { margin-left: auto; margin-right: 0; }
    .nav .rdock ~ .user-chip { margin-left: 0; }
}
/* Phones, logged in: brand + record + avatar + ☰ must fit on one line (the record is 50 px more than before radio2) */
@media (max-width: 440px) {
    .nav:has(.user-chip) .brand { gap: 8px; font-size: 1.1rem; }
    .nav:has(.user-chip) .brand img { width: 40px; height: 40px; }
    .nav:has(.user-chip) .brand small { display: none; }
}
@media (max-width: 369px) {
    .nav:has(.user-chip) .brand > span { display: none; }
}
@media (max-width: 960px) {
    .rd-how { grid-template-columns: 1fr 1fr; }
    .rd-hits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rd-hits .rd-hit:nth-child(n+4) { display: none; }
}
@media (max-width: 760px) {
    .rd-two, .rd-me .rdm-missions, .rd-song-list { grid-template-columns: 1fr; }
    .rd-song-list.rdm-top-list { grid-auto-flow: row; grid-template-rows: none; }
    .rd-me .rdm-top { padding: 12px 8px; }
    .rd-song-list { max-height: 520px; }
    .rd-me { padding: 18px; }
    .rd-me .rdm-points b { font-size: 2.1rem; }
    .rd-me .rdm-stats { gap: 8px; }
    .rd-me .rdm-stat { padding: 10px; }
    .rd-me .rdm-stat b { font-size: 1.02rem; }
}
@media (max-width: 600px) {
    .rd-how { grid-template-columns: 1fr; }
    .rd-hits { grid-template-columns: 1fr 1fr; }
    .rd-hits .rd-hit:nth-child(n+3) { display: none; }
    .rd-browse { align-items: flex-start; }
    .rdock { margin-right: 6px; }
    .rdock-panel { top: auto !important; right: 0 !important; left: 0; bottom: 0; width: 100%; max-height: 86vh; border-radius: 24px 24px 0 0;
        padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); transform: translateY(24px); transform-origin: bottom center; }
    .rdock-panel::after { content: ''; position: absolute; top: 7px; left: 50%; width: 42px; height: 4px; margin-left: -21px; border-radius: 4px; background: rgba(255,255,255,0.2); }
    .rdock-panel.is-open { transform: none; }
    .rdp-hero { grid-template-columns: 88px minmax(0, 1fr); }
    .rdp-disc { width: 88px; }
    .rdp-arm { height: 50px; }
    .rd-song-list li { grid-template-columns: 38px minmax(0, 1fr) auto; grid-template-areas: 'i n c' 'i g k'; }
    .rd-song-k { justify-self: end; }
    .rd-recent li { grid-template-columns: minmax(0, 1fr) auto; gap: 1px 10px; }
    .rd-recent time { grid-row: auto; grid-column: 1; font-size: 0.7rem; }
    .rd-recent b, .rd-recent span { grid-column: 1; }
    .rd-recent-side { grid-column: 2; grid-row: 1 / span 3; flex-direction: column; align-items: flex-end; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
    .rdock-vinyl, .rdock-panel .rd-disc-vinyl, .rdock.is-playing .rdock-bars i, .rdock.is-blocked .rdock-ring, .rdm-voice.is-on::before, .rdm-voice.is-wait::before,
    .rdock-panel.is-playing .rd-disc-glow, .rdock-panel.is-live .rd-onair i, .rdp-title.is-new { animation: none; }
    .rdock-panel.is-playing .rd-eq i { animation: none; transform: scaleY(0.6); }
    .rdock-panel, .rdp-arm { transition: none; }
}
