/* EcoLuxe Audio Player - Built from Scratch */

.ecoluxe-player-wrap {
    width: 100%;
    margin: 20px 0;
}

.audio-element {
    display: none;
}

/* Main Player Container */
.ecoluxe-player {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 45px;
    background: #8B7A4F;
    border-radius: 45px;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Button Base Styles - MUST BE PERFECT CIRCLES */
.player-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid white;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    margin: 0;
    transition: background-color 0.2s ease;
    outline: none;
}

/* Regular Buttons - 36x36 */
.player-btn.skip-back,
.player-btn.skip-forward,
.player-btn.volume-btn {
    width: 36px;
    height: 36px;
}

/* Play Button - 40x40 with brown background */
.player-btn.play-btn {
    width: 40px;
    height: 40px;
    background: #3B2F2F !important;
}

/* Button Hover States */
.player-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

.player-btn.play-btn:hover {
    background: #2A1F1F !important;
}

/* Button Active/Pressed States */
.player-btn:active {
    background: #3B2F2F !important;
}

.player-btn:focus {
    outline: none;
    background: #3B2F2F !important;
}

/* Ensure Volume Button Never Shows Pink */
.player-btn.volume-btn {
    background: transparent !important;
}

.player-btn.volume-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

.player-btn.volume-btn:active,
.player-btn.volume-btn:focus {
    background: #3B2F2F !important;
}

/* Ensure all SVG icons are white */
.player-btn svg,
.player-btn svg path,
.player-btn svg line,
.player-btn svg rect {
    fill: white !important;
}

.player-btn svg path[stroke],
.player-btn svg line[stroke] {
    stroke: white !important;
}

/* Time Display */
.time-display {
    color: white;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    margin: 0 4px;
}

/* Progress Bar */
.progress-bar {
    flex: 1;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    min-width: 80px;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #5A8CAE;
    border-radius: 10px;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .ecoluxe-player {
        padding: 0 16px;
        gap: 10px;
    }
    
    .player-btn.skip-back,
    .player-btn.skip-forward,
    .player-btn.volume-btn {
        width: 32px;
        height: 32px;
    }
    
    .player-btn.play-btn {
        width: 36px;
        height: 36px;
    }
    
    .time-display {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .ecoluxe-player {
        padding: 0 12px;
        gap: 8px;
    }
    
    .player-btn.skip-back,
    .player-btn.skip-forward,
    .player-btn.volume-btn {
        width: 28px;
        height: 28px;
    }
    
    .player-btn.play-btn {
        width: 32px;
        height: 32px;
    }
    
    .player-btn svg {
        width: 10px;
        height: 10px;
    }
    
    .time-display {
        font-size: 9px;
        margin: 0 2px;
    }
    
    .progress-bar {
        height: 18px;
    }
}
