/* Onix Radio Player - estilos (barra de ancho completo) */

.radio-bar {
    --orp-accent: #f2a93c;
    --orp-bg-start: #3b2f8f;
    --orp-bg-end: #7a3fc9;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(90deg, var(--orp-bg-start), var(--orp-bg-end));
    color: #fff;
    padding: 10px 24px;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    transition: transform .25s ease, opacity .25s ease;
    box-sizing: border-box;
}

.radio-bar.orp-hidden {
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
}

/* Variante "centrada": widget en flujo normal de la página, no anclado al viewport.
   Sin z-index a propósito, para que NO se sobreponga al menú (a diferencia de la barra fija). */
.radio-bar.radio-bar--embed {
    position: relative;
    z-index: auto; /* .radio-bar (barra fija) trae z-index:999999; esto lo anula solo para el embed */
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 480px;
    margin: 24px auto;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    flex-wrap: wrap;
}

.radio-bar.radio-bar--embed.orp-hidden {
    transform: none;
    display: none;
}

@media (max-width: 600px) {
    .radio-bar.radio-bar--embed {
        max-width: 100%;
    }
}

/* Onda animada */
.radio-wave {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 22px;
    flex-shrink: 0;
}

.radio-wave span {
    width: 3px;
    height: 6px;
    background: var(--orp-accent);
    border-radius: 2px;
    animation: orp-wave 1.2s ease-in-out infinite;
    animation-play-state: paused;
}

.radio-bar.playing .radio-wave span {
    animation-play-state: running;
}

.radio-wave span:nth-child(1) { animation-delay: 0s; }
.radio-wave span:nth-child(2) { animation-delay: 0.1s; }
.radio-wave span:nth-child(3) { animation-delay: 0.2s; }
.radio-wave span:nth-child(4) { animation-delay: 0.3s; }
.radio-wave span:nth-child(5) { animation-delay: 0.4s; }
.radio-wave span:nth-child(6) { animation-delay: 0.5s; }
.radio-wave span:nth-child(7) { animation-delay: 0.6s; }

@keyframes orp-wave {
    0%, 100% { height: 6px; }
    50% { height: 22px; }
}

/* Info */
.radio-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    min-width: 0;
    flex: 1;
}

.radio-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--orp-accent);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.radio-name {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.radio-prog {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
}

/* Controles */
.radio-ctrl {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn-play {
    background: #fff !important;
    color: var(--orp-bg-end) !important;
    border: none !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    cursor: pointer;
    font-size: 14px !important;
    line-height: 1 !important;
    text-indent: 0 !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform .15s ease, filter .15s ease;
    flex-shrink: 0;
    overflow: visible !important;
}

.btn-play svg {
    display: block;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    pointer-events: none;
}

.btn-play:hover {
    filter: brightness(1.05);
    transform: scale(1.05);
}

.radio-vol {
    width: 90px;
    accent-color: #fff;
    cursor: pointer;
}

.radio-close {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    padding: 4px 6px;
    flex-shrink: 0;
}

.radio-close:hover {
    color: #fff;
}

/* Responsive: mobile */
@media (max-width: 600px) {
    .radio-bar {
        padding: 8px 12px;
        gap: 10px;
    }
    .radio-name { max-width: 140px; }
    .radio-prog { display: none; }
    .radio-vol { width: 60px; }
}
