:root {
    --glass-bg: rgba(20, 20, 20, 0.65);
    --glass-border: rgba(255, 255, 255, 0.15);
    --accent: #4ade80;
    --text: #ffffff;
    --text-muted: #a3a3a3;
    --gold: #ffd700;
    --gold-dark: #ffaa00;
}

/* ==========================================
БАЗОВЫЕ СТИЛИ
========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==========================================
ФОНОВОЕ ВИДЕО
========================================== */
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.65);
    transition: opacity 2.5s ease, filter 2.5s ease; /* ← ДОБАВИТЬ */
    opacity: 1;
}

#bg-video.video-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Второй видео для crossfade */
.bg-video-secondary {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.65);
    opacity: 0;
    transition: opacity 2.5s ease, filter 2.5s ease; /* ← БЫЛО 1.5s */
    pointer-events: none;
}

.bg-video-secondary.active {
    opacity: 1;
}

.bg-video-secondary.video-hidden {
    opacity: 0;
    pointer-events: none;
}

/* ==========================================
СПЛОШНЫЕ ЦВЕТА (под темы оформления)
========================================== */
body.solid-dark {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364) !important;
    animation: gradientBG 15s ease infinite !important;
}

body.solid-light {
    background: linear-gradient(135deg, #f5f7fa, #e8ecf1, #dfe6ed) !important;
    animation: none !important;
}

body.solid-ocean {
    background: linear-gradient(135deg, #0c4a6e, #075985, #0369a1) !important;
    animation: none !important;
}

body.solid-sunset {
    background: linear-gradient(135deg, #4a1942, #c74b50, #f5af19) !important;
    animation: none !important;
}

body.solid-cosmos {
    background: linear-gradient(135deg, #0d0221, #1a0533, #2d1b69) !important;
    animation: none !important;
}

body.solid-sakura {
    background: linear-gradient(135deg, #fce4ec, #f8bbd0, #f48fb1) !important;
    animation: none !important;
}

body.solid-autumn {
    background: linear-gradient(135deg, #3e2723, #5d4037, #795548) !important;
    animation: none !important;
}

/* ==========================================
СЕКЦИИ В МОДАЛКАХ (используется и для музыки, и для видео)
========================================== */
.music-section {
    margin-bottom: 20px;
}

.music-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.music-section-title i {
    color: var(--accent);
    font-size: 1rem;
}

.music-section-hint {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0;
}

.music-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.music-divider::before,
.music-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

/* Список одиночных треков/видео */
.music-tracks-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.music-track-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.music-track-item:hover {
    background: rgba(74, 222, 128, 0.1);
    border-color: var(--accent);
    transform: translateX(3px);
}

.music-track-item.active {
    background: rgba(74, 222, 128, 0.15);
    border-color: var(--accent);
}

.music-track-item.hidden {
    display: none !important;
}

.music-track-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.music-track-item.active .music-track-icon {
    background: rgba(74, 222, 128, 0.25);
    color: var(--accent);
}

.music-track-info {
    flex: 1;
    min-width: 0;
}

.music-track-title {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-track-item.active .music-track-title {
    color: var(--accent);
    font-weight: 600;
}

.music-track-artist {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .music-section-title { font-size: 0.85rem; }
    .music-track-item { padding: 8px 12px; }
}

@media (max-width: 480px) {
    .music-tracks-list { max-height: 250px; }
    .music-track-title { font-size: 0.85rem; }
    .music-track-artist { font-size: 0.7rem; }
}

/* ==========================================
ВЕРХНЯЯ ПАНЕЛЬ
========================================== */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
    z-index: 100 !important;
    transition: opacity 0.5s ease !important;
    position: relative;
}

/* ==========================================
БУРГЕР-КНОПКА (МОБИЛЬНАЯ)
========================================== */
.burger-btn {
    display: none; /* Скрыта на десктопе */
    flex-direction: column;
    justify-content: space-between;
    width: 44px;
    height: 44px;
    padding: 12px 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 110;
}

.burger-btn:hover {
    background: rgba(74, 222, 128, 0.15);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.3);
}

.burger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-btn.active .burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger-btn.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-btn.active .burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================
ЛОГОТИП (БАЗОВЫЙ + PRO-СТИЛИ)
========================================== */
.logo {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.logo i {
    color: var(--accent);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Золотой логотип при активном PRO */
.logo.is-pro {
    color: var(--gold);
    cursor: pointer;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.logo.is-pro i {
    color: var(--gold);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    animation: pulse-leaf 3s ease-in-out infinite;
}

@keyframes pulse-leaf {
    0%, 100% {
        text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
        transform: scale(1.05);
    }
}

/* Tooltip для PRO-логотипа */
.logo.is-pro::after {
    content: attr(data-pro-info);
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    color: var(--gold);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(-5px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.logo.is-pro:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
ВЕРХНИЕ КНОПКИ УПРАВЛЕНИЯ
========================================== */
.top-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid transparent;
    color: rgba(255, 255, 255, 0.8);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.donate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: pointer;
}

/* ==========================================
КОНТЕЙНЕР И СТЕКЛЯННЫЕ ПАНЕЛИ
========================================== */
.container {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 20px;
    transition: opacity 0.5s ease !important;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    min-width: 300px;
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.panel-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-title i {
    color: var(--accent);
}

.panel-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 6px;
}

.panel-toggle:hover {
    color: var(--accent);
    background: rgba(74, 222, 128, 0.1);
}

/* Свёрнутые панели */
.glass-panel.collapsed {
    position: fixed;
    top: 20px;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    cursor: pointer !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 150 !important;
    pointer-events: auto !important;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.glass-panel.collapsed#music-panel { right: 570px; }
.glass-panel.collapsed#sound-panel { right: 630px; }
.glass-panel.collapsed#timer-panel { right: 690px; }

.glass-panel.collapsed .panel-header,
.glass-panel.collapsed .panel-content {
    display: none !important;
}

.glass-panel.collapsed::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.1rem;
    color: white;
    pointer-events: none;
}

.glass-panel.collapsed#timer-panel::after {
    content: '\f017';
    display: none !important;
}

.glass-panel.collapsed#sound-panel::after {
    content: '\f1de';
}

.glass-panel.collapsed#music-panel::after {
    content: '\f001';
}

.glass-panel.hidden-panel {
    display: none !important;
}

/* ==========================================
ТАЙМЕР
========================================== */
.mode-switcher {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.mode-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    font-size: 0.9rem;
}

.mode-btn.active {
    background: rgba(74, 222, 128, 0.15);
    color: var(--accent);
    border-color: var(--accent);
    font-weight: 600;
}

.mode-btn-custom {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.timer-display {
    font-size: 5rem;
    font-weight: 200;
    margin: 10px 0;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.timer-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.control-btn {
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    background: rgba(255,255,255,0.1);
    color: white;
}

.control-btn.primary {
    background: rgba(74, 222, 128, 0.2);
    color: var(--accent);
    border: 1px solid var(--accent);
}

/* Hover-эффекты */
.icon-btn:hover,
.donate-btn:hover,
.control-btn:hover,
.play-track-btn:hover,
.mode-btn-custom:hover,
.mode-btn:hover:not(.active) {
    background: rgba(74, 222, 128, 0.15) !important;
    border: 1px solid var(--accent) !important;
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.3) !important;
    transform: scale(1.05);
    color: var(--accent) !important;
}

.play-track-btn.playing {
    background: var(--accent) !important;
    color: #000 !important;
    border: 1px solid var(--accent) !important;
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.4) !important;
}

.play-track-btn.playing:hover {
    transform: scale(1.1);
}

.glass-panel.collapsed:hover {
    background: rgba(74, 222, 128, 0.25);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.3);
    transform: scale(1.1);
}

.glass-panel.collapsed:hover::after {
    color: var(--accent);
}

/* ==========================================
МИКШЕР ЗВУКОВ
========================================== */
.sound-track {
    margin-bottom: 20px;
}

.track-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.track-name {
    font-size: 0.95rem;
    color: var(--text);
}

.icon-btn-small {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.3s;
}

.icon-btn-small:hover {
    color: var(--accent);
}

.track-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.play-track-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid transparent;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sliders-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pan-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pan-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
    width: 12px;
    text-align: center;
}

/* Слайдеры */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    cursor: pointer;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    transition: background 0.3s ease;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    margin-top: -6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

input[type=range]::-webkit-slider-thumb:hover {
    background: var(--accent);
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.6);
    transform: scale(1.2);
}

input[type=range]:active::-webkit-slider-thumb,
input[type=range]::-webkit-slider-thumb:active {
    transform: scale(1.3);
    background: var(--accent);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.8);
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

input[type=range]::-moz-range-thumb {
    height: 16px;
    width: 16px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

input[type=range]::-moz-range-thumb:hover {
    background: var(--accent);
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.6);
    transform: scale(1.2);
}

.pan-slider::-webkit-slider-runnable-track {
    height: 3px !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.pan-slider::-webkit-slider-thumb {
    height: 12px !important;
    width: 12px !important;
    margin-top: -4.5px !important;
    background: #a3a3a3 !important;
}

.pan-slider::-webkit-slider-thumb:hover {
    background: var(--accent) !important;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.6) !important;
}

/* ==========================================
МУЗЫКАЛЬНЫЙ ПЛЕЕР
========================================== */
.music-player {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.music-current-track {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.music-cover {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.3), rgba(74, 222, 128, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.music-cover.playing {
    animation: pulse-cover 2s ease-in-out infinite;
}

@keyframes pulse-cover {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.music-info {
    flex: 1;
    min-width: 0;
}

.music-track-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-artist {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.music-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    min-width: 40px;
}

.music-progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.music-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
}

.music-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.music-control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid transparent;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.music-control-btn.primary {
    background: rgba(74, 222, 128, 0.2);
    color: var(--accent);
    border: 1px solid var(--accent);
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
}

.music-control-btn:hover {
    background: rgba(74, 222, 128, 0.15) !important;
    border: 1px solid var(--accent) !important;
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.3) !important;
    transform: scale(1.05);
    color: var(--accent) !important;
}

.music-volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.music-volume-icon {
    color: var(--text-muted);
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
}

/* ==========================================
ОПЦИИ ЗВУКОВ И МУЗЫКИ (объединённые стили)
========================================== */
.option-list,
#music-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.option-item,
.music-option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.option-item:hover,
.music-option-item:hover {
    background: rgba(74, 222, 128, 0.15);
    border-color: var(--accent);
}

.option-item.active,
.music-option-item.active {
    background: rgba(74, 222, 128, 0.1);
    border-color: var(--accent);
}

.option-item.pro-item,
.music-option-item.pro-item {
    opacity: 0.6;
    cursor: not-allowed;
}

.option-item.pro-item:hover,
.music-option-item.pro-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: transparent;
}

.option-item.hidden,
.music-option-item.hidden {
    display: none !important;
}

.music-option-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.music-option-item.active .music-option-icon {
    background: rgba(74, 222, 128, 0.2);
}

.music-option-info {
    flex: 1;
    min-width: 0;
}

.music-option-name {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-option-item.active .music-option-name {
    color: var(--accent);
    font-weight: 600;
}

.music-option-artist {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================
МОДАЛЬНЫЕ ОКНА
========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 200;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: #1a1a1a;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    color: white;
    position: relative;
    z-index: 201;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-box h3 {
    margin-bottom: 20px;
    text-align: center;
}

/* Пресеты времени */
.time-presets {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 20px;
}

.preset-group h4 {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-weight: 600;
}

.preset-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.preset-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    color: var(--text);
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    text-align: center;
}

.preset-btn:hover {
    background: rgba(74, 222, 128, 0.15);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateX(5px);
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.2);
}

.preset-btn.active {
    background: rgba(74, 222, 128, 0.15);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 600;
}

/* Поиск в модалках */
.search-input {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 20px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input.no-results {
    border-color: #ef4444;
}

/* Сообщение "ничего не найдено" */
.search-no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-style: italic;
    display: none;
    width: 100%;
}

.search-no-results.show {
    display: block;
}

.search-no-results i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
    display: block;
}

/* PRO-бейджи */
.pro-badge,
.pro-badge-mini {
    background: linear-gradient(45deg, #ffd700, #ffaa00);
    color: #000;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
}

.close-modal {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid transparent;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.close-modal:hover {
    background: rgba(74, 222, 128, 0.15);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.3);
}

.donate-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.donate-modal-btn:hover {
    background: #22c55e;
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.4);
}

/* ==========================================
PRO-МОДАЛКА
========================================== */
.pro-modal-box {
    text-align: center;
    max-width: 550px;
}

.pro-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #000;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
    animation: pulse-gold 2s ease-in-out infinite;
}

@keyframes pulse-gold {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
    }
}

.pro-modal-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.pro-plans {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.pro-plan {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.pro-plan:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold);
    transform: translateY(-2px);
}

.pro-plan.recommended {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 170, 0, 0.04));
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
}

.pro-plan.lifetime {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 170, 0, 0.05));
    border-color: var(--gold);
}

.pro-plan-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pro-plan-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
}

.pro-plan-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.pro-plan-discount {
    background: rgba(74, 222, 128, 0.2);
    color: var(--accent);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.pro-plan-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.pro-plan-period {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.pro-plan-btn {
    display: block;
    width: 100%;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.pro-plan-btn:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    transform: scale(1.02);
}

.pro-plan.recommended .pro-plan-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
}

.pro-referral {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 15px;
    background: rgba(74, 222, 128, 0.08);
    border: 1px dashed rgba(74, 222, 128, 0.3);
    border-radius: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pro-referral i {
    color: var(--accent);
    font-size: 1.2rem;
}

.pro-referral span {
    font-size: 0.85rem;
    color: var(--text);
}

.pro-referral strong {
    color: var(--accent);
}

.pro-referral-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pro-referral-btn:hover {
    background: var(--accent);
    color: #000;
}

.promo-section {
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 15px;
}

.promo-section-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-align: center;
}

.promo-input-group {
    display: flex;
    gap: 8px;
}

#promo-code-input {
    flex: 1;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    outline: none;
    transition: all 0.3s ease;
}

#promo-code-input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.2);
}

.promo-activate-btn {
    padding: 10px 18px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.promo-activate-btn:hover {
    background: #22c55e;
    transform: scale(1.02);
}

.promo-message {
    margin-top: 10px;
    font-size: 0.85rem;
    text-align: center;
    min-height: 20px;
}

.promo-message.success {
    color: var(--accent);
}

.promo-message.error {
    color: #ef4444;
}

/* ==========================================
ПОЛНОЭКРАННЫЙ РЕЖИМ
========================================== */
#btn-exit-fullscreen {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: none;
    align-items: center;
    justify-content: center;
}

body.is-fullscreen-mode #btn-exit-fullscreen {
    display: flex;
}

body.is-fullscreen-mode:hover #btn-exit-fullscreen {
    opacity: 1;
}

body.is-fullscreen-mode .top-bar,
body.is-fullscreen-mode .footer,
body.is-fullscreen-mode .sound-panel,
body.is-fullscreen-mode .music-panel,
body.is-fullscreen-mode .modal-overlay {
    display: none !important;
}

body.is-fullscreen-mode .timer-controls,
body.is-fullscreen-mode .mode-switcher,
body.is-fullscreen-mode #btn-exit-fullscreen {
    display: none !important;
}

body.is-fullscreen-mode .container {
    padding: 0;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

body.is-fullscreen-mode .timer-panel {
    min-width: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    position: relative;
    z-index: 90000;
}

body.is-fullscreen-mode .panel-header,
body.is-fullscreen-mode .panel-toggle {
    display: none;
}

body.is-fullscreen-mode .timer-display {
    font-size: 20vw;
    color: white;
    text-shadow: 0 4px 40px rgba(0,0,0,0.7);
    letter-spacing: -0.02em;
}

body.is-fullscreen-mode:not(.timer-running) .timer-display {
    display: none !important;
}

body.is-fullscreen-mode .breathing-container {
    margin-top: 40px;
    opacity: 0.7;
}

/* ==========================================
ZEN-РЕЖИМ
========================================== */
body.zen-mode .top-bar,
body.zen-mode .container,
body.zen-mode .footer {
    opacity: 0.25 !important;
}

body.zen-mode #bg-video {
    filter: brightness(0.85);
}

/* ==========================================
SOFT LANDING (ВРЕМЯ ВЫШЛО)
========================================== */
.soft-landing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.soft-landing-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.soft-landing-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.soft-landing-overlay.active .soft-landing-content {
    transform: translateY(0);
}

.soft-landing-content i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 15px;
    opacity: 0.8;
}

.soft-landing-content p {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin: 0;
}

/* ==========================================
ДЫХАТЕЛЬНАЯ ВИЗУАЛИЗАЦИЯ
========================================== */
/* ==========================================
РАСШИРЕННАЯ ДЫХАТЕЛЬНАЯ ВИЗУАЛИЗАЦИЯ
========================================== */
/* ==========================================
ДЫХАТЕЛЬНАЯ ВИЗУАЛИЗАЦИЯ
========================================== */
.breathing-container {
    display: none;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.breathing-container.active {
    display: flex;
    animation: fadeIn 0.5s ease;
}

.breathing-orb {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.5) 0%, rgba(74, 222, 128, 0) 70%);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.2);
    animation: breathe-orb-basic 8s infinite ease-in-out;
}

.breathing-text {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    min-height: 1.2em;
}

/* Кнопки режимов дыхания */
.breathing-modes {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.breathing-mode-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.breathing-mode-btn:hover {
    background: rgba(74, 222, 128, 0.15);
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.1);
}

.breathing-mode-btn.active {
    background: rgba(74, 222, 128, 0.2);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

/* Анимации для каждой техники */
@keyframes breathe-orb-basic {
    0%, 100% { transform: scale(0.8); opacity: 0.4; }
    50% { transform: scale(1.6); opacity: 1; }
}

@keyframes breathe-orb-relax {
    0% { transform: scale(0.8); opacity: 0.4; }
    21% { transform: scale(1.6); opacity: 1; }
    58% { transform: scale(1.6); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.4; }
}

@keyframes breathe-orb-box {
    0% { transform: scale(0.8); opacity: 0.4; }
    25% { transform: scale(1.6); opacity: 1; }
    50% { transform: scale(1.6); opacity: 1; }
    75% { transform: scale(0.8); opacity: 0.4; }
    100% { transform: scale(0.8); opacity: 0.4; }
}

.breathing-orb.mode-basic { animation: breathe-orb-basic 8s infinite ease-in-out; }
.breathing-orb.mode-relax { animation: breathe-orb-relax 19s infinite ease-in-out; }
.breathing-orb.mode-box { animation: breathe-orb-box 16s infinite linear; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Скрываем кнопки режимов в полноэкранном режиме */
body.is-fullscreen-mode .breathing-modes {
    display: none !important;
}

/* Адаптивность */
@media (max-width: 480px) {
    .breathing-orb { width: 50px; height: 50px; }
    .breathing-text { font-size: 0.8rem; }
    .breathing-mode-btn { width: 32px; height: 32px; font-size: 0.9rem; }
}


.compact-timer-text {
    display: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
}

.glass-panel.collapsed#timer-panel .compact-timer-text {
    display: block !important;
}

/* ==========================================
ФУТЕР
========================================== */
.footer {
    text-align: center;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: opacity 0.5s ease !important;
}

.affiliate-links {
    margin: 10px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.affiliate-links a {
    color: var(--accent);
    text-decoration: none;
    transition: 0.3s;
}

.affiliate-links a:hover {
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.legal-link,
.social-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.legal-link:hover,
.social-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

.footer-bottom .copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0;
}

/* ==========================================
ПОДСКАЗКИ ПО ГОРЯЧИМ КЛАВИШАМ
========================================== */
.keyboard-hint,
.preset-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    color: var(--text);
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--accent);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideUp 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.keyboard-hint {
    color: var(--accent);
    font-weight: 600;
}

.keyboard-hint.hiding,
.preset-toast.hiding {
    animation: slideDown 0.3s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.preset-toast-icon {
    font-size: 1.5rem;
}

.preset-toast-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.preset-toast-title {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
}

.preset-toast-name {
    font-size: 1rem;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes slideDown {
    from {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    to {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
}

/* ==========================================
МОДАЛКА СПРАВКИ ПО ГОРЯЧИМ КЛАВИШАМ
========================================== */
.keyboard-help-box {
    max-width: 500px;
}

.keyboard-help-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 20px 0;
}

.keyboard-help-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.keyboard-help-item:hover {
    background: rgba(74, 222, 128, 0.1);
    border-color: var(--accent);
}

.keyboard-help-item kbd {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    min-width: 50px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.keyboard-help-item span {
    flex: 1;
    color: var(--text);
    font-size: 0.9rem;
}

/* ==========================================
МОДАЛКА ПРЕСЕТОВ АТМОСФЕРЫ
========================================== */
.presets-modal-box {
    max-width: 600px;
}

.presets-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 20px;
}

.presets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.preset-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.preset-card:hover {
    background: rgba(74, 222, 128, 0.1);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 222, 128, 0.2);
}

.preset-card.active {
    background: rgba(74, 222, 128, 0.15);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
}

.preset-card.special {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 170, 0, 0.04));
    border-color: rgba(255, 215, 0, 0.3);
}

.preset-card.special:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 170, 0, 0.08));
    border-color: var(--gold);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2);
}

.preset-card.tab-hidden {
    display: none !important;
}

.preset-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.preset-card-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.preset-card-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.preset-card-description {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 42px;
}

.preset-card-pro-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(45deg, #ffd700, #ffaa00);
    color: #000;
    font-size: 0.6rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
}

.preset-card-shortcut {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-muted);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 6px;
    font-family: monospace;
}

.preset-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.preset-tag {
    font-size: 0.7rem;
    padding: 2px 8px;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 10px;
    color: var(--text-muted);
}

/* Вкладки фильтров */
.presets-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

.presets-tabs::-webkit-scrollbar {
    height: 4px;
}

.presets-tabs::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 2px;
}

.presets-tab {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
}

.presets-tab:hover {
    background: rgba(74, 222, 128, 0.1);
    color: var(--accent);
    border-color: var(--accent);
}

.presets-tab.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    font-weight: 600;
}

/* ==========================================
МОДАЛКА ПЛЕЙЛИСТОВ
========================================== */
.playlists-modal-box {
    max-width: 600px;
}

.playlists-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 20px;
}

.playlists-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 5px;
}

.playlist-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.playlist-card:hover {
    background: rgba(74, 222, 128, 0.1);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 222, 128, 0.2);
}

.playlist-card.active {
    background: rgba(74, 222, 128, 0.15);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
}

.playlist-card-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.playlist-card-info {
    flex: 1;
    min-width: 0;
}

.playlist-card-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.playlist-card.active .playlist-card-name {
    color: var(--accent);
}

.playlist-card-description {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-card-count {
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.music-playlist-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 10px;
    margin-bottom: 10px;
}

.music-playlist-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.music-playlist-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
}

/* ==========================================
ВЫПАДАЮЩЕЕ МЕНЮ ТЕМ
========================================== */
#btn-themes {
    position: relative;
}

.themes-dropdown {
    position: absolute;
    top: 70px;
    right: 60px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px;
    min-width: 180px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.themes-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.themes-dropdown-header {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--glass-border);
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text);
}

.theme-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.theme-option.active {
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid var(--accent);
}

.theme-preview {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    flex-shrink: 0;
}

.theme-preview-dark {
    background: linear-gradient(135deg, #0f2027, #2c5364);
}

.theme-preview-light {
    background: linear-gradient(135deg, #f5f7fa, #dfe6ed);
}

.theme-preview-ocean {
    background: linear-gradient(135deg, #0c4a6e, #0369a1);
}
.theme-preview-sunset {
    background: linear-gradient(135deg, #4a1942, #f5af19);
}

.theme-preview-cosmos {
    background: linear-gradient(135deg, #0d0221, #2d1b69);
}

.theme-preview-sakura {
    background: linear-gradient(135deg, #fce4ec, #f48fb1);
}

.theme-preview-autumn {
    background: linear-gradient(135deg, #3e2723, #795548);
}

.theme-option span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* ==========================================
КАСТОМНЫЕ СКРОЛЛБАРЫ
========================================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

/* Для Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Специфичные стили для модалок */
.modal-box::-webkit-scrollbar-thumb,
.option-list::-webkit-scrollbar-thumb,
.presets-grid::-webkit-scrollbar-thumb,
.presets-tabs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

.modal-box::-webkit-scrollbar-thumb:hover,
.option-list::-webkit-scrollbar-thumb:hover,
.presets-grid::-webkit-scrollbar-thumb:hover,
.presets-tabs::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ==========================================
ТЕМЫ ОФОРМЛЕНИЯ
========================================== */
/* Светлая тема */
body.theme-light {
    --bg-gradient-start: #f5f7fa;
    --bg-gradient-middle: #e8ecf1;
    --bg-gradient-end: #dfe6ed;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
    --text: #1a202c;
    --text-muted: rgba(26, 32, 44, 0.7);
    --accent: #38a169;
    --accent-glow: rgba(56, 161, 105, 0.5);
    --pro-gold: #d69e2e;
}

/* Океан */
body.theme-ocean {
    --bg-gradient-start: #0c4a6e;
    --bg-gradient-middle: #075985;
    --bg-gradient-end: #0369a1;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --text: #e0f2fe;
    --text-muted: rgba(224, 242, 254, 0.7);
    --accent: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.5);
    --pro-gold: #fbbf24;
}

/* Закат */
body.theme-sunset {
    --bg-gradient-start: #4a1942;
    --bg-gradient-middle: #c74b50;
    --bg-gradient-end: #f5af19;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --text: #fff5e6;
    --text-muted: rgba(255, 245, 230, 0.7);
    --accent: #ff9a56;
    --accent-glow: rgba(255, 154, 86, 0.5);
    --pro-gold: #ffd700;
}

/* Космос */
body.theme-cosmos {
    --bg-gradient-start: #0d0221;
    --bg-gradient-middle: #1a0533;
    --bg-gradient-end: #2d1b69;
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.12);
    --text: #e8e0ff;
    --text-muted: rgba(232, 224, 255, 0.7);
    --accent: #a78bfa;
    --accent-glow: rgba(167, 139, 250, 0.5);
    --pro-gold: #fbbf24;
}

/* Сакура */
body.theme-sakura {
    --bg-gradient-start: #fce4ec;
    --bg-gradient-middle: #f8bbd0;
    --bg-gradient-end: #f48fb1;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(0, 0, 0, 0.08);
    --text: #4a2030;
    --text-muted: rgba(74, 32, 48, 0.7);
    --accent: #e91e63;
    --accent-glow: rgba(233, 30, 99, 0.4);
    --pro-gold: #ff8f00;
}

/* Осень */
body.theme-autumn {
    --bg-gradient-start: #3e2723;
    --bg-gradient-middle: #5d4037;
    --bg-gradient-end: #795548;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --text: #fff3e0;
    --text-muted: rgba(255, 243, 224, 0.7);
    --accent: #ffb74d;
    --accent-glow: rgba(255, 183, 77, 0.5);
    --pro-gold: #ffd54f;
}

/* ==========================================
АДАПТИВНОСТЬ: БОЛЬШИЕ ЭКРАНЫ (1201px+)
========================================== */
@media (min-width: 1201px) {
    .container {
        max-width: 1400px;
        margin: 0 auto;
    }
    .glass-panel {
        min-width: 340px;
    }
    .timer-display {
        font-size: 6rem;
    }
    .presets-modal-box {
        max-width: 700px;
    }
    .presets-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================
АДАПТИВНОСТЬ: НОУТБУКИ (769px - 1200px)
========================================== */
@media (min-width: 769px) and (max-width: 1200px) {
    .container {
        gap: 20px;
        padding: 15px;
    }
    .glass-panel {
        padding: 25px;
        min-width: 280px;
    }
    .timer-display {
        font-size: 4.5rem;
    }
    .top-bar {
        padding: 15px 30px;
    }
}

/* ==========================================
АДАПТИВНОСТЬ: ПЛАНШЕТЫ (481px - 768px)
========================================== */
@media (max-width: 768px) {
    .top-bar {
        padding: 12px 15px;
    }
    .logo {
        font-size: 1.2rem;
    }
    
    /* Бургер-меню */
    .burger-btn {
        display: flex;
    }
    
    .top-controls {
        position: fixed;
        top: 70px;
        right: 15px;
        width: 60px;
        background: rgba(20, 20, 20, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        border-radius: 16px;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 10px;
        gap: 8px;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
        z-index: 105;
    }
    
    .top-controls.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .top-controls .icon-btn,
    .top-controls .donate-btn {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        padding: 0;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .top-controls .icon-btn {
        font-size: 1.1rem;
    }
    
    .top-controls .donate-text {
        display: none;
    }
    
    .top-controls.open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.4);
        z-index: -1;
        pointer-events: none;
    }
    
    body.menu-open .container {
        opacity: 0.3;
        pointer-events: none;
    }
    
    .container {
        flex-direction: column;
        gap: 15px;
        padding: 10px;
        align-items: stretch;
    }
    
    .glass-panel {
        width: 100%;
        min-width: unset;
        padding: 20px;
        border-radius: 18px;
    }
    
    .timer-display {
        font-size: 4rem;
        margin: 5px 0;
    }
    
    .mode-switcher {
        gap: 8px;
    }
    
    .mode-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .control-btn {
        padding: 10px 18px;
        font-size: 1rem;
    }
    
    .track-controls {
        gap: 10px;
    }
    
    .play-track-btn {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }
    
    .music-cover {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .music-controls {
        gap: 15px;
    }
    
    .music-control-btn {
        width: 44px;
        height: 44px;
    }
    
    .music-control-btn.primary {
        width: 52px;
        height: 52px;
    }
    
    .modal-box {
        width: 95%;
        max-width: 500px;
        padding: 25px;
        max-height: 85vh;
    }
    
    .presets-modal-box,
    .pro-modal-box {
        max-width: 500px;
    }
    
    .presets-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .glass-panel.collapsed#music-panel {
        right: 180px;
    }
    .glass-panel.collapsed#sound-panel {
        right: 240px;
    }
    .glass-panel.collapsed#timer-panel {
        right: 300px;
    }
    
    .themes-dropdown {
        top: 60px;
        right: 50px;
        min-width: 160px;
    }
    
    .theme-preview {
        width: 28px;
        height: 28px;
    }
    
    .pro-plans {
        grid-template-columns: 1fr;
    }
    
    .pro-plan.lifetime {
        grid-column: span 1;
    }
    
    .footer {
        padding: 15px 10px;
        font-size: 0.8rem;
    }
    
    .affiliate-links {
        gap: 15px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
    
    .playlists-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .playlist-card {
        padding: 14px;
    }
    
    .playlist-card-icon {
        font-size: 1.8rem;
    }
    
    .playlist-card-name {
        font-size: 0.95rem;
    }
}

/* ==========================================
АДАПТИВНОСТЬ: ТЕЛЕФОНЫ (до 480px)
========================================== */
@media (max-width: 480px) {
    .top-bar {
        padding: 10px 12px;
    }
    
    .logo {
        font-size: 1.1rem;
        gap: 8px;
    }
    
    .logo i {
        font-size: 1.2rem;
    }
    
    .glass-panel {
        padding: 15px;
        border-radius: 14px;
    }
    
    .panel-title {
        font-size: 1rem;
    }
    
    .timer-display {
        font-size: 3.2rem;
    }
    
    .mode-btn {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
    
    .control-btn {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
    
    .track-name {
        font-size: 0.85rem;
    }
    
    .sliders-group {
        gap: 6px;
    }
    
    .pan-control {
        gap: 6px;
    }
    
    .pan-label {
        font-size: 0.6rem;
    }
    
    input[type=range]::-webkit-slider-thumb {
        height: 18px;
        width: 18px;
    }
    
    input[type=range]::-moz-range-thumb {
        height: 18px;
        width: 18px;
    }
    
    .music-current-track {
        padding: 10px;
        gap: 10px;
    }
    
    .music-cover {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .music-track-name {
        font-size: 0.9rem;
    }
    
    .music-artist {
        font-size: 0.75rem;
    }
    
    .music-control-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .music-control-btn.primary {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }
    
    .modal-box {
        width: 98%;
        padding: 20px 15px;
        max-height: 90vh;
        border-radius: 16px;
    }
    
    .modal-box h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .presets-modal-box,
    .pro-modal-box,
    .keyboard-help-box,
    .playlists-modal-box {
        max-width: 100%;
    }
    
    .presets-grid {
        gap: 8px;
    }
    
    .preset-card {
        padding: 12px;
    }
    
    .preset-card-icon {
        font-size: 1.5rem;
    }
    
    .preset-card-name {
        font-size: 0.95rem;
    }
    
    .preset-card-description {
        font-size: 0.75rem;
        margin-left: 38px;
    }
    
    .preset-card-tags {
        margin-top: 6px;
    }
    
    .preset-tag {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
    
    .presets-tabs {
        gap: 6px;
        margin-bottom: 15px;
    }
    
    .presets-tab {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .pro-plan {
        padding: 12px 8px;
    }
    
    .pro-plan-price {
        font-size: 1.3rem;
    }
    
    .pro-plan-name {
        font-size: 0.85rem;
    }
    
    .pro-modal-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .promo-input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .promo-activate-btn {
        width: 100%;
    }
    
    .time-presets {
        flex-direction: column;
        gap: 20px;
    }
    
    .preset-buttons {
        gap: 8px;
    }
    
    .preset-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .keyboard-help-grid {
        gap: 8px;
    }
    
    .keyboard-help-item {
        padding: 8px 12px;
        gap: 10px;
    }
    
    .keyboard-help-item kbd {
        padding: 4px 8px;
        font-size: 0.75rem;
        min-width: 40px;
    }
    
    .keyboard-help-item span {
        font-size: 0.85rem;
    }
    
    .glass-panel.collapsed {
        top: auto;
        bottom: 20px;
    }
    
    .glass-panel.collapsed#music-panel {
        right: 20px;
    }
    .glass-panel.collapsed#sound-panel {
        right: 75px;
    }
    .glass-panel.collapsed#timer-panel {
        right: 130px;
    }
    
    .themes-dropdown {
        top: 55px;
        right: 10px;
        left: 10px;
        min-width: unset;
    }
    
    .search-input {
        padding: 10px 12px;
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .option-item,
    .music-option-item {
        padding: 10px 12px;
    }
    
    .breathing-orb {
        width: 50px;
        height: 50px;
    }
    
    .breathing-text {
        font-size: 0.8rem;
    }
    
    .soft-landing-content i {
        font-size: 2.5rem;
    }
    
    .soft-landing-content p {
        font-size: 1.2rem;
    }
    
    .keyboard-hint,
    .preset-toast {
        bottom: 20px;
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    #btn-exit-fullscreen {
        top: 15px;
        right: 15px;
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
    
    .footer {
        padding: 12px 8px;
        font-size: 0.75rem;
    }
    
    .affiliate-links {
        gap: 10px;
        font-size: 0.8rem;
    }
    
    .playlist-card {
        padding: 12px;
    }
    
    .playlist-card-icon {
        font-size: 1.5rem;
    }
    
    .playlist-card-name {
        font-size: 0.9rem;
    }
    
    .playlist-card-description {
        font-size: 0.75rem;
    }
}

/* ==========================================
АДАПТИВНОСТЬ: ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (до 360px)
========================================== */
@media (max-width: 360px) {
    .logo {
        font-size: 1rem;
    }
    .timer-display {
        font-size: 2.8rem;
    }
    .glass-panel {
        padding: 12px;
    }
    .mode-btn {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    .control-btn {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    .preset-card-name {
        font-size: 0.9rem;
    }
    .preset-card-description {
        font-size: 0.7rem;
    }
}

/* ==========================================
СЕКЦИИ В МОДАЛКЕ МУЗЫКИ
========================================== */
.music-section {
    margin-bottom: 20px;
}

.music-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.music-section-title i {
    color: var(--accent);
    font-size: 1rem;
}

.music-section-hint {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0;
}

.music-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.music-divider::before,
.music-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

/* Список треков */
.music-tracks-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.music-track-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.music-track-item:hover {
    background: rgba(74, 222, 128, 0.1);
    border-color: var(--accent);
    transform: translateX(3px);
}

.music-track-item.active {
    background: rgba(74, 222, 128, 0.15);
    border-color: var(--accent);
}

.music-track-item.hidden {
    display: none !important;
}

.music-track-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.music-track-item.active .music-track-icon {
    background: rgba(74, 222, 128, 0.25);
    color: var(--accent);
}

.music-track-info {
    flex: 1;
    min-width: 0;
}

.music-track-title {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-track-item.active .music-track-title {
    color: var(--accent);
    font-weight: 600;
}

.music-track-artist {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Адаптивность */
@media (max-width: 768px) {
    .music-section-title {
        font-size: 0.85rem;
    }
    
    .music-track-item {
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .music-tracks-list {
        max-height: 250px;
    }
    
    .music-track-title {
        font-size: 0.85rem;
    }
    
    .music-track-artist {
        font-size: 0.7rem;
    }
}

/* ==========================================
АДАПТИВНОСТЬ: LANDSCAPE НА ТЕЛЕФОНАХ
========================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .timer-display {
        font-size: 3rem;
    }
    .container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    .glass-panel {
        flex: 1;
        min-width: 200px;
    }
    .top-bar {
        padding: 8px 15px;
    }
    .breathing-container {
        display: none;
    }
}

/* ==========================================
ПЕЧАТЬ
========================================== */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    .top-bar,
    .container,
    .footer,
    #bg-video,
    .modal-overlay {
        display: none !important;
    }
}