/* ===========================
   ФОНОВАЯ ТЕМА — СОН
   =========================== */

.body--sleep {
    background: linear-gradient(135deg, #0a0a1a 0%, #121233 50%, #1a1a3e 100%);
    background-attachment: fixed;
}

/* ===========================
   ЗАГОЛОВОК СТРАНИЦЫ
   =========================== */

.sleep-hero {
    text-align: center;
    padding: 60px 20px 40px;
}

.sleep-hero__title {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.sleep-hero__subtitle {
    font-size: 18px;
    color: #8080a0;
}

/* ===========================
   ТАЙМЕР СНА
   =========================== */

.sleep-timer {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 20px 40px;
    text-align: center;
}

.sleep-timer__title {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.sleep-timer__desc {
    font-size: 14px;
    color: #8080a0;
    margin-bottom: 20px;
}

.sleep-timer__options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.sleep-timer__option {
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    color: #a0a0c0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
    font-family: inherit;
}

.sleep-timer__option:hover {
    background-color: rgba(108, 92, 231, 0.15);
    border-color: rgba(108, 92, 231, 0.4);
    color: #ffffff;
}

.sleep-timer__option--active {
    background-color: rgba(108, 92, 231, 0.2);
    border-color: #6c5ce7;
    color: #ffffff;
}

.sleep-timer__display {
    margin-bottom: 20px;
}

.sleep-timer__time {
    font-size: 56px;
    font-weight: 700;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}

.sleep-timer__controls {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.sleep-timer__btn {
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transition: background-color 0.3s, border-color 0.3s;
    font-family: inherit;
}

.sleep-timer__btn:hover {
    background-color: rgba(108, 92, 231, 0.2);
    border-color: #6c5ce7;
}

/* ===========================
   ОСВЕЩЕНИЕ ЭКРАНА
   =========================== */

.lighting {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 20px 40px;
    text-align: center;
}

.lighting__title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
}

.lighting__options {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.lighting__btn {
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    color: #a0a0c0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
    font-family: inherit;
}

.lighting__btn:hover {
    background-color: rgba(108, 92, 231, 0.15);
    border-color: rgba(108, 92, 231, 0.4);
    color: #ffffff;
}

.lighting__btn--active {
    background-color: rgba(108, 92, 231, 0.2);
    border-color: #6c5ce7;
    color: #ffffff;
}
/* ===========================
   ПЛЕЕР — ТЕМА СНА
   =========================== */

.player--sleep {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.player--sleep .player__title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
}

.player--sleep .player__track {
    text-align: center;
    margin-bottom: 12px;
}

.player--sleep .player__track-name {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
}

.player--sleep .player__progress {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    margin-bottom: 8px;
    cursor: pointer;
    overflow: hidden;
}

.player--sleep .player__progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6c5ce7, #a29bfe);
    border-radius: 2px;
    transition: width 0.3s;
}

.player--sleep .player__time {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #8080a0;
    margin-bottom: 16px;
}

.player--sleep .player__controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.player--sleep .player__btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    font-family: inherit;
}

.player--sleep .player__btn:hover {
    background-color: rgba(108, 92, 231, 0.2);
    border-color: #6c5ce7;
}

.player--sleep .player__btn--play {
    width: 56px;
    height: 56px;
    font-size: 20px;
    background-color: #6c5ce7;
    border-color: #6c5ce7;
}

.player--sleep .player__btn--play:hover {
    background-color: #5a4bd1;
}

.player--sleep .player__volume {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.player--sleep .player__volume-icon {
    font-size: 18px;
}

.player--sleep .player__volume-slider {
    width: 120px;
    accent-color: #6c5ce7;
}

/* ===========================
   ПЛЕЙЛИСТ — СОН
   =========================== */

.player--sleep .player__playlist {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.player--sleep .player__playlist-item {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    color: #8080a0;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.player--sleep .player__playlist-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.player--sleep .player__playlist-item--active {
    background-color: rgba(108, 92, 231, 0.15);
    color: #a29bfe;
    font-weight: 500;
}

/* ===========================
   МИКШЕР — ТЕМА СНА
   =========================== */

.mixer--sleep {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.mixer--sleep .mixer__title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
}

.mixer--sleep .mixer__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.mixer--sleep .mixer__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mixer--sleep .mixer__toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(255, 255, 255, 0.04);
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

.mixer--sleep .mixer__toggle:hover {
    background-color: rgba(108, 92, 231, 0.15);
    border-color: rgba(108, 92, 231, 0.4);
}

.mixer--sleep .mixer__toggle--active {
    background-color: rgba(108, 92, 231, 0.2);
    border-color: #6c5ce7;
}

.mixer--sleep .mixer__label {
    font-size: 12px;
    color: #8080a0;
}

.mixer--sleep .mixer__slider {
    width: 80px;
    accent-color: #6c5ce7;
}

/* ===========================
   ЗАТЕМНЕНИЕ ЭКРАНА
   =========================== */

.body--sleep.dimmed-60 {
    filter: brightness(0.6);
}

.body--sleep.dimmed-30 {
    filter: brightness(0.3);
}

/* ===========================
   АДАПТАЦИЯ ПОД ПЛАНШЕТЫ
   =========================== */

@media (max-width: 768px) {
    .sleep-hero__title {
        font-size: 28px;
    }

    .sleep-timer__time {
        font-size: 44px;
    }

    .sleep-timer__options {
        gap: 8px;
    }

    .sleep-timer__option {
        padding: 8px 14px;
        font-size: 13px;
    }

    .lighting__options {
        flex-direction: column;
        align-items: center;
    }

    .lighting__btn {
        width: 200px;
    }

    .mixer--sleep .mixer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===========================
   АДАПТАЦИЯ ПОД ТЕЛЕФОНЫ
   =========================== */

@media (max-width: 480px) {
    .sleep-hero {
        padding: 40px 16px 30px;
    }

    .sleep-hero__title {
        font-size: 24px;
    }

    .sleep-timer__time {
        font-size: 36px;
    }

    .sleep-timer__btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .sleep-timer__options {
        gap: 6px;
    }

    .sleep-timer__option {
        padding: 8px 12px;
        font-size: 12px;
    }

    .mixer--sleep .mixer__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .player--sleep .player__btn {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .player--sleep .player__btn--play {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}