/* ===================================== */
/*           ОСНОВНЫЕ АНИМАЦИИ           */
/* ===================================== */

/* Появление элементов */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* ===================================== */
/*        АНИМАЦИИ ДЛЯ КАРТОЧЕК         */
/* ===================================== */

@keyframes cardHover {
    0% {
        transform: translateY(0);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    100% {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(255, 204, 0, 0.15);
    }
}

@keyframes cardPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.01);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes cardGlow {
    0% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 204, 0, 0.2);
    }
    100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* ===================================== */
/*         АНИМАЦИИ ДЛЯ КНОПОК          */
/* ===================================== */

@keyframes buttonPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 204, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 204, 0, 0);
    }
}

@keyframes buttonClick {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes buttonWobble {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(3deg);
    }
    75% {
        transform: rotate(-3deg);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.3);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.3);
    }
    70% {
        transform: scale(1);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-3px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(3px);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* ===================================== */
/*        АНИМАЦИИ ДЛЯ ПЛЕЕРА           */
/* ===================================== */

@keyframes equalizer {
    0% {
        height: 3px;
    }
    50% {
        height: 15px;
    }
    100% {
        height: 3px;
    }
}

@keyframes progressGlow {
    0% {
        box-shadow: 0 0 2px #ffcc00;
    }
    50% {
        box-shadow: 0 0 10px #ffcc00;
    }
    100% {
        box-shadow: 0 0 2px #ffcc00;
    }
}

@keyframes volumeGlow {
    0% {
        background-color: #ffcc00;
    }
    50% {
        background-color: #fff;
    }
    100% {
        background-color: #ffcc00;
    }
}

@keyframes wave {
    0% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(1.5);
    }
    100% {
        transform: scaleY(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ===================================== */
/*        АНИМАЦИИ ДЛЯ ПОИСКА            */
/* ===================================== */

@keyframes searchPulse {
    0% {
        border-color: rgba(255, 204, 0, 0.2);
        box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.2);
    }
    50% {
        border-color: rgba(255, 204, 0, 0.8);
        box-shadow: 0 0 15px 0 rgba(255, 204, 0, 0.4);
    }
    100% {
        border-color: rgba(255, 204, 0, 0.2);
        box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.2);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-100%);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100%;
        opacity: 1;
    }
}

/* ===================================== */
/*       АНИМАЦИИ ДЛЯ ГРАДИЕНТОВ        */
/* ===================================== */

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes gradientShift {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* ===================================== */
/*          АНИМАЦИИ ЗАГРУЗКИ           */
/* ===================================== */

@keyframes loaderSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes loaderPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(0.8);
    }
}

@keyframes skeletonPulse {
    0% {
        background-color: #222;
    }
    50% {
        background-color: #333;
    }
    100% {
        background-color: #222;
    }
}

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

/* ===================================== */
/*         АНИМАЦИИ ДЛЯ МЕНЮ            */
/* ===================================== */

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

@keyframes menuItemHover {
    0% {
        padding-left: 20px;
        background-color: transparent;
    }
    100% {
        padding-left: 30px;
        background-color: rgba(255, 204, 0, 0.1);
    }
}

@keyframes menuItemActive {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1.03);
    }
}

/* ===================================== */
/*          АНИМАЦИИ ДЛЯ ТЕКСТА         */
/* ===================================== */

@keyframes textGlow {
    0% {
        text-shadow: 0 0 2px #ffcc00;
    }
    50% {
        text-shadow: 0 0 10px #ffcc00, 0 0 20px #ffcc00;
    }
    100% {
        text-shadow: 0 0 2px #ffcc00;
    }
}

@keyframes textShimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes textPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes textWave {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-3px);
    }
    75% {
        transform: translateY(3px);
    }
}

/* ===================================== */
/*        АНИМАЦИИ ДЛЯ ТАБЛИЦ           */
/* ===================================== */

@keyframes rowHover {
    0% {
        background-color: rgba(255, 255, 255, 0.05);
    }
    100% {
        background-color: rgba(255, 204, 0, 0.1);
    }
}

/* Убираем применение этой анимации к карточкам */

@keyframes rowLeave {
    0% {
        background-color: rgba(255, 204, 0, 0.1);
    }
    100% {
        background-color: transparent;
    }
}

@keyframes cellPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}



/* ===================================== */
/*        АНИМАЦИИ ДЛЯ СКРОЛЛА          */
/* ===================================== */



@keyframes scrollThumb {
    0% {
        width: 4px;
    }
    50% {
        width: 8px;
    }
    100% {
        width: 4px;
    }
}

/* ===================================== */
/*        АНИМАЦИИ ДЛЯ УВЕДОМЛЕНИЙ      */
/* ===================================== */

@keyframes notificationSlide {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes notificationFade {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* ===================================== */
/*        ПРИМЕНЕНИЕ АНИМАЦИЙ           */
/* ===================================== */

/* ---- СТРАНИЦЫ ---- */
.page {
    animation: fadeIn 0.4s ease-out;
}

.page.active {
    animation: fadeInUp 0.5s ease-out;
}
/* ---- КАРТОЧКИ ---- */
.artist-card, .album-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
    will-change: transform, box-shadow;
    background: var(--bg-card); /* Фиксируем фон */
    /* Убираем все анимации фона */
}

/* Задержки для карточек */
.artist-card:nth-child(1), .album-card:nth-child(1) { animation-delay: 0.1s; }
.artist-card:nth-child(2), .album-card:nth-child(2) { animation-delay: 0.15s; }
.artist-card:nth-child(3), .album-card:nth-child(3) { animation-delay: 0.2s; }
.artist-card:nth-child(4), .album-card:nth-child(4) { animation-delay: 0.25s; }
.artist-card:nth-child(5), .album-card:nth-child(5) { animation-delay: 0.3s; }
.artist-card:nth-child(6), .album-card:nth-child(6) { animation-delay: 0.35s; }
.artist-card:nth-child(7), .album-card:nth-child(7) { animation-delay: 0.4s; }
.artist-card:nth-child(8), .album-card:nth-child(8) { animation-delay: 0.45s; }
.artist-card:nth-child(9), .album-card:nth-child(9) { animation-delay: 0.5s; }
.artist-card:nth-child(10), .album-card:nth-child(10) { animation-delay: 0.55s; }

.artist-card:hover, .album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 204, 0, 0.15);
    background: var(--bg-card); /* Явно фиксируем фон при наведении */
}

.artist-card:active, .album-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Анимация для обложки при наведении */
.album-card:hover .album-cover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.album-card:hover .album-play-overlay {
    opacity: 1;
    transition: opacity 0.2s ease;
}

/* Анимация для активного состояния */
.artist-card.track-active, .album-card.track-active {
    border: 1px solid rgba(255, 204, 0, 0.3);
    background: var(--bg-card); /* Фиксируем фон */
    animation: none; /* Убираем пульсацию */
}

/* Убираем мерцание при уходе мыши */
.artist-card, .album-card {
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Плавный выход из ховера */
.artist-card:not(:hover), .album-card:not(:hover) {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ---- КНОПКИ ---- */
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;
}

.play-all-btn:hover {
    animation: buttonPulse 1.5s infinite;
}

.shuffle-btn:hover {
    animation: bounce 0.5s ease infinite;
}


.icon-btn.dislike.active {
    animation: shake 0.4s ease;
    color: #ff4b4b;
}

#shuffleBtn.active-control {
    animation: spin 0.5s ease;
    color: var(--accent);
}

/* ---- ПЛЕЕР ---- */
#progFill {
    transition: width 0.1s linear;
    position: relative;
}

.slider-wrapper:hover .slider-fill {
    animation: progressGlow 1s infinite;
}

.slider-wrapper:hover .slider-base {
    height: 6px;
    transition: height 0.2s;
}

#volFill {
    transition: width 0.1s linear;
}

.slider-wrapper:hover #volFill {
    animation: volumeGlow 1s infinite;
}

/* Эквалайзер */
.equalizer-bar {
    animation: equalizer 0.8s ease infinite;
    transform-origin: bottom;
}

.equalizer-bar:nth-child(2) { animation-delay: 0.1s; }
.equalizer-bar:nth-child(3) { animation-delay: 0.2s; }
.equalizer-bar:nth-child(4) { animation-delay: 0.3s; }

/* Информация о треке */
.track-info {
    transition: all 0.3s ease;
}

.track-info:hover {
    animation: cardFloat 2s ease infinite;
}

.track-img-placeholder {
    transition: transform 0.3s ease;
}

.track-info:hover .track-img-placeholder {
    animation: imageRotate 3s linear infinite;
}

/* ---- ПОИСК ---- */
#searchInput {
    transition: all 0.3s ease;
}

#searchInput:focus {
    animation: searchPulse 2s infinite;
}

.search-overlay {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.search-overlay.active {
    animation: fadeIn 0.3s ease;
}

.mobile-search-wrapper {
    animation: slideDown 0.3s ease;
}

#searchResults {
    animation: fadeInUp 0.4s ease;
}

#searchResults .artist-card, #searchResults .album-card {
    animation: fadeInRight 0.4s ease;
    animation-fill-mode: both;
}

.close-search {
    transition: all 0.3s ease;
}

.close-search:hover {
    animation: spin 0.5s ease;
}

/* ---- ГРАДИЕНТЫ ---- */
.hero-mix {
    animation: gradientBG 15s ease infinite;
}

.hero-mix:hover {
    animation: gradientShift 3s linear infinite;
}

.artist-header {
    animation: fadeInUp 0.6s ease;
}

/* ---- ЗАГРУЗКА ---- */
.loading-spinner {
    animation: loaderSpin 1s linear infinite;
}

.loading-pulse {
    animation: loaderPulse 1.5s ease infinite;
}

.skeleton {
    animation: skeletonPulse 1.5s ease infinite;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(1) infinite;
}

/* ---- МЕНЮ ---- */
.sidebar {
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.open {
    animation: slideInLeft 0.3s ease;
}

.nav-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-item:hover {
    animation: menuItemHover 0.3s forwards;
}

.nav-item.active {
    animation: menuItemActive 0.3s ease;
}

.nav-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.nav-item:active::after {
    width: 100px;
    height: 100px;
}

/* ---- ТЕКСТ ---- */
.artist-link {
    transition: all 0.2s ease;
    position: relative;
    display: inline-block;
}

.artist-link:hover {
    color: var(--accent);
    animation: textGlow 1s infinite;
}

.artist-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.artist-link:hover::after {
    width: 100%;
}

.track-index {
    transition: color 0.2s ease;
}

tr:hover .track-index {
    color: var(--accent);
    animation: textPop 0.3s ease;
}

.mini-title {
    position: relative;
    display: inline-block;
}

.mini-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    animation: expandWidth 1s ease forwards;
}

h1, h2, h3 {
    animation: fadeInLeft 0.5s ease;
}

/* ---- ТАБЛИЦЫ ---- */
tr {
    transition: all 0.2s ease;
    position: relative;
}

tr:hover {
    background: rgba(255, 255, 255, 0.05); /* Просто светлый фон, без анимации */
}


td {
    transition: all 0.2s ease;
}

tr:hover td:first-child {
    color: var(--accent);
    transform: scale(1.05);
    transition: all 0.2s ease;
}
/* ---- ИЗОБРАЖЕНИЯ ---- */
.artist-img, .album-cover, .td-img, .artist-big-img, .track-img-placeholder {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.artist-img:hover, .album-cover:hover {
  transform: scale(1.05);
    transition: transform 0.3s ease;
}

.artist-big-img {
        animation: fadeInRight 0.6s ease;
}

.artist-big-img:hover {
   transform: scale(1.02);
    transition: transform 0.3s ease;
    /* Убираем animation: imagePulse 2s infinite; */
}

/* ---- СКРОЛЛ ---- */
::-webkit-scrollbar-thumb {
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    animation: scrollGlow 1s infinite;
}

.main-content:hover::-webkit-scrollbar-thumb {
    animation: scrollThumb 2s infinite;
}

/* ---- УВЕДОМЛЕНИЯ ---- */
.notification {
    animation: notificationSlide 0.3s ease;
}

.notification.fade-out {
    animation: notificationFade 0.3s ease forwards;
}

/* ---- ХЕДЕР АРТИСТА ---- */
.artist-header {
    animation: fadeInUp 0.6s ease;
}

.artist-stats .stat-item {
    animation: fadeInUp 0.5s ease;
    animation-fill-mode: both;
}

.artist-stats .stat-item:nth-child(1) { animation-delay: 0.1s; }
.artist-stats .stat-item:nth-child(2) { animation-delay: 0.2s; }
.artist-stats .stat-item:nth-child(3) { animation-delay: 0.3s; }

/* ---- АЛЬБОМЫ ---- */
.album-page-header {
    animation: fadeInUp 0.6s ease;
}

.album-info-main {
    animation: fadeInRight 0.6s ease;
}

/* ---- ПЛЕЙЛИСТЫ ---- */
#historyList tr, #starredList tr, #dislikedList tr {
    animation: fadeInLeft 0.3s ease;
    animation-fill-mode: both;
}

#historyList tr:nth-child(1) { animation-delay: 0.05s; }
#historyList tr:nth-child(2) { animation-delay: 0.1s; }
#historyList tr:nth-child(3) { animation-delay: 0.15s; }
#historyList tr:nth-child(4) { animation-delay: 0.2s; }
#historyList tr:nth-child(5) { animation-delay: 0.25s; }
#historyList tr:nth-child(6) { animation-delay: 0.3s; }

/* ---- ВРЕМЯ ---- */
#currentTime, #timeLeft {
    transition: all 0.2s ease;
}

.slider-wrapper:hover ~ #currentTime,
.slider-wrapper:hover ~ #timeLeft {
    color: var(--accent);
    animation: textPop 0.3s ease;
}

/* ---- ГРОМКОСТЬ ---- */
#volVal {
    transition: all 0.2s ease;
}

.slider-wrapper:hover ~ #volVal {
    color: var(--accent);
    animation: textGlow 1s infinite;
}

/* ---- АВАТАРКА ---- */
.avatar-wrapper {
    transition: all 0.3s ease;
}

.avatar-wrapper:hover {
    transform: scale(1.05);
    animation: cardFloat 2s ease infinite;
}

.avatar-upload-icon {
    transition: all 0.3s ease;
}

.avatar-wrapper:hover .avatar-upload-icon {
    animation: spin 0.5s ease;
}

/* ---- ЛОГО ---- */
.logo {
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.logo:hover {
    animation: textGlow 1s infinite;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}

/* ---- КНОПКА БУРГЕР ---- */
.menu-toggle {
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    animation: bounce 0.5s ease infinite;
}

/* ---- ОВЕРЛЕЙ ---- */
.overlay {
    transition: background 0.3s ease;
}

.overlay.active {
    animation: fadeIn 0.3s ease;
}

/* ---- ШАПКА ПОИСКА ---- */
.search-header {
    animation: slideDown 0.3s ease;
}

.search-header h2 {
    animation: fadeInDown 0.4s ease;
}

/* ---- РЕЗУЛЬТАТЫ ПОИСКА ---- */
.search-subtitle {
    position: relative;
    display: inline-block;
    animation: fadeInLeft 0.4s ease;
}

.search-subtitle::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    animation: expandWidth 0.5s ease forwards;
}
/* ---- КАРТОЧКИ В ПОИСКЕ ---- */
#searchResults .artist-card, #searchResults .album-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: var(--bg-card); /* Фиксируем фон */
}

#searchResults .artist-card:hover, #searchResults .album-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 204, 0, 0.12);
    background: var(--bg-card); /* Фиксируем фон */
}

#searchResults .artist-card:active, #searchResults .album-card:active {
    transform: scale(0.98);
}
/* ---- ПЛЕЙЛИСТЫ ---- */
.playlist-item {
    animation: fadeInRight 0.4s ease;
    animation-fill-mode: both;
}

/* ---- СТАТИСТИКА ---- */
.plays-inline {
    transition: all 0.2s ease;
}

tr:hover .plays-inline {
    animation: textPop 0.3s ease;
}

/* ---- ДЛИТЕЛЬНОСТЬ ---- */
.track-duration {
    transition: all 0.2s ease;
}

tr:hover .track-duration {
    animation: textGlow 1s infinite;
}

/* ---- КОНТЕЙНЕРЫ СКРОЛЛА ---- */
.horizontal-scroll-container {
    transition: all 0.3s ease;
}



/* ---- КЛАССЫ ДЛЯ ЗАДЕРЖЕК ---- */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }
.delay-8 { animation-delay: 0.8s; }
.delay-9 { animation-delay: 0.9s; }
.delay-10 { animation-delay: 1s; }

/* ---- СКОРОСТИ АНИМАЦИЙ ---- */
.slow { animation-duration: 0.8s; }
.normal { animation-duration: 0.4s; }
.fast { animation-duration: 0.2s; }
.very-slow { animation-duration: 1.2s; }
.very-fast { animation-duration: 0.1s; }

/* ---- КОЛИЧЕСТВО ПОВТОРЕНИЙ ---- */
.infinite { animation-iteration-count: infinite; }
.once { animation-iteration-count: 1; }
.twice { animation-iteration-count: 2; }
.thrice { animation-iteration-count: 3; }

/* ---- ТИПЫ АНИМАЦИЙ ---- */
.fade-in { animation: fadeIn 0.4s ease; }
.fade-in-up { animation: fadeInUp 0.4s ease; }
.fade-in-down { animation: fadeInDown 0.4s ease; }
.fade-in-left { animation: fadeInLeft 0.4s ease; }
.fade-in-right { animation: fadeInRight 0.4s ease; }
.bounce { animation: bounce 0.5s ease infinite; }
.pulse { animation: pulse 1s ease infinite; }
.spin { animation: spin 1s linear infinite; }
.shake { animation: shake 0.4s ease; }
.heart-beat { animation: heartBeat 0.4s ease; }


/* Убираем outline при наведении */
.album-card:hover, .artist-card:hover {
    outline: none !important;
}

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


/* Фиксим проблему с исчезновением фото артиста */
.artist-big-img {
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 1;
    transform: scale(1);
}

.artist-big-img:hover {
    transform: scale(1.02);
    opacity: 1;
}

.artist-big-img:not(:hover) {
    transform: scale(1);
    opacity: 1;
    transition: transform 0.3s ease;
}


/* Анимация для текста при движении мыши */
@keyframes textGlowPulse {
    0% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 204, 0, 0.5);
    }
    100% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
}

.hero-mix.mouse-move h1 {
    animation: textGlowPulse 1s ease infinite;
}

/* Дополнительный эффект "волны" */
.hero-mix::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
                rgba(255, 255, 255, 0.2) 0%, 
                transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
    filter: blur(20px);
}

.hero-mix:hover::after {
    opacity: 0.5;
}