:root {
    --bg-color: #0f0f11;
    --card-bg: #18181c;
    --card-hover: #222228;
    --accent: #ff5500;
    --accent-hover: #ff7733;
    --text-primary: #f0f0f2;
    --text-secondary: #9a9a9f;
    --border-color: #282830;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    padding-bottom: 110px; /* Отступ под плеер */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
.site-header {
    text-align: center;
    padding: 40px 0 30px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.logo {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 5px;
}

/* Сетка карточек */
.tracks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

/* Карточка трека */
.track-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}

.track-card:hover {
    transform: translateY(-3px);
    border-color: #383842;
}

.card-header {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Обложка */
.cover-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #25252b;
}

.track-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-cover {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-secondary);
}

.play-btn-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.track-card:hover .play-btn-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.6);
}

.play-btn-overlay svg {
    width: 32px;
    height: 32px;
}

.icon-pause {
    display: none;
}

.track-card.playing .icon-play { display: none; }
.track-card.playing .icon-pause { display: block; }

/* Метаинформация */
.track-meta {
    flex-grow: 1;
    overflow: hidden;
}

.genre-tag {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 4px;
}

.track-title {
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Тело карточки */
.card-body {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.track-desc {
    font-size: 0.9rem;
    color: #c0c0c8;
}

/* Аккордеон текста */
.lyrics-accordion {
    margin-top: 12px;
}

.lyrics-accordion summary {
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    user-select: none;
}

.lyrics-content {
    margin-top: 10px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-height: 200px;
    overflow-y: auto;
}

/* Фиксированный нижний плеер */
.bottom-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #141418;
    border-top: 1px solid var(--border-color);
    padding: 12px 0;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
    z-index: 100;
}

.player-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.player-info {
    width: 25%;
    min-width: 150px;
}

.player-title {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-genre {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-grow: 1;
    max-width: 500px;
}

.main-play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.main-play-btn svg {
    width: 22px;
    height: 22px;
}

.progress-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

input[type="range"] {
    accent-color: var(--accent);
    cursor: pointer;
    width: 100%;
}

.player-volume {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 15%;
    min-width: 100px;
}

.vol-icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

/* ================= Подвал (Footer) ================= */
.site-footer {
    background-color: #121216;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
    padding-top: 40px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 30px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.footer-desc {
    max-width: 320px;
    line-height: 1.5;
}

.site-footer h4 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a, .social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover, .social-links a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Блок с указанием авторства и ИИ */
.ai-disclaimer-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 18px 22px;
    margin: 0 auto 35px;
    max-width: 800px;
}

.disclaimer-icon {
    font-size: 1.6rem;
    opacity: 0.85;
}

.disclaimer-text {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.disclaimer-author {
    color: var(--text-primary);
    margin-bottom: 3px;
}

.disclaimer-author strong {
    color: var(--accent);
}

.disclaimer-tech {
    font-size: 0.82rem;
    opacity: 0.75;
}

/* Нижняя строчка копирайта */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 18px 0;
    background: #0b0b0d;
    font-size: 0.8rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tech-info {
    color: #666;
}

/* ================= Адаптив под мобильные ================= */
@media (max-width: 768px) {
    .tracks-grid {
        grid-template-columns: 1fr;
    }

    .player-container {
        flex-direction: column;
        gap: 8px;
    }

    .player-info {
        width: 100%;
        text-align: center;
    }

    .player-controls {
        width: 100%;
        max-width: 100%;
    }

    .player-volume {
        display: none; /* Скрываем громкость на смартфонах для экономии места */
    }

    body {
        padding-bottom: 140px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .ai-disclaimer-card {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
}