/* ========================================
   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: #000;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
}

/* ========================================
   BG LAYER — изображение + анимированный градиент
   ======================================== */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    background-image: url('img/background.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    opacity: 0;
    animation: bgFadeIn 1.2s ease forwards;
    animation-delay: 0.2s;
    z-index: 0;
}

.bg-layer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(10, 10, 10, 0.4), 
        rgba(60, 60, 70, 0.3), 
        rgba(15, 15, 15, 0.4), 
        rgba(80, 80, 90, 0.2),
        rgba(10, 10, 10, 0.4)
    );
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
    z-index: 1;
}

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

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

/* ========================================
   FIX — убираем fixed на телефонах и планшетах
   ======================================== */
@media (max-width: 768px) {
    .bg-layer {
        position: fixed;
        height: 100vh;
        min-height: 100vh;
        background-attachment: scroll;
        background-size: cover;
    }
}

/* ========================================
   CONTENT — весь контент поверх фона
   ======================================== */
.content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================================
   MAIN — растягивается, занимает всё свободное место
   ======================================== */
main {
    flex: 1;
}

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

/* ========================================
   LOGO — анимация появления логотипа
   ======================================== */
.logo-wrapper {
    opacity: 0;
    animation: logoFadeIn 1s ease forwards;
    animation-delay: 0.8s;
}

.logo-wrapper img {
    width: 505px;
    height: auto;
    max-width: 100%;
}

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

/* ========================================
   SPACER — воздух между логотипом и афишей
   ======================================== */
.spacer {
    height: 80px;
}

/* ========================================
   RELEASES LIST — анимация строк
   ======================================== */
.release {
    font-family: "EB Garamond", serif;
    font-size: 24px;
    display: flex;
    align-items: center;
    padding: 12px 18px;
    border-radius: 6px;
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(20px);
    animation: releaseFadeIn 0.5s ease forwards;
    gap: 0;
}

@keyframes releaseFadeIn {
    0% { 
        opacity: 0; 
        transform: translateY(20px);
    }
    100% { 
        opacity: 1; 
        transform: translateY(0);
    }
}

.release-date {
    color: white;
    width: 15%;
    text-align: left;
    flex-shrink: 0;
}

.release-artist {
    color: white;
    width: 25%;
    text-align: left;
    flex-shrink: 0;
}

.release-title {
    color: white;
    width: 35%;
    text-align: left;
    flex-shrink: 0;
}

/* ========================================
   RELEASE LINK — кнопка ПРЕСЕЙВ
   ======================================== */
.release-link {
    padding: 4px 16px;
    font-family: "EB Garamond", serif;
    font-size: 24px;
    font-weight: 800;
    color: transparent;
    background-clip: text;
    background-image: linear-gradient(to right, white 20%, #999999 100%);
    text-decoration: none;
    border: 1px solid transparent;
    border-image: linear-gradient(to right, white 20%, #999999 100%);
    border-image-slice: 1;
    border-radius: 0;
    transition: all 0.3s ease;
    flex-shrink: 0;
    text-align: center;
    width: 25%;
}

.release-link:hover {
    background-image: linear-gradient(to right, white, white);
    background-clip: text;
    color: transparent;
    border-image: linear-gradient(to right, white, white);
    border-image-slice: 1;
}

/* ========================================
   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 20%, #999999 100%);
    opacity: 1;
    margin-top: auto;
    padding: 20px 0 30px 0;
    text-align: center;
}

.nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav a:hover {
    color: white;
    transition: color 0.2s;
}

/* ========================================
   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) {
    .spacer {
        height: 50px;
    }

    .release {
        flex-wrap: wrap;
        gap: 4px 12px;
        padding: 10px 15px;
    }

    .release-date {
        width: auto;
        min-width: 100px;
    }

    .release-artist {
        width: auto;
        min-width: 140px;
    }

    .release-title {
        width: 100%;
        order: 3;
        text-align: left;
    }

    .release-link {
        width: auto;
        order: 4;
        margin-left: auto;
        font-size: 20px;
        padding: 4px 14px;
    }

    .nav {
        font-size: 36px;
    }

    .nav ul {
        gap: 12px;
    }

    .logo-wrapper img {
        width: 380px;
    }
}

/* ========================================
   ADAPTIVE — телефоны (до 480px)
   ======================================== */
@media (max-width: 480px) {
    .logo-wrapper img {
        width: 80%;
        max-width: 320px;
        height: auto;
    }

    .spacer {
        height: 30px;
    }

    .release {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        gap: 2px 0;
        padding: 8px 0;
        align-items: start;
        justify-items: center;
    }

    .release-date {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        text-align: center;
        width: auto;
        min-width: 0;
        flex-shrink: 0;
        font-size: 14px;
        justify-self: end;
        padding-right: 8px;
    }

    .release-artist {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        text-align: center;
        width: auto;
        min-width: 0;
        flex-shrink: 0;
        font-size: 14px;
        font-weight: 600;
        justify-self: start;
        padding-left: 8px;
    }

    .release-title {
        grid-column: 1 / 3;
        grid-row: 2 / 3;
        text-align: center;
        padding: 2px 10px 4px 10px;
        width: 100%;
        order: 0;
        flex-shrink: 0;
        font-size: 16px;
        font-weight: 600;
        word-wrap: break-word;
        hyphens: auto;
    }

    .release-link {
        grid-column: 1 / 3;
        grid-row: 3 / 4;
        width: auto;
        text-align: center;
        padding: 2px 12px;
        margin-top: 2px;
        margin-left: 0;
        align-self: center;
        justify-self: center;
        flex-shrink: 0;
        order: 0;
        font-size: 14px;
        border: 1px solid transparent;
        border-image: linear-gradient(to right, white 20%, #999999 100%);
        border-image-slice: 1;
    }

    .nav {
        font-size: 32px;
        padding: 20px 0 25px 0;
        letter-spacing: 1px;
    }

    .nav ul {
        gap: 10px;
    }

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