/* === БАЗОВЫЕ ПЕРЕМЕННЫЕ === */
:root { 
    --bg: #0A0A0C; 
    --surface: rgba(22, 22, 26, 0.6); 
    --surface-solid: #16161A;
    --surface-hover: rgba(30, 30, 36, 0.8);
    --accent: #FF0055; 
    --text: #F2F2F2; 
    --sub: #8E8E93; 
    --danger: #FF453A; 
    --border: rgba(255,255,255,0.05);
    --app-height: 100dvh; 
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* ФИКС ДЛЯ TELEGRAM WEBAPP: Возвращаем копирование, вставку и смену языка клавиатуры */
input, textarea, select {
    -webkit-user-select: text !important;
    user-select: text !important;
}

body { background: var(--bg); color: var(--text); font-family: 'Montserrat', system-ui, -apple-system, sans-serif; height: var(--app-height); display: flex; flex-direction: column; overflow: hidden; transition: background 0.4s ease; }

::-webkit-scrollbar { width: 0px; height: 0px; display: none; }

#toast { position: fixed; top: 20px; left: 50%; transform: translate(-50%, -150%); background: rgba(28, 28, 30, 0.95); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); color: var(--text); padding: 14px 28px; border-radius: 30px; font-size: 13px; font-weight: 700; transition: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); z-index: 99999; border: 1px solid var(--border); box-shadow: 0 10px 40px rgba(0,0,0,0.5); letter-spacing: 0.3px;}
#toast.show { transform: translate(-50%, 0); }

/* === ЭКРАН АВТОРИЗАЦИИ === */
#auth-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg); z-index: 9000; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 20px; }
.auth-logo { width: 75px; height: 75px; background: var(--accent); border-radius: 24px; display: flex; align-items: center; justify-content: center; margin: 0 auto 25px auto; box-shadow: 0 10px 30px rgba(0,0,0,0.4); color: #fff; animation: floatLogo 3s ease-in-out infinite;}
.auth-title { font-size: 26px; font-weight: 800; margin-bottom: 8px; letter-spacing: 0.5px;}
.auth-sub { font-size: 13px; color: var(--sub); font-weight: 600;}
@keyframes floatLogo { 0%, 100% { transform: translateY(0); box-shadow: 0 10px 30px rgba(0,0,0,0.4); } 50% { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.2); } }
#web-login-form { display: none; width: 100%; max-width: 320px; margin-top: 30px; }

/* === ГЛАВНЫЙ ЭКРАН ПРИЛОЖЕНИЯ === */
.main-wrapper { display: flex; flex-direction: column; flex: 1; overflow: hidden; width: 100%; max-width: 1400px; margin: 0 auto; position: relative; }
.ambient-glow { position: absolute; top: -15vh; left: 50%; transform: translateX(-50%); width: 120vw; height: 40vh; background: var(--accent); filter: blur(120px); opacity: 0.12; z-index: 0; pointer-events: none; transition: background 0.5s ease, opacity 0.5s ease;}
.tab-bar { background: rgba(10, 10, 12, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid var(--border); display: flex; justify-content: space-around; align-items: center; z-index: 1000; padding-bottom: env(safe-area-inset-bottom); height: 70px; flex-shrink: 0; order: 2; width: 100%; }
.tab-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--sub); font-size: 10px; font-weight: 700; cursor: pointer; transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); height: 100%; }
.tab-item svg { width: 22px; height: 22px; fill: currentColor; transition: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.tab-item.active { color: var(--accent); }
.tab-item.active svg { transform: scale(1.25) translateY(-2px); filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4)); }

.content-area { flex: 1; position: relative; display: flex; flex-direction: column; overflow: hidden; order: 1; z-index: 1;}
.screen { flex: 1; display: none; flex-direction: column; width: 100%; height: 100%; overflow-y: auto; padding: 15px 20px; align-items: center; }
#screen-player { overflow-y: hidden; padding: 10px 20px 15px 20px; } 
.screen.active { display: flex; animation: slideFadeUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
@keyframes slideFadeUp { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ВАЖНО: Оригинальный лэйаут плеера для мобилок */
.screen-content-player { width: 100%; max-width: 480px; height: 100%; display: flex; flex-direction: column; margin: 0 auto; }
.player-top { flex-shrink: 0; }
.player-bottom { flex-shrink: 0; margin-top: auto; padding-bottom: 5px;}
.screen-content-scroll { width: 100%; max-width: 480px; display: flex; flex-direction: column; margin: 0 auto; padding-top: 15px; padding-bottom: 20px;}

.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; width: 100%; }
.app-title { font-size: 24px; font-weight: 800; letter-spacing: 0.5px; display: flex; align-items: center; gap: 10px;}
.user-badge { font-size: 11px; background: rgba(255,255,255,0.05); padding: 8px 14px; border-radius: 14px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 6px; border: 1px solid var(--border); backdrop-filter: blur(10px);}
.user-badge span { color: var(--accent); }

/* === РОУТИНГ === */
.route-toggle { display: flex; background: rgba(255,255,255,0.04); border-radius: 18px; padding: 4px; margin: 0 auto 5px auto; width: 100%; position: relative; border: 1px solid var(--border); box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);}
.route-active-bg { position: absolute; top: 4px; bottom: 4px; left: 0; background: var(--accent); border-radius: 14px; transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); z-index: 1; box-shadow: 0 4px 15px rgba(0,0,0,0.3);}
.route-btn { flex: 1; background: transparent; border: none; color: var(--sub); padding: 12px 10px; border-radius: 14px; font-weight: 700; font-size: 11px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; transition: color 0.3s ease; position: relative; z-index: 2;}
.route-btn.active { color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.5);}
.route-btn svg { width: 14px; height: 14px; fill: currentColor; }

/* === ПЛЕЕР И ЭКВАЛАЙЗЕР === */
.visualizer-container { flex: 1; position: relative; width: 100vw; margin-left: calc(-50vw + 50%); display: flex; align-items: center; justify-content: center; min-height: 200px; margin-top: 10px; margin-bottom: 25px; background: transparent !important;}
#eq-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; background: transparent !important; }

.track-info { text-align: center; position: relative; width: 100%; display: flex; flex-direction: column; justify-content: center; margin-bottom: 20px;}
.track-title { font-size: 18px; font-weight: 800; margin-bottom: 6px; padding: 0 40px; line-height: 1.3; text-shadow: 0 4px 15px rgba(0,0,0,0.4); transition: 0.3s ease; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal;}
.station-name { font-size: 13px; color: var(--accent); font-weight: 700; opacity: 0.9; cursor: pointer; transition: 0.2s; margin: 0 auto; display: inline-block; }
.station-name:active { opacity: 0.5; transform: scale(0.95); }

/* КНОПКА ПОХОЖЕЕ СЛЕВА */
.similar-btn { position: absolute; top: 50%; transform: translateY(-50%); left: 5px; background: rgba(255,255,255,0.06); border: 1px solid var(--border); color: var(--accent); width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); backdrop-filter: blur(10px); z-index: 5;}
.similar-btn:active { transform: translateY(-50%) scale(0.85); background: var(--surface-hover);}
.similar-btn svg { width: 20px; height: 20px; fill: currentColor; }

/* КНОПКА ЛАЙКА СПРАВА */
.btn-like { position: absolute; top: 50%; transform: translateY(-50%); right: 5px; background: rgba(255,255,255,0.06); border: 1px solid var(--border); color: var(--text); width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); backdrop-filter: blur(10px);}
.btn-like:active { transform: translateY(-50%) scale(0.85); background: var(--accent); border-color: var(--accent);}

.progress-wrapper { width: 100%; margin: 0 auto 15px auto; display: none; }
.progress-time { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: var(--sub); margin-bottom: 8px; }
input[type=range] { -webkit-appearance: none; width: 100%; height: 5px; background: rgba(255,255,255,0.1); border-radius: 3px; outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; background: var(--text); border-radius: 50%; cursor: pointer; box-shadow: 0 0 15px rgba(255,255,255,0.5); transition: 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);}
input[type=range]::-webkit-slider-thumb:active { transform: scale(1.5); background: var(--accent); box-shadow: 0 0 20px rgba(0,0,0,0.5);}

.live-indicator { margin: 5px auto 15px auto; width: fit-content; font-size: 10px; font-weight: 800; background: rgba(255,255,255,0.08); color: var(--accent); padding: 5px 12px; border-radius: 10px; display: none; border: 1px solid var(--accent); letter-spacing: 0.5px; animation: pulseLive 2s infinite;}

.controls { display: flex; justify-content: center; align-items: center; gap: clamp(20px, 6vw, 40px); margin-bottom: 25px; width: 100%; }
.btn-icon { background: none; border: none; color: var(--text); cursor: pointer; transition: 0.2s cubic-bezier(0.25, 0.8, 0.25, 1); display: flex; align-items: center; padding: 10px;}
.btn-icon svg { width: clamp(26px, 8vw, 36px); height: clamp(26px, 8vw, 36px); fill: currentColor; }
.btn-icon:active { transform: scale(0.75); opacity: 0.7; }
.btn-icon.active { color: var(--accent); filter: drop-shadow(0 0 8px rgba(0,0,0,0.5));}
.btn-play { width: clamp(70px, 20vw, 90px); height: clamp(70px, 20vw, 90px); border-radius: 50%; background: var(--text); border: none; color: var(--bg); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 30px rgba(255,255,255,0.15); cursor: pointer; transition: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); flex-shrink: 0; }
.btn-play:active { transform: scale(0.88); box-shadow: 0 0 15px rgba(255,255,255,0.1); }
.btn-play svg { width: clamp(32px, 9vw, 42px); height: clamp(32px, 9vw, 42px); }

.volume-row { display: none; align-items: center; gap: 15px; width: 100%; background: var(--surface); padding: 16px 20px; border-radius: 20px; border: 1px solid var(--border); box-shadow: inset 0 2px 10px rgba(0,0,0,0.2); backdrop-filter: blur(10px);}
.volume-row svg { width: 20px; height: 20px; fill: var(--sub); flex-shrink: 0; }

/* === СПИСКИ === */
.search-row { display: flex; gap: 10px; margin-bottom: 15px; width: 100%;}
.search-input { flex: 1; background: var(--surface); border: 1px solid var(--border); color: var(--text); padding: 16px 20px; border-radius: 16px; font-family: 'Montserrat', sans-serif; font-size: 14px; outline: none; transition: 0.3s; font-weight: 600; backdrop-filter: blur(10px);}
.search-input:focus { border-color: var(--accent); background: rgba(255,255,255,0.05); }
.search-btn { background: var(--text); color: var(--bg); border: none; padding: 0 22px; border-radius: 16px; font-weight: 800; cursor: pointer; transition: 0.2s cubic-bezier(0.25, 0.8, 0.25, 1); font-size: 13px; box-shadow: 0 4px 15px rgba(255,255,255,0.2);}
.search-btn:active { transform: scale(0.92); }

.sort-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; width: 100%; padding: 0 5px;}
.sort-select { background: var(--surface-solid); color: var(--text); border: 1px solid var(--border); padding: 8px 14px; border-radius: 12px; font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 700; outline: none; cursor: pointer;}

.st-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 25px; width: 100%; }
.st-item { display: flex; align-items: center; padding: 12px; background: var(--surface); border-radius: 18px; cursor: pointer; border: 1px solid var(--border); transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); backdrop-filter: blur(10px);}
.st-item:active { transform: scale(0.96); background: var(--surface-hover); }
.st-item.active { border-color: var(--accent); background: rgba(255,255,255,0.05); box-shadow: 0 4px 20px rgba(0,0,0,0.2);}

.st-art { width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,0.04); display: flex; align-items: center; justify-content: center; margin-right: 15px; font-weight: 800; font-size: 15px; color: var(--sub); flex-shrink: 0; transition: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);}
.st-item.active .st-art { background: var(--accent); color: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.3); transform: scale(1.05);}

.st-info { flex: 1; overflow: hidden; display: flex; flex-direction: column; justify-content: center;}
.st-name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3;}
.st-sub { font-size: 11px; color: var(--sub); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.st-sub span { cursor: pointer; transition: 0.2s; display: inline-block; }
.st-sub span:active { color: var(--accent); opacity: 0.7;}

.action-btn { background: transparent; border: none; color: var(--sub); padding: 8px; border-radius: 12px; cursor: pointer; transition: 0.2s cubic-bezier(0.25, 0.8, 0.25, 1); margin-left: 4px; display: flex; align-items: center; justify-content: center;}
.action-btn:active { background: rgba(255,255,255,0.1); transform: scale(0.85); }
.action-btn.active { color: #FFC700; filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));}
.action-btn.dl { background: rgba(255,255,255,0.05); color: var(--text); }
.action-btn.dl:active { background: var(--accent); color: #fff; }
.action-btn.del:active { background: rgba(255,69,58,0.2); color: var(--danger); }

/* === ФОРМА ДОБАВЛЕНИЯ === */
.add-form { background: var(--surface); padding: 20px; border-radius: 20px; display: flex; flex-direction: column; gap: 12px; width: 100%; border: 1px solid var(--border); backdrop-filter: blur(10px);}
.add-form-title { font-size: 12px; font-weight: 800; margin-bottom: 5px; color: var(--sub); text-transform: uppercase; letter-spacing: 1px;}
.add-input { background: rgba(255,255,255,0.03); border: 1px solid var(--border); color: var(--text); padding: 14px 18px; border-radius: 14px; font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 600; transition: 0.3s;}
.add-input:focus { border-color: var(--accent); outline: none;}
.add-btn { background: var(--text); color: var(--bg); border: none; padding: 16px; border-radius: 14px; font-weight: 800; cursor: pointer; transition: 0.2s cubic-bezier(0.25, 0.8, 0.25, 1); font-size: 13px; text-transform: uppercase; margin-top: 5px;}
.add-btn:active { transform: scale(0.96); }

/* === НАСТРОЙКИ === */
.settings-list { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.settings-card { background: var(--surface); border-radius: 20px; padding: 20px; border: 1px solid var(--border); transition: 0.3s; backdrop-filter: blur(10px);}
.settings-title { font-size: 11px; font-weight: 800; color: var(--sub); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px;}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

.s-btn { background: rgba(255,255,255,0.06); border: 1px solid var(--border); color: var(--text); padding: 14px 0; border-radius: 14px; font-weight: 700; font-size: 12px; cursor: pointer; transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); text-align: center; }
.s-btn.active { border-color: var(--accent); background: rgba(255,255,255,0.15); color: var(--accent); }
.s-btn:active { transform: scale(0.92); background: rgba(255,255,255,0.1);}

.row-btn { display: flex; align-items: center; justify-content: space-between; background: var(--surface); padding: 16px 20px; border-radius: 18px; cursor: pointer; transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); border: 1px solid var(--border); backdrop-filter: blur(10px);}
.row-btn:active { transform: scale(0.96); background: var(--surface-hover); }
.row-btn-left { display: flex; align-items: center; gap: 16px; }
.row-btn-icon { width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.2);}
.row-btn-icon svg { width: 18px; height: 18px; fill: currentColor; }
.row-btn-text { font-weight: 700; font-size: 15px; }
.row-btn-arrow { color: var(--sub); font-size: 22px; font-weight: 400; }

.btn-action { background: rgba(255,255,255,0.06); border: 1px solid var(--border); color: var(--text); padding: 16px; border-radius: 14px; font-weight: 800; width: 100%; cursor: pointer; transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); text-transform: uppercase; font-size: 12px; letter-spacing: 0.5px;}
.btn-action:active { transform: scale(0.96); background: rgba(255,255,255,0.1); }
.btn-action.danger { background: rgba(255, 69, 58, 0.08); color: var(--danger); border-color: rgba(255, 69, 58, 0.2);}
.btn-action.danger:active { background: rgba(255, 69, 58, 0.2); transform: scale(0.96); }

/* === МОДАЛЬНЫЕ ОКНА === */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 2000; display: none; flex-direction: column; justify-content: flex-end; opacity: 0; transition: opacity 0.4s ease;}
.modal-overlay.show { display: flex; opacity: 1; }
.modal-content { background: var(--surface-solid); width: 100%; max-width: 600px; margin: 0 auto; border-radius: 32px 32px 0 0; padding: 25px 25px 40px 25px; transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); display: flex; flex-direction: column; border-top: 1px solid var(--border); max-height: 85vh;}
.modal-overlay.show .modal-content { transform: translateY(0); }
.modal-handle { width: 45px; height: 6px; background: rgba(255,255,255,0.15); border-radius: 3px; margin: 0 auto 25px auto; }
.theme-picker { display: flex; gap: 15px; overflow-x: auto; padding-bottom: 20px; margin-bottom: 5px;}
.theme-picker::-webkit-scrollbar { display: none; }
.color-dot { width: 48px; height: 48px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; transition: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); flex-shrink: 0; box-shadow: 0 4px 15px rgba(0,0,0,0.3);}
.color-dot.active { border-color: var(--text); transform: scale(1.15); box-shadow: 0 0 20px currentColor; }
#log-container { width: 100%; flex: 1; background: #000; border-radius: 20px; padding: 20px; font-family: monospace; font-size: 12px; color: #4ade80; overflow-y: auto; margin-bottom: 25px; border: 1px solid var(--border); min-height: 300px; max-height: 50vh;}

/* === ПЛЕЙЛИСТЫ === */
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 15px; margin-bottom: 25px; width: 100%; }
.pl-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; cursor: pointer; transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); display: flex; flex-direction: column; backdrop-filter: blur(10px); }
.pl-card:active { transform: scale(0.95); background: var(--surface-hover); border-color: var(--accent); }
.pl-cover { width: 100%; aspect-ratio: 1; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; border-bottom: 1px solid var(--border); }
.pl-cover img { width: 100%; height: 100%; object-fit: cover; }
.pl-cover svg { width: 40px; height: 40px; fill: var(--sub); opacity: 0.5; }
.pl-info { padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.pl-title { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-desc { font-size: 11px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }

.pl-view-cover { width: 100px; height: 100px; border-radius: 16px; object-fit: cover; flex-shrink: 0; box-shadow: 0 10px 25px rgba(0,0,0,0.4); background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pl-view-cover img { width: 100%; height: 100%; object-fit: cover; }
.pl-view-cover svg { width: 40px; height: 40px; fill: var(--sub); opacity: 0.5; }
.pl-view-details { display: flex; flex-direction: column; justify-content: center; overflow: hidden; flex: 1; }
.pl-view-title { font-size: 18px; font-weight: 800; margin-bottom: 6px; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.2; }
.pl-view-desc { font-size: 12px; color: var(--sub); margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; }
.pl-view-actions { display: flex; gap: 8px; }

/* === ОПТИМИЗАЦИЯ ДЛЯ ПК (ПОЛНОЭКРАННЫЙ ПЛЕЕР) === */
@media (min-width: 768px) {
    .main-wrapper { flex-direction: row; max-width: 100%; width: 100%; } 
    .tab-bar { flex-direction: column; justify-content: flex-start; gap: 30px; width: 100px; height: 100%; border-top: none; border-right: 1px solid var(--border); padding-top: 50px; order: 0; flex-shrink: 0; }
    .tab-item { flex: none; height: auto; font-size: 11px;}
    .screen { padding: 30px 40px; align-items: center; } 
    .modal-content { border-radius: 32px; margin-bottom: 20px; border: 1px solid var(--border); }
    .pl-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    
    /* === Истинный Full-Screen Плеер === */
    /* ИСПРАВЛЕНИЕ ТУТ: Убрали жесткий display: flex, чтобы плеер скрывался при переключении */
    #screen-player { padding: 0; flex-direction: column; align-items: stretch;} 
    .screen-content-player { max-width: 100%; width: 100%; height: 100%; display: flex; flex-direction: column; } 
    
    .player-top { max-width: 100%; padding: 20px 40px; flex-shrink: 0; position: relative; z-index: 10;}
    
    .visualizer-container { 
        position: relative; 
        width: 100%; 
        margin: 0; 
        flex: 1;
        min-height: 250px;
    }
    
    .player-bottom { max-width: 100%; padding: 0 40px 40px 40px; flex-shrink: 0; margin-top: auto; position: relative; z-index: 10;}
    
    .similar-btn { left: 40px; }
    .btn-like { right: 40px; }
    .track-title { font-size: 32px; padding: 0 120px; } 
    .station-name { font-size: 16px; }
    
    .controls { gap: 8vw; margin-bottom: 20px; } 
    .btn-play { width: 90px; height: 90px; }
    .btn-icon svg { width: 36px; height: 36px; }
    
    .screen-content-scroll { max-width: 1200px; } 
}