/* Radio de noticias */
.rd { --rd-a: #ef4444; --rd-b: #6366f1; display: flex; flex-direction: column; gap: 16px; padding-bottom: 24px; }
.rd-stage { --h1: 350; --h2: 250; position: relative; overflow: hidden; border-radius: 22px; color: #fff; display: grid; grid-template-columns: minmax(0, 1fr) 340px; min-height: 360px;
    background: #070a14; border: 1px solid rgba(255, 255, 255, .07); box-shadow: 0 30px 70px rgba(2, 6, 23, .32); isolation: isolate; }
/* Fondo vivo: tres manchas de color de la emisora que se mueven despacio */
.rd-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.rd-bg i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; transition: background 1.2s, opacity .8s; }
.rd-bg i:nth-child(1) { width: 60%; height: 120%; left: -10%; top: -40%; background: hsl(var(--h1) 85% 45%); animation: rdBlob1 18s ease-in-out infinite alternate; }
.rd-bg i:nth-child(2) { width: 50%; height: 110%; left: 30%; top: 30%; background: hsl(var(--h2) 80% 40%); animation: rdBlob2 22s ease-in-out infinite alternate; }
.rd-bg i:nth-child(3) { width: 35%; height: 70%; right: 10%; top: -30%; background: hsl(calc(var(--h1) + 40) 90% 50%); opacity: .3; animation: rdBlob1 26s ease-in-out infinite alternate-reverse; }
.rd-stage::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 10, 20, .15), rgba(7, 10, 20, .72) 70%), radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 22px 22px; }
.rd-stage[data-state="playing"] .rd-bg i { opacity: .8; }
.rd-stage[data-state="playing"] .rd-bg i:nth-child(3) { opacity: .45; }
@keyframes rdBlob1 { to { transform: translate(18%, 14%) scale(1.15); } }
@keyframes rdBlob2 { to { transform: translate(-22%, -18%) scale(.9); } }
.rd-main { min-width: 0; display: flex; flex-direction: column; padding: 26px 28px 18px; }
.rd-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.rd-dot { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; flex: none; }
.rd-dot.is-live, .rd-stage[data-state="playing"] .rd-dot { background: #f43f5e; box-shadow: 0 0 0 0 rgba(244, 63, 94, .7); animation: rdPing 1.6s ease-out infinite; }
.rd-stage[data-state="loading"] .rd-dot { background: #fbbf24; animation: rdPulse .8s ease-in-out infinite; }
.rd-stage[data-state="error"] .rd-dot { background: #f87171; }
@keyframes rdPing { 0% { box-shadow: 0 0 0 0 rgba(244, 63, 94, .7); } 80%, 100% { box-shadow: 0 0 0 9px rgba(244, 63, 94, 0); } }
@keyframes rdPulse { 50% { opacity: .35; } }
.rd-clock { font-variant-numeric: tabular-nums; letter-spacing: .04em; color: #fff; font-weight: 700; padding-left: 8px; margin-left: 2px; border-left: 1px solid rgba(255, 255, 255, .25); }
.rd-clock:empty { display: none; }
/* Vitrina (sin emisora) */
.rd-showcase { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rd-show-h { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.15; font-weight: 800; letter-spacing: -.01em; max-width: 22ch; margin: 0; color: #fff; }
.rd-marquee { display: flex; flex-direction: column; gap: 10px; margin: 6px -28px 0; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.rd-mq-row { overflow: hidden; }
.rd-mq-track { display: flex; gap: 10px; width: max-content; animation: rdMarq 70s linear infinite; }
.rd-mq-row.is-rev .rd-mq-track { animation-direction: reverse; animation-duration: 85s; }
.rd-marquee:hover .rd-mq-track { animation-play-state: paused; }
@keyframes rdMarq { to { transform: translateX(-50%); } }
.rd-mq { all: unset; cursor: pointer; position: relative; flex: none; width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center; overflow: hidden;
    background: linear-gradient(135deg, hsl(var(--h) 70% 45%), hsl(calc(var(--h) + 60) 70% 30%)); box-shadow: 0 6px 16px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .12); transition: transform .2s; }
.rd-mq img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 7px; z-index: 1; }
.rd-mq b { font-size: 22px; font-weight: 800; }
.rd-mq:hover, .rd-mq:focus-visible { transform: translateY(-3px) scale(1.06); outline: 2px solid #fff; outline-offset: 2px; }
.rd-show-act { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.rd-cta { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; background: #fff; color: #0b1020; font-weight: 700; font-size: 14px; box-shadow: 0 10px 24px rgba(0, 0, 0, .3); transition: transform .15s; }
.rd-cta:hover { transform: translateY(-1px) scale(1.02); }
.rd-cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.rd-show-note { font-size: 13px; color: rgba(255, 255, 255, .65); }
/* Emisora elegida */
.rd-now { display: flex; gap: 24px; align-items: center; min-width: 0; }
.rd-art { position: relative; flex: none; width: 148px; height: 148px; }
.rd-ring { position: absolute; inset: -9px; border-radius: 30px; background: conic-gradient(from 0deg, hsl(var(--h1) 95% 60%), hsl(var(--h2) 95% 60%), hsl(var(--h1) 95% 60%)); opacity: .25; transition: opacity .5s; -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)); }
.rd-stage[data-state="playing"] .rd-ring { opacity: 1; animation: rdSpin 4s linear infinite; border-radius: 50%; }
.rd-stage[data-state="loading"] .rd-ring { opacity: .7; animation: rdSpin 1s linear infinite; border-radius: 50%; }
.rd-logo { position: absolute; inset: 0; border-radius: 24px; background: linear-gradient(135deg, hsl(var(--h1) 70% 42%), hsl(var(--h2) 70% 28%)); display: grid; place-items: center; overflow: hidden; box-shadow: 0 16px 36px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .12); transition: border-radius .5s, transform .5s; }
.rd-stage[data-state="playing"] .rd-logo { border-radius: 50%; transform: scale(.94); }
.rd-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 14px; z-index: 1; }
.rd-logo span { font-size: 58px; font-weight: 800; color: rgba(255, 255, 255, .92); }
.rd-logo span .ico { width: 44px; height: 44px; }
.rd-meta { min-width: 0; flex: 1; }
.rd-meta h2 { font-size: clamp(24px, 3.2vw, 40px); line-height: 1.08; font-weight: 800; letter-spacing: -.015em; margin: 8px 0 6px; color: #fff; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rd-meta p { margin: 0; color: rgba(255, 255, 255, .78); font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rd-meta p a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 3px; }
.rd-flag { width: 16px; height: 12px; border-radius: 2px; object-fit: cover; vertical-align: -1px; flex: none; }
.rd-facts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.rd-facts span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .9); backdrop-filter: blur(6px); }
.rd-facts span b { font-weight: 600; font-variant-numeric: tabular-nums; }
.rd-facts .is-live { background: rgba(244, 63, 94, .2); border-color: rgba(244, 63, 94, .45); }
.rd-facts .is-live i { width: 6px; height: 6px; border-radius: 50%; background: #fb7185; animation: rdPulse 1.2s infinite; }
.rd-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.rd-tags span { font-size: 11px; padding: 2px 8px; border-radius: 999px; color: rgba(255, 255, 255, .62); border: 1px dashed rgba(255, 255, 255, .2); }
.rd-wave { display: block; width: 100%; height: 74px; margin: 14px 0 8px; }
.rd-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: auto; }
.rd-btn { all: unset; cursor: pointer; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(6px); transition: background .15s, transform .15s; }
.rd-btn:hover { background: rgba(255, 255, 255, .18); }
.rd-btn:active { transform: scale(.94); }
.rd-btn:focus-visible, .rd-play:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.rd-btn.rd-sm { width: 38px; height: 38px; }
.rd-btn.is-on { color: #fb7185; background: rgba(244, 63, 94, .18); border-color: rgba(244, 63, 94, .45); }
.rd-btn.is-on .ico { fill: currentColor; }
.rd-play { all: unset; cursor: pointer; position: relative; display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; color: #0b1020; background: #fff; box-shadow: 0 12px 34px hsl(var(--h1) 90% 55% / .45); transition: transform .15s, box-shadow .4s; }
.rd-play:hover { transform: scale(1.06); }
.rd-play:active { transform: scale(.96); }
.rd-play .i-pause, .rd-stage[data-state="playing"] .rd-play .i-play, .rd-stage[data-state="loading"] .rd-play .i-play { display: none; }
.rd-stage[data-state="playing"] .rd-play .i-pause { display: block; }
.rd-spin { position: absolute; inset: -6px; border-radius: 50%; border: 3px solid transparent; border-top-color: hsl(var(--h1) 95% 65%); opacity: 0; }
.rd-stage[data-state="loading"] .rd-spin { opacity: 1; animation: rdSpin .8s linear infinite; }
.rd-stage[data-state="loading"] .rd-play .i-pause { display: block; opacity: .4; }
@keyframes rdSpin { to { transform: rotate(360deg); } }
.rd-vol { display: flex; align-items: center; gap: 8px; }
.rd-vol input[type="range"] { width: 120px; accent-color: hsl(var(--h1) 90% 60%); }
.rd-stage.is-muted .rd-vol .w { display: none; }
.rd-extra { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.rd-sleep { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 6px 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14); color: #fff; }
.rd-sleep select { all: unset; cursor: pointer; font-size: 13px; padding-right: 6px; }
.rd-sleep select option { color: #111; background: #fff; }
.rd-msg { min-height: 18px; margin: 10px 0 0; font-size: 13px; color: rgba(255, 255, 255, .75); }
.rd-stage[data-state="error"] .rd-msg { color: #fecaca; }
/* Columna viva */
.rd-side { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 22px 20px 16px; background: rgba(5, 8, 18, .45); border-left: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(14px); }
.rd-side-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.rd-side-head strong { font-size: 14px; font-weight: 700; color: #fff; }
.rd-side-head span { font-size: 11.5px; color: rgba(255, 255, 255, .55); white-space: nowrap; }
.rd-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.rd-stats div { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.rd-stats b { display: block; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; }
.rd-stats span { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: rgba(255, 255, 255, .62); }
.rd-stats .is-live b { color: #fda4af; }
.rd-stats .is-live i { width: 6px; height: 6px; border-radius: 50%; background: #fb7185; animation: rdPulse 1.2s infinite; }
.rd-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; overflow: hidden; flex: 1; max-height: 300px; -webkit-mask: linear-gradient(#000 80%, transparent); mask: linear-gradient(#000 80%, transparent); }
.rd-feed-empty { font-size: 13px; color: rgba(255, 255, 255, .6); padding: 8px 0; }
.rd-act { display: flex; gap: 8px; align-items: flex-start; padding: 8px 4px; font-size: 12.5px; color: rgba(255, 255, 255, .72); border-bottom: 1px solid rgba(255, 255, 255, .06); cursor: pointer; }
.rd-act .rd-flag { margin-top: 3px; }
.rd-act span { flex: 1; min-width: 0; }
.rd-act b { color: #fff; font-weight: 600; }
.rd-act a { color: #fff; text-decoration: none; font-weight: 600; }
.rd-act a:hover { text-decoration: underline; }
.rd-act time { font-size: 11px; color: rgba(255, 255, 255, .45); white-space: nowrap; }
.rd-act.is-live time { color: #fda4af; font-weight: 700; }
.rd-head a { display: block; padding: 9px 4px; border-bottom: 1px solid rgba(255, 255, 255, .07); color: #fff; text-decoration: none; }
.rd-head a:hover span { text-decoration: underline; }
.rd-head span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.35; font-weight: 500; }
.rd-head small { display: block; margin-top: 3px; font-size: 11px; color: rgba(255, 255, 255, .5); }
.rd-head.is-new { animation: rdIn .7s cubic-bezier(.2, .8, .2, 1); }
.rd-head.is-new a { background: linear-gradient(90deg, hsl(var(--h1) 90% 60% / .22), transparent); border-radius: 8px; transition: background 4s; }
@keyframes rdIn { from { opacity: 0; transform: translateY(-14px); max-height: 0; } to { opacity: 1; transform: none; max-height: 90px; } }
@media (prefers-reduced-motion: reduce) { .rd-bg i, .rd-mq-track, .rd-ring, .rd-head.is-new { animation: none !important; } }
.rd-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.rd-tools input[type="search"] { flex: 1 1 260px; min-width: 200px; }
.rd-tools input, .rd-tools select { font: inherit; font-size: 14px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
.rd-seg { display: inline-flex; gap: 3px; padding: 3px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 11px; }
.rd-seg button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.rd-seg button.is-on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 0 0 1px var(--line); }
.rd-count { font-size: 13px; color: var(--faint); margin-left: auto; }
.rd-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin-top: -6px; scrollbar-width: thin; }
.rd-chips button { all: unset; cursor: pointer; flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--panel); border: 1px solid var(--line); transition: border-color .15s, background .15s; }
.rd-chips button small { font-size: 11px; color: var(--faint); font-weight: 600; }
.rd-chips button:hover { border-color: var(--line-2); }
.rd-chips button.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.rd-chips button.is-on small { color: inherit; opacity: .7; }
.rd-chips button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.rd-chips .flag { border-radius: 2px; }
.rd-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; transition: opacity .2s; }
.rd-list.is-loading { opacity: .5; }
.rd-empty { grid-column: 1 / -1; color: var(--muted); padding: 30px 0; text-align: center; }
.rd-card { position: relative; display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; min-width: 0; }
.rd-card:hover { border-color: var(--line-2); transform: translateY(-1px); box-shadow: var(--shadow-pop); }
.rd-card.is-on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.rd-card-logo { position: relative; flex: none; width: 56px; height: 56px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.rd-card-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.rd-card-logo b { display: none; font-size: 22px; color: #fff; }
.rd-card-logo.no-img { background: linear-gradient(135deg, hsl(var(--h, 240) 65% 45%), hsl(calc(var(--h, 240) + 60) 65% 32%)); border-color: transparent; }
.rd-card-logo.no-img b { display: block; }
.rd-card-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(11, 16, 32, .55); color: #fff; opacity: 0; transition: opacity .15s; }
.rd-card:hover .rd-card-play, .rd-card.is-on .rd-card-play { opacity: 1; }
.rd[data-state="playing"] .rd-card.is-on .rd-card-play svg { display: none; }
.rd[data-state="playing"] .rd-card.is-on .rd-card-play::after { content: ""; width: 18px; height: 16px; background: linear-gradient(90deg, #fff 0 3px, transparent 3px 7px, #fff 7px 10px, transparent 10px 14px, #fff 14px 17px); animation: rdPulse 1s infinite; }
.rd-card-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.rd-card-body strong { font-size: 14.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-card-sub { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.rd-card-tags em { font-style: normal; font-size: 11px; color: var(--faint); }
.rd-live-n { color: #dc2626 !important; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.rd-live-n i { width: 6px; height: 6px; border-radius: 50%; background: #dc2626; animation: rdPulse 1.2s infinite; }
.rd-card-fav { all: unset; cursor: pointer; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--line-2); }
.rd-card-fav svg { fill: transparent; }
.rd-card-fav:hover { color: var(--brand); }
.rd-card-fav.is-on { color: var(--brand); }
.rd-card-fav.is-on svg { fill: currentColor; }
@media (max-width: 1100px) {
    .rd-stage { grid-template-columns: 1fr; }
    .rd-side { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .08); }
    .rd-feed { max-height: 230px; }
}
@media (max-width: 700px) {
    .rd-main { padding: 18px 16px 14px; }
    .rd-side { padding: 16px; }
    .rd-stage { border-radius: 18px; }
    .rd-art { width: 92px; height: 92px; }
    .rd-logo span { font-size: 38px; }
    .rd-now { gap: 16px; }
    .rd-marquee { margin: 4px -16px 0; }
    .rd-mq { width: 52px; height: 52px; border-radius: 14px; }
    .rd-wave { height: 56px; }
    .rd-extra { margin-left: 0; width: 100%; justify-content: space-between; }
    .rd-vol input[type="range"] { width: 90px; }
    .rd-stats b { font-size: 17px; }
}
/* Ventana aparte */
.rd-mini-body { margin: 0; background: var(--bg); }
.rd-mini { padding: 12px; gap: 12px; }
.rd-mini .rd-stage { grid-template-columns: 1fr; min-height: 0; }
.rd-mini .rd-main { padding: 18px; }
.rd-mini .rd-side { display: none; }
.rd-mini .rd-art { width: 84px; height: 84px; }
.rd-mini .rd-logo span { font-size: 34px; }
.rd-mini .rd-extra { margin-left: 0; }
.rd-list-compact { grid-template-columns: 1fr; gap: 8px; }
.rd-list-compact .rd-card { padding: 8px; }
.rd-list-compact .rd-card-logo { width: 42px; height: 42px; }
