/* ===================================== */
/*              BUTTONS                  */
/* ===================================== */

/* ОСНОВНЫЕ КНОПКИ */
button, .icon-btn, .play-btn, .shuffle-btn, .show-all-btn, .play-all-btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

button:active, .icon-btn:active, .play-btn:active {
    animation: buttonClick 0.2s ease;
}

/* КНОПКИ ПЛЕЕРА */
.icon-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s;
}

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

.icon-btn.active-shuffle { 
    color: var(--accent); 
}

/* КНОПКА ВОСПРОИЗВЕДЕНИЯ */
.play-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.2s;
}

.play-btn:hover {
    transform: scale(1.05);
    background: var(--accent);
}

/* КНОПКИ НА СТРАНИЦАХ */
.play-all-btn {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.3s;
}

.play-all-btn:hover { 
    transform: scale(1.05); 
    filter: brightness(1.1); 
    animation: buttonPulse 1.5s infinite;
}

.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);
    animation: bounce 0.5s ease infinite;
}

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

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

.show-all-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid #333;
    color: var(--text-dim);
    padding: 6px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: 0.3s;
}

.show-all-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

/* КНОПКИ ЛАЙКОВ */
.icon-btn.heart,
.expanded-icon-btn.heart {
    color: var(--text-dim) !important;
    transition: color 0.2s ease;
}

.icon-btn.heart:hover,
.expanded-icon-btn.heart:hover {
    color: #ff6b6b !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;
    animation: shake 0.4s ease;
}

/* ЖЕСТКИЙ СБРОС ДЛЯ КНОПОК ЛАЙКА */
#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;
}

/* КНОПКА SHUFFLE */
.icon-btn#shuffleBtn.active,
.expanded-icon-btn#expandedShuffleBtn.active {
    color: var(--accent) !important;
    transform: scale(1.1);
    animation: spin 0.5s ease;
}

.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);
}

/* КНОПКА ТРОЕТОЧИЯ */
.track-menu-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    margin: 0;
    opacity: 0.7;
}

tr:hover .track-menu-btn {
    opacity: 1;
    color: white;
}

.track-menu-btn:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.1);
}

/* КНОПКА НАЗАД */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,215,0,0.2);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 30px;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
    width: fit-content;
}

.back-button:hover {
    background: rgba(255,215,0,0.1);
    border-color: var(--accent);
    transform: translateX(-5px);
}

.back-icon {
    font-size: 18px;
}
/* Единый стиль SVG-иконок */
.ui-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    line-height: 0;
    vertical-align: -0.125em;
    flex: 0 0 auto;
}

.ui-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

button .ui-icon,
.nav-item .ui-icon {
    font-size: 18px;
}

.title-icon .ui-icon,
.section-title .ui-icon {
    font-size: 22px;
    color: var(--accent);
}

.unified-title .ui-icon,
.starred-title .ui-icon,
.history-title .ui-icon,
.disliked-title .ui-icon,
.page-title .ui-icon,
.playlist-title .ui-icon {
    font-size: 30px;
    color: #ffd700;
    margin-right: 10px;
    vertical-align: -0.08em;
}

.unified-empty-icon .ui-icon,
.empty-icon .ui-icon {
    width: 56px;
    height: 56px;
    color: var(--accent);
}

.stat-icon .ui-icon {
    font-size: 15px;
    opacity: 0.8;
}

.playlist-badge .ui-icon {
    font-size: 13px;
    margin-right: 3px;
}
