.rop{--rop-bg:#111b30;--rop-soft:#1d2b46;--rop-accent:#66d2fa;box-sizing:border-box;background:linear-gradient(135deg,#172741,#0c1424);color:#f6f8ff;border-radius:22px;padding:clamp(18px,4vw,32px);max-width:940px;margin:24px auto;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-shadow:0 16px 45px #07112430}.rop *{box-sizing:border-box}.rop-header,.rop-brand,.rop-main,.rop-controls,.rop-stats,.rop-history li{display:flex;align-items:center}.rop-header,.rop-stats{justify-content:space-between;gap:12px}.rop-brand{gap:12px}.rop-brand strong{display:block;font-size:19px;letter-spacing:.09em}.rop-brand small{display:block;color:#b6c6dc;font-size:12px}.rop-mark{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:#263b58;color:var(--rop-accent);font-size:25px}.rop-live{font-size:11px;font-weight:700;letter-spacing:.08em;border:1px solid #297d65;border-radius:30px;color:#8cf1c6;padding:7px 11px;white-space:nowrap}.rop-live span{color:#54e5a8}.rop-main{gap:clamp(18px,4vw,34px);align-items:stretch;margin:27px 0}.rop-cover{position:relative;flex:0 0 min(38%,280px);aspect-ratio:1;background:#273955;border-radius:16px;overflow:hidden;display:grid;place-items:center}.rop-art{display:none;width:100%;height:100%;object-fit:cover;position:absolute;inset:0}.rop-art[src]{display:block}.rop-cover-fallback{font-size:80px;color:#7794bb}.rop-info{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center}.rop-eyebrow{font-size:11px;letter-spacing:.13em;color:var(--rop-accent);font-weight:700}.rop .rop-title{font-size:clamp(23px,3vw,32px);line-height:1.2;color:#fff;margin:9px 0 4px;font-weight:750;overflow-wrap:anywhere}.rop .rop-artist{color:#d0def0;font-size:17px;margin:0}.rop .rop-album{color:#8fa6c3;font-size:13px;margin:7px 0 0}.rop-controls{gap:20px;margin-top:24px}.rop-play{width:64px;height:64px;border:0;border-radius:50%;background:#f5faff;color:#0b1a2e;display:grid;place-items:center;font-size:23px;cursor:pointer;flex-shrink:0;transition:transform .15s}.rop-play:hover{transform:scale(1.05)}.rop-play:focus-visible,.rop input:focus-visible{outline:3px solid var(--rop-accent);outline-offset:4px}.rop-volume{flex:1}.rop-volume label{font-size:12px;color:#b6c6dc;display:block;margin-bottom:6px}.rop-volume input{width:100%;accent-color:var(--rop-accent);cursor:pointer}.rop .rop-status{font-size:12px;color:#a9bed7;margin:12px 0}.rop-stats{border-top:1px solid #35465d;padding-top:14px;color:#9fb2cc;font-size:12px}.rop-history-wrap{border-top:1px solid #34445d;padding-top:16px}.rop .rop-history-wrap h3{font-size:16px;color:#f7faff;margin:0 0 13px}.rop-history{list-style:none;margin:0;padding:0;display:grid;gap:8px}.rop-history li{gap:11px;background:#ffffff0b;border-radius:10px;padding:9px 11px;color:#c9d6e8;font-size:13px}.rop-history img,.rop-history .rop-history-fallback{width:43px;height:43px;border-radius:7px;object-fit:cover;background:#304563;flex-shrink:0}.rop-history .rop-history-fallback{display:grid;place-items:center}.rop-history b{display:block;color:#f4f8ff;font-size:13px}.rop-history small{display:block;color:#9fb2cc;margin-top:2px}.rop-audio{display:none}@media(max-width:600px){.rop-main{flex-direction:column;align-items:center}.rop-cover{width:min(100%,290px);flex-basis:auto}.rop-info{width:100%;text-align:center}.rop-controls{justify-content:center}.rop-volume{text-align:left}.rop .rop-title{font-size:25px}.rop-brand strong{font-size:16px}.rop-mark{width:39px;height:39px}}
/* Ajustes v1.1 */
.rop .rop-brand strong{letter-spacing:.055em}
.rop .rop-live{border-color:#ef4444;color:#fecaca;background:#7f1d1d25;display:inline-flex;align-items:center;gap:8px}
.rop .rop-live-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#ef4444;box-shadow:0 0 0 3px #ef444433;animation:rop-live-pulse 1.5s ease-in-out infinite}
@keyframes rop-live-pulse{0%,100%{opacity:1;box-shadow:0 0 0 3px #ef444433}50%{opacity:.35;box-shadow:0 0 0 7px #ef44440b}}
@media(prefers-reduced-motion:reduce){.rop .rop-live-dot{animation:none}}
.rop .rop-play{display:flex;align-items:center;justify-content:center;padding:0;line-height:1}
.rop .rop-play svg{width:30px;height:30px;display:block;flex-shrink:0}
.rop .rop-play .rop-pause-icon{display:none}
.rop .rop-play.is-playing .rop-play-icon{display:none}
.rop .rop-play.is-playing .rop-pause-icon{display:block}
.rop .rop-artist,.rop .rop-album{display:flex;gap:8px;flex-wrap:wrap;align-items:baseline}
.rop .rop-field-label{color:#89a6c9;font-size:12px;font-weight:650;min-width:46px}
.rop .rop-artist-value{color:#d0def0}
.rop .rop-album-value{color:#a9bed7}
.rop .rop-social{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.rop .rop-social a,.rop .rop-external a{color:#a5e5ff;text-decoration:none;font-size:12px;font-weight:650;border:1px solid #49627e;border-radius:20px;padding:6px 10px;transition:background .2s}
.rop .rop-social a:hover,.rop .rop-external a:hover{background:#ffffff1b;color:white}
.rop .rop-social a:focus-visible,.rop .rop-external a:focus-visible{outline:2px solid #66d2fa;outline-offset:3px}
.rop .rop-history-details{min-width:0;overflow-wrap:anywhere}
.rop .rop-history small{margin-top:3px}
.rop .rop-external{border-top:1px solid #34445d;margin-top:20px;padding-top:18px}
@media(max-width:600px){.rop .rop-artist,.rop .rop-album{justify-content:center}.rop .rop-social{justify-content:center}.rop .rop-brand strong{font-size:14px}}

/* Radio Oscar 1.3 */
.rop{max-width:1180px;background:linear-gradient(125deg,#122541,#08172f);border-radius:28px;padding:clamp(20px,4vw,42px)}
.rop .rop-mark{width:66px;height:66px;background:#06162a;overflow:hidden;border-radius:14px;flex-shrink:0}
.rop .rop-mark img{width:100%;height:100%;object-fit:cover;display:block}
.rop .rop-brand strong{font-size:clamp(16px,2.1vw,25px);letter-spacing:.035em}
.rop .rop-brand small{font-size:14px;margin-top:4px}
.rop .rop-main{gap:clamp(20px,4vw,46px)}
.rop .rop-cover{flex-basis:min(36%,340px)}
.rop .rop-title{font-size:clamp(27px,3.5vw,42px)}
.rop .rop-controls{flex-wrap:wrap;gap:18px}
.rop .rop-volume{flex:1 1 160px}
.rop .rop-volume input{accent-color:#22c8f1}
.rop .rop-actions{margin-left:auto}
.rop .rop-social{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin:0}
.rop .rop-social .rop-social-icon{border:1px solid #486684;border-radius:12px;background:#182f4f;color:#b5e9ff;width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;padding:9px;text-decoration:none;cursor:pointer;transition:transform .2s,background .2s}
.rop .rop-social .rop-social-icon:hover{background:#28527c;transform:translateY(-2px)}
.rop .rop-social .rop-social-icon:focus-visible{outline:3px solid #66d2fa;outline-offset:3px}
.rop .rop-social-icon svg{height:22px;width:22px;display:block}
.rop .rop-social-instagram{color:#ffb0df!important}
.rop .rop-social-facebook{color:#85b8ff!important}
.rop .rop-social-whatsapp{color:#75efae!important}
.rop .rop-social-raddios{color:#f4a5c7!important}
.rop .rop-history li{padding:12px 16px}
@media(max-width:800px){.rop .rop-actions{margin-left:0;width:100%}.rop .rop-social{justify-content:center}}
@media(max-width:600px){.rop .rop-mark{width:52px;height:52px}.rop .rop-header{align-items:flex-start}.rop .rop-live{font-size:10px}.rop .rop-cover{width:min(100%,300px)}.rop .rop-controls{justify-content:center}.rop .rop-actions{width:100%}.rop .rop-brand strong{font-size:14px}.rop .rop-brand small{font-size:12px}}

/* v1.4: distribución estable, historial y controles */
.rop .rop-main{display:flex;align-items:center}
.rop .rop-info{min-width:0;flex:1}
.rop .rop-controls{display:flex;align-items:center;flex-wrap:wrap}
.rop .rop-actions{flex:0 1 auto}
.rop .rop-volume{min-width:160px}
.rop .rop-history-wrap{border-top:1px solid #34445d;padding-top:20px}
.rop .rop-history-wrap h3{color:#fff}
.rop .rop-history{padding:0;list-style:none}
.rop .rop-history li{background:#ffffff0c}
.rop .rop-social a.rop-social-icon{border-radius:12px;padding:9px;width:42px;height:42px}
@media(max-width:800px){.rop .rop-main{flex-direction:column;align-items:center}.rop .rop-cover{width:min(100%,340px);flex-basis:auto}.rop .rop-info{width:100%}.rop .rop-actions{margin-left:0}}

/* Radio Oscar 1.5 — mejoras visuales sin alterar la reproducción */
.rop .rop-main{align-items:center;gap:clamp(20px,3.5vw,42px);margin:28px 0 26px}
.rop .rop-info{justify-content:center}
.rop .rop-controls{gap:20px;margin-top:22px;flex-wrap:nowrap}
.rop .rop-volume{flex:1 1 auto;min-width:0;max-width:560px}
.rop .rop-volume-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:9px}
.rop .rop-volume-heading label{display:flex;align-items:center;gap:8px;margin:0;font-size:13px}
.rop .rop-volume-heading svg{width:18px;height:18px;color:#55d8ff}
.rop .rop-volume-value{color:#d9f5ff;font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}
.rop .rop-volume input[type=range]{appearance:none;-webkit-appearance:none;display:block;width:100%;height:7px;border-radius:99px;background:linear-gradient(to right,#23c9ef var(--rop-fill,100%),#41536e var(--rop-fill,100%));outline:none;border:0;cursor:pointer;margin:0}
.rop .rop-volume input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:19px;height:19px;border-radius:50%;background:#f6fbff;border:2px solid #bcefff;box-shadow:0 2px 8px #0004}
.rop .rop-volume input[type=range]::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:#f6fbff;border:2px solid #bcefff}
.rop .rop-status{margin:14px 0 16px}
.rop .rop-footer{border-top:1px solid #35465d;padding-top:15px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.rop .rop-stats{border:0;padding:0;display:flex;gap:15px;align-items:center;flex-wrap:wrap;justify-content:flex-start}
.rop .rop-social-row{margin-left:auto}
.rop .rop-social{margin:0;justify-content:flex-end;gap:8px}
.rop .rop-social .rop-social-icon{width:40px;height:40px;min-width:40px;padding:8px}
.rop .rop-live{border-color:#ff424f;background:#ff24331c;color:#ffd8db;box-shadow:0 0 12px #f43f5e24}
.rop .rop-live-dot{background:#ff3448;box-shadow:0 0 10px #ff3448}
.rop .rop-live[data-online=no],.rop .rop-live[data-online=unknown]{border-color:#78869b;background:#ffffff0a;color:#b4c0d0;box-shadow:none}
.rop .rop-live[data-online=no] .rop-live-dot,.rop .rop-live[data-online=unknown] .rop-live-dot{background:#8995a7;box-shadow:none;animation:none}
.rop .rop-history-wrap{padding-top:22px}
.rop .rop-history{gap:10px}
.rop .rop-history li{display:flex;align-items:center;gap:18px;padding:13px 17px;border:1px solid #ffffff0a;border-radius:13px;background:#ffffff0b}
.rop .rop-history img,.rop .rop-history .rop-history-fallback{width:55px;height:55px;border-radius:9px}
.rop .rop-history-details{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:center;flex:1;min-width:0}
.rop .rop-history-cell{min-width:0;display:flex;flex-direction:column;gap:5px}
.rop .rop-history-label{font-size:11px;color:#92abc9;font-weight:500}
.rop .rop-history-value{font-size:13px;color:#eef5ff;line-height:1.35;overflow-wrap:anywhere}
.rop .rop-history-song .rop-history-value{font-weight:750;color:white;font-size:14px}
@media(max-width:1050px){.rop .rop-footer{align-items:flex-start}.rop .rop-social-row{margin-left:0}.rop .rop-social{justify-content:flex-start}}
@media(max-width:800px){.rop .rop-main{gap:22px}.rop .rop-info{width:100%}.rop .rop-footer{gap:14px}.rop .rop-social-row{width:100%}.rop .rop-social{justify-content:center}.rop .rop-stats{width:100%;justify-content:space-between}}
@media(max-width:600px){.rop{padding:20px 16px;border-radius:22px}.rop .rop-header{gap:10px;align-items:center}.rop .rop-brand{min-width:0}.rop .rop-brand strong{font-size:clamp(12px,3.4vw,16px);line-height:1.2}.rop .rop-brand small{font-size:11px}.rop .rop-mark{width:47px;height:47px}.rop .rop-live{font-size:9px;padding:7px 8px}.rop .rop-main{margin:22px 0}.rop .rop-info{text-align:left}.rop .rop-artist,.rop .rop-album{justify-content:flex-start}.rop .rop-controls{gap:15px}.rop .rop-play{width:56px;height:56px}.rop .rop-volume{min-width:0}.rop .rop-status{text-align:left}.rop .rop-stats{font-size:11px;gap:8px}.rop .rop-social{gap:9px;justify-content:center}.rop .rop-social .rop-social-icon{width:42px;height:42px}.rop .rop-history li{padding:12px;gap:12px;align-items:flex-start}.rop .rop-history img,.rop .rop-history .rop-history-fallback{width:50px;height:50px}.rop .rop-history-details{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px 12px}.rop .rop-history-song{grid-column:1/-1}.rop .rop-history-label{font-size:10px}.rop .rop-history-value{font-size:12px}}
@media(max-width:360px){.rop .rop-header{flex-wrap:wrap}.rop .rop-live{margin-left:auto}.rop .rop-history-details{grid-template-columns:1fr}.rop .rop-history-song{grid-column:auto}}

/* Radio Oscar v1.6: pulido visual, sin alterar el motor de audio */
.rop .rop-live[data-online=yes]{color:#fff;border-color:#ff4658;background:rgba(157,22,39,.20);box-shadow:0 0 14px rgba(255,53,72,.20)}
.rop .rop-live[data-online=yes] .rop-live-text{color:#fff}
.rop .rop-live[data-online=yes] .rop-live-dot{background:#ff354a;box-shadow:0 0 9px rgba(255,53,74,.85)}
.rop .rop-live[data-online=no] .rop-live-text,.rop .rop-live[data-online=unknown] .rop-live-text{color:#c3cbd8}
@media(max-width:600px){
  .rop .rop-main{gap:18px;margin:18px 0 22px}
  .rop .rop-cover{width:min(100%,250px);max-width:250px;flex:0 0 auto;align-self:center}
  .rop .rop-info{gap:0}
  .rop .rop-title{margin-top:7px}
  .rop .rop-controls{margin-top:18px}
  .rop .rop-history{gap:9px}
  .rop .rop-history li{align-items:center;gap:12px;padding:11px 12px}
  .rop .rop-history img,.rop .rop-history .rop-history-fallback{width:54px;height:54px}
  .rop .rop-history-details{display:flex;flex-direction:column;align-items:stretch;gap:4px}
  .rop .rop-history-cell{display:flex;flex-direction:row;align-items:baseline;gap:5px}
  .rop .rop-history-song{display:block}
  .rop .rop-history-song .rop-history-label{display:none}
  .rop .rop-history-song .rop-history-value{font-size:13px}
  .rop .rop-history-cell:not(.rop-history-song) .rop-history-label{font-size:11px;flex:0 0 auto}
  .rop .rop-history-cell:not(.rop-history-song) .rop-history-label::after{content:':' }
  .rop .rop-history-value{font-size:11px;line-height:1.3}
}
@media(max-width:380px){
  .rop .rop-cover{width:min(100%,220px);max-width:220px}
  .rop .rop-history-details{display:flex;flex-direction:column}
}
