/* =============================================================================
   LMC Radio Bar — barra persistente de reproducción (rediseño moderno)
   Variables CSS permiten override desde el tema sin modificar este archivo.
   ============================================================================= */

.lmc-radio-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--radio-bar-height, 62px);
    background: var(--radio-bar-bg, rgba(15, 15, 20, 0.96));
    color: var(--radio-bar-text, #F9FAFB);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    z-index: 9999;
    box-shadow: 0 -1px 0 rgba(255,255,255,0.06), 0 -8px 24px rgba(0,0,0,0.28);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
    border-top: 1px solid rgba(255,255,255,0.07);
}

/* ── Barra de progreso del programa ─────────────────────────────────────── */

.lmc-radio-bar__progress-wrap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255,255,255,0.08);
    pointer-events: none;
}

.lmc-radio-bar__progress-fill {
    height: 100%;
    width: 0%;
    background: var(--radio-progress-color, #C49102);
    transition: width 1s linear;
    border-radius: 0 2px 2px 0;
}

.lmc-radio-bar__progress-time {
    font-size: 0.62rem;
    color: rgba(249,250,251,0.35);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

/* ── Info (cover + track + badge) ────────────────────────────────────────── */

.lmc-radio-bar__info {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    min-width: 0;
    flex: 1;
}

.lmc-radio-bar__cover {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
}

.lmc-radio-bar__cover:not([src]),
.lmc-radio-bar__cover[src=""] {
    display: none;
}

.lmc-radio-bar__track {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.35;
    gap: 2px;
}

.lmc-radio-bar__program {
    font-size: 0.83rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #F9FAFB;
    letter-spacing: -0.1px;
}

.lmc-radio-bar__episode {
    font-size: 0.72rem;
    color: rgba(249,250,251,0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
}

.lmc-radio-bar__live {
    flex-shrink: 0;
    background: var(--radio-live-color, #EF4444);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    animation: lmc-live-pulse 2s ease-in-out infinite;
}

@keyframes lmc-live-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.55; }
}

/* ── Controles ───────────────────────────────────────────────────────────── */

.lmc-radio-bar__controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.lmc-radio-bar__play {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.12);
    color: #F9FAFB;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
    flex-shrink: 0;
}

.lmc-radio-bar__play:hover,
.lmc-radio-bar__play:focus-visible {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.22);
    transform: scale(1.05);
    outline: none;
}

.lmc-radio-bar__play:active {
    transform: scale(0.96);
}

.lmc-radio-bar__volume {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 3px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    transition: background 0.15s;
}

.lmc-radio-bar__volume:hover {
    background: rgba(255,255,255,0.3);
}

.lmc-radio-bar__volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #F9FAFB;
    cursor: pointer;
    transition: transform 0.1s;
}

.lmc-radio-bar__volume:hover::-webkit-slider-thumb {
    transform: scale(1.15);
}

.lmc-radio-bar__volume::-moz-range-thumb {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #F9FAFB;
    border: none;
    cursor: pointer;
}

/* ── Accesibilidad ───────────────────────────────────────────────────────── */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
    .lmc-radio-bar {
        padding: 0 1rem;
    }

    .lmc-radio-bar__volume {
        width: 52px;
    }

    .lmc-radio-bar__episode {
        display: none;
    }

    .lmc-radio-bar__progress-time {
        display: none;
    }
}
