/* ===============================
   GLOBAL SAFETY BASE
   =============================== */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background-color: #121212;
}

/* ===============================
   PLAYER CARD
   =============================== */
.player {
    background: #181818;
    border-radius: 16px;
    padding: 18px 20px 20px;
    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    width: 320px;
    margin: 50px auto;
}

.track-info {
    text-align: center;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: bold;
}

/* ===============================
   CONTROLS (Buttons)
   =============================== */
.controls {
    display: flex;
    justify-content: space-between; /* This spreads the 5 buttons evenly */
    align-items: center;
    margin-bottom: 25px;
    gap: 8px; /* Adds a tiny bit of space between buttons on small screens */
}

.controls button {
    background: #2a2a2a;
    border: none;
    color: #ffffff;
    width: 48px; /* Slightly reduced from 50px to fit 5 buttons comfortably */
    height: 48px; 
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.1s;
    padding: 0;
}

/* Force SVGs to stay 24px always */
.controls button svg {
    width: 22px !important; /* Slightly smaller icons to fit the 5-button layout */
    height: 22px !important;
}

.controls button:hover {
    background: #8B0000; 
}

/* MAIN PLAY BUTTON */
#play {
    background: #8B0000;
    width: 58px; 
    height: 58px;
}

#play:hover {
    background: #A50000; /* Lighter red on hover */
}

/* ===============================
   SLIDERS (Progress & Volume)
   =============================== */
#progress, #volume {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    background: #444; 
}

/* Slider Thumbs */
#progress::-webkit-slider-thumb, 
#volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
}

#progress::-moz-range-thumb, 
#volume::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    border: none;
}

/* ===============================
   VOLUME SPECIFIC LAYOUT
   =============================== */
.volume-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #282828;
    gap: 12px;
}

.volume-container::before {
    content: 'VOL';
    font-size: 10px;
    color: #b3b3b3;
    font-weight: bold;
}

/* ===============================
   MOBILE OPTIMIZATION
   =============================== */
@media (max-width: 480px) {
    .player {
        width: 280px;
    }
    .controls button {
        width: 42px;
        height: 42px;
    }
    #play {
        width: 54px;
        height: 54px;
    }
}