/* ========================================
   FONTS — подключение шрифтов
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display+SC&display=swap');
@import url('https://fonts.cdnfonts.com/css/thyssen-j');

/* ========================================
   BODY — черный фон
   ======================================== */
body {
    background-color: #000000;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* ========================================
   CONTAINER — обертка для контента
   ======================================== */
.container {
    max-width: 1182px;
    padding: 0 15px;
    margin: 0 auto;
    text-align: center;
}

/* ========================================
   FIX — предотвращаем дергание
   ======================================== */
#artists-list {
    min-height: 200px;
}

/* ========================================
   ANIMATION — анимация появления
   ======================================== */
.fade-in {
    opacity: 0;
    animation: ani 2.5s forwards;
}

@keyframes ani {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* ========================================
   HEADER — заголовок страницы
   ======================================== */
.header {
    font-family: "Playfair Display SC", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 52px;
    line-height: 1;
    color: transparent;
    background-clip: text;
    background-image: linear-gradient(to right, white, #999999);
}

/* ========================================
   CARDS — карточки артистов
   ======================================== */
.cards-wrapper {
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    flex: 1;
    max-width: 350px;
    min-width: 200px;
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0;
}

.card-image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.6s ease;
}

.card-image-wrapper:hover img {
    filter: grayscale(0%);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 15px 20px 15px;
    pointer-events: none;
}

.card-name {
    font-family: "EB Garamond", serif;
    font-weight: 800;
    font-size: 24px;
    color: white;
    text-align: center;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ========================================
   NAVIGATION — навигация
   ======================================== */
.nav {
    font-family: "Playfair Display SC", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 52px;
    line-height: 1;
    color: transparent;
    background-clip: text;
    background-image: linear-gradient(to right, white, #999999);
}

/* ========================================
   FOOTER — подвал с градиентом
   ======================================== */
.footer {
    font-family: 'Thyssen J', arial;
    font-size: 18px;
    line-height: 2.88;
    color: transparent;
    background-clip: text;
    background-image: linear-gradient(to right, white 20%, #999999 100%);
    text-align: center;
}

/* ========================================
   CUSTOM SCROLLBAR — кастомный скроллбар
   ======================================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #666, #999);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #999, #ccc);
}

* {
    scrollbar-width: thin;
    scrollbar-color: #666 #0a0a0a;
}

/* ========================================
   ADAPTIVE — планшеты (до 768px)
   ======================================== */
@media (max-width: 768px) {
    .cards-wrapper {
        justify-content: center;
    }

    .card {
        max-width: 280px;
        flex: 0 0 280px;
    }

    .card-name {
        font-size: 20px;
    }
}

/* ========================================
   ADAPTIVE — телефоны (до 480px)
   ======================================== */
@media (max-width: 480px) {
    .header {
        font-size: 32px;
    }

    .card {
        max-width: 100%;
        flex: 0 0 100%;
    }

    .card-name {
        font-size: 18px;
        padding-bottom: 12px;
    }

    .card-image-wrapper {
        line-height: 0;
        font-size: 0;
    }

    .card-image-wrapper img {
        display: block;
    }

    .footer {
        font-size: 14px;
    }
}
