/* ДОПОЛНИТЕЛЬНЫЕ ИСПРАВЛЕНИЯ */

.artist-link {
    cursor: pointer;
    color: var(--text-dim);
    transition: 0.2s;
}

.artist-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Стили для поиска */
.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #222;
    padding-bottom: 15px;
}

.close-search {
    background: #222;
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    transition: 0.3s;
}

.close-search:hover {
    background: var(--red);
    transform: rotate(90deg);
}

/* Плавный скролл для всей страницы */
* {
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

/* Сетка для карточек */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
    padding: 20px 0 40px;
}

/* Сама карточка */
.album-card {
    background: var(--bg-card);
    padding: 16px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-sizing: border-box;
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 204, 0, 0.15);
    background: var(--bg-card);
}

/* Контейнер обложки */
.album-cover {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 20px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    align-self: center;
}

/* Инфо-блок под картинкой */
.album-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.album-info b {
    color: #fff;
    font-size: 15px;
    line-height: 1.3;
    white-space: normal;
    word-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.album-info small {
    display: block;
    color: #b3b3b3;
    font-size: 13px;
    margin: 0;
}

/* Прослушивания */
.plays-count {
    display: block;
    color: #f0ca1d;
    font-size: 12px;
    font-weight: bold;
    margin-top: 2px;
}

/* Оверлей (📂) */
.album-play-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.album-card:hover .album-play-overlay {
    opacity: 1;
}

.track-active {
    background: rgba(240, 202, 29, 0.1);
}
.track-active b, .track-active .track-index {
    color: #f0ca1d !important;
}

/* Контейнер для прослушиваний и времени */
.track-meta-content {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

/* Сами прослушивания */
.plays-inline {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 500;
}

/* Иконка плей */
.play-icon-tiny {
    font-size: 10px;
    opacity: 0.6;
}

/* Время трека */
.track-duration {
    color: var(--text-dim);
    font-size: 13px;
    font-family: 'Segoe UI', sans-serif;
    min-width: 40px;
    text-align: right;
}

/* Эффект при наведении на строку */
tr:hover .plays-inline,
tr:hover .track-duration {
    color: #fff;
}

/* Мини-артист под названием */
.track-artist-mini {
    display: block;
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 2px;
}

/* Поиск */
.search-box {
    position: relative;
    margin-bottom: 30px;
}

#searchInput {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 15px 12px 40px;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

#searchInput:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.2);
}

.search-box::before {
    content: "🔍";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.5;
}

/* Базовый стиль кнопок меню */
.sidebar nav button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sidebar nav button:hover {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar nav button.active {
    background-color: #f0ca1d;
    color: #000 !important;
    transform: scale(1.02);
}

.sidebar nav button:active {
    transform: scale(0.95);
}

/* Базовый стиль кнопок в боковом меню */
.sidebar button, .nav-item {
    position: relative;
    border: none;
    background: transparent;
    color: #aaa;
    padding: 12px 20px;
    margin: 4px 10px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar button:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding-left: 25px;
}

.sidebar button.active, .nav-item.active {
    background-color: #f0ca1d !important;
    color: #000 !important;
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(240, 202, 29, 0.3);
}

.sidebar button.active i, .sidebar button.active span {
    color: #000;
}

.shuffle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
}

.shuffle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #f0ca1d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(240, 202, 29, 0.2);
}

.shuffle-btn:active {
    transform: translateY(0);
}

.shuffle-btn.active {
    background: #f0ca1d;
    color: black;
    border-color: #f0ca1d;
}

/* Добавь в styles.css или components.css */

/* Обычное состояние (серый) */
.icon-btn.heart,
.expanded-icon-btn.heart {
    color: var(--text-dim) !important; /* или #b3b3b3 */
    transition: color 0.2s ease;
}

.icon-btn.heart:hover,
.expanded-icon-btn.heart:hover {
    color: #ff6b6b !important; /* или светло-красный при наведении */
}

/* Активное состояние (красный) */
/* НА ЭТО: */
.icon-btn.heart,
.expanded-icon-btn.heart {
    color: var(--text-dim) !important;
}

.icon-btn.heart.active,
.expanded-icon-btn.heart.active {
    color: #ff4b4b !important;
}

/* То же для дизлайка */
.icon-btn.dislike,
.expanded-icon-btn.dislike {
    color: var(--text-dim) !important;
}

.icon-btn.dislike:hover,
.expanded-icon-btn.dislike:hover {
    color: #ff6b6b !important;
}

.icon-btn.dislike.active,
.expanded-icon-btn.dislike.active {
    color: #ff4b4b !important;
}

.icon-btn.dislike.active,
.expanded-icon-btn.dislike.active {
    color: #ff4b4b !important;
}

/* Анимация для кнопок */
.icon-btn {
    transition: all 0.2s ease;
    cursor: pointer;
}

.icon-btn:hover {
    transform: scale(1.1);
}

.icon-btn.heart:hover {
    color: #ff6b6b;
}active

.icon-btn.dislike:hover {
    color: #ff6b6b;
}

/* Стили для активного трека в таблице */
tr.track-active {
    background: rgba(255, 204, 0, 0.1) !important;
    border-left: 3px solid var(--accent) !important;
}

tr.track-active b,
tr.track-active .track-index {
    color: var(--accent) !important;
}

/* Убираем outline у всех карточек */
.album-card, .artist-card {
    outline: none !important;
}

.album-card:hover, .artist-card:hover,
.album-card:focus, .artist-card:focus,
.album-card:active, .artist-card:active {
    outline: none !important;
}


/* ПРИНУДИТЕЛЬНЫЙ СБРОС ДЛЯ КНОПОК ЛАЙКА */
.icon-btn.heart {
    color: #b3b3b3 !important; /* серый */
}

.icon-btn.heart.active {
    color: #ff4b4b !important; /* красный */
}

.icon-btn.heart:hover {
    color: #ff6b6b !important; /* светло-красный при наведении */
}

/* Для расширенного плеера */
.expanded-icon-btn.heart {
    color: #b3b3b3 !important;
}

.expanded-icon-btn.heart.active {
    color: #ff4b4b !important;
}

.expanded-icon-btn.heart:hover {
    color: #ff6b6b !important;
}


/* ========== ЖЕСТКИЙ СБРОС ДЛЯ КНОПОК ЛАЙКА ========== */
/* Эти правила перебьют все остальные */

/* Обычное состояние - СЕРЫЙ */
#likeBtn.icon-btn.heart,
#expandedLikeBtn.expanded-icon-btn.heart,
.icon-btn.heart,
.expanded-icon-btn.heart {
    color: #b3b3b3 !important;
    background: transparent !important;
    -webkit-text-fill-color: #b3b3b3 !important;
}

/* Активное состояние - КРАСНЫЙ */
#likeBtn.icon-btn.heart.active,
#expandedLikeBtn.expanded-icon-btn.heart.active,
.icon-btn.heart.active,
.expanded-icon-btn.heart.active {
    color: #ff4b4b !important;
    -webkit-text-fill-color: #ff4b4b !important;
}

/* Наведение - светло-красный */
#likeBtn.icon-btn.heart:hover,
#expandedLikeBtn.expanded-icon-btn.heart:hover,
.icon-btn.heart:hover,
.expanded-icon-btn.heart:hover {
    color: #ff6b6b !important;
}

/* Для дизлайка аналогично */
#dislikeBtn.icon-btn.dislike,
#expandedDislikeBtn.expanded-icon-btn.dislike,
.icon-btn.dislike,
.expanded-icon-btn.dislike {
    color: #b3b3b3 !important;
}

#dislikeBtn.icon-btn.dislike.active,
#expandedDislikeBtn.expanded-icon-btn.dislike.active,
.icon-btn.dislike.active,
.expanded-icon-btn.dislike.active {
    color: #ff4b4b !important;
}

#dislikeBtn.icon-btn.dislike:hover,
#expandedDislikeBtn.expanded-icon-btn.dislike:hover,
.icon-btn.dislike:hover,
.expanded-icon-btn.dislike:hover {
    color: #ff6b6b !important;
}


/* УЛЬТРА-СБРОС */
button#likeBtn.icon-btn.heart,
button#expandedLikeBtn.expanded-icon-btn.heart {
    color: #b3b3b3 !important;
}

button#likeBtn.icon-btn.heart.active,
button#expandedLikeBtn.expanded-icon-btn.heart.active {
    color: #ff4b4b !important;
}

button#likeBtn.icon-btn.heart:hover,
button#expandedLikeBtn.expanded-icon-btn.heart:hover {
    color: #ff6b6b !important;
}


/* Активная кнопка shuffle */
.icon-btn#shuffleBtn.active,
.expanded-icon-btn#expandedShuffleBtn.active {
    color: var(--accent) !important;
    transform: scale(1.1);
}

/* Анимация при переключении */
.icon-btn#shuffleBtn .shuffle-icon,
.expanded-icon-btn#expandedShuffleBtn .shuffle-icon {
    transition: transform 0.3s ease;
    display: inline-block;
}

.icon-btn#shuffleBtn.active .shuffle-icon,
.expanded-icon-btn#expandedShuffleBtn.active .shuffle-icon {
    transform: rotate(180deg);
}