/* ===========================
   ФОНОВАЯ ТЕМА — МЕДИТАЦИЯ
   =========================== */

.body--meditate {
    background: linear-gradient(135deg, #0a1628 0%, #1a2a4a 50%, #0d1f3c 100%);
    background-attachment: fixed;
}

/* ===========================
   ЗАГОЛОВОК СТРАНИЦЫ
   =========================== */

.meditate-hero {
    text-align: center;
    padding: 60px 20px 40px;
}

.meditate-hero__title {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.meditate-hero__subtitle {
    font-size: 18px;
    color: #7a8aaa;
}

/* ===========================
   ВЫБОР ТИПА МЕДИТАЦИИ
   =========================== */

.meditate-type {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.meditate-type__title {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
}

.meditate-type__cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.meditate-type__card {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, border-color 0.3s, background-color 0.3s;
    color: #ffffff;
    font-family: inherit;
}

.meditate-type__card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 206, 209, 0.4);
}

.meditate-type__card--active {
    border-color: #00ced1;
    background-color: rgba(0, 206, 209, 0.1);
}

.meditate-type__icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.meditate-type__name {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.meditate-type__desc {
    font-size: 11px;
    color: #7a8aaa;
    line-height: 1.4;
}

/* ===========================
   ТАЙМЕР МЕДИТАЦИИ
   =========================== */

.meditate-timer {
    max-width: 400px;
    margin: 0 auto;
    padding: 0 20px 40px;
    text-align: center;
}

/* ===========================
   КРУГОВОЙ ПРОГРЕСС
   =========================== */

.meditate-timer__circle {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 20px;
}

.meditate-timer__svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.meditate-timer__track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 6;
}

.meditate-timer__progress {
    fill: none;
    stroke: #00ced1;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 565.48;
    stroke-dashoffset: 565.48;
    transition: stroke-dashoffset 1s linear;
}

.meditate-timer__inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.meditate-timer__phase {
    font-size: 14px;
    font-weight: 500;
    color: #00ced1;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.meditate-timer__time {
    font-size: 40px;
    font-weight: 700;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}

/* ===========================
   ПОДСКАЗКА ДЫХАНИЯ
   =========================== */

.meditate-timer__breath {
    font-size: 18px;
    color: #7a8aaa;
    margin-bottom: 24px;
    min-height: 28px;
    transition: color 0.5s;
}

.meditate-timer__breath--inhale {
    color: #00ced1;
}

.meditate-timer__breath--exhale {
    color: #7a8aaa;
}

/* ===========================
   КНОПКИ ТАЙМЕРА
   =========================== */

.meditate-timer__controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.meditate-timer__btn {
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background-color: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    transition: background-color 0.3s, border-color 0.3s;
    font-family: inherit;
}

.meditate-timer__btn:hover {
    background-color: rgba(0, 206, 209, 0.15);
    border-color: #00ced1;
}

/* ===========================
   НАСТРОЙКА ГОНГА
   =========================== */

.meditate-timer__gong {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.meditate-timer__gong-label {
    font-size: 14px;
    color: #7a8aaa;
}

.meditate-timer__gong-options {
    display: flex;
    gap: 8px;
}

.meditate-timer__gong-btn {
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    color: #7a8aaa;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
    font-family: inherit;
}

.meditate-timer__gong-btn:hover {
    background-color: rgba(0, 206, 209, 0.1);
    border-color: rgba(0, 206, 209, 0.3);
    color: #ffffff;
}

.meditate-timer__gong-btn--active {
    background-color: rgba(0, 206, 209, 0.15);
    border-color: #00ced1;
    color: #ffffff;
}
/* ===========================
   ПЛЕЕР — ТЕМА МЕДИТАЦИИ
   =========================== */

.player--meditate {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.player--meditate .player__title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
}

.player--meditate .player__track {
    text-align: center;
    margin-bottom: 12px;
}

.player--meditate .player__track-name {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
}

.player--meditate .player__progress {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    margin-bottom: 8px;
    cursor: pointer;
    overflow: hidden;
}

.player--meditate .player__progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00ced1, #48dbfb);
    border-radius: 2px;
    transition: width 0.3s;
}

.player--meditate .player__time {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #7a8aaa;
    margin-bottom: 16px;
}

.player--meditate .player__controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.player--meditate .player__btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    font-family: inherit;
}

.player--meditate .player__btn:hover {
    background-color: rgba(0, 206, 209, 0.15);
    border-color: #00ced1;
}

.player--meditate .player__btn--play {
    width: 56px;
    height: 56px;
    font-size: 20px;
    background-color: #00ced1;
    border-color: #00ced1;
}

.player--meditate .player__btn--play:hover {
    background-color: #00b5b8;
}

.player--meditate .player__volume {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.player--meditate .player__volume-icon {
    font-size: 18px;
}

.player--meditate .player__volume-slider {
    width: 120px;
    accent-color: #00ced1;
}

/* ===========================
   ПЛЕЙЛИСТ — МЕДИТАЦИЯ
   =========================== */

.player--meditate .player__playlist {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.player--meditate .player__playlist-item {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    color: #7a8aaa;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.player--meditate .player__playlist-item:hover {
    background-color: rgba(255, 255, 255, 0.04);
    color: #ffffff;
}

.player--meditate .player__playlist-item--active {
    background-color: rgba(0, 206, 209, 0.12);
    color: #00ced1;
    font-weight: 500;
}

/* ===========================
   МИКШЕР — ТЕМА МЕДИТАЦИИ
   =========================== */

.mixer--meditate {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.mixer--meditate .mixer__title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
}

.mixer--meditate .mixer__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.mixer--meditate .mixer__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mixer--meditate .mixer__toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background-color: rgba(255, 255, 255, 0.03);
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

.mixer--meditate .mixer__toggle:hover {
    background-color: rgba(0, 206, 209, 0.12);
    border-color: rgba(0, 206, 209, 0.3);
}

.mixer--meditate .mixer__toggle--active {
    background-color: rgba(0, 206, 209, 0.15);
    border-color: #00ced1;
}

.mixer--meditate .mixer__label {
    font-size: 12px;
    color: #7a8aaa;
}

.mixer--meditate .mixer__slider {
    width: 80px;
    accent-color: #00ced1;
}

/* ===========================
   АНИМАЦИЯ ДЫХАНИЯ
   =========================== */

@keyframes breathPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.08);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.6;
    }
}

.meditate-timer__circle--breathing {
    animation: breathPulse 8s ease-in-out infinite;
}

/* ===========================
   АДАПТАЦИЯ ПОД ПЛАНШЕТЫ
   =========================== */

@media (max-width: 768px) {
    .meditate-hero__title {
        font-size: 28px;
    }

    .meditate-type__cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .meditate-timer__circle {
        width: 180px;
        height: 180px;
    }

    .meditate-timer__time {
        font-size: 32px;
    }

    .mixer--meditate .mixer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===========================
   АДАПТАЦИЯ ПОД ТЕЛЕФОНЫ
   =========================== */

@media (max-width: 480px) {
    .meditate-hero {
        padding: 40px 16px 30px;
    }

    .meditate-hero__title {
        font-size: 24px;
    }

    .meditate-type__cards {
        grid-template-columns: 1fr;
        max-width: 250px;
        margin: 0 auto;
    }

    .meditate-timer__circle {
        width: 160px;
        height: 160px;
    }

    .meditate-timer__time {
        font-size: 28px;
    }

    .meditate-timer__phase {
        font-size: 12px;
    }

    .meditate-timer__breath {
        font-size: 15px;
    }

    .meditate-timer__btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .meditate-timer__gong-options {
        flex-wrap: wrap;
        justify-content: center;
    }

    .mixer--meditate .mixer__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .player--meditate .player__btn {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .player--meditate .player__btn--play {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}