@import url('player-controls.css');
@import url('plyr-theme.css');

/* =====================================================
   STICKY PLAYER — FAB + GLASS BAR (LIVE RADIO)
   ===================================================== */
.sticky-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    font-family: var(--font-body);
    pointer-events: none;
}
.sticky-player > * {
    pointer-events: auto;
}

/* ── Floating Trigger (collapsed) ── */
.player-tab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    top: auto;
    background: linear-gradient(135deg, var(--color-red), #b91c2b);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 22px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        0 6px 24px rgba(224, 32, 32, 0.4),
        0 2px 8px rgba(224, 32, 32, 0.25),
        0 0 0 1px rgba(255,255,255,0.1) inset;
    z-index: 1060;
    backdrop-filter: blur(4px);
}
.player-tab:hover {
    background: linear-gradient(135deg, #d01d2b, #9a1824);
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 10px 32px rgba(224, 32, 32, 0.55),
        0 4px 12px rgba(224, 32, 32, 0.35),
        0 0 0 1px rgba(255,255,255,0.15) inset;
}
.player-tab:active {
    transform: translateY(-1px) scale(0.97);
}
.player-tab-pulse {
    width: 9px;
    height: 9px;
    background: #fff;
    border-radius: 50%;
    animation: livePulse 1.6s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(255,255,255,0.5);
}
@keyframes livePulse {
    0%   { opacity: 1; transform: scale(1);   box-shadow: 0 0 0 0 rgba(255,255,255,0.5); }
    50%  { opacity: 0.7; transform: scale(1.4); box-shadow: 0 0 0 6px rgba(255,255,255,0); }
    100% { opacity: 1; transform: scale(1);   box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.sticky-player.open .player-tab {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
}

/* ── Bar ── */
.player-bar {
    background: rgba(15, 10, 10, 0.88);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 14px 28px;
    transform: translateY(100%);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        0 -12px 48px rgba(0,0,0,0.45),
        0 -1px 0 rgba(255,255,255,0.06) inset;
    pointer-events: auto;
}
.sticky-player.open .player-bar {
    transform: translateY(0);
}
.player-bar-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 1440px;
    margin: 0 auto;
    min-height: 48px;
}

/* ── Station Info ── */
.player-station {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    min-width: 0;
}
.player-live-dot {
    width: 10px;
    height: 10px;
    background: #ff4757;
    border-radius: 50%;
    animation: livePulse 1.6s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.55);
    flex-shrink: 0;
}
.player-on-air {
    background: rgba(224, 32, 32, 0.9);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(224,32,32,0.25);
}
.player-station-name {
    color: rgba(255,255,255,0.85);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
}
.player-station-freq {
    display: inline-block;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.55);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 4px;
    border: 1px solid rgba(255,255,255,0.06);
}

/* =====================================================
   PLAYER — MOBILE RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .player-tab {
        bottom: 20px;
        right: 20px;
        padding: 10px 18px;
        font-size: 0.72rem;
        letter-spacing: 0.8px;
    }
    .player-tab-pulse { width: 8px; height: 8px; }

    .player-bar {
        padding: 10px 16px;
        backdrop-filter: blur(20px) saturate(1.2);
        -webkit-backdrop-filter: blur(20px) saturate(1.2);
    }
    .player-bar-inner {
        gap: 12px;
        min-height: 44px;
    }

    .player-station-name { display: none; }
    .player-station-freq { display: none; }
    .player-progress-labels { display: none; }
    .player-time { display: none; }
    .player-fullscreen { display: none; }

    .player-station { gap: 8px; }
    .player-on-air {
        font-size: 0.55rem;
        padding: 3px 7px;
        letter-spacing: 1.2px;
    }
    .player-live-dot { width: 8px; height: 8px; }

    .player-controls { gap: 12px; }
    .player-play-btn {
        width: 44px;
        height: 44px;
    }
    .player-play-btn svg { width: 18px; height: 18px; }

    .player-progress-wrap { min-width: 60px; }
    .player-progress-bar { height: 5px; }
    .player-progress-bar:hover { height: 6px; }
    .player-viz { height: 22px; gap: 2px; }
    .viz-bar { max-width: 4px; }
    @keyframes vizBarBounce {
        0%   { height: 3px; opacity: 0.35; }
        100% { height: 18px; opacity: 0.95; }
    }

    .player-volume-group:hover .player-volume-slider-wrap,
    .player-volume-slider-wrap.active { width: 70px; }
    .player-volume-btn { width: 34px; height: 34px; }
    .player-volume-btn svg { width: 18px; height: 18px; }

    .player-close-btn { width: 30px; height: 30px; }
    .player-close-btn svg { width: 14px; height: 14px; }
}

@media (max-width: 360px) {
    .player-bar-inner { gap: 8px; }
    .player-volume-slider-wrap { display: none !important; }
    .player-progress-wrap { min-width: 40px; }
}
