/* --- I. ОБЩИЕ СТИЛЫ САЙТА (Тело, Контейнер, Шрифты) --- */
*, *::before, *::after {
    box-sizing: border-box;    
}
body, html {
    margin: 0; padding: 0; font-family: Arial, sans-serif;
    background-color: #18181b; color: #d1d5db;    
    width: 100%;
    overflow-x: hidden;    
    height: 100%; 
}

/* ✅ ✅ ✅ ИСПРАВЛЕНИЕ ДЛЯ "ПРИЖАТИЯ" ПОДВАЛА (Проблема 1) */
/* (Теперь не применяется к .page-index) */
body:not(.page-index) {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main.container {
    flex-grow: 1; /* Заставляет <main> занимать все доступное место */
}
/* ✅ ✅ ✅ КОНЕЦ ИСПРАВЛЕНИЯ */


.container {    
    width: 90%; max-width: 1200px; margin: 0 auto; padding: 1rem;    
    box-sizing: border-box;    
}
a { color: #e5e7eb; text-decoration: none; }
a:hover { color: #ffffff; }
h1 {    
    font-size: 2.5rem; font-weight: 800; color: #ffffff;
    margin-top: 2rem; margin-bottom: 2rem; border-bottom: 1px solid #3f3f46;    
    padding-bottom: 1rem;    
}
@media (min-width: 768px) { h1 { font-size: 3rem; } }

/* === НОВЫЙ/ИСПРАВЛЕННЫЙ БЛОК ЗАЩИТЫ ОТ КОПИРОВАНИЯ === */
body {
    -webkit-user-select: none;   /* Safari, Chrome */
    -moz-user-select: none;      /* Firefox */
    -ms-user-select: none;       /* Internet Explorer/Edge */
    user-select: none;           /* Стандартное свойство */
    -webkit-user-drag: none;     /* WebKit-браузеры: отключает перетаскивание для всего контента */
}
img {
    -webkit-touch-callout: none; /* iOS Safari */
    pointer-events: auto;        
}

/* --- СТИЛЫ ДЛЯ ГЛАВНОЙ СТРАНИЦЫ (index.html) --- */
.hero-container {
    height: 100vh;    
    width: 100vw;    
    display: flex;
    justify-content: center;
    align-items: center;    
    text-align: center;
    background-size: cover;
    background-position: center;    
    background-repeat: no-repeat;
    box-sizing: border-box;    
    overflow: hidden;    
    will-change: transform;    
}

/* СДВИГ КОНТЕНТА ВНИЗ НА ПК */
@media (min-width: 768px) {
    .hero-content {
        transform: translateY(20vh);    
    }
}

/* СТИЛЫ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ (< 768px) */
@media (max-width: 767px) {
    .hero-content {
        /* ✅ ИСПРАВЛЕНИЕ: Приподнимаем кнопку, чтобы не "тонула" */
        transform: translateY(30vh);    
        padding: 1rem 1.5rem;
    }
    .cta-button {
        padding: 0.75rem 1.5rem;    
        font-size: 1rem;    
    }
}
.hero-content {
    background-color: rgba(0, 0, 0, 0.7);    
    padding: 2rem 3rem;
    border-radius: 10px;
    transition: transform 0.5s ease;
    will-change: transform;    
}
.cta-button {
    background-color: #dc2626;    
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-size: 1.25rem;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.15s, transform 0.1s;    
}
.cta-button:hover {
    background-color: #b91c1c;
}
.cta-button:active {
    background-color: #b91c1c;    
    transform: scale(0.98);    
}

/* --- II. ШАПКА (HEADER) И ГАМБУРГЕР-МЕНЮ --- */
.header {    
    display: flex;    
    justify-content: space-between; 
    align-items: center;    
    padding: 1rem 0; border-bottom: 1px solid #3f3f46;
    position: relative; box-sizing: border-box;    
}
.header-logo {    
    font-size: 1.5rem; font-weight: bold; color: #ffffff; flex-shrink: 0;    
    margin-right: auto; 
}
.hamburger-icon {
    display: block; font-size: 1.8rem; color: #fff; cursor: pointer; flex-shrink: 0;
    margin-left: 1rem; 
}
.lang-dropdown {
    margin-left: 1rem; 
}

/* ГАМБУРГЕР-МЕНЮ (Mobile Styles < 768px) */
.header-nav {    
    display: none; flex-direction: column;    
    position: absolute; top: 100%; right: 0;    
    width: 100%;    
    background-color: rgba(24, 24, 27, 0.95);
    padding: 10px 0; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    z-index: 10; box-sizing: border-box;
}
.header-nav.active { display: flex; }
.header-nav a {    
    padding: 10px 20px; text-align: center;    
    box-sizing: border-box;    
    font-size: 0.9rem;    
    transition: background-color 0.15s, color 0.15s, transform 0.05s, border-color 0.15s;
    border: 1px solid #3f3f46; 
    border-radius: 4px; 
    margin: 0.25rem 5%; 
    width: 90%; 
}

/* СТИЛЫ ДЛЯ ПК (Навигация в строку > 768px) */
@media (min-width: 768px) {
    .header-nav {    
        display: flex; position: static; flex-direction: row; gap: 0.5rem;    
        padding: 0; background: none; box-shadow: none;    
    }
    .header-nav a {    
        padding: 0.5rem 0.75rem;    
        border: 1px solid #3f3f46; 
        border-radius: 4px;    
        margin: 0; 
        width: auto; 
        font-size: 0.9rem;    
        transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    }
    .hamburger-icon { display: none; }
    .header-nav a:hover:not(.current-page) {    
        color: #ffffff;    
        border-color: #dc2626;    
        background-color: #27272a;    
    }    
    .header-nav a.current-page {    
        border: 1px solid #dc2626;    
        background-color: #dc2626;    
        color: #ffffff;    
        padding: 0.5rem 0.75rem;    
    }
}
@media (max-width: 767px) {
    .header-nav a.current-page {    
        background-color: #dc2626;    
        color: #ffffff;    
        border: 1px solid #dc2626; 
    }
}
.header-nav a:active {    
    background-color: #f0f2f5 !important; 
    color: #18181b !important; 
    transform: scale(0.98); 
}
.header:not(:has(.header-logo)) {
    display: flex;
    justify-content: flex-end; 
    align-items: center;
}
.header:not(:has(.header-logo)) .header-logo,
.header:not(:has(.header-logo)) .hamburger-icon,
.header:not(:has(.header-logo)) .header-nav {
    display: none !important;
}

/* --- СТИЛЫ ДЛЯ ВЫБОРА ЯЗЫКА (LANGUAGE DROPDOWN) --- */
.lang-dropdown {
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 20;    
    display: block;    
}
.lang-button {
    background-color: #3f3f46;
    color: #ffffff;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none; 
}
.lang-button:hover {
    background-color: #52525b;
}
.lang-options {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 5px;
    min-width: 150px;
    display: none;
}
.lang-options.active {
    display: block;
}
.lang-options a {
    display: block;
    padding: 10px 15px;
    color: #e5e7eb;
    text-decoration: none;
    text-align: left;
    white-space: nowrap;
    border: none;    
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}
.lang-options a:hover {
    background-color: #dc2626;
    color: #ffffff;
}
.flag-icon {
    font-size: 1.2rem;
    margin-right: 5px;
}
@media (max-width: 767px) {
    .lang-dropdown {
        position: static;
        margin: 0.5rem auto 0.5rem 5%;
        width: 90%;
    }
    .lang-options {
        position: static;
        width: 100%;
        margin-top: 0.5rem;
    }
}


/* --- III. СТИЛЫ СТРАНИЦЫ 'MUSIC.PHP' (НОВЫЙ ПЛЕЕР) --- */
.album-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.album-item {
    background-color: #27272a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.album-content {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 1.5rem;
    padding: 1.5rem;
}
.album-cover-large {
    width: 100%;
    max-width: 350px; 
    height: auto;
    border-radius: 6px;
    margin: 0 auto; 
}
.album-info {
    display: flex;
    flex-direction: column;
}
.album-info h2 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 0 0.5rem 0;
}
.album-year {
    color: #a1a1aa;
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
}
.album-description {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.buy-button {
    background-color: #dc2626;
    color: #ffffff;
    font-weight: bold;
    padding: 12px 20px;
    border-radius: 6px;
    text-align: center;
    transition: background-color 0.2s;
    text-decoration: none;
    max-width: 300px; 
}
.buy-button:hover {
    background-color: #b91c1c;
}

@media (min-width: 768px) {
    .album-content {
        grid-template-columns: 350px 1fr; 
    }
    .album-cover-large {
        margin: 0; 
    }
}
@media (min-width: 1024px) {
    .album-content {
        grid-template-columns: 2fr 1fr;    
    }
    .album-tracks {
        grid-column: 2; 
        grid-row: 1; 
    }
    .album-info-wrapper {
        display: grid;
        grid-template-columns: 350px 1fr; 
        gap: 1.5rem;
        grid-column: 1;
    }
    .album-cover-large {
        grid-column: 1;
    }
    .album-info {
        grid-column: 2;
    }
}


/* --- IV. СТИЛЫ СТРАНИЦЫ 'GALLERY.PHP' --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.gallery-item { overflow: hidden; border-radius: 8px; border: 1px solid #27272a; background-color: #27272a; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.gallery-item img:hover { transform: scale(1.05); }

/* --- V. СТИЛЫ СТРАНИЦЫ 'STORIES.PHP' --- */
.story-item { background-color: #27272a; border-radius: 8px; margin-bottom: 30px; padding: 25px; box-shadow: 0 4px 8px rgba(0,0,0,0.4); }
.story-item h2 { font-size: 1.8rem; color: #ffffff; margin-top: 0; margin-bottom: 10px; }
.story-item .story-meta { color: #a1a1aa; font-size: 0.9rem; margin-bottom: 20px; }
.story-item .story-image { width: 100%; height: auto; border-radius: 4px; margin-bottom: 20px; }
.story-item .story-content { line-height: 1.6; color: #d1d5db; white-space: pre-wrap; }

/* --- VI. СТИЛЫ СТРАНИЦЫ 'BAND.PHP' --- */
.member-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; padding-bottom: 50px; }
.member-card { background-color: #27272a; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.5); padding: 20px; text-align: center; }
.member-card img { width: 100%; max-width: 250px; height: auto; border-radius: 50%; object-fit: cover; margin-bottom: 15px; border: 4px solid #dc2626; }
.member-card h2 { font-size: 1.8rem; color: #ffffff; margin: 0; }

/* --- VII. СТИЛЫ СТРАНИЦЫ 'CHECKOUT.PHP' --- */
.checkout-box { background-color: #27272a; padding: 2rem; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.5); max-width: 600px; margin: 2rem auto; text-align: center; }
@media (min-width: 768px) { .checkout-box { margin: 5rem auto; padding: 3rem; } }
.checkout-box h2 { font-size: 2rem; color: #dc2626; margin-bottom: 2rem; }
.payment-option {    
    margin-bottom: 1.5rem;    
    padding: 1.5rem;    
    border: 2px solid #3f3f46;    
    border-radius: 8px;    
    transition: border-color 0.3s, background-color 0.3s;
    cursor: pointer;    
    position: relative;    
    display: block;    
    color: inherit;    
    text-align: center;
}
.payment-option:hover {    
    border-color: #dc2626;    
    background-color: #2e2e31;    
    text-decoration: none;    
}
.payment-option:active {
    transform: scale(0.99);    
}
.payment-button-text {
    display: block;
    width: 100%;    
    background-color: #dc2626;    
    color: #ffffff;    
    padding: 1rem;    
    border-radius: 4px;    
    font-weight: bold;    
    font-size: 1.1rem;
    margin-top: 1rem;
}
.payment-button.international { background-color: #3b82f6; }

/* ✅ ✅ ✅ ИСПРАВЛЕНИЕ: Шрифты на мобильной версии (Проблема 2) */
@media (max-width: 767px) {
    .checkout-box {
        padding: 1.5rem;
        margin-top: 1rem;
    }
    .checkout-box h2 {
        font-size: 1.5rem; /* Уменьшаем главный заголовок */
        margin-bottom: 1.5rem;
    }
    .payment-option {
        padding: 1rem;
    }
    .payment-option h3 {
        font-size: 1.1rem; /* Уменьшаем заголовок блока */
    }
    .payment-option p {
        font-size: 0.9rem; /* Уменьшаем описание */
        line-height: 1.4;
    }
    .payment-button-text {
        font-size: 1rem;
        padding: 0.8rem;
    }
}
/* ✅ ✅ ✅ КОНЕЦ ИСПРАВЛЕНИЯ */


/* --- VIII. НОВЫЕ СТИЛЫ АУДИОПЛЕЕРА (ИСПРАВЛЕНИЕ) --- */
.play-album-button {
    background-color: #ffffff;
    color: #18181b;
    font-weight: bold;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s, transform 0.2s;
    margin-bottom: 1rem;
    display: inline-block;
}
.play-album-button:hover {
    background-color: #d1d5db; 
    transform: scale(1.02);
}
.tracklist-container {
    width: 100%;
}
.tracklist {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #27272a; 
    border-radius: 6px;
    overflow: hidden;
    background-color: #1f1f22;    
}
.tracklist li {
    padding: 12px 15px;
    border-bottom: 1px solid #3f3f46;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 10px; 
}
.tracklist li:last-child {
    border-bottom: none;
}
.tracklist li:hover {
    background-color: #3f3f46;
}
.tracklist li .track-number {
    color: #a1a1aa;
    font-weight: bold;
    min-width: 20px;
}
.tracklist li .track-title {
    color: #e5e7eb;
    font-weight: 500;
    flex-grow: 1; 
}
.tracklist li span.demo-label {
    font-size: 0.8rem;
    color: #dc2626; 
    font-weight: bold;
    background-color: #450a0a;
    padding: 2px 5px;
    border-radius: 4px;
    margin-left: auto; 
    white-space: nowrap; 
}
.tracklist li.playing {
    background-color: #dc2626; 
}
.tracklist li.playing .track-number,
.tracklist li.playing .track-title {
    color: #ffffff; 
}

/* --- IX. FOOTER & CLEANUP --- */
.footer { 
    text-align: center; 
    padding: 1.5rem; 
    border-top: 1px solid #3f3f46; 
    font-size: 0.75rem; 
    color: #71717a; 
    margin-top: auto; 
    padding-bottom: 1.5rem; 
}

/* --- X. СТИЛИ МОДАЛЬНОГО ОКНА (НОВОЕ) --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); z-index: 1000;
    display: none; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.modal-overlay.open { display: flex; opacity: 1; }
.modal-window {
    background: #27272a; padding: 2rem; border-radius: 8px; width: 90%; max-width: 400px;
    position: relative; text-align: center; border: 1px solid #3f3f46;
}
.close-modal {
    position: absolute; top: 10px; right: 15px; font-size: 1.5rem; cursor: pointer; color: #71717a;
}
.close-modal:hover { color: #dc2626; }
.modal-window h3 { margin-top: 0; color: #dc2626; }
.modal-window p { font-size: 0.9rem; color: #a1a1aa; margin-bottom: 1.5rem; }
.modal-input {
    width: 100%; padding: 10px; margin-bottom: 10px; border-radius: 4px; border: 1px solid #3f3f46;
    background: #18181b; color: #fff; font-size: 1rem;
}
.modal-submit {
    width: 100%; padding: 10px; background: #dc2626; color: #fff; border: none;
    border-radius: 4px; font-weight: bold; cursor: pointer; font-size: 1rem;
}
.modal-submit:hover { background: #b91c1c; }