body {
    font-family: 'Grato Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    background-color: #000;
    color: #fff;
    padding: 0 20px;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
}

.logo {
    width: 40px;
    height: 40px;
    margin-right: 15px;
}

.header-content {
    display: flex;
    align-items: center;
}

.header-text {
    font-size: 16px;
}

.header-text strong {
    font-weight: 600;
}

main {
    max-width: 1200px;
    margin: 0 auto;
}

.year-section {
    margin-bottom: 40px;
}

.year-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ccc;
}

.covers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(203px, 1fr));
    gap: 20px;
}

.cover-item {
    text-align: left;
}

.cover-item a {
    text-decoration: none;
    color: inherit;
}

.cover-image {
    margin-bottom: 8px;
}

.cover-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cover-image img:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
    z-index: 10;
    position: relative;
}

.cover-info {
    font-size: 12px;
    color: #aaa;
    line-height: 1.4;
}

.cover-number {
    font-weight: 600;
}

footer {
    text-align: center;
    padding: 30px 0;
    font-size: 12px;
    color: #666;
    border-top: 1px solid #333;
    margin-top: 40px;
}

/* Hover preview для полноразмерных изображений */
.image-preview {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.image-preview.active {
    opacity: 1;
}

.image-preview img {
    width: auto;
    height: auto;
    max-width: 80vw;
    max-height: 80vh;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    border-radius: 4px;
    border: 2px solid #444;
    object-fit: contain;
}

.cover-image {
    position: relative;
    cursor: pointer;
}

/* Стили для музыкального плеера */
.music-player {
    display: flex;
    align-items: center;
    gap: 8px;
}

.music-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #333;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 6px 10px;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.music-toggle:hover {
    background: #444;
}

.music-cover {
    width: 24px;
    height: 24px;
    border-radius: 3px;
    object-fit: cover;
}

.music-text {
    font-size: 12px;
    white-space: nowrap;
}

.music-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #222;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 4px 8px;
}

.music-btn {
    background: #333;
    border: 1px solid #555;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    padding: 4px 6px;
    font-size: 12px;
    transition: background 0.2s;
}

.music-btn:hover {
    background: #444;
}

.track-info {
    margin-left: 6px;
    display: none; /* Скрываем название трека для компактности */
}

#currentTrack {
    font-size: 11px;
    color: #ccc;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Анимированный диск */
.disc-player {
    position: fixed;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
    transition: bottom 0.5s ease-in-out;
    z-index: 1000;
}

.disc-player.visible {
    bottom: 20px;
}

.disc-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    transition: none; /* Убираем transition для плавной остановки */
}

.disc-image.spinning {
    animation: spin 2s linear infinite;
}

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

@media (max-width: 600px) {
    .covers-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    body {
        padding: 0 15px;
    }

    .header-text {
        font-size: 14px;
    }

    .year-title {
        font-size: 20px;
    }
    
    /* На мобильных устройствах ограничиваем размер preview */
    .image-preview img {
        max-width: 90vw;
        max-height: 70vh;
    }
    
    /* Адаптивность для музыкального плеера */
    header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .header-content {
        justify-content: center;
    }
    
    .music-player {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .music-text {
        font-size: 11px;
    }
    
    /* Адаптивность для диска */
    .disc-image {
        width: 60px;
        height: 60px;
    }
    
    .disc-player.visible {
        bottom: 15px;
    }
}
