/* ============================================
   AUDIO PLAYER FOOTER STYLES
   Persistent player that stays visible during navigation
   ============================================ */

.player-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 12px 24px;
    border-top: 2px solid var(--daorange);
    display: none;
    gap: 16px;
    align-items: center;
    z-index: 1000;
}

.player-footer.visible {
    display: flex;
}

.player-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.player-title-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.player-title {
    font-weight: bold;
    display: inline-block;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
    padding-right: 50px;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.player-title-container:hover .player-title {
    animation-play-state: paused;
}

.player-date {
    color: #666;
    font-size: 0.9em;
}

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

.time-slider {
    flex-grow: 1;
    min-width: 100px;
    max-width: none;
}

input[type="range"] {
    -webkit-appearance: none;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    width: 100%;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--daorange);
    border-radius: 50%;
    cursor: pointer;
}

/* Mobile styles */
@media (max-width: 768px) {
    .player-footer {
        flex-direction: column;
        padding: 16px;
        gap: 12px;
    }

    .player-info {
        width: 100%;
        text-align: center;
    }

    .player-controls {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }

    .time-slider {
        min-width: 60px;
    }

    #currentTime,
    #duration {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .player-footer {
        padding: 12px;
    }

    .player-controls {
        gap: 4px;
    }

    #currentTime,
    #duration {
        font-size: 0.8em;
    }
}

