/* Local Audio Player Styles */

/* Sticky Footer Player */
.local-player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    border-top: 1px solid var(--neon-pink);
    padding: 15px 20px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    backdrop-filter: blur(10px);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.8);
}

.local-player-bar.active {
    transform: translateY(0);
}

.player-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: 20px;
}

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

.player-thumb {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid var(--neon-cyan);
}

.track-details h4 {
    margin: 0;
    color: white;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.track-details p {
    margin: 0;
    color: var(--neon-cyan);
    font-size: 0.85rem;
}

/* Controls */
.player-controls-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.control-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.control-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    color: white;
}

.play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--neon-pink);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 10px rgba(255, 0, 128, 0.4);
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 0, 128, 0.6);
}

.play-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: #888;
}

.progress-bar-wrapper {
    flex-grow: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--neon-cyan);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.progress-handle {
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}

.progress-bar-wrapper:hover .progress-handle {
    opacity: 1;
}

/* Volume */
.player-volume {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

/* Archive Card Image */
.archive-image-container {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.archive-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.show-archive-card:hover .archive-image {
    transform: scale(1.1);
}

.archive-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.show-archive-card:hover .archive-overlay {
    opacity: 1;
}

/* Play Button Styling */
.play-overlay-btn {
    background: var(--neon-pink);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 0, 128, 0.5);
}

.show-archive-card:hover .play-overlay-btn {
    transform: translateY(0);
}

.play-overlay-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.play-overlay-btn:hover {
    background: white;
    color: var(--neon-pink);
    transform: scale(1.05) translateY(0);
}

/* Play Count Badge */
.play-count-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 5;
    pointer-events: none; /* Let clicks pass through to image */
}

/* Share Buttons */
.archive-actions {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 10px;
}

.share-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px;
    border-radius: 4px;
    border: none;
    color: white;
    font-size: 0.8rem;
    cursor: pointer;
    transition: opacity 0.2s;
    text-decoration: none;
}

.share-btn:hover {
    opacity: 0.9;
}

.share-facebook {
    background: #1877F2;
}

.share-whatsapp {
    background: #25D366;
}

.share-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Responsive */
@media (max-width: 768px) {
    .player-content {
        grid-template-columns: 1fr auto;
        grid-template-areas: 
            "info controls"
            "progress progress";
        gap: 10px;
    }

    .player-track-info {
        grid-area: info;
    }

    .player-controls-center {
        grid-area: controls;
        flex-direction: row;
    }
    
    .progress-container {
        grid-area: progress;
    }

    .player-volume {
        display: none; /* Hide volume on mobile to save space */
    }

    .control-buttons {
        gap: 15px;
    }
}