body { font-family: 'Circular', 'Segoe UI', sans-serif; background: #000; color: #fff; margin: 0; padding-bottom: 20px; overflow-x: hidden; }
a { color: #fff; text-decoration: none; }

header { padding: 20px; max-width: 1000px; margin: 0 auto; }
.search-container input { width: 100%; padding: 12px 20px 12px 44px; border-radius: 500px; border: none; background: #242424; color: white; font-size: 14px; outline: none; }.search-container input:focus { outline: 2px solid #fff; }

#trackList { max-width: 1000px; margin: 0 auto; padding: 0 20px 120px 20px; }
.track-container { border-bottom: 1px solid #2a2a2a; padding: 10px; transition: background 0.2s; border-radius: 4px; }
.track-container:hover { background: #1e1e1e; }
.active-track-row .t-title { color: #1db954; }
.track-row-main { display: flex; align-items: center; cursor: pointer; }
.genre-tag { background: #333; color: #ccc; font-size: 10px; padding: 2px 6px; border-radius: 4px; margin-right: 4px; text-transform: uppercase; }
.yt-spoiler-btn { margin-top: 8px; margin-left: 60px; font-size: 11px; color: #bb86fc; cursor: pointer; display: inline-block; }
.yt-spoiler-btn:hover { text-decoration: underline; color: #fff; }
.yt-container { margin-top: 10px; margin-left: 60px; max-width: 500px; }


/* --- ПЛЕЕР --- */
.bottom-player {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 90px;
    background: #000; border-top: 1px solid #282828;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 16px; box-sizing: border-box; z-index: 500;
    
    /* ИСПРАВЛЕНО: Плеер сразу виден на ПК */
    transform: translateY(0); 
    
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.bottom-player.visible { transform: translateY(0); }

/* ЛЕВАЯ ЧАСТЬ */
.player-left { width: 30%; min-width: 180px; display: flex; align-items: center; }
.album-art-small { width: 56px; height: 56px; background: #282828; border-radius: 4px; margin-right: 14px; background-size: cover; background-position: center; box-shadow: 0 0 10px rgba(0,0,0,0.3); flex-shrink: 0; }
.track-info-text { display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
#playerTitle { color: #fff; font-size: 14px; font-weight: 500; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
#playerArtist { color: #b3b3b3; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }

/* ЦЕНТР */
.player-center { width: 40%; max-width: 722px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
/* 1. Убираем нижний отступ у кнопок */
.player-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px; /* Раньше было 8px, теперь убираем, так как 32px обертка сама создаст зазор */
    transform: translateY(4px); /* Легкий сдвиг вниз для идеальной центровки */
}
.icon-btn { background: transparent; border: none; color: #b3b3b3; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; width: 32px; height: 32px; transition: color 0.2s; }
.icon-btn:hover { color: #fff; }
.icon-btn.active { color: #1db954; } 
.icon-btn svg { fill: currentColor; }
.play-btn-circle { background: #fff; border: none; border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.1s; }
.play-btn-circle:hover { transform: scale(1.05); }
.play-btn-circle svg { fill: black; }
.play-btn-circle svg#playIcon { margin-left: 2px; } /* Оптический сдвиг только для треугольника */
.play-btn-circle svg#pauseIcon { margin-left: 0; }  /* Пауза стоит строго по центру */

/* ПРОГРЕСС БАР */
.player-progress-bar { width: 100%; display: flex; align-items: center; gap: 8px; font-size: 11px; color: #a7a7a7; font-weight: 400; }
/* 2. Корректируем положение прогресс-бара */
.progress-range-wrapper {
    width: 100%;
    height: 22px; 
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    margin-top: -4px; /* Подтягиваем полоску чуть ближе к кнопкам, компенсируя прозрачную зону */
}
/* Фикс ползунка: он остается тонким (4px), но занимает центр широкого контейнера */
input[type=range]#progressRange {
    width: 100%;
    height: 4px; /* Визуальная толщина остается прежней */
    background: #4d4d4d;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    /* Важно: заставляем его игнорировать собственные границы для событий, 
       так как мы будем ловить клик на обертке */
    pointer-events: auto; 
}
/* !!! ИСПРАВЛЕНИЕ ПОЛЗУНКОВ !!! */
input[type=range] { 
    -webkit-appearance: none; 
    background: #4d4d4d; /* СЕРЫЙ ЦВЕТ по умолчанию (вместо transparent) */
    width: 100%; height: 4px; border-radius: 2px; cursor: pointer; outline: none; margin: 0;
}
/* Трек делаем прозрачным, чтобы видеть фон input */
input[type=range]::-webkit-slider-runnable-track { background: transparent; height: 4px; border-radius: 2px; } 
input[type=range]::-moz-range-track { background: transparent; height: 4px; border-radius: 2px; } 

input[type=range]::-webkit-slider-thumb { 
    -webkit-appearance: none; height: 12px; width: 12px; border-radius: 50%; background: #fff; margin-top: -4px; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.5); opacity: 0; transition: opacity 0.1s; 
}
.progress-range-wrapper:hover input[type=range]::-webkit-slider-thumb { opacity: 1; }
.volume-range-wrapper:hover input[type=range]::-webkit-slider-thumb { opacity: 1; }

/* ПРАВАЯ ЧАСТЬ */
.player-right { width: 30%; min-width: 180px; display: flex; justify-content: flex-end; align-items: center; }

/* Громкость - фикс выравнивания */
.volume-box { display: flex; align-items: center; width: 150px; gap: 5px; color: #b3b3b3; margin-left: 10px; }
.volume-range-wrapper { width: 100%; height: 12px; display: flex; align-items: center; position: relative; }
#volumeBtn { 
    background: none; border: none; color: #b3b3b3; padding: 0; cursor: pointer; 
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; /* Фиксированный размер для выравнивания */
}
#volumeBtn:hover { color: #fff; }
#volumeBtn svg { width: 18px; height: 18px; fill: currentColor; }

/* ... ОЧЕРЕДЬ И ПРОЧЕЕ БЕЗ ИЗМЕНЕНИЙ ... */
.queue-panel { position: fixed; bottom: 95px; right: 20px; width: 360px; max-height: 400px; background: #121212; border: 1px solid #282828; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.5); z-index: 400; transform: translateY(20px); opacity: 0; visibility: hidden; transition: all 0.2s; display: flex; flex-direction: column; }
.queue-panel.open { transform: translateY(0); opacity: 1; visibility: visible; }
.queue-header { padding: 16px; border-bottom: 1px solid #282828; display: flex; justify-content: space-between; align-items: center; }
.queue-header h3 { margin: 0; font-size: 16px; }
.queue-header button { background: none; border: none; color: #b3b3b3; cursor: pointer; }
#queueListContainer { flex: 1; overflow-y: auto; }
.queue-item { padding: 10px 16px; display: flex; gap: 12px; align-items: center; cursor: pointer; }
.queue-item:hover { background: #2a2a2a; }
.queue-item.playing .q-title { color: #1db954; }
.queue-thumb { width: 32px; height: 32px; background: #333; border-radius: 2px; background-size: cover; flex-shrink: 0; }
.q-info { display: flex; flex-direction: column; overflow: hidden; }
.q-title { font-size: 14px; color: #fff; }
.q-artist { font-size: 12px; color: #b3b3b3; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: #555; border-radius: 4px; }

/* --- АДМИНКА --- */
.admin-container { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.admin-content { display: flex; gap: 30px; }

/* Левая колонка (Форма) */
.admin-form-card { flex: 1; background: #181818; padding: 24px; border-radius: 8px; height: fit-content; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 8px; color: #fff; }
.admin-input { width: 100%; padding: 10px 12px; background: #333; border: 1px solid transparent; border-radius: 4px; color: white; box-sizing: border-box; font-size: 14px; }
.admin-input:focus { border-color: #555; outline: none; }
.admin-btn { width: 100%; padding: 14px; background: #1db954; border: none; border-radius: 500px; color: black; font-weight: 700; font-size: 14px; letter-spacing: 1px; cursor: pointer; text-transform: uppercase; margin-top: 10px; transition: 0.1s; }
.admin-btn:hover { transform: scale(1.02); background: #1ed760; }

/* Правая колонка (Список) */
.admin-list-card { flex: 1; background: #181818; padding: 24px; border-radius: 8px; max-height: 600px; overflow-y: auto; }
.admin-track-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #282828; }
.admin-track-row span { font-size: 14px; color: #b3b3b3; }
.edit-link { color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: underline; }

/* Скроллбары */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #555; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #888; }

/* --- СТИЛИ ДЛЯ LANDING PAGE --- */
.landing-body {
    display: flex; justify-content: center; align-items: center; 
    min-height: 100dvh; /* Позволяет контейнеру растягиваться, если контента много */
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
    overflow-x: hidden; /* Запрещаем только горизонтальный скролл */
    overflow-y: auto;   /* Разрешаем вертикальный, если контент не влезет */
    padding: 20px 0 70px 0; /* Добавили буфер сверху и 70px снизу, чтобы бегущая строка не перекрыла кнопки */
    box-sizing: border-box;
}

.landing-container { 
    text-align: center; 
    width: 100%; /* Чтобы не сжимался */
}

.landing-title { 
    font-size: 60px; font-weight: 900; letter-spacing: 5px; margin-bottom: 50px; 
    text-transform: uppercase; color: #fff; text-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.landing-menu { 
    display: flex; flex-direction: column; gap: 20px; 
    width: 100%;        /* Резиновая ширина */
    max-width: 300px;   /* Но не больше 300px */
    margin: 0 auto; 
    padding: 0 20px;    /* Безопасные отступы по бокам для микро-экранов */
    box-sizing: border-box;
}
.menu-btn {
    display: block; padding: 15px 0; border: 1px solid #fff; color: #fff; 
    text-transform: uppercase; font-weight: 700; letter-spacing: 2px; text-decoration: none;
    transition: 0.3s;
}
.menu-btn:hover { background: #fff; color: #000; transform: scale(1.05); }
.menu-btn.disabled { opacity: 0.3; pointer-events: none; border-color: #555; color: #555; }

/* --- ОБЩИЕ СТИЛИ (ОСТАВЬ СТАРЫЕ, НО ДОБАВЬ ЭТО) --- */

/* Контейнер трека в списке */
.track-container { border-bottom: 1px solid #2a2a2a; padding: 10px; transition: background 0.2s; border-radius: 4px; }
.track-container:hover { background: #1e1e1e; }
.active-track-row .t-title { color: #1db954; }

.track-row-main { display: flex; align-items: center; cursor: pointer; }

/* Жанры (теги) */
.genre-tag { 
    background: #333; color: #ccc; font-size: 10px; padding: 2px 6px; 
    border-radius: 4px; margin-right: 4px; text-transform: uppercase; 
}

/* YouTube Спойлер */
.yt-spoiler-btn {
    margin-top: 8px; margin-left: 60px; /* Отступ под текст */
    font-size: 11px; color: #bb86fc; cursor: pointer; display: inline-block;
}
.yt-spoiler-btn:hover { text-decoration: underline; color: #fff; }
.yt-container { margin-top: 10px; margin-left: 60px; max-width: 500px; }

/* Кнопка добавления сурса в админке */
.admin-btn-small { background: #333; color: #fff; border: 1px solid #555; padding: 5px 10px; cursor: pointer; font-size: 11px; border-radius: 4px; }
.admin-btn-small:hover { border-color: #fff; }



/* Кнопка Play появляется при наведении */
.track-cover-wrapper {
    position: relative;
    width: 40px; height: 40px;
    margin-right: 12px;
}

.play-overlay {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: none; /* Скрыто по умолчанию */
    align-items: center; justify-content: center;
    border-radius: 4px;
}

.track-row:hover .play-overlay {
    display: flex;
}

/* Стили для иконок платформ */
.platform-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.platform-links img {
    width: 24px; height: 24px;
    filter: grayscale(1);
    transition: filter 0.2s;
}

.platform-links img:hover {
    filter: grayscale(0);
}

/* Детальная информация (скрыта по умолчанию) */
.track-details-box {
    background: #0f0f0f;
    padding: 20px;
    border-bottom: 1px solid #222;
    display: none; /* Переключается через JS */
}


.track-row.active {
    background-color: rgba(255,255,255,0.2);
}
.track-row.active .track-title-text { color: #1db954; }

/* Колонки */
.col-index { text-align: center; font-variant-numeric: tabular-nums; }
.col-title { display: flex; align-items: center; gap: 12px; overflow: hidden; }
/* Жестко фиксируем жанры в одну строку, чтобы карточка не растягивалась */
.col-genre { 
    white-space: nowrap !important; 
    overflow: hidden !important; 
    text-overflow: ellipsis !important; 
}

/* Оставляем перенос строк только для сурсов (если они где-то остались в списках) */
.col-source { 
    white-space: normal !important;
    word-break: break-word;
    overflow: visible !important; 
    line-height: 1.4;
}
.col-time { text-align: right; font-variant-numeric: tabular-nums; display: flex; justify-content: flex-end; align-items: center; gap: 10px; }

.track-cover-small {
    width: 40px; height: 40px; background: #333; flex-shrink: 0; background-size: cover;
}
.track-title-text { color: #fff; font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-artist-text { font-size: 12px; }

/* КНОПКИ ДЕЙСТВИЙ */
.track-hover-actions {
    opacity: 0; /* Скрыто по умолчанию */
    display: flex; gap: 10px;
    transition: opacity 0.2s;
}
.track-row:hover .track-hover-actions { opacity: 1; }

.icon-action { cursor: pointer; color: #b3b3b3; background: none; border: none; padding: 0; }
.icon-action:hover { color: #fff; }

#trackList, .track-list-header {
    max-width: 1200px; /* Максимальная ширина таблицы */
    margin: 0 auto;    /* Центрирование по середине экрана */
}


/* Специальный класс для страницы соцсетей, чтобы работал скролл */
.socials-body {
    background: #071011 !important;
    min-height: 100vh;
    display: block; /* Блочная модель позволяет странице свободно скроллиться */
    padding-top: 120px; /* Сдвигаем контент вниз от верхнего края */
    padding-bottom: 60px;
    box-sizing: border-box;
}

.mobile-menu-btn { display: none; background: none; border: none; color: #fff; cursor: pointer; padding: 10px; }

/* РАСКРЫТАЯ КАРТОЧКА (Когда нажали "Подробнее") */
.track-row.expanded {
    display: block; /* Сбрасываем грид */
    background: #282828;
}
.track-row.expanded .col-title { margin-bottom: 10px; }
.track-row.expanded .col-genre, 
.track-row.expanded .col-source { 
    display: block !important; 
    white-space: normal; /* Перенос текста */
    margin-bottom: 8px;
    color: #ccc;
}
.track-row.expanded .col-source:before { content: "Сурсы: "; color: #777; }
.track-row.expanded .col-genre:before { content: "Жанр: "; color: #777; }

/* КОНТЕКСТНОЕ МЕНЮ */
.context-menu {
    position: fixed; background: #282828; border-radius: 4px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.5); z-index: 1000; padding: 4px 0;
}
.ctx-item { padding: 10px 20px; color: #fff; font-size: 14px; cursor: pointer; }
.ctx-item:hover { background: #3e3e3e; }



/* =========================================
   СТИЛИ ДЛЯ СОРТИРОВКИ ПО СТОЛБЦАМ
   ========================================= */
.sortable-col {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}
.sortable-col:hover { color: #fff; }
.sort-arrow {
    font-size: 10px;
    opacity: 0; /* Скрыта, если не активна */
    transition: opacity 0.2s, transform 0.2s;
}
.sortable-col.active { color: #E6A835; } /* Активный столбец подсвечиваем */
.sortable-col.active .sort-arrow {
    opacity: 1;
}
/* Если по возрастанию (ASC), переворачиваем стрелку */
.sortable-col.active.asc .sort-arrow {
    transform: rotate(180deg);
}


/* Обложки в списке */
.col-title { display: flex; align-items: center; gap: 16px; overflow: hidden; }
.track-cover-container { 
    position: relative; width: 44px; height: 44px; flex-shrink: 0; 
    border-radius: 4px; overflow: hidden; background: #282828; 
}
.mini-cover { width: 100%; height: 100%; background-size: cover; background-position: center; }

.play-overlay { 
    position: absolute; inset: 0; background: rgba(0,0,0,0.6); 
    display: flex; align-items: center; justify-content: center; 
    opacity: 0; transition: opacity 0.2s; 
}
.track-row:hover .play-overlay { opacity: 1; }

/* Тексты в строке */
.title-info { display: flex; flex-direction: column; overflow: hidden; justify-content: center; }
.t-name { color: #fff; font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px;}
.t-author { color: #b3b3b3; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Выпадающий блок (Доп. инфа) */
.track-details-box {
    background: #121212;
    padding: 20px 16px 20px 92px; /* Сдвигаем контент вправо, чтобы было под названием */
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 14px;
    color: #ccc;
    box-shadow: inset 0 5px 10px rgba(0,0,0,0.2);
}
/* Фикс для сурсов внутри раскрывающегося блока */
.details-content p { 
    white-space: normal !important;
    word-break: break-word;
    line-height: 1.5;
    margin: 0 0 12px 0;
}
.details-content strong { color: #fff; font-weight: 600; }

/* Иконки площадок (сразу цветные) */
.platform-links { 
    display: flex; gap: 15px; align-items: center; 
}

.platform-icon img { 
    width: 28px; height: 28px; 
    /* Убрали строку filter: grayscale... */
    transition: transform 0.2s ease; 
}

.platform-icon:hover img { 
    /* При наведении теперь только легкое движение вверх */
    transform: translateY(-2px); 
}

/* Кнопка "INFO" (вместо двойной стрелки) */
/* Кнопка "INFO" — увеличенная и квадратная для удобства клика */
.expand-btn {
    background: rgba(255, 255, 255, 0.03); /* Легкая подложка, чтобы видеть границы кнопки */
    border: 1px solid rgba(145, 160, 170, 0.2); 
    color: #91A0AA; 
    cursor: pointer;
    
    /* Делаем кнопку квадратной */
    width: 42px; 
    height: 42px; 
    
    display: flex; 
    align-items: center; 
    justify-content: center;
    
    transition: all 0.2s ease;
    border-radius: 8px; /* Красивое скругление */
    
    font-size: 10px; /* Уменьшаем шрифт, чтобы текст INFO аккуратно сидел в центре */
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    
    flex-shrink: 0; /* Чтобы кнопка не сжималась в узких строках */
}

/* Эффект при наведении */
.expand-btn:hover { 
    color: #fff; 
    background: rgba(255, 255, 255, 0.1); 
    border-color: rgba(255, 255, 255, 0.5);
}

/* Состояние, когда информация раскрыта (загорается желтым) */
.expand-btn.open { 
    color: #E6A835 !important; 
    border-color: #E6A835 !important;
    background: rgba(230, 168, 53, 0.1); /* Мягкий желтый фон */
    transform: none; 
}

.platform-icon img { 
    width: 28px; height: 28px; 
    filter: none !important; /* Принудительно отключаем любой серый цвет */
    transition: transform 0.2s ease; 
}

/* =========================================
   НОВАЯ ЦВЕТОВАЯ ТЕМА (ПАК 1)
   ========================================= */

/* 1. Базовый фон (Rich Black) */
body, .landing-body, .bottom-player, header {
    background: #071011 !important;
}

/* Слегка осветленный Rich Black для карточек и панелей, чтобы сохранить объем */
.admin-form-card, .admin-list-card, .queue-panel, .track-details-box, .admin-input {
    background: #0c181a !important; 
    border-color: #1a2c2f !important;
}

/* 2. Второстепенный текст и иконки (Cadet Gray) */
.t-author, .col-date, .col-genre, .col-time, 
.player-progress-bar, #playerArtist, .icon-btn, 
.volume-box, .q-artist, .expand-btn, .admin-track-row span,
.track-list-header, .form-group label, .details-content p {
    color: #91A0AA !important;
}

/* 3. Акценты: текст, иконки, ползунки (Hunyadi Yellow) */
.active-track-row .t-title,
.icon-btn.active,
.queue-item.playing .q-title,
.expand-btn.open {
    color: #E6A835 !important;
}

/* Главные кнопки (например, "СОХРАНИТЬ" в админке) */
.admin-btn {
    background: #E6A835 !important;
    color: #071011 !important; /* Темный текст на желтом фоне для контраста */
}
.admin-btn:hover {
    background: #f4b94a !important; /* Чуть светлее при наведении */
    transform: scale(1.02);
}

/* Подкрашиваем рамки при фокусе */
.search-container input:focus, .admin-input:focus { 
    outline: 2px solid #E6A835 !important; 
}

/* =========================================
   ВСПЛЫВАЮЩИЕ УВЕДОМЛЕНИЯ (TOASTS)
   ========================================= */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.toast {
    min-width: 250px;
    padding: 16px 20px;
    background: #0c181a; /* Темный фон карточек */
    border-left: 4px solid #91A0AA;
    color: #fff;
    border-radius: 4px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.6);
    font-size: 14px;
    font-weight: 500;
    
    /* Начальное состояние для анимации выезда справа */
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.success { 
    border-left-color: #E6A835; /* Наш акцентный желтый */
}

.toast.error { 
    border-left-color: #CF0000; /* Красный для ошибок */
}

/* --- ВКЛАДКИ (TABS) --- */
.tabs-container {
    display: flex; gap: 15px; max-width: 1200px; margin: 0 auto 20px auto; 
    padding: 0 20px; border-bottom: none; /* Убираем нижнюю линию */
}
.tab-btn {
    background: rgba(255, 255, 255, 0.1); 
    border: 1px solid transparent; 
    color: #fff; 
    font-size: 13px; font-weight: 700; 
    padding: 10px 24px; cursor: pointer; 
    text-transform: uppercase; letter-spacing: 1px;
    border-radius: 500px; /* Делает их овальными */
    transition: all 0.2s;
}
.tab-btn:hover { background: rgba(255, 255, 255, 0.2); }
.tab-btn.active { background: #E6A835; color: #071011; border-color: #E6A835; }

/* --- СЕТКА АЛЬБОМОВ --- */
#albumsView { max-width: 1200px; margin: 0 auto; padding: 0 20px 120px 20px; }
.albums-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 24px;
}
.album-card {
    background: #0c181a; border-radius: 8px; padding: 16px; 
    cursor: pointer; transition: all 0.3s ease; border: 1px solid transparent;
}
.album-card:hover {
    background: #1a2c2f; border-color: #E6A835; transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}
.album-cover-wrapper {
    width: 100%; aspect-ratio: 1/1; background: #282828; border-radius: 6px; 
    margin-bottom: 16px; background-size: cover; background-position: center; 
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.album-card-title {
    color: #fff; font-size: 16px; font-weight: 700; margin: 0 0 6px 0; 
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.album-card-stats { color: #91A0AA; font-size: 13px; margin: 0; }

/* --- ВЬЮ ОТКРЫТОГО АЛЬБОМА --- */
#singleAlbumView { max-width: 1200px; margin: 0 auto; padding: 0 20px 120px 20px; }
.back-btn {
    background: transparent; border: none; color: #91A0AA; font-size: 14px; 
    font-weight: 600; cursor: pointer; padding: 0; margin-bottom: 24px; 
    display: flex; align-items: center; transition: color 0.2s;
}
.back-btn:hover { color: #fff; }

.album-info-banner { display: flex; gap: 30px; align-items: flex-end; margin-bottom: 40px; }
.album-detail-cover {
    width: 200px; height: 200px; border-radius: 8px; background: #282828;
    background-size: cover; background-position: center; box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
.album-detail-text { display: flex; flex-direction: column; justify-content: flex-end; }
.album-tag { font-size: 12px; color: #E6A835; font-weight: 700; letter-spacing: 2px; margin-bottom: 8px; }
#albumDetailTitle { font-size: 48px; color: #fff; margin: 0 0 10px 0; font-weight: 900; line-height: 1.1; }
#albumDetailStats { color: #91A0AA; font-size: 14px; font-weight: 500; margin: 0; }

/* --- МОДАЛКА РЕДАКТОРА АЛЬБОМА --- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; visibility: hidden; transition: 0.2s; }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-content { background: #0c181a; padding: 24px; border-radius: 8px; width: 500px; max-width: 90%; border: 1px solid #1a2c2f; }
.drag-list { list-style: none; padding: 0; margin: 0 0 20px 0; max-height: 300px; overflow-y: auto; }
.drag-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; background: #182527; margin-bottom: 8px; border-radius: 4px; cursor: grab; color: #fff; border: 1px solid transparent; }
.drag-item:active { cursor: grabbing; border-color: #E6A835; }
.drag-item.dragging { opacity: 0.5; }
.drag-handle { margin-right: 15px; color: #91A0AA; cursor: grab; }
.drag-remove { color: #CF0000; cursor: pointer; font-weight: bold; }

/* =========================================
   КРАСИВАЯ КНОПКА ЗАГРУЗКИ ФАЙЛОВ
   ========================================= */

input[type="file"].admin-input {
    padding: 6px; /* Чуть уменьшаем внутренний отступ для баланса */
    color: #91A0AA; /* Цвет текста "Файл не выбран" */
    cursor: pointer;
}

/* Стилизация самой кнопки "Выберите файл" */
input[type="file"].admin-input::file-selector-button {
    background: transparent;
    border: 1px solid #E6A835; /* Наш акцентный желтый */
    color: #E6A835;
    padding: 8px 16px;
    margin-right: 15px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

/* Эффект при наведении на кнопку */
input[type="file"].admin-input::file-selector-button:hover {
    background: #E6A835;
    color: #071011; /* Темный цвет текста для контраста */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(230, 168, 53, 0.2);
}

/* =========================================
   ЕДИНЫЙ БЛОК ДЛЯ РАСКРЫТОГО ТРЕКА
   ========================================= */

/* Сама строка трека при раскрытии */
.track-row.expanded-row {
    background: #0c181a !important; /* Цвет как у инфо-блока */
    border-bottom: none !important; /* Убираем разделительную полоску между ними */
}

/* Блок с дополнительной информацией */
.track-details-box {
    background: #0c181a !important; 
    margin-top: 0;
    border-top: none !important;
    padding: 10px 16px 20px 16px; /* ИЗМЕНЕНО: левый отступ теперь 16px, чтобы контент был под датой */
    box-shadow: inset 0 -5px 10px rgba(0,0,0,0.1); 
    border-bottom: 1px solid rgba(145, 160, 170, 0.2) !important; 
}
/* =========================================
   ИДЕАЛЬНАЯ СЕТКА ТРЕКОВ (ЕДИНАЯ ДЛЯ ВСЕХ)
   ========================================= */
/* =========================================
   ИДЕАЛЬНАЯ СЕТКА ТРЕКОВ (ЕДИНАЯ ДЛЯ ВСЕХ)
   ========================================= */
.track-list-header, .track-row {
    display: grid !important;
    /* Увеличили колонку времени до 80px, чтобы "ВРЕМЯ ▼" не сдавливалось */
    grid-template-columns: 115px 1fr 150px 80px 60px !important; 
    gap: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    align-items: center !important;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(145, 160, 170, 0.1);
}
/* Строго запрещаем перенос даты на вторую строку */
.col-date {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.track-list-header {
    border-bottom: 1px solid rgba(145, 160, 170, 0.2);
    color: #91A0AA;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.track-list-header > div, .track-row > div {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
}

/* Отдельно центрируем колонку с кнопками */
.track-list-header .col-expand, .track-row .col-expand {
    justify-content: center !important;
}

.track-row { cursor: pointer; transition: background 0.2s; }
.track-row:hover { background: rgba(255,255,255,0.05); }

/* =========================================
   ПОДСВЕТКА РЕДАКТИРОВАНИЯ И ИКОНКИ ПЛЕЕРА
   ========================================= */

/* Подсветка строки в админке при редактировании */
.admin-track-row.editing-active {
    background: #1a2c2f !important;
    border-left: 4px solid #E6A835;
    padding-left: 12px; /* Чуть сдвигаем текст, чтобы компенсировать границу */
}

/* Стили для играющего трека в списке */
.track-row.playing {
    background: rgba(255,255,255,0.1);
}
.track-row.playing .t-name {
    color: #E6A835; /* Красим название играющего трека в акцентный цвет */
}
.track-row.playing .play-overlay {
    opacity: 1; /* Иконка поверх обложки всегда видна, если трек играет/на паузе */
}


/* =========================================
   ПОИСК В ВЫПАДАЮЩИХ СПИСКАХ (CUSTOM SELECT)
   ========================================= */
.custom-searchable-select {
    position: relative;
    width: 100%;
}
.custom-searchable-select input[type="text"] {
    cursor: text;
    padding-right: 30px; /* Место под стрелочку */
}
.custom-searchable-select::after {
    content: '▼';
    position: absolute; right: 12px; top: 50%;
    transform: translateY(-50%); font-size: 10px;
    color: #91A0AA; pointer-events: none;
}
.select-dropdown {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #0c181a; border: 1px solid #E6A835;
    border-top: none; border-radius: 0 0 6px 6px;
    max-height: 200px; overflow-y: auto;
    z-index: 1100; display: none;
    box-shadow: 0 8px 16px rgba(0,0,0,0.6);
}
.select-dropdown.open { display: block; }
.select-option {
    padding: 10px 14px; color: #fff; font-size: 14px;
    cursor: pointer; border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.1s;
}
.select-option:last-child { border-bottom: none; }
.select-option:hover { background: #1a2c2f; color: #E6A835; }
/* =========================================
   ИДЕАЛЬНАЯ СИНХРОНИЗАЦИЯ СТОЛБЦОВ
   ========================================= */

/* 2. Базовое выравнивание ячеек */
.track-list-header > div,
.track-row > div {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    margin-left: 0 !important;
    padding-left: 0; /* Убрали !important, чтобы позволить индивидуальные отступы */
}
/* ИНДИВИДУАЛЬНАЯ КАЛИБРОВКА СТОЛБЦОВ */
/* 1. Возвращаем заголовок "НАЗВАНИЕ" строго над обложками */
.track-list-header .col-title {
    padding-left: 0 !important; 
}

/* 2. Выравнивание колонки "ВРЕМЯ" */
.track-list-header .col-time,
.track-row .col-time {
    justify-content: flex-end !important;
    text-align: right !important;
}

.track-list-header .col-time {
    padding-right: 0 !important; /* Шапку не трогаем, там есть скрытая стрелочка */
}

.track-row .col-time {
    /* Искусственно компенсируем 18px (ширина стрелки + gap).
       Это сдвинет цифры влево, и они встанут ИДЕАЛЬНО под словом "ВРЕМЯ" */
    padding-right: 18px !important; 
}


/* 3. Особый отступ для колонки "Название" в списке (чтобы текст не лип к обложке) */
.track-row .col-title {
    gap: 16px !important;
}

/* 4. Возвращаем кнопку "Подробнее" (стрелочку) на место по центру её маленькой колонки */
.track-list-header .col-expand, 
.track-row .col-expand {
    justify-content: center !important;
}




/* =========================================
   СТРАНИЦА СОЦИАЛЬНЫХ СЕТЕЙ (ОБНОВЛЕННАЯ)
   ========================================= */

.socials-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
    width: 100%;
}

/* Стили для кликабельного логотипа */
.socials-logo {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    transition: text-shadow 0.3s, transform 0.3s;
    /* Убираем отступ сверху, оставляем снизу */
    margin-top: 0;
    margin-bottom: 50px;
}
.socials-logo:hover {
    text-shadow: 0 0 25px rgba(230, 168, 53, 0.6); /* Золотое свечение при наведении */
    transform: scale(1.02);
}

.socials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 240px);
    justify-content: center; 
    gap: 25px;
    width: 100%;
}

.social-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 90px;
    background: rgba(255, 255, 255, 0.02); 
    border: 1px solid rgba(255, 255, 255, 0.05); 
    border-radius: 12px; /* Чуть больше закругление на ПК */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
    box-sizing: border-box;
}

/* ДЕЛАЕМ ИКОНКИ СРАЗУ ЦВЕТНЫМИ (Убираем grayscale) */
.social-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* =========================================
   ЦВЕТНОЙ ДИЗАЙН ПРИ НАВЕДЕНИИ (БРЕНДЫ)
   ========================================= */
.social-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}
.social-card:hover img {
    transform: scale(1.1);
}

/* Фирменные цвета (рамка + свечение) */
.social-card.brand-tg:hover { border-color: #2AABEE; box-shadow: 0 10px 25px rgba(42, 171, 238, 0.25); }
.social-card.brand-vk:hover { border-color: #0077FF; box-shadow: 0 10px 25px rgba(0, 119, 255, 0.25); }
.social-card.brand-yt:hover { border-color: #FF0000; box-shadow: 0 10px 25px rgba(255, 0, 0, 0.25); }
.social-card.brand-ya:hover { border-color: #FFCC00; box-shadow: 0 10px 25px rgba(255, 204, 0, 0.25); }
.social-card.brand-sp:hover { border-color: #1DB954; box-shadow: 0 10px 25px rgba(29, 185, 84, 0.25); }
.social-card.brand-sc:hover { border-color: #FF5500; box-shadow: 0 10px 25px rgba(255, 85, 0, 0.25); }
.social-card.brand-ap:hover { border-color: #FA243C; box-shadow: 0 10px 25px rgba(250, 36, 60, 0.25); }
.social-card.brand-bo:hover { border-color: #F15F2C; box-shadow: 0 10px 25px rgba(241, 95, 44, 0.25); }


/* =========================================
   АДАПТАЦИЯ ДЛЯ ТЕЛЕФОНОВ (СОЦСЕТИ И LANDING)
   ========================================= */
@media (max-width: 768px) {
    
    .socials-body {
        padding-top: 60px !important; /* Отступ сверху */
    }

    .socials-container {
        padding: 0 20px !important;
        box-sizing: border-box !important; 
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important; 
    }

    /* Название стало главной кнопкой */
    .socials-logo {
        font-size: 32px !important;
        letter-spacing: 2px !important; 
        margin-bottom: 35px !important; /* Увеличили отступ до карточек */
        text-align: center !important;
        width: 100% !important;
    }

    .socials-grid { 
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        gap: 16px !important; /* Пространство между карточками */
    }

    /* ИДЕАЛЬНЫЕ МОБИЛЬНЫЕ ПЛАШКИ */
    .social-card { 
        width: 100% !important; 
        max-width: 320px !important; /* Сделали шире (раньше было 260px) */
        height: 70px !important;     /* Сделали выше для удобного клика */
        padding: 10px 20px !important;
        box-sizing: border-box !important;
        border-radius: 16px !important; /* Приятное сильное скругление */
        background: rgba(255, 255, 255, 0.03) !important; /* Чуть светлее фон */
    }
    
    .social-card img {
        max-height: 34px !important; /* Слегка увеличили иконки */
    }

    .social-card:active {
        border-color: #E6A835 !important;
        transform: scale(0.97) !important;
        background: rgba(255, 255, 255, 0.08) !important;
    }
    
    .landing-title {
        font-size: 42px;
        margin-bottom: 40px;
    }
}
@media (max-width: 768px) {
    /* 1. Поднимаем весь контент страницы соцсетей выше */
    .socials-body {
        padding-top: 60px !important; /* Было 120px, делаем в два раза меньше */
        padding-bottom: 30px !important;
    }

    /* 2. Прижимаем кнопку "Назад" к самому углу, чтобы освободить место */
    .back-link-absolute {
        top: 15px !important;
        left: 15px !important;
    }

    /* 3. Убираем лишнее пространство вокруг самого заголовка MOVIESTRAIFE */
    .socials-container h1.landing-title {
        margin-top: 0 !important;
        margin-bottom: 20px !important;
    }
}

/* --- СТИЛИ ДЛЯ ТРЕКЛИСТА МИКСОВ --- */
.mix-tracklist {
    white-space: pre-wrap; 
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    line-height: 1.5;
    color: #91A0AA;
    max-height: 300px; 
    overflow-y: auto;
    margin-top: 10px;
    padding-right: 15px;
}

/* --- ИНДИВИДУАЛЬНЫЕ ТЕГИ ДЛЯ СУРСОВ --- */
.sources-wrapper {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sources-title {
    color: #E6A835; /* Акцентный цвет для слова "СУРСЫ" */
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sources-tags-container {
    display: flex;
    flex-wrap: wrap; /* КРИТИЧЕСКИ ВАЖНО: заставляет теги переноситься на новую строку! */
    gap: 8px; /* Расстояние между тегами (справа и снизу) */
}

.source-tag {
    background: rgba(230, 168, 53, 0.08); /* Легкий акцентный фон */
    border: 1px solid rgba(230, 168, 53, 0.3); /* Тонкая рамка */
    color: #ccc;
    padding: 6px 14px;
    border-radius: 100px; /* Округляем края как "таблетки" */
    font-size: 13px;
    white-space: normal; /* Позволяет переносы, если сам сурс очень длинный */
    word-break: break-word;
    transition: all 0.2s ease;
}

.source-tag:hover {
    background: rgba(230, 168, 53, 0.15); /* Чуть подсвечиваем при наведении для красоты */
    color: #fff;
}

/* --- ИНДИВИДУАЛЬНЫЕ ПЛАШКИ ДЛЯ ДОП. ЖАНРОВ --- */
.genres-wrapper {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.genres-title {
    color: #91A0AA; /* Оставляем спокойный цвет, чтобы сурсы выделялись сильнее */
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.genres-tags-container {
    display: flex;
    flex-wrap: wrap; /* Заставляет жанры переноситься на новую строку */
    gap: 8px; /* Расстояние между плашками */
}

.genre-tag-box {
    background: rgba(255, 255, 255, 0.05); /* Нейтральный полупрозрачный фон */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Тонкая серая рамка */
    color: #ccc;
    padding: 6px 12px;
    border-radius: 4px; /* ПРЯМОУГОЛЬНАЯ форма (в отличие от сурсов) */
    font-size: 13px;
    white-space: normal; 
    word-break: break-word;
    transition: all 0.2s ease;
}

.genre-tag-box:hover {
    background: rgba(255, 255, 255, 0.1); 
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* --- ГЛАВНАЯ КОЛОНКА ЖАНРОВ --- */

/* 1. Увеличиваем специфичность селектора (.track-row .col-genre), чтобы строго перебить flex */
.track-row .col-genre { 
    display: block !important; 
    overflow: hidden !important; 
    white-space: nowrap !important; 
}

/* Общий стиль для плашки жанра */
.main-genre-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #b3b3b3;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    vertical-align: middle;
}

/* ПЕРВЫЙ ЖАНР: выталкивает второй вниз */
.main-genre-tag:first-child {
    display: block; 
    width: fit-content;
    max-width: 100%; 
}

/* Добавляем отступ снизу только если есть второй жанр (если он один, будет идеально по центру) */
.main-genre-tag:first-child:not(:last-child) {
    margin-bottom: 4px; 
}

/* ВТОРОЙ ЖАНР: встает на нижнюю строку */
.main-genre-tag:nth-child(2) {
    display: inline-block;
    max-width: 100%; 
}

/* Слегка подсвечиваем при наведении на строку */
.track-row:hover .main-genre-tag {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* ТРОЕТОЧИЕ: встает ровно справа от второго жанра */
.main-genre-dots {
    display: inline-block;
    color: #777;
    font-size: 14px;
    letter-spacing: 1px;
    margin-left: 2px;
    vertical-align: middle;
    line-height: 1;
}

/* --- СТИЛИ ДЛЯ КНОПОК ДЕЙСТВИЙ АЛЬБОМА (Шеринг и Play All) --- */
.album-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}

.btn-play-all {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #E6A835;
    color: #071011 !important;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-play-all:hover {
    transform: scale(1.05);
    background-color: #f4b94a;
}

.btn-play-all svg {
    width: 24px; /* ИЗМЕНЕНО: размер строго 20px, как в скрипте */
    height: 24px;
    margin-left: 2px; /* ИЗМЕНЕНО: минимальный визуальный сдвиг для треугольника */
    transition: margin 0.2s ease, transform 0.2s ease;
}

.btn-play-all.is-playing svg {
    margin-left: 0; /* Пауза строго по центру */
}

.btn-share-album {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-share-album:hover {
    color: #fff;
}

.mix-tracklist::-webkit-scrollbar { width: 6px; }
.mix-tracklist::-webkit-scrollbar-thumb { background: #E6A835; border-radius: 4px; }
.mix-tracklist::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}
.header-logo { flex: 1; display: flex; align-items: center; }
.header-logo h1 { margin: 0; display: flex; align-items: center; font-size: 24px; }
.header-subtitle { font-size: 14px; color: #aaa; font-weight: 400; margin-left: 10px; }
/* Обновляем контейнер поиска в хедере */
.search-container { 
    flex: 2; 
    display: flex; 
    justify-content: center; 
    align-items: center; /* ФИКС: Выравниваем кнопку и поиск строго по центру линии */
    gap: 0; /* Гап убираем, так как используем margin у кнопки для точности */
}

/* Обертка для инпута (чтобы иконка не улетала) */
.search-input-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-icon {
    position: absolute; 
    left: 14px; 
    top: 50%; 
    transform: translateY(-50%); 
    color: #91A0AA; 
    pointer-events: none;
}
.search-container input { max-width: 500px; width: 100%; }
.header-admin { flex: 1; display: flex; justify-content: flex-end; }
.header-admin a { font-size: 12px; color: #555; text-transform: uppercase; font-weight: bold; }


/* =========================================
   МОБИЛЬНАЯ АДАПТАЦИЯ (СТРИМИНГОВЫЙ UX)
   ========================================= */
@media (max-width: 768px) {
    /* Общие отступы, чтобы контент не залезал под плеер */
    body { padding-bottom: 90px !important; }

    /* --- ШАПКА И ПОИСК --- */
    .main-header { flex-wrap: wrap; padding: 15px !important; gap: 15px !important; }
    .header-admin { display: none !important; } 
    .search-container { flex: 0 0 100% !important; max-width: 100% !important; margin: 0 !important; }

/* --- ВКЛАДКИ (Современный мобильный дизайн) --- */
    .tabs-container {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding: 0 15px 5px 15px !important; /* Сильно уменьшили отступ снизу */
        margin-bottom: 5px !important;       /* Убили глобальный отступ, который давал пустоту */
        gap: 8px !important; 
        scrollbar-width: none;
    }
    
    .tabs-container::-webkit-scrollbar { 
        display: none; 
    }
    
    .tab-btn {
        background: rgba(255, 255, 255, 0.08) !important; /* Мягкий фон для неактивных */
        border-radius: 500px !important; /* Форма таблетки */
        padding: 8px 16px !important; /* Компактные отступы */
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
        font-size: 12px !important; /* Аккуратный шрифт */
        font-weight: 600 !important;
        letter-spacing: 0.5px !important;
        color: #91A0AA !important; /* Приглушенный текст */
        transition: all 0.2s ease !important;
    }
    
    .tab-btn.active {
        background: #E6A835 !important; /* Акцентный цвет */
        color: #071011 !important; /* Темный текст для контраста */
        border-color: #E6A835 !important;
    }

    /* --- СПИСОК ТРЕКОВ (КАРТОЧКИ) --- */
    .track-list-header { display: none !important; } /* Скрываем кривую шапку таблицы */
    .mobile-sort-container { display: block !important; padding: 10px 15px !important; }
    .custom-mobile-select {
        width: 100%; background: #0c181a; color: #fff; border: 1px solid #1a2c2f;
        padding: 12px; border-radius: 8px; font-size: 14px; outline: none;
    }

    .track-row { 
        display: flex !important; /* Отключаем Grid, включаем Flex для мобилок */
        padding: 10px 15px !important; 
        align-items: center !important; 
        border-bottom: 1px solid rgba(145, 160, 170, 0.1) !important;
    }
    .track-row:active { background: rgba(255, 255, 255, 0.05); transform: scale(0.98); }
    .track-row .col-date, .track-row .col-genre { display: none !important; }
    .track-row .col-time { width: auto !important; margin-left: auto !important; font-size: 12px !important; padding: 0 10px !important; }
    .track-row .col-expand { width: auto !important; margin-left: 0 !important; justify-content: flex-end !important; }
    .track-row .col-title { flex: 1; min-width: 0 !important; gap: 12px !important; }
    .track-cover-container { width: 48px !important; height: 48px !important; border-radius: 6px !important; flex-shrink: 0 !important; }
    .title-info { min-width: 0 !important; }
    .title-info .t-name { font-size: 15px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    
    /* --- АЛЬБОМЫ --- */
/* --- АЛЬБОМЫ (Мобильный вид списком) --- */
    .albums-grid { 
        display: flex !important; 
        flex-direction: column !important; 
        gap: 0 !important; /* Убираем отступы, так как будут полоски-разделители */
        padding: 0 !important;
    }

    .album-card {
        display: grid !important;
        /* Левая колонка 64px под обложку, правая занимает всё остальное место */
        grid-template-columns: 64px 1fr !important;
        grid-template-rows: auto auto !important;
        gap: 4px 15px !important; /* 4px между текстом, 15px между картинкой и текстом */
        align-items: center !important;
        padding: 12px 15px !important;
        background: transparent !important; /* Убираем фон карточки */
        border: none !important;
        border-bottom: 1px solid rgba(145, 160, 170, 0.1) !important; /* Тонкий разделитель снизу */
        border-radius: 0 !important;
        box-shadow: none !important; /* Убираем тень */
    }

    .album-card:active {
        background: rgba(255, 255, 255, 0.05) !important; /* Легкая подсветка при нажатии */
        transform: none !important; /* Отключаем прыжок карточки на мобилке */
    }

    .album-cover-wrapper {
        grid-column: 1;
        grid-row: 1 / 3; /* Картинка занимает обе строки по высоте */
        width: 64px !important;
        height: 64px !important;
        margin: 0 !important;
        border-radius: 4px !important;
        box-shadow: none !important;
    }

    .album-card-title {
        grid-column: 2;
        grid-row: 1;
        align-self: end;
        margin: 0 !important;
        font-size: 16px !important;
        text-align: left !important;
    }

    .album-card-stats {
        grid-column: 2;
        grid-row: 2;
        align-self: start;
        margin: 0 !important;
        font-size: 13px !important;
        text-align: left !important;
    }
/* ИСПРАВЛЕНИЯ ВЕРСТКИ АЛЬБОМА НА МОБИЛКЕ */
    #singleAlbumView {
        padding: 0 15px 120px 15px !important; /* Выравниваем общие отступы экрана */
    }
    .album-info-banner { 
        flex-direction: column !important; 
        align-items: flex-start !important; /* Прижимаем всё к левому краю */
        text-align: left !important; 
        margin-bottom: 20px !important; 
        gap: 15px !important; 
    }
.album-detail-cover { 
        width: 250px !important; /* Чуть увеличили для лучшего вида */
        height: 250px !important; 
        margin: 0 !important; 
        align-self: center !important; /* КЛЮЧЕВОЕ СВОЙСТВО: Центрирует только постер */
        flex-shrink: 0 !important;
    }

    /* Добавь этот класс сразу под постером, чтобы текст гарантированно ровнялся по левому краю */
    .album-detail-text {
        width: 100% !important;
    }
    .album-tag { 
        display: none !important; /* Скрываем слово "АЛЬБОМ" */
    }
    #albumDetailTitle { 
        font-size: 26px !important; 
        margin-bottom: 5px !important;
    }
    .album-actions-bar { 
        justify-content: flex-start !important; /* Кнопки Play и Share по левому краю */
        gap: 20px !important; 
        margin-bottom: 25px !important;
    }

    /* ЛОГИКА ОПИСАНИЯ: 2 СТРОКИ + РАЗВОРАЧИВАНИЕ */
    .album-description-box {
        max-height: none !important; /* Отключаем десктопный скролл */
        overflow: hidden !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2; /* Ограничиваем ровно до 2-х строк */
        -webkit-box-orient: vertical;
        padding-right: 0 !important;
        margin-top: 10px !important;
        cursor: pointer; /* Показываем, что текст кликабельный */
        -webkit-tap-highlight-color: transparent; /* Убираем синюю вспышку при тапе */
    }
    
    /* Класс, который JS добавит при клике */
    .album-description-box.expanded-mobile {
        -webkit-line-clamp: unset !important; /* Снимаем ограничение строк */
        display: block !important;
    }

    /* Очередь */
    .queue-panel {
        width: 100%; right: 0; bottom: 0; top: auto;
        border-radius: 20px 20px 0 0;
        height: 75vh; max-height: 75vh;
        transform: translateY(100%);
    }

/* =========================================
   КОМПАКТНЫЙ ПЛЕЕР (ПРИВЯЗАН К НИЗУ)
   ========================================= */
.bottom-player:not(.mobile-expanded) {
        position: fixed !important; 
        bottom: 0 !important; left: 0 !important; width: 100% !important; 
        
        /* ИСПРАВЛЕНИЕ: Автоматическая высота с "подушкой безопасности" снизу.
           Даже если браузер слегка обрежет низ, кнопки и текст останутся в безопасности. */
        padding: 10px 16px calc(16px + env(safe-area-inset-bottom)) 16px !important; 
        height: auto !important; 
        margin: 0 !important;
        
        display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: space-between !important;
        background: #071011 !important; border-top: 1px solid rgba(145, 160, 170, 0.1) !important;
        z-index: 1000 !important; box-sizing: border-box !important; cursor: pointer;
        
        /* ИСПРАВЛЕНИЕ: Возвращаем обычный translateY без 3D, чтобы плеер не "отрывался" от экрана при скролле */
        transform: translateY(120%) !important; visibility: hidden !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s !important;
        will-change: auto !important; /* Отключаем залипание слоя */
    }

    .bottom-player.visible:not(.mobile-expanded) {
        transform: translateY(0) !important; visibility: visible !important;
    }

    /* Левая часть: Постер, Текст и Кнопка Play */
    .bottom-player:not(.mobile-expanded) .player-left {
        display: flex !important; align-items: center !important; width: 100% !important; margin: 0 !important; 
        pointer-events: none; /* Пропускаем клик на сам плеер */
    }
    .bottom-player:not(.mobile-expanded) .album-art-small {
        width: 44px !important; height: 44px !important; margin-right: 12px !important; border-radius: 4px; flex-shrink: 0;
    }
    
    /* Обертка текста */
    .bottom-player:not(.mobile-expanded) .track-info-text {
        flex: 1; min-width: 0; padding-right: 15px; display: flex; flex-direction: column; justify-content: center;
    }
.bottom-player:not(.mobile-expanded) #playerTitle {
        font-size: 14px !important; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0 !important;
    }
    .bottom-player:not(.mobile-expanded) #playerArtist { display: none !important; }
    
    /* НОВОЕ: Жестко скрываем соцсети в свернутом мини-плеере */
    .bottom-player:not(.mobile-expanded) .player-socials-mobile { display: none !important; }

    /* НОВЫЕ ЭЛЕМЕНТЫ: Время и Кнопка */
    .mobile-time-display {
        display: block !important; font-size: 12px; margin-top: 2px; font-weight: 500; pointer-events: none;
    }
    .mobile-play-btn {
        display: flex !important; background: transparent !important; border: none !important; padding: 10px !important; margin-left: auto !important; 
        pointer-events: auto !important; /* Важно, чтобы кнопка нажималась */
    }

    /* Скрываем старый центр и правую часть в свернутом виде */
    .bottom-player:not(.mobile-expanded) .player-center,
    .bottom-player:not(.mobile-expanded) .player-right { display: none !important; }

/* ИСПРАВЛЕНИЕ 3: Переносим прогресс-бар на ВЕРХНЮЮ границу плеера */
.bottom-player:not(.mobile-expanded) .player-progress-bar {
    display: flex !important; 
    position: absolute !important; 
    top: -5px !important; /* Чуть выше, чтобы не мешать кнопкам */
    left: 0 !important;
    width: 100% !important; 
    height: 12px !important; /* Увеличим высоту для удобства попадания */
    padding: 0 !important; 
    margin: 0 !important; 
    z-index: 10 !important;
    pointer-events: none !important; /* КРИТИЧЕСКИ ВАЖНО: клики проходят сквозь контейнер */
}

/* Разрешаем клики только на самом ползунке */
#progressRange {
    pointer-events: auto !important;
    cursor: pointer;
}

/* Поднимаем кнопки управления выше всех слоев */
.p-controls {
    position: relative !important;
    z-index: 20 !important;
}

.control-btn {
    position: relative !important;
    z-index: 25 !important;
}
    .bottom-player:not(.mobile-expanded) .progress-range-wrapper { width: 100% !important; height: 2px !important; padding: 0 !important; margin: 0 !important; }
    .bottom-player:not(.mobile-expanded) input[type="range"]#progressRange {
        width: 100% !important; height: 2px !important; border-radius: 0 !important; background: #4d4d4d !important;
        margin: 0 !important; padding: 0 !important; -webkit-appearance: none !important; vertical-align: top;
    }
    .bottom-player:not(.mobile-expanded) #progressRange::-webkit-slider-thumb { display: none !important; -webkit-appearance: none; }

    
/* =========================================
       ПОЛНОЭКРАННЫЙ ПЛЕЕР (Дизайн Spotify)
       ========================================= */
       /* Анимации для плавного открытия/закрытия полноэкранного плеера */
    @keyframes slideUpFullscreen {
        0% { transform: translateY(100vh); }
        100% { transform: translateY(0); }
    }

    @keyframes slideDownFullscreen {
        0% { transform: translateY(0); }
        100% { transform: translateY(calc(100vh - 64px)); }
    }

    /* Применяем анимацию выезда при открытии */
    .bottom-player.mobile-expanded {
        animation: slideUpFullscreen 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) forwards !important;
    }

    /* Применяем анимацию скрытия при закрытии */
    .bottom-player.mobile-closing {
        animation: slideDownFullscreen 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
        pointer-events: none !important; /* Отключаем клики, пока плеер уезжает вниз */
    }
    .bottom-player.mobile-expanded {
        height: 100dvh !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important; 
        /* Изменен верхний отступ с 60px на 20px, чтобы шапка влезла */
        padding: 20px 30px 40px 30px !important; 
        background: #071011 !important; 
        z-index: 9999 !important;
        cursor: default;
    }

    /* --- Стили для новой шапки --- */
    .mobile-player-header {
        display: none !important; /* Скрыто в свернутом виде */
    }
    
    .mobile-expanded .mobile-player-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        margin-bottom: 30px !important; /* Отступ до обложки */
        flex: 0 0 auto;
    }

    .mobile-expanded .minimize-btn {
        background: none; border: none; padding: 0; display: flex; align-items: center; justify-content: flex-start; cursor: pointer;
    }
    
    .mobile-expanded .mobile-context-title {
        color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    }
    .close-player-btn {
        display: block !important; position: absolute; top: 20px; left: 20px;
        background: none; border: none; color: #fff; padding: 10px; z-index: 10;
    }
    
/* Верх: Обложка, Текст, Соцсети */
    .mobile-expanded .player-left { 
        width: 100%; flex-direction: column; text-align: left; 
        margin-top: 0; flex: 0 0 auto; pointer-events: auto; 
    }
    .mobile-expanded .album-art-small { 
        width: 100%; height: auto; aspect-ratio: 1/1; 
        margin: 0 0 20px 0 !important; /* Ровный отступ до текста */
        border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); 
    }
    .mobile-expanded .track-info-text { width: 100%; display: flex; flex-direction: column; align-items: flex-start; }
    
    /* ЖЕСТКО ФИКСИРУЕМ ВЫСОТУ НАЗВАНИЯ И СОЦСЕТЕЙ, ЧТОБЫ ВЕРСТКА НЕ ПРЫГАЛА */
    .mobile-expanded #playerTitle { 
        font-size: 24px !important; font-weight: 800 !important; margin-bottom: 0 !important; 
        color: #fff !important; width: 100% !important; display: block !important;
        white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; 
        height: 32px !important; line-height: 32px !important; /* СТРОГАЯ ВЫСОТА */
    }
    .mobile-expanded #playerArtist { display: none !important; }
    
    .mobile-expanded .player-socials-mobile { 
        display: flex !important; 
        gap: 15px !important; 
        margin-top: 12px !important; 
        margin-bottom: 35px !important; 
        width: 100% !important; 
        justify-content: flex-start !important; 
        align-items: center !important;
        height: 28px !important; /* ВЕРНУЛИ СТРОГУЮ ВЫСОТУ: бронируем место под иконки, чтобы кнопки плеера не прыгали */
    }
    .mobile-expanded .player-socials-mobile img { width: 28px !important; height: 28px !important; }
    
    /* Центр: Контролы и Прогресс-бар */
    .mobile-expanded .player-center { 
        width: 100% !important; display: flex !important; flex-direction: column !important; 
        flex: 1 !important; justify-content: flex-end !important; /* Жестко прижимаем всё к низу */
        margin-bottom: 0 !important;
    }

    .mobile-expanded .player-progress-bar { 
        display: flex !important; flex-direction: row !important; align-items: center !important; 
        width: 100% !important; margin-bottom: 25px !important; gap: 12px !important; order: 1 !important; 
    }
    /* Фиксируем ширину времени, чтобы прогресс-бар не дергался по горизонтали при цифрах вроде 0:00 и 10:00 */
    .mobile-expanded .player-progress-bar #currentTime { order: 1; font-size: 12px; font-weight: 500; min-width: 35px; text-align: left; }
    .mobile-expanded .player-progress-bar .progress-range-wrapper { order: 2; flex: 1; }
    .mobile-expanded .player-progress-bar #duration { order: 3; font-size: 12px; font-weight: 500; min-width: 35px; text-align: right; }
    
    .mobile-expanded .player-controls { 
        position: relative !important; width: 100% !important; justify-content: center !important; 
        gap: 25px !important; margin-bottom: 25px !important; /* Отступ до низа (кнопки очереди) */
        height: 64px !important; order: 2 !important; 
    }
    
    .mobile-expanded .player-controls #shuffleBtn {
        position: absolute !important; left: 0 !important; top: 50% !important; transform: translateY(-50%) !important;
    }

    .mobile-expanded .player-controls #playerShareBtn {
        display: flex !important; position: absolute !important; right: 0 !important; top: 50% !important;
        transform: translateY(-50%) !important; margin: 0 !important; color: #b3b3b3 !important; cursor: pointer !important;
    }
    .mobile-expanded .player-controls #playerShareBtn:active { color: #fff !important; }

    .mobile-expanded .player-controls .icon-btn { width: 32px !important; height: 32px !important; color: #fff !important; display: flex !important;}
    .mobile-expanded .player-controls .icon-btn.active { color: #E6A835 !important; }
    .mobile-expanded .player-controls .icon-btn svg { width: 26px !important; height: 26px !important; }
    
    .mobile-expanded .play-btn-circle { 
        width: 64px !important; height: 64px !important; margin: 0 !important; 
        background: #fff !important; border-radius: 50% !important;
        display: flex !important; align-items: center !important; justify-content: center !important;
    }
    .mobile-expanded .play-btn-circle svg#playIcon { width: 28px !important; height: 28px !important; fill: #000 !important; margin-left: 4px !important; }
    .mobile-expanded .play-btn-circle svg#pauseIcon { width: 28px !important; height: 28px !important; fill: #000 !important; margin-left: 0 !important; }
    
    /* НИЖНИЙ РЯД (Очередь) */
    .mobile-expanded .player-right { 
        width: 100% !important; display: flex !important; justify-content: flex-end !important; 
        align-items: center !important; margin-top: 0 !important; flex: 0 0 24px !important; 
        position: static !important; padding: 0 !important; height: 24px !important; /* Фиксируем низ */
    }
    
    .mobile-expanded #queueToggleBtn { display: flex !important; margin: 0 !important; color: #b3b3b3 !important; cursor: pointer !important; width: 24px !important; height: 24px !important; }
    .mobile-expanded #queueToggleBtn:active { color: #fff !important; }
    .mobile-expanded #queueToggleBtn svg { width: 24px !important; height: 24px !important; }
    .mobile-expanded .volume-box { display: none !important; }

    /* ОЧЕРЕДЬ */
    .queue-panel {
        position: fixed !important; bottom: 0 !important; right: 0 !important; left: 0 !important;
        width: 100% !important; height: 85vh !important; max-height: 85vh !important;
        border-radius: 20px 20px 0 0 !important; transform: translateY(100%);
        z-index: 10000 !important; background: #0c181a !important;
        display: flex !important; flex-direction: column !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    .queue-panel.open { transform: translateY(0) !important; }
    .q-btn { background: rgba(255,255,255,0.1); border: none; color: #fff; width: 28px; height: 28px; border-radius: 4px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.1s; }
    .q-btn:active { background: rgba(255,255,255,0.2); transform: scale(0.95); }

/* Скрываем элементы мини-плеера в развернутом виде */
    .bottom-player.mobile-expanded .mobile-time-display,
    .bottom-player.mobile-expanded .mobile-play-btn {
        display: none !important;
    }
}
/* =========================================
   ИСПРАВЛЕНИЕ ДЕТАЛЕЙ ТРЕКА НА МОБИЛКАХ
   ========================================= */
@media (max-width: 768px) {
    /* 1. Убираем левый отступ и УМЕНЬШАЕМ ВЕРХНИЙ отступ (с 15px до 5px), чтобы поднять контент выше */
    .track-details-box {
        padding: 5px 16px 20px 16px !important;
    }

    /* 2. Выравниваем ссылки на соц. сети по левому краю и контролируем отступ сверху */
    .details-content .platform-links {
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
        margin-top: 5px !important; /* Подтягиваем иконки еще чуть выше */
        margin-bottom: 20px !important;
    }

    /* 3. Выравниваем плашки сурсов и доп. жанров строго по левому краю */
    .sources-tags-container, 
    .genres-tags-container {
        justify-content: flex-start !important;
    }
    
    /* 4. Гарантируем, что заголовки "СУРСЫ" и "ДОП. ЖАНРЫ" тоже выровнены слева */
    .sources-title, 
    .genres-title {
        text-align: left !important;
        width: 100% !important;
    }
}
/* =========================================
   ИСПРАВЛЕНИЕ: СКРЫТИЕ МОБИЛЬНЫХ ЭЛЕМЕНТОВ НА ПК
   ========================================= */
@media (min-width: 769px) {
    .mobile-player-header,
    .mobile-time-display,
    .mobile-play-btn {
        display: none !important;
    }
}

/* =========================================
   СТИЛИ ДЛЯ МОБИЛЬНОЙ СОРТИРОВКИ (UX)
   ========================================= */
@media (max-width: 768px) {
    .mobile-sort-container {
        display: block !important;
        padding: 10px 16px !important;
    }

    .mobile-sort-trigger {
        display: flex;
        align-items: center;
        gap: 8px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(145, 160, 170, 0.2);
        color: #fff;
        padding: 8px 16px;
        border-radius: 500px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
    }

    /* Оверлей и Контент Bottom Sheet */
    .mobile-sheet-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 10000;
        display: none; /* Скрыто по умолчанию */
        align-items: flex-end;
    }

    .mobile-sheet-overlay.open { display: flex; }

    .mobile-sheet-content {
        width: 100%;
        background: #0c181a;
        border-radius: 20px 20px 0 0;
        padding: 16px 0 40px 0;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-top: 1px solid rgba(230, 168, 53, 0.3);
    }

    .mobile-sheet-overlay.open .mobile-sheet-content { transform: translateY(0); }

    .mobile-sheet-header { text-align: center; margin-bottom: 10px; }
    .sheet-handle { width: 40px; height: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; margin: 0 auto 15px auto; }
    .mobile-sheet-header h3 { margin: 0; font-size: 16px; color: #E6A835; text-transform: uppercase; letter-spacing: 1px; }

    .mobile-sheet-list { display: flex; flex-direction: column; }

.sort-option {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 18px 24px;
        font-size: 15px;
        color: #91A0AA;
        border-bottom: 1px solid rgba(255,255,255,0.03);
        cursor: pointer;
        transition: background 0.2s;
    }

.sort-option {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 18px 24px;
        font-size: 15px;
        color: #91A0AA;
        border-bottom: 1px solid rgba(255,255,255,0.03);
        cursor: pointer;
        transition: background 0.2s;
    }

    .sort-option:active { background: rgba(255,255,255,0.05); }

    .sort-option.active {
        color: #E6A835;
        font-weight: 700;
        background: rgba(230, 168, 53, 0.05);
        border-left: 4px solid #E6A835;
    }

    .sort-arrow-icon {
        opacity: 0; 
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s;
    }

    .sort-option.active .sort-arrow-icon { opacity: 1; }
    .sort-option.active.desc .sort-arrow-icon { transform: rotate(180deg); }
    .sort-option.active.asc .sort-arrow-icon { transform: rotate(0deg); }
    .sheet-close-btn {
        width: calc(100% - 32px);
        margin: 20px 16px 0 16px;
        padding: 14px;
        background: #1a2c2f;
        border: none;
        border-radius: 12px;
        color: #fff;
        font-weight: 700;
    }
}

/* =========================================
   ИСПРАВЛЕНИЕ: СКРЫТИЕ МОБИЛЬНЫХ ЭЛЕМЕНТОВ НА ПК
   ========================================= */
@media (min-width: 769px) {
    .mobile-player-header,
    .mobile-time-display,
    .mobile-play-btn,
    .mobile-sort-container,
    .mobile-sheet-overlay,
    .album-sort-desktop { /* <-- Добавили этот класс сюда */
        display: none !important;
    }
}

/* =========================================
   ПРИЖИМАЕМ СПИСКИ К ЛЕВОМУ КРАЮ 
   ========================================= */
@media (max-width: 768px) {
    /* 1. Убираем лишние 20px у главных контейнеров */
    #trackList, 
    #albumsView {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* 2. Для треков внутри открытого альбома компенсируем отступ родителя отрицательным маржином */
    #albumTrackList {
        margin-left: -20px !important;
        margin-right: -20px !important;
    }

    /* 3. Выравниваем кнопку "Сортировка" под новую сетку в 15px */
    .mobile-sort-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* --- ЭФФЕКТЫ ЗАГРУЗКИ (ПРЕМИУМ) --- */

/* Убираем блюр, оставляем только мягкое появление */
@keyframes smoothReveal {
    0% { opacity: 0; transform: translateY(5px); }
    100% { opacity: 1; transform: translateY(0); }
}

.cover-loaded {
    animation: smoothReveal 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Скелетон-анимация (Мерцание) */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-item {
    background: linear-gradient(90deg, #0c181a 25%, #162629 50%, #0c181a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: 4px;
}

/* Скелетон для строки трека */
.track-skeleton {
    display: grid !important;
    grid-template-columns: 115px 1fr 150px 60px 60px !important;
    gap: 16px !important;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(145, 160, 170, 0.05);
    align-items: center;
}

.skeleton-text { height: 14px; width: 80%; }
.skeleton-rect { height: 44px; width: 44px; }

/* Скелетон для карточки альбома */
.album-skeleton {
    height: 280px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.skeleton-album-cover { width: 100%; aspect-ratio: 1/1; border-radius: 8px; }

/* Адаптив для скелетонов треков */
@media (max-width: 768px) {
    .track-skeleton {
        grid-template-columns: 48px 1fr 40px !important;
    }
    .skeleton-hide-mobile { display: none !important; }
}

/* Выравнивание баннера по нижнему краю (как в Spotify) */
.album-info-banner { 
    display: flex; gap: 30px; align-items: flex-end; margin-bottom: 24px; 
}

/* ФИКС ПОСТЕРА: flex-shrink: 0 не даст ему сжаться! */
.album-detail-cover {
    width: 232px; height: 232px; border-radius: 8px; background: #282828;
    background-size: cover; background-position: center; box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    flex-shrink: 0; 
}

/* Очищаем описание от "стекла", делаем его органичной частью текста */
.album-description-box {
    margin-top: 15px; font-size: 14px; line-height: 1.5; color: #b3b3b3;
    white-space: pre-wrap; max-width: 800px; display: none;
    max-height: 120px; overflow-y: auto; padding-right: 10px;
    background: transparent; backdrop-filter: none; border: none; /* Убрали фон */
}
/* Незаметный красивый скроллбар для длинного текста */
.album-description-box::-webkit-scrollbar { width: 4px; }
.album-description-box::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }
.album-description-box::-webkit-scrollbar-track { background: transparent; }

/* НОВАЯ ПАНЕЛЬ С КНОПКАМИ */
.album-actions-bar {
    display: flex; align-items: center; gap: 24px; margin-bottom: 32px;
}

/* Огромная акцентная кнопка Play (как в Spotify) */
.btn-play-all {
    display: flex; align-items: center; justify-content: center;
    background-color: #E6A835; color: #071011 !important; /* Желтая тема */
    border: none; border-radius: 50%; width: 56px; height: 56px;
    cursor: pointer; transition: transform 0.2s, background-color 0.2s;
}
.btn-play-all:hover { transform: scale(1.05); background-color: #f4b94a; }
.btn-play-all svg { width: 24px; height: 24px; margin-left: 4px; transition: margin 0.2s; }
.btn-play-all.is-playing svg { margin-left: 0; } /* Пауза ровно по центру */

/* Иконки Share и Shuffle */
.btn-action-icon {
    background: transparent; border: none; color: #91A0AA;
    cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center;
    transition: color 0.2s, transform 0.2s;
}
.btn-action-icon:hover { color: #fff; transform: scale(1.05); }
.btn-action-icon svg { width: 32px; height: 32px; }

@media (max-width: 768px) {
    /* ... */
    .album-actions-bar { justify-content: center; width: 100%; } /* Изменен класс */
    
}

@media (max-width: 768px) {
    /* ... ваши остальные стили ... */
    
    .album-sort-desktop { 
        display: none !important; 
    }
}

/* =========================================
   ЖЕЛЕЗОБЕТОННЫЙ ФИКС КНОПОК PLAY 
   ========================================= */
#playPauseBtn, 
#mobilePlayBtn, 
.mobile-play-btn {
    position: relative !important;
    z-index: 9999 !important; /* Поднимаем выше абсолютно всех слоев */
    pointer-events: auto !important; /* Разрешаем клик всегда */
}

/* ЗАПРЕЩАЕМ браузеру считать клик по самой векторной иконке (SVG) отдельным событием.
   Клик всегда будет попадать строго в кнопку, запуская JavaScript */
#playPauseBtn *, 
#mobilePlayBtn *, 
.mobile-play-btn * {
    pointer-events: none !important;
}

/* Стили для кликабельных таймкодов */
.timecode-link {
    color: #E6A835 !important; /* Наш золотой акцент */
    text-decoration: none;
    font-weight: 600;
    padding: 0 2px;
    border-radius: 2px;
    transition: background 0.2s, color 0.2s;
}

.timecode-link:hover {
    background: rgba(230, 168, 53, 0.2);
    text-decoration: underline;
}

/* Фикс для контейнера треклиста, чтобы ссылки не сливались */
.mix-tracklist {
    white-space: pre-wrap; 
    font-family: 'JetBrains Mono', 'Courier New', monospace; /* Твой любимый тех-стиль */
    cursor: default;
}

/* Скрытие сурсов и соц. сетей в плеере на ПК */
@media (min-width: 769px) {
    #playerArtist, 
    #playerSocials {
        display: none !important;
    }

    /* Опционально: центрируем название трека вертикально, 
       так как место под ним освободилось */
    .track-info-text {
        justify-content: center !important;
    }
    
    #playerTitle {
        font-size: 15px !important; /* Немного увеличим для баланса */
        margin-bottom: 0 !important;
    }
}

/* Обновленный контейнер для сурсов в плеере */
.player-sources-scroll-area {
    display: flex;
    gap: 6px;
    width: 100%;
    max-width: 85%; /* Оставляем 15% буферной зоны до центра плеера */
    overflow: hidden; /* Полностью скрываем ручной скролл */
    white-space: nowrap;
    margin-top: 4px;
    padding-bottom: 2px;
    
    /* Элегантное затухание на правом краю (чтобы теги не обрывались резко) */
    -webkit-mask-image: linear-gradient(to right, black 75%, transparent 100%);
    mask-image: linear-gradient(to right, black 75%, transparent 100%);
}

/* Скрываем сам ползунок скроллбара (он больше не нужен) */
.player-sources-scroll-area::-webkit-scrollbar {
    display: none;
}

.player-sources-scroll-area .source-tag {
    font-size: 10px !important;
    padding: 3px 10px !important;
    flex-shrink: 0;
    border-color: rgba(145, 160, 170, 0.3);
}

@media (min-width: 769px) {
    #playerSourcesList:empty {
        display: none;
    }
}

/* =========================================
   ОВЕРЛЕЙ МОДАЛЬНОГО ОКНА ОБЛОЖКИ (БРОНЕБОЙНЫЙ ФИКС)
   ========================================= */
/* Указываем, что обложки кликабельны */
#playerArt, 
.album-detail-cover {
    cursor: zoom-in !important;
}

/* Модальное окно и курсор выхода */
.image-modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.9) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 2147483647 !important; /* Максимальный приоритет */
    
    /* Скрыто по умолчанию */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    
    cursor: zoom-out !important; /* Курсор уменьшения при наведении на фон */
}

.image-modal-overlay.open {
    opacity: 1 !important;
    visibility: visible !important;
}

.full-cover-image {
    max-height: 85vh !important;
    max-width: 90vw !important;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    pointer-events: none; /* Клик будет проходить сквозь картинку на подложку для закрытия */
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.image-modal-overlay.open .full-cover-image {
    transform: scale(1);
}
/* Отключаем курсор "лупы" для обложки плеера на мобильных устройствах */
@media (max-width: 768px) {
    #playerArt {
        cursor: default !important;
    }
}

/* Яркая плашка эксклюзива в списке */
.exclusive-badge {
    background: #E6A835;
    color: #000;
    font-size: 9px;
    font-weight: 900;
    height: 16px; /* Фиксированная высота — залог стабильности */
    padding: 0 6px; 
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: none; 
    flex-shrink: 0;
    display: inline-flex; /* Используем flex для центрирования содержимого */
    align-items: center; 
    justify-content: center;
    width: fit-content;
    line-height: 1;
    margin-bottom: 4px;
    transform: translateZ(0); /* Включаем аппаратное ускорение для четкости шрифта */
}

/* Модификатор для маленькой кнопки Boosty в списке треков */
.list-boosty-btn {
    margin-top: 0 !important; 
    height: 32px !important;
    padding: 0 16px !important;
    font-size: 12px !important;
}

/* Кнопка Boosty в плеере */
.boosty-support-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f15f2c;
    color: #fff !important;
    padding: 12px 20px; 
    border-radius: 500px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    line-height: 1;
    transition: all 0.3s ease; /* Сделали транзицию мягче */
    border: none;
    margin: 15px 0 0 0;
    
    /* ИСПРАВЛЕННОЕ СВЕЧЕНИЕ: убрали смещение 4px, увеличили радиус размытия */
    box-shadow: 0 0 20px rgba(241, 95, 44, 0.25);
    
    max-width: calc(100% - 10px); 
    width: fit-content;
    transform-origin: center center;
}

.boosty-support-btn:hover, .boosty-support-btn:active {
    background: #ff4600;
    transform: scale(1.02) translateY(-1px); 
    
    /* ИСПРАВЛЕННОЕ СВЕЧЕНИЕ ПРИ НАВЕДЕНИИ: более глубокий и мягкий ореол */
    box-shadow: 0 0 30px rgba(241, 95, 44, 0.45);
}

.boosty-support-btn svg {
    fill: currentColor;
    /* Слегка компенсируем иконку, чтобы она стояла вровень с заглавным текстом */
    transform: translateY(-1px); 
}

/* Глобальный фикс для правильного расчета размеров */
* {
    box-sizing: border-box;
}

/* Новая строка в плеере для миксов — ИСПРАВЛЕНО (добавлено многоточие) */
#nowPlayingContainer {
    display: none; 
    font-size: 11px;
    color: #91A0AA;
    margin-top: 2px;
    
    /* Эти три строки отвечают за многоточие */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    
    width: 100%; /* Позволяет контейнеру занимать всю доступную ширину */
    max-width: calc(100vw - 150px); /* Ограничение, чтобы не вылезать за границы на ПК */
}

#nowPlayingText {
    color: #E6A835;
    font-weight: 600;
}

/* На мобилках в развернутом плеере */
@media (max-width: 768px) {
    .mobile-expanded #nowPlayingContainer {
        display: block;
        font-size: 13px;
        margin-top: 8px;
        margin-bottom: 5px;
        
        /* Гарантируем многоточие в развернутом виде */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        
        max-width: 100%; /* В развернутом плеере используем всю ширину экрана */
    }
    
    /* В свернутом мини-плеере */
    .bottom-player:not(.mobile-expanded) #nowPlayingContainer {
        max-width: calc(100vw - 120px); /* Оставляем место для кнопки Play */
    }
}



/* Обновляем стиль кнопки Liquid Glass */
.feedback-pulse-btn {
    display: none; /* По умолчанию скрыта для мобилок */
    padding: 10px 24px;
    background: rgba(230, 168, 53, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(230, 168, 53, 0.3);
    border-radius: 500px;
    color: #E6A835;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse-gold 2s infinite;
    flex-shrink: 0; /* ФИКС: Кнопка не будет сплющиваться, если поиск широкий */
    white-space: nowrap; /* ФИКС: Текст всегда в одну строку */
}

@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(230, 168, 53, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(230, 168, 53, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 168, 53, 0); }
}

/* Модификатор для ПК версии */
@media (min-width: 769px) {
    .feedback-pulse-btn { 
        display: block; 
        margin-left: 32px; /* ФИКС: Тот самый "пробел" (зазор) справа от поиска */
    }
}
/* --- FEEDBACK MODAL (ADMIN & USER) --- */
.feedback-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,0.85);
    display: none; align-items: center; justify-content: center; z-index: 2000;
}
.feedback-modal.open { display: flex; animation: smoothReveal 0.3s forwards; }

.feedback-card-glass {
    background: rgba(12, 24, 26, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 30px; border-radius: 20px; width: 450px; max-width: 90%;
}

.feedback-list-admin {
    display: flex; flex-direction: column; gap: 10px;
    max-height: 400px; overflow-y: auto; margin-top: 20px;
}

.feedback-item {
    background: rgba(255,255,255,0.03); padding: 15px; border-radius: 10px;
    cursor: pointer; transition: background 0.2s; border: 1px solid transparent;
}
.feedback-item:hover { background: rgba(255,255,255,0.08); border-color: #E6A835; }


/* Стили для админских отзывов */
.feedback-text-content {
    font-size: 13px;
    margin-top: 5px;
    color: #ccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}

.expanded-feedback .feedback-text-content {
    white-space: normal; /* Разворачиваем текст */
    overflow: visible;
    color: #fff;
    background: rgba(0,0,0,0.2);
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
}

/* =========================================
   ФИКС РАССИНХРОНА СЕТКИ И ЗАГОЛОВКОВ
   ========================================= */
/* 1. Убираем боковые отступы у родителя, чтобы шапка и список были одной ширины */
#trackList {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 2. Для страницы открытого альбома выравниваем треки ровно по краю баннера */
#albumTrackList {
    margin-left: -16px !important;
    margin-right: -16px !important;
}

/* =========================================
   ИМПОРТ ШРИФТОВ
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=JetBrains+Mono:wght@400;700&display=swap');

/* =========================================
   ОКНО БЕТА-ТЕСТИРОВАНИЯ
   ========================================= */
#betaTestOverlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 16, 17, 0.3);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2147483647;
    font-family: 'Inter', sans-serif;
}

.beta-card-glass {
    background: rgba(12, 24, 26, 0.7);
    border: 1px solid rgba(230, 168, 53, 0.3);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), inset 0 0 20px rgba(255,255,255,0.02);
    transition: transform 0.1s ease;
}

.beta-card-glass h2 {
    color: #fff;
    margin-top: 0;
    font-weight: 800;
    font-size: 28px;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.beta-card-glass p {
    color: #91A0AA;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 25px;
    font-weight: 600;
}

.beta-card-glass a {
    color: #E6A835; 
    text-decoration: none;
    font-weight: 800;
    transition: color 0.2s, text-shadow 0.2s;
}

.beta-card-glass a:hover {
    color: #f4b94a;
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(230, 168, 53, 0.5);
}

.beta-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(145, 160, 170, 0.3);
    border-radius: 8px;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px;
    box-sizing: border-box;
    margin-bottom: 20px;
    outline: none;
    text-align: center;
    letter-spacing: 2px;
    transition: border-color 0.2s;
}

.beta-input:focus {
    border-color: #E6A835;
}

.beta-btn {
    background: #E6A835;
    color: #071011;
    border: none;
    padding: 14px 30px;
    border-radius: 500px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    width: 100%;
    letter-spacing: 1px;
}

.beta-btn:hover {
    transform: scale(1.02);
    background: #f4b94a;
}

#betaError {
    color: #CF0000;
    font-size: 12px;
    margin-top: -10px;
    margin-bottom: 15px;
    display: none;
    font-weight: 600;
}

/* =========================================
   БЕГУЩАЯ СТРОКА (ОБНОВЛЕННЫЕ ЦВЕТА)
   ========================================= */
.marquee-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(7, 16, 17, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(230, 168, 53, 0.2);
    padding: 10px 0;
    overflow: hidden;
    z-index: 999;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    letter-spacing: 0.5px;
}

.marquee-inner {
    display: inline-block;
    padding-left: 100%;
    animation: marquee-animation 30s linear infinite; 
    color: #91A0AA; /* Цвет никнеймов по умолчанию */
    font-weight: 600;
}

@keyframes marquee-animation {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* Разделитель (двойной слеш) */
.tier-separator { color: #333; margin: 0 10px; font-weight: 400; }

/* Цвета для всего блока (и для TIER, и для никнеймов) */
.t4 { color: #E6A835; text-shadow: 0 0 10px rgba(230, 168, 53, 0.3); }
.t3 { color: #FF4D4D; }
.t2 { color: #4D94FF; }
.t1 { color: #FFFFFF; }

/* Делаем жирными строго сами надписи "TIER X" внутри цветных блоков */
.t4 strong, .t3 strong, .t2 strong, .t1 strong {
    font-weight: 800;
}