:root {
    --bg-primary: #050505;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --border: #27272a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header { position: sticky; top: 0; background: rgba(5,5,5,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); z-index: 100; }
.header__inner { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { font-size: 1.5rem; font-weight: 900; letter-spacing: 3px; text-transform: uppercase; color: var(--text-primary); text-decoration: none; }
.nav a { color: var(--text-secondary); text-decoration: none; margin-left: 24px; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav a:hover { color: var(--accent); }

/* Hero */
.hero { padding: 100px 0 80px; text-align: center; background: radial-gradient(circle at 50% 0%, #1e293b 0%, var(--bg-primary) 60%); }
.badge { display: inline-block; background: var(--accent); color: #fff; padding: 6px 16px; border-radius: 99px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.hero__title { font-size: clamp(2.5rem, 8vw, 4.5rem); font-weight: 900; margin-bottom: 32px; letter-spacing: -2px; line-height: 1.1; }
.audio-player { max-width: 500px; margin: 0 auto 24px; }
.audio-player__el { width: 100%; border-radius: 8px; outline: none; }
.download-links { display: flex; gap: 12px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; background: var(--accent); color: #fff; text-decoration: none; border-radius: 8px; font-weight: 600; transition: all 0.2s; border: none; cursor: pointer; font-size: 0.95rem; }
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn--sm { padding: 8px 16px; font-size: 0.85rem; background: var(--bg-tertiary); border: 1px solid var(--border); }
.btn--sm:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn--outline { background: transparent; border: 1px solid var(--border); color: var(--text-primary); width: 100%; text-align: center; margin-top: 20px; }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

/* Lyrics */
.lyrics-block { max-width: 650px; margin: 48px auto 0; text-align: left; }
.lyrics-block__toggle { cursor: pointer; color: var(--text-secondary); font-weight: 600; list-style: none; display: flex; align-items: center; gap: 8px; }
.lyrics-block__toggle::before { content: '▶'; font-size: 0.7rem; transition: transform 0.2s; }
.lyrics-block[open] .lyrics-block__toggle::before { transform: rotate(90deg); }
.lyrics-block__content { margin-top: 16px; padding: 24px; background: var(--bg-secondary); border-radius: 12px; border: 1px solid var(--border); }
.lyrics-text { white-space: pre-wrap; color: var(--text-secondary); font-family: inherit; font-size: 1rem; line-height: 1.8; }
.lyrics-link { display: inline-block; margin-top: 16px; color: var(--accent); text-decoration: none; font-size: 0.9rem; }
.lyrics-link:hover { text-decoration: underline; }

/* Sections */
section { padding: 80px 0; }
.section-title { font-size: clamp(1.8rem, 5vw, 2.5rem); font-weight: 800; margin-bottom: 48px; text-align: center; letter-spacing: -1px; }

/* About */
.about__text { max-width: 750px; margin: 0 auto; text-align: center; color: var(--text-secondary); font-size: 1.15rem; line-height: 1.8; }
.about__text p { margin-bottom: 20px; }
.about__text strong { color: var(--text-primary); }

/* Albums Grid */
.albums__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.album-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 16px; padding: 24px; transition: transform 0.3s, border-color 0.3s; }
.album-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.album-card__cover img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; margin-bottom: 20px; background: var(--bg-tertiary); }
.album-card__title { font-size: 1.35rem; font-weight: 700; margin-bottom: 16px; }
.album-card__tracks { list-style: none; margin-bottom: 8px; counter-reset: track; }
.album-card__tracks li { margin-bottom: 10px; counter-increment: track; }
.track-link { display: flex; justify-content: space-between; align-items: center; color: var(--text-secondary); text-decoration: none; font-size: 0.95rem; transition: color 0.2s; padding: 4px 0; }
.track-link:hover { color: var(--text-primary); }
.track-link::before { content: counter(track, decimal-leading-zero) "."; margin-right: 12px; color: var(--accent); font-weight: 600; font-size: 0.85rem; }
.track-duration { font-size: 0.8rem; color: #52525b; font-variant-numeric: tabular-nums; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 60px 0; text-align: center; background: var(--bg-secondary); }
.social-links { display: flex; gap: 24px; justify-content: center; margin: 24px 0; flex-wrap: wrap; }
.social-link { color: var(--text-secondary); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.social-link:hover { color: var(--accent); }
.copyright { color: #52525b; font-size: 0.85rem; margin-bottom: 8px; }
.email-link { color: var(--text-secondary); text-decoration: none; }
.email-link:hover { color: var(--accent); }

/* Mobile */
@media (max-width: 768px) {
    .header__inner { flex-direction: column; height: auto; padding: 16px 0; gap: 16px; }
    .nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
    .nav a { margin: 0; }
    .hero { padding: 60px 0; }
}

/* --- Обновления для Hero секции с обложкой --- */
.hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.hero__cover-img {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 40px rgba(59, 130, 246, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero__cover-img:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 60px rgba(59, 130, 246, 0.25);
}

.hero__info {
    text-align: center;
    width: 100%;
    max-width: 600px;
}

@media (min-width: 900px) {
    .hero__content {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        text-align: left;
        gap: 60px;
    }
    .hero__info {
        text-align: left;
    }
    .download-links {
        justify-content: flex-start;
    }
    .lyrics-block {
        margin: 40px 0 0 0;
    }
}

/* --- Модальное окно для текстов песен --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.is-active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}

.modal-close:hover { color: var(--text-primary); }

.modal-title {
    padding: 24px 24px 0;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.share-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.2s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.share-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.share-btn.vk { background: #0077FF; }
.share-btn.tg { background: #24A1DE; }
.share-btn.wa { background: #25D366; }
.share-btn.copy { background: var(--bg-tertiary); border: 1px solid var(--border); color: var(--text-primary); }

.modal-lyrics {
    padding: 24px;
    overflow-y: auto;
    flex-grow: 1;
    white-space: pre-wrap; /* Сохраняет переносы строк из .txt файлов */
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.8;
}

.modal-lyrics .loading {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
}

.modal-footer {
    padding: 16px 24px 24px;
    text-align: center;
    border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
    .modal-content { max-height: 95vh; border-radius: 12px; }
    .share-buttons { gap: 8px; }
    .share-btn { flex: 1 1 calc(50% - 8px); text-align: center; }
}

/* --- ЖЁСТКИЙ сброс цвета ссылок внутри текстового контента --- */
a.content-link,
a.contact-link,
.about__text a,
.modal-lyrics a {
    color: var(--accent) !important;
    text-decoration: none !important;
    border-bottom: 1px dashed var(--accent);
    transition: all 0.2s ease;
}

a.content-link:hover,
a.contact-link:hover,
.about__text a:hover,
.modal-lyrics a:hover {
    color: var(--accent-hover) !important;
    border-bottom-style: solid;
    border-bottom-color: var(--accent-hover);
}

a.content-link:visited,
a.contact-link:visited,
.about__text a:visited,
.modal-lyrics a:visited {
    color: var(--accent) !important;
}

a.content-link:visited:hover,
a.contact-link:visited:hover,
.about__text a:visited:hover,
.modal-lyrics a:visited:hover {
    color: var(--accent-hover) !important;
}