/* ============================================
   Radio El Mundo Player — player.css
   Marca: azul #2699D3 · beige · café
   ============================================ */

:root {
    --rmp-bg: #0F1A22;                    /* navy muy oscuro (tinta El Mundo) */
    --rmp-border: rgba(255,255,255,0.08);
    --rmp-text: #F7F2E6;                  /* marfil */
    --rmp-sub: rgba(247,242,230,0.50);
    --rmp-accent: #2699D3;                /* azul de marca */
    --rmp-play-bg: #2699D3;
    --rmp-play-hover: #1E80B4;
    --rmp-radius: 12px;
    --rmp-height: 68px;
    --rmp-z: 99999;
    --rmp-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- STICKY BAR ---- */
.rmp-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--rmp-height);
    background: var(--rmp-bg);
    border-top: 1px solid var(--rmp-border);
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 24px;
    z-index: var(--rmp-z);
    transform: translateY(0);
    transition: transform var(--rmp-transition), opacity var(--rmp-transition);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

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

/* ---- LEFT: Live indicator ---- */
.rmp-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.rmp-live-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: rmp-pulse 1.8s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes rmp-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.rmp-live-label {
    font-family: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #22c55e;
    text-transform: uppercase;
}

.rmp-sub-label {
    font-family: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;
    color: var(--rmp-sub);
    white-space: nowrap;
}

/* ---- CENTER: Play button ---- */
.rmp-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rmp-play-btn {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    border-radius: 50% !important;
    background: var(--rmp-play-bg) !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #fff !important;
    line-height: 1 !important;
    transition: background var(--rmp-transition), transform 0.15s ease;
    flex-shrink: 0;
}

.rmp-play-btn:hover {
    background: var(--rmp-play-hover) !important;
    transform: scale(1.06);
}

.rmp-play-btn:active {
    transform: scale(0.96);
}

/* Iconos: el tema no debe redimensionarlos ni ocultarlos */
.rmp-play-btn svg,
.rmp-mini-play-btn svg {
    width: 22px !important;
    height: 22px !important;
    fill: #fff !important;
    color: #fff !important;
    pointer-events: none;
}
.rmp-mini-play-btn svg { width: 16px !important; height: 16px !important; }

/* ---- META: Station info ---- */
.rmp-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.rmp-station-name {
    font-family: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--rmp-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rmp-tagline {
    font-family: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 11px;
    color: var(--rmp-sub);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- VOLUME ---- */
.rmp-volume {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    color: var(--rmp-sub);
}

#rmp-volume {
    -webkit-appearance: none;
    appearance: none;
    width: 90px;
    height: 3px;
    background: rgba(247,242,230,0.18);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    accent-color: var(--rmp-accent);
}

#rmp-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--rmp-accent);
    cursor: pointer;
    transition: transform 0.15s ease;
}

#rmp-volume::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

#rmp-volume::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--rmp-accent);
    border: none;
    cursor: pointer;
}

/* ---- CLOSE BUTTON ---- */
.rmp-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--rmp-sub);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 6px;
    transition: color var(--rmp-transition), background var(--rmp-transition);
    flex-shrink: 0;
}

.rmp-close-btn:hover {
    color: var(--rmp-text);
    background: rgba(247,242,230,0.10);
}

/* ---- MINI BAR FLOTTANTE ---- */
.rmp-mini {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--rmp-bg);
    border: 1px solid var(--rmp-border);
    border-radius: var(--rmp-radius);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    z-index: var(--rmp-z);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    transition: transform var(--rmp-transition), opacity var(--rmp-transition);
    cursor: default;
}

.rmp-mini.rmp-mini-hidden {
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
}

.rmp-mini-play-btn {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    border-radius: 50% !important;
    background: var(--rmp-play-bg) !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    line-height: 1 !important;
    transition: background var(--rmp-transition), transform 0.15s ease;
    flex-shrink: 0;
}

.rmp-mini-play-btn:hover {
    background: var(--rmp-play-hover);
    transform: scale(1.06);
}

.rmp-mini-meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.rmp-mini-name {
    font-family: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--rmp-text);
    white-space: nowrap;
}

.rmp-mini-status {
    font-family: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 10px;
    color: #22c55e;
    white-space: nowrap;
}

.rmp-expand-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--rmp-sub);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 4px;
    transition: color var(--rmp-transition);
    flex-shrink: 0;
}

.rmp-expand-btn:hover {
    color: var(--rmp-text);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
    .rmp-bar {
        gap: 12px;
        padding: 0 16px;
    }

    .rmp-sub-label,
    .rmp-tagline {
        display: none;
    }

    .rmp-meta {
        flex: 1;
    }

    #rmp-volume {
        width: 60px;
    }
}

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
    .rmp-live-dot {
        animation: none;
    }
    .rmp-bar,
    .rmp-mini {
        transition: none;
    }
}
