/* ============ БАЗА ============ */

@font-face {
    font-family: 'Rubik Pixels';
    src: url('fonts/RubikPixels.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.3px;
}

h1, h2, h3, summary {
    font-family: Arial, sans-serif;
}

body {
    /* Ночь слева (чёрный), день справа (ярко-оранжевый) */
    background: linear-gradient(
        to right,
        #000000 0%,
        #000000 35%,
        #3a1a00 50%,
        #ff7a00 65%,
        #ff7a00 100%
    );
    background-attachment: fixed;
    color: #ffffff;
    padding: 20px 0 60px 0;
    min-height: 100vh;
    position: relative;
}

summary {
    font-size: 1.05em;
    letter-spacing: 0.5px;
}

/* ============ ЗАГОЛОВОК ============ */

h1 {
    text-align: center;
    margin: 10px 0 30px 0;
    font-size: 2.5em;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 3px 3px 0 #ff7a00;
    letter-spacing: 2px;
}

/* ============ КОЛОНКИ ============ */

.music-columns {
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 0;
}

.music-column {
    width: 50%;
    padding: 20px 30px;
}

.music-column:first-child {
    color: #ffffff;
}

.music-column:last-child {
    color: #000000;
}

/* ============ ЗАГОЛОВКИ АЛЬБОМОВ ============ */

.music-column h2 {
    text-align: center;
    font-size: 1.8em;
    margin-bottom: 30px;
    padding-bottom: 10px;
}

.music-column:first-child h2 {
    border-bottom: 3px dashed #ffffff;
}

.music-column:last-child h2 {
    border-bottom: 3px dashed #000000;
}

.music-column h3 {
    text-align: center;
    margin-top: 35px;
    font-size: 1.3em;
}

/* ============ DETAILS / АЛЬБОМЫ ============ */

details {
    margin: 20px auto;
    max-width: 100%;
    padding: 10px;
}

summary {
    cursor: pointer;
    text-align: center;
    font-weight: 700;
    list-style: none;
    padding: 8px;
}

summary::-webkit-details-marker {
    display: none;
}

summary::before {
    content: "▸ ";
    display: inline-block;
}

details[open] summary::before {
    content: "▾ ";
}

.album-cover {
    display: block;
    width: 160px;
    height: 160px;
    object-fit: cover;
    margin: 8px auto 10px auto;
    border: 4px solid;
}

.music-column:first-child .album-cover {
    border-color: #ffffff;
    box-shadow: 4px 4px 0 #ff7a00;
}

.music-column:last-child .album-cover {
    border-color: #000000;
    box-shadow: 4px 4px 0 #ffffff;
}

/* ============ ТРЕКИ ============ */

.track {
    margin: 12px 0;
    padding: 8px 10px;
    border-left: 4px solid;
}

.music-column:first-child .track {
    border-left-color: #ffffff;
}

.music-column:last-child .track {
    border-left-color: #000000;
}

.track p {
    margin: 0 0 6px 0;
    font-weight: 700;
}

/* ============ ССЫЛКА НАЗАД ============ */

p a {
    display: block;
    text-align: center;
    margin-top: 40px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    text-shadow: 2px 2px 0 #000;
}

p a:hover {
    text-decoration: underline;
}

/* ============ ФОНОВЫЕ ИКОНКИ ============ */

/* Контейнер для угловых иконок */
.bg-icons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.bg-icon {
    position: absolute;
    image-rendering: pixelated;
    opacity: 0.85;
}

/* Луна — сверху слева */
.bg-moon {
    top: 20px;
    left: 20px;
    width: 96px;
    height: 96px;
    filter: invert(1) drop-shadow(0 0 6px #ff7a00);
    opacity: 0.9;
}

/* Солнце — снизу справа */
.bg-sun {
    bottom: 20px;
    right: 20px;
    width: 96px;
    height: 96px;
    filter: drop-shadow(0 0 6px #000);
}

/* ============ СЛУЧАЙНЫЕ ИКОНКИ ПО ФОНУ ============ */

.bg-decor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.decor {
    position: absolute;
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
    opacity: 0.35;
}

/* Ночные иконки — светлые (белые/оранжевые) */
.decor.night {
    filter: invert(1) sepia(1) hue-rotate(320deg) saturate(3);
    opacity: 0.4;
}

/* Дневные — тёмные (чёрные на оранжевом фоне) */
.decor.day {
    filter: none;
    opacity: 0.35;
}

/* Контент поверх фона */
h1, .music-columns, body > p {
    position: relative;
    z-index: 1;
}

/* ============ АДАПТИВ (ТЕЛЕФОН) ============ */

@media (max-width: 800px) {
    .music-columns {
        flex-direction: column;
    }

    .music-column {
        width: 100%;
        padding: 15px;
    }

    .music-column:first-child {
        border-right: none;
        border-bottom: 4px dashed #ff7a00;
    }

    body {
        background: linear-gradient(
            to bottom,
            #000000 0%,
            #000000 45%,
            #3a1a00 50%,
            #ff7a00 55%,
            #ff7a00 100%
        );
    }

    h1 {
        font-size: 1.8em;
    }

    .album-cover {
        width: 120px;
        height: 120px;
    }

    /* Угловые иконки уменьшаем */
    .bg-moon, .bg-sun {
        width: 64px;
        height: 64px;
    }

    .decor {
        width: 36px;
        height: 36px;
        opacity: 0.25;
    }
}