body {
    background-color: darkslategray;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    justify-content: space-between;
}

.header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 10px 0;
    margin-bottom: 20px;
}

main {
    align-items: center;
    color: crimson;
    flex-grow: 1;
    width: 90%;
    max-width: 500px;
}

.setting-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin: 40px 0;
}

.setting-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    color: white;
    margin-bottom: 15px;
}

.slider-container {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 15px;
}

#volume-value {
    color: white;
    font-family: monospace;
    font-size: 1.1rem;
    min-width: 50px;
    text-align: right;
}

/* --- Clean Slider Styles --- */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    /* The gradient background is controlled by the --background-size variable from JS */
    background: linear-gradient(to right, crimson 0%, crimson var(--background-size), #4a5568 var(--background-size), #4a5568 100%);
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    transition: background 0.1s ease-in-out;
}

/* Slider Thumb */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: crimson;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    cursor: grab;
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: crimson;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    cursor: grab;
}

footer {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.back-button {
    color: crimson;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.back-button .material-icons {
    font-size: 36px;
}

@media (max-width: 768px) {
    body {
        text-align: left;
        padding: 0px;
    }

    .settings {
        height: 120px;
        width: auto;
    }

    .header {
        gap: 10px;
    }
}