/* =============================================
 *  JamboRadio — Floating Player + Now Playing
 * ============================================= */

/* ══════════════════════════════════════
 *  Floating Player Bar — Africa Radio Style
 *  Yellow bar, always visible, artwork + now playing + play + volume + links
 * ══════════════════════════════════════ */
.jr-floating-player {
    position: fixed !important;
    bottom: 16px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 92% !important;
    max-width: 900px !important;
    z-index: 99990 !important;
    background: #FFD700 !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2) !important;
    border-radius: 16px !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    font-family: var(--jr-font) !important;
}

.jr-floating-player.is-hidden {
    transform: translateX(-50%) translateY(120%) !important;
    opacity: 0;
}

.jr-fp-inner {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 12px 20px !important;
    min-height: 56px !important;
}

/* ── Artwork thumbnail ── */
.jr-fp-artwork {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    background: rgba(0, 0, 0, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.jr-fp-artwork img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* ── Now Playing info ── */
.jr-fp-info {
    flex-shrink: 0 !important;
    min-width: 0 !important;
    max-width: 220px !important;
}

.jr-fp-label {
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    color: #1a1a2e !important;
    line-height: 1 !important;
    margin-bottom: 2px !important;
}

.jr-fp-now {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

.jr-fp-song {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #1a1a2e !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.3 !important;
    text-transform: uppercase !important;
}

.jr-fp-artist {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #1a1a2e !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-transform: uppercase !important;
    opacity: 0.7 !important;
}

/* ── Play button (dark circle) ── */
.jr-fp-play {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 50% !important;
    background: #1a1a2e !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
    -webkit-appearance: none !important;
    padding: 0 !important;
}

.jr-fp-play:hover {
    background: #333 !important;
    transform: scale(1.06) !important;
}

.jr-fp-play:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}

.jr-fp-play svg {
    fill: #FFD700 !important;
}

/* ── Volume ── */
.jr-fp-volume {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
}

.jr-fp-mute {
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
    -webkit-appearance: none !important;
}

.jr-fp-mute svg {
    fill: #1a1a2e !important;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.jr-fp-mute:hover svg {
    opacity: 1;
}

.jr-fp-vol-slider {
    width: 80px !important;
    height: 4px !important;
    border-radius: 2px !important;
    background: rgba(0, 0, 0, 0.15) !important;
    cursor: pointer !important;
    -webkit-appearance: none !important;
    border: none !important;
    outline: none !important;
}

.jr-fp-vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #1a1a2e;
    cursor: pointer;
}

.jr-fp-vol-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #1a1a2e;
    border: none;
    cursor: pointer;
}

/* ── Quick links (Podcasts / Webradios) ── */
.jr-fp-links {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
}

.jr-fp-link {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-decoration: none !important;
    color: #1a1a2e !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    transition: opacity 0.2s ease !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.jr-fp-link:hover {
    opacity: 0.7 !important;
}

.jr-fp-link svg {
    fill: #1a1a2e !important;
}

/* ── Close button ── */
.jr-fp-close {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
    -webkit-appearance: none !important;
    opacity: 0.5 !important;
    transition: opacity 0.2s ease !important;
    flex-shrink: 0 !important;
}

.jr-fp-close:hover { opacity: 1 !important; }

.jr-fp-close svg {
    fill: #1a1a2e !important;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .jr-floating-player { width: 95% !important; bottom: 10px !important; border-radius: 12px !important; }
    .jr-fp-inner { padding: 10px 14px !important; gap: 10px !important; }
    .jr-fp-volume { display: none !important; }
    .jr-fp-links { gap: 10px !important; }
    .jr-fp-link span { display: none !important; }
    .jr-fp-info { max-width: 100px !important; }
    .jr-fp-artwork { width: 36px !important; height: 36px !important; min-width: 36px !important; }
}

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

/* ── Now Playing Widget ── */
.jr-np-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 24px;
    background: var(--jr-primary);
    border-radius: var(--jr-radius);
    color: #ffffff;
}

.jr-np-bar--compact {
    display: inline-flex;
}

.jr-np-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--jr-accent);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    border-radius: var(--jr-radius-xs);
    flex-shrink: 0;
}

.jr-np-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    animation: jr-pulse 1.5s ease infinite;
}

.jr-np-play {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: var(--jr-accent) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    flex-shrink: 0;
    transition: var(--jr-transition) !important;
}

.jr-np-play:hover {
    transform: scale(1.08);
}

.jr-np-play svg {
    width: 14px;
    height: 14px;
    fill: #ffffff;
}

.jr-np-eq {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 20px;
    flex-shrink: 0;
}

.jr-np-eq span {
    width: 3px;
    border-radius: 2px;
    background: var(--jr-success);
    animation: jr-eq 0.8s ease infinite alternate;
}

.jr-np-eq span:nth-child(1) { height: 30%; animation-delay: 0s; }
.jr-np-eq span:nth-child(2) { height: 60%; animation-delay: 0.2s; }
.jr-np-eq span:nth-child(3) { height: 40%; animation-delay: 0.1s; }
.jr-np-eq span:nth-child(4) { height: 80%; animation-delay: 0.3s; }

.jr-np-text {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
}

.jr-np-prefix {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    flex-shrink: 0;
}

.jr-np-track {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Hero Player ── */
.jr-hero-player {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.jr-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.6);
    z-index: 1;
}

.jr-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    padding: 40px 24px;
}

.jr-hero-station {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.jr-hero-tagline {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 32px;
    font-weight: 400;
}

.jr-hero-play-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.jr-hero-play-btn {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    background: var(--jr-accent) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.4) !important;
}

.jr-hero-play-btn:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 28px rgba(233, 69, 96, 0.5) !important;
}

.jr-hero-play-btn svg {
    width: 32px;
    height: 32px;
    fill: #ffffff;
}

.jr-hero-listen-text {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.jr-hero-current {
    margin-top: 24px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* ══════════════════════════════════════
 *  Player Page (full /player/ page)
 * ══════════════════════════════════════ */
.jr-player-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #2d2d2d 0%, #1a1a1a 40%, #3a3a3a 100%);
    position: relative;
    overflow: hidden;
}

/* Curved bottom shape like Africa Radio */
.jr-player-page::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -10%;
    width: 120%;
    height: 120px;
    background: var(--jr-bg, #f8f9fa);
    border-radius: 50% 50% 0 0;
}

.jr-pp-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    width: 100%;
    padding: 40px 24px 80px;
}

.jr-pp-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 32px;
}

/* Main layout: logo | artwork | controls */
.jr-pp-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    margin-bottom: 28px;
}

/* Station */
.jr-pp-station {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.jr-pp-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.jr-pp-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.jr-pp-station-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Artwork */
.jr-pp-artwork {
    width: 260px;
    height: 260px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.jr-pp-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.jr-pp-artwork-placeholder {
    width: 100%;
    height: 100%;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Play Button */
.jr-pp-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.jr-pp-play {
    width: 90px !important;
    height: 90px !important;
    border-radius: 50% !important;
    background: transparent !important;
    border: 3px solid #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: var(--jr-transition) !important;
}

.jr-pp-play:hover {
    background: rgba(255,255,255,0.1) !important;
    transform: scale(1.06);
}

.jr-pp-play svg {
    width: 36px;
    height: 36px;
    fill: #ffffff;
}

/* Volume */
.jr-pp-volume {
    display: flex;
    align-items: center;
    gap: 10px;
}

.jr-pp-vol-icon svg {
    width: 20px;
    height: 20px;
    fill: rgba(255,255,255,0.7);
}

.jr-pp-vol-slider {
    width: 100px !important;
    height: 3px !important;
    border-radius: 2px !important;
    background: rgba(255,255,255,0.2) !important;
    cursor: pointer !important;
    -webkit-appearance: none !important;
}

.jr-pp-vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.jr-pp-vol-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    cursor: pointer;
}

/* Track Info */
.jr-pp-track-info {
    margin-bottom: 20px;
}

.jr-pp-song {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px;
}

.jr-pp-artist {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    font-weight: 400;
}

/* Share */
.jr-pp-share {
    margin-top: 16px;
}

.jr-pp-share-btn {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: var(--jr-transition) !important;
}

.jr-pp-share-btn:hover {
    background: rgba(255,255,255,0.2) !important;
}

.jr-pp-share-btn svg {
    fill: rgba(255,255,255,0.7);
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .jr-fp-inner { padding: 10px 16px; gap: 10px; }
    .jr-fp-volume { display: none; }
    .jr-fp-station { font-size: 12px; }
    .jr-fp-now { font-size: 11px; }

    .jr-hero-player { min-height: 350px; }
    .jr-hero-station { font-size: 32px; }
    .jr-hero-tagline { font-size: 15px; }
    .jr-hero-play-btn { width: 64px !important; height: 64px !important; }
    .jr-hero-play-btn svg { width: 24px; height: 24px; }

    .jr-pp-main { flex-direction: column; gap: 24px; }
    .jr-pp-artwork { width: 200px; height: 200px; }
    .jr-pp-play { width: 70px !important; height: 70px !important; }
    .jr-pp-play svg { width: 28px; height: 28px; }
    .jr-pp-song { font-size: 20px; }
    .jr-pp-station { flex-direction: row; }
    .jr-pp-logo { width: 48px; height: 48px; }
}

@media (max-width: 480px) {
    .jr-pp-artwork { width: 180px; height: 180px; }
}
