/* ==========================================================
   Ancient Wisdom Podcast - Persistent Audio Player Styling (Light Theme)
   ========================================================== */

.global-player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 84px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(180, 133, 24, 0.25);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.08);
    z-index: 9999;
    display: flex;
    align-items: center;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

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

.player-inner {
    display: grid;
    grid-template-columns: 280px 1fr 240px;
    align-items: center;
    gap: 20px;
    height: 100%;
}

/* Track Info */
.player-track-info {
    display: flex;
    align-items: center;
    gap: 14px;
    overflow: hidden;
}

.player-cover-wrap {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(180, 133, 24, 0.3);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.player-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-details {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.player-track-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-track-meta {
    font-size: 0.75rem;
    color: #b48518;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Main Controls & Progress */
.player-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.player-btn {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 6px;
    border-radius: 50%;
}

.player-btn:hover {
    color: #b48518;
    transform: scale(1.1);
}

.player-btn-main {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b48518, #92640e);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(180, 133, 24, 0.35);
}

.player-btn-main:hover {
    background: linear-gradient(135deg, #c9971e, #a37213);
    color: #ffffff;
    transform: scale(1.08);
}

.player-timeline-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 620px;
}

.player-time {
    font-size: 0.78rem;
    color: #64748b;
    font-variant-numeric: tabular-nums;
    min-width: 42px;
}

.player-progress-bar {
    position: relative;
    flex-grow: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    cursor: pointer;
    overflow: hidden;
}

.player-progress-bar:hover {
    height: 8px;
}

.player-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #92640e, #b48518);
    border-radius: 3px;
    transition: width 0.1s linear;
}

/* Right Controls (Speed, Volume, Close) */
.player-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.speed-select {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

.speed-select option {
    background: #ffffff;
    color: #0f172a;
}

.volume-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    width: 75px;
    height: 5px;
    -webkit-appearance: none;
    appearance: none;
    background: #cbd5e1;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #b48518;
    cursor: pointer;
    transition: transform 0.15s ease;
}

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

.player-close-btn {
    color: #64748b;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
}

.player-close-btn:hover {
    color: #ef4444;
}

/* Responsive Audio Player */
@media (max-width: 900px) {
    .global-player-bar {
        height: auto;
        padding: 10px 0;
    }
    .player-inner {
        grid-template-columns: 1fr auto;
        gap: 10px;
    }
    .player-center {
        grid-column: 1 / -1;
        order: 3;
        width: 100%;
    }
    .player-timeline-wrap {
        max-width: 100%;
    }
    .volume-wrap {
        display: none;
    }
}
