/* ============================================================
   radio-widget.css — Widget de radio flotante y persistente
   ============================================================ */
.onf-radio {
    position: fixed; right: 20px; bottom: 24px; z-index: 4000;
    font-family: 'Poppins', system-ui, sans-serif;
}
@media (max-width: 768px) {
    .onf-radio { right: 14px; bottom: 88px; } /* por encima de la barra inferior móvil */
}
/* Si hay botón de chat en la página, el widget se coloca ENCIMA para no taparlo */
.onf-radio.with-chat { bottom: 100px; }
@media (max-width: 768px) {
    .onf-radio.with-chat { bottom: 158px; }
}

/* ── Botón flotante ── */
.onf-radio-fab {
    width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
    background: linear-gradient(135deg, #ff0062, #ff4d8d); color: #fff;
    display: flex; align-items: center; justify-content: center; position: relative;
    box-shadow: 0 8px 24px rgba(255,0,98,0.4); transition: transform 0.2s, box-shadow 0.2s;
}
.onf-radio-fab:hover { transform: scale(1.06); box-shadow: 0 10px 30px rgba(255,0,98,0.55); }
.onf-radio-fab .orf-radio-ico { width: 26px; height: 26px; }

/* Ecualizador (solo cuando suena) */
.orf-eq { position: absolute; bottom: 8px; display: none; gap: 2px; align-items: flex-end; height: 12px; }
.onf-radio.playing .orf-eq { display: flex; }
.onf-radio.playing .orf-radio-ico { display: none; }
.orf-eq i { width: 3px; background: #fff; border-radius: 2px; animation: orfEq 0.9s ease-in-out infinite; }
.orf-eq i:nth-child(1){ height: 6px; animation-delay: 0s; }
.orf-eq i:nth-child(2){ height: 12px; animation-delay: 0.2s; }
.orf-eq i:nth-child(3){ height: 8px; animation-delay: 0.4s; }
.orf-eq i:nth-child(4){ height: 11px; animation-delay: 0.1s; }
@keyframes orfEq { 0%,100%{ transform: scaleY(0.4); } 50%{ transform: scaleY(1); } }

/* ── Panel ── */
.onf-radio-panel {
    position: absolute; right: 0; bottom: 70px; width: 320px; max-width: calc(100vw - 28px);
    background: rgba(16,16,20,0.92);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    padding: 14px; color: #ececf1;
    transform-origin: bottom right; opacity: 0; visibility: hidden;
    transform: translateY(10px) scale(0.96); transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
}
.onf-radio:not(.collapsed) .onf-radio-panel { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.orp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.orp-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.9rem; color: #fff; text-decoration: none; }
.orp-brand:hover { opacity: 0.85; }
.orp-brand-logo { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.orp-brand span b { color: var(--accent, #ff0062); font-weight: 800; }

/* Botón promocional a Walftech Radio */
.orp-cta {
    display: flex; align-items: center; gap: 9px; margin-top: 12px;
    padding: 11px 13px; border-radius: 11px; text-decoration: none;
    background: linear-gradient(135deg, rgba(255,0,98,0.15), rgba(255,77,141,0.06));
    border: 1px solid rgba(255,0,98,0.28); color: #ff8fb0;
    font-size: 0.78rem; font-weight: 600; transition: all 0.2s;
}
.orp-cta:hover { background: linear-gradient(135deg, rgba(255,0,98,0.25), rgba(255,77,141,0.12)); color: #fff; border-color: rgba(255,0,98,0.45); transform: translateY(-1px); }
.orp-cta b { color: #fff; }
.orp-cta svg { flex-shrink: 0; }
.orp-x { background: rgba(255,255,255,0.06); border: none; color: #bbb; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.orp-x:hover { background: rgba(255,0,98,0.18); color: #fff; }

.orp-now { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.orp-thumb-wrap { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: #181820; }
.orp-thumb { width: 100%; height: 100%; object-fit: cover; }
.orp-meta { min-width: 0; }
.orp-name { font-size: 0.9rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.orp-country { font-size: 0.72rem; color: #8b8b96; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.orp-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 12px; }
.orp-ctrl { background: none; border: none; color: #cfcfd6; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: color 0.2s; }
.orp-ctrl:hover { color: #fff; }
.orp-ctrl.orp-main {
    width: 48px; height: 48px; border-radius: 50%; color: #fff;
    background: linear-gradient(135deg, #ff0062, #ff4d8d); box-shadow: 0 4px 14px rgba(255,0,98,0.35);
}
.orp-ctrl.orp-main:hover { filter: brightness(1.1); color: #fff; }
.orp-spin { width: 22px; height: 22px; border: 2.5px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: orpSpin 0.7s linear infinite; }
@keyframes orpSpin { to { transform: rotate(360deg); } }

.orp-vol { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: #8b8b96; }
.orp-vol input[type="range"] { flex: 1; accent-color: #ff0062; height: 4px; }

.orp-filters { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 8px; scrollbar-width: none; }
.orp-filters::-webkit-scrollbar { display: none; }
.orp-chip {
    flex-shrink: 0; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    color: #bbb; font-family: inherit; font-size: 0.74rem; font-weight: 600; white-space: nowrap;
    padding: 6px 12px; border-radius: 16px; cursor: pointer; transition: 0.2s;
}
.orp-chip:hover { color: #fff; border-color: rgba(255,255,255,0.25); }
.orp-chip.active { background: var(--accent, #ff0062); border-color: transparent; color: #fff; }

.orp-list { max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; scrollbar-width: thin; }
.orp-list::-webkit-scrollbar { width: 6px; }
.orp-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
.orp-item {
    display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 9px;
    cursor: pointer; transition: background 0.15s; border: none; background: none; width: 100%; text-align: left;
}
.orp-item:hover { background: rgba(255,255,255,0.06); }
.orp-item.active { background: rgba(255,0,98,0.14); }
.orp-item img { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: #181820; }
.orp-item-name { font-size: 0.8rem; color: #ddd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.orp-loading, .orp-empty { color: #8b8b96; font-size: 0.8rem; text-align: center; padding: 20px 0; }
