/* 1. ОБНУЛЕНИЕ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 2. ПОДКЛЮЧЕНИЕ ШРИФТОВ */
@font-face {
    font-family: 'gvozdoder';
    src: url('../fonts/gvozdoder.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'russianpunk';
    src: url('../fonts/russianpunk.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* 3. ОСНОВНЫЕ СТИЛИ */
body {
    background-image: url('../css/img/fon2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #efefef;
    font-family: 'russianpunk', monospace;
}

/* 4. ШАПКА С ФОНОМ */
.hero {
    background-image: url('../css/img/fon1.jpg');
    background-position: 40% 0px;
    background-repeat: no-repeat;
    background-size: 90% auto;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    clip-path: polygon(
        5% 0%, 10% 3%, 15% 0%, 20% 4%, 25% 1%, 30% 5%, 35% 0%, 40% 3%, 45% 0%, 50% 4%,
        55% 1%, 60% 5%, 65% 0%, 70% 3%, 75% 0%, 80% 4%, 85% 1%, 90% 5%, 95% 0%, 100% 3%,
        100% 95%, 95% 98%, 90% 94%, 85% 99%, 80% 96%, 75% 100%, 70% 97%, 65% 99%, 60% 95%,
        55% 98%, 50% 96%, 45% 100%, 40% 97%, 35% 99%, 30% 94%, 25% 98%, 20% 95%, 15% 99%,
        10% 96%, 5% 100%, 0% 97%, 0% 3%
    );
}

/* 5. НАВИГАЦИЯ */
.punk-nav {
    margin-top: auto;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    background: #111;
    padding: 10px 20px;
    border-bottom: 3px solid #ff3366;
    border-radius: 40px;
    width: fit-content;
}

.punk-nav a {
    display: inline-block;
    position: relative;
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    transition: 0.2s;
    background: transparent;
    border-radius: 5px;
    font-family: 'russianpunk', monospace; /* добавлено */
}

.punk-nav a:hover {
    background: #ff3366;
    color: black;
    transform: skewX(-5deg) scale(1.05);
    box-shadow: 0 0 8px #ff3366;
}

/* 6. АНИМАЦИЯ ВЗРЫВА */
.punk-nav a.explode {
    animation: explodeAnim 0.4s ease-out forwards;
    pointer-events: none;
}

@keyframes explodeAnim {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: scale(3) rotate(45deg);
        opacity: 0;
        filter: blur(4px);
    }
}

/* 7. СЕКЦИИ И ПОДВАЛ */
section, footer {
    margin: 40px 20px;
    padding: 20px;
    background: rgba(82, 77, 77, 0.5);
    border-radius: 20px;
    text-align: center;
}

h3 {
    background: #ff3366;
    color: #111;
    padding: 5px;
}

h2 {
    color: #ff3366;
    margin-bottom: 20px;
    font-family: 'gvozdoder', 'Courier New';
    font-size: 36px;
    text-shadow: 2px 2px 0 #660000;
}
p {
    color: #00ffcc;
    counter-set: inherit;
    text-shadow: 3px 2px #000000;
}

/* 8. КНОПКИ */
.btn {
    display: inline-block;
    background: #ff3366;
    color: black;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    border-radius: 30px;  
    transition: 0.2s;
}
.btn:hover {
    background: white;
    color: #ff3366;
    transform: scale(1.05);
}

/* 9. ГАЛЕРЕЯ */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}
.gallery-grid img {
    width: 250px;
    height: auto;
    border-radius: 15px;
    border: 2px solid #ff3366;
    transition: transform 0.3s;
}
.gallery-grid img:hover {
    transform: scale(1.05);
}

/* 10. ВИДЕО */
.video-wrapper {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}
iframe {
    max-width: 100%;
    border-radius: 15px;
}

/* 11. КАСТОМНЫЙ ПЛЕЕР (АЛЬБОМЫ + ТРЕКИ) */
.custom-player {
    max-width: 800px;
    margin: 30px auto;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #ff3366;
    box-shadow: 0 0 15px rgba(255,51,102,0.3);
}

.player-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.album-art {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #ff3366;
    background: #111;
}

.track-info {
    text-align: left;
}

.track-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ff3366;
    font-family: 'gvozdoder', 'Courier New', monospace;
}

.track-artist {
    font-size: 0.9rem;
    opacity: 0.8;
}

.player-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.player-controls button {
    background: #ff3366;
    border: none;
    color: black;
    font-size: 1.5rem;
    font-weight: bold;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    transition: all 0.2s ease;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.player-controls button:hover {
    background: white;
    color: #ff3366;
    transform: scale(1.1);
    box-shadow: 0 0 12px #ff3366;
}

/* Стили для альбомов и треков */
.albums-container, .tracks-container {
    margin-top: 20px;
    border-top: 1px solid #ff3366;
    padding-top: 15px;
}
.albums-container h4, .tracks-container h4 {
    margin-bottom: 10px;
    font-family: 'gvozdoder', 'Courier New', monospace;
}
#albums-list, #tracks-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 180px;
    overflow-y: auto;
}
.album-item, .track-item {
    padding: 8px 12px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.2s;
    font-family: 'Courier New', monospace;
}
.album-item:hover, .track-item:hover {
    background: #ff3366;
    color: black;
    transform: translateX(5px);
}
.album-item.active, .track-item.active {
    background: #ff3366;
    color: black;
    font-weight: bold;
    border-left: 4px solid white;
}

.lyrics-container {
    margin-top: 20px;
    border-top: 1px solid #ff3366;
    padding-top: 15px;
}
.lyrics-container h4 {
    margin-bottom: 10px;
    font-family: 'gvozdoder', 'Courier New', monospace;
}
#song-lyrics {
    background: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    white-space: pre-wrap;
    max-height: 250px;
    overflow-y: auto;
    color: #efefef;
}

/* 12. АДАПТИВНОСТЬ */
@media (max-width: 700px) {
    .punk-nav {
        flex-wrap: wrap;
        gap: 10px;
        width: 90%;
        justify-content: center;
    }
    .punk-nav a {
        font-size: 14px;
        padding: 5px 10px;
    }
    .hero {
        background-size: cover;
        min-height: 300px;
    }
    .custom-player {
        margin: 20px 10px;
        padding: 15px;
    }
    .player-info {
        justify-content: center;
        text-align: center;
    }
    .track-info {
        text-align: center;
    }
    .album-art {
        width: 80px;
        height: 80px;
    }
    .track-title {
        font-size: 1.2rem;
    }
}
/* ===== РАЗДЕЛ "УЧАСТНИКИ" ===== */
.members-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
}

.member-card {
    width: 200px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}

.member-card img {
    width: 150px;
    height: 350px;
    object-fit: cover;
    border-radius: 10%;
    transition: all 0.3s;
}

.member-card h4 {
    margin: 15px 0 5px;
    font-family: 'gvozdoder', 'Courier New', monospace;
    font-size: 1.4rem;
    color: #ff3366;
}

.member-card p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Панк-эффекты при наведении */
.member-card:hover {
    transform: scale(1.05) rotate(-1deg);
    background: rgba(255, 51, 102, 0.2);
    box-shadow: 0 0 20px #ff3366;
    border-color: white;
}

.member-card:hover img {
    transform: scale(1.1);
    border-color: white;
    filter: grayscale(20%) brightness(1.1);
}

.member-card:active {
    transform: scale(0.98);
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #111;
    border: 2px solid #ff3366;
    border-radius: 30px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalPop 0.3s ease-out;
    box-shadow: 0 0 30px rgba(255,51,102,0.5);
}

@keyframes modalPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: #ff3366;
    transition: 0.2s;
}
.close-modal:hover {
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px 20px;
    text-align: center;
}
.modal-body h2 {
    font-family: 'gvozdoder', 'Courier New', monospace;
    color: #ff3366;
    margin-bottom: 10px;
}
.modal-body p {
    margin: 10px 0;
    font-size: 1rem;
}
#modal-bio {
    margin-top: 20px;
    padding: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
}
/* Глючный эффект для заголовка */
.glitch {
    position: relative;
    font-size: 2rem;
    font-weight: bold;
    color: #ff3366;
    margin-top: 30px;
    text-shadow: 0 0 5px #ff3366;
    animation: glitch-skew 3s infinite linear alternate;
    background: transparent;
    padding: 0;
    font-family: 'russianpunk', monospace !important;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
}

.glitch::before {
    color: #00ffcc;
    z-index: 1;
    animation: glitch-anim 0.3s infinite linear alternate-reverse;
}

.glitch::after {
    color: #ff00cc;
    z-index: 0;
    animation: glitch-anim2 0.3s infinite linear alternate-reverse;
}

/* Анимация глюка */
@keyframes glitch-anim {
    0% { transform: translate(0); opacity: 1; }
    20% { transform: translate(-3px, 2px); opacity: 0.8; }
    40% { transform: translate(3px, -2px); opacity: 0.9; }
    60% { transform: translate(-2px, 1px); opacity: 0.7; }
    80% { transform: translate(2px, -1px); opacity: 0.8; }
    100% { transform: translate(0); opacity: 1; }
}

@keyframes glitch-anim2 {
    0% { transform: translate(0); opacity: 0; }
    20% { transform: translate(3px, -1px); opacity: 0.6; }
    40% { transform: translate(-3px, 1px); opacity: 0.8; }
    60% { transform: translate(1px, -2px); opacity: 0.5; }
    80% { transform: translate(-1px, 2px); opacity: 0.7; }
    100% { transform: translate(0); opacity: 0; }
}

@keyframes glitch-skew {
    0% { transform: skew(0deg); }
    10% { transform: skew(2deg); }
    20% { transform: skew(-1deg); }
    30% { transform: skew(1deg); }
    40% { transform: skew(-2deg); }
    50% { transform: skew(0deg); }
    100% { transform: skew(0deg); }
}

.glitch:hover::before,
.glitch:hover::after {
    animation-duration: 0.15s;
}

.glitch:hover {
    animation: glitch-skew 0.5s infinite;
}
/* Панк-курсор с локальной картинкой */
body {
    cursor: url('../css/img/курсор.png') 128 0, auto;
}
/* ===== РАЗДЕЛ МЕРЧА ===== */
.merch-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}
.merch-card {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #ff3366;
    border-radius: 20px;
    padding: 20px;
    width: 260px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.merch-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0 15px #ff3366;
}
.merch-card img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    border: 1px solid #ff3366;
}
.merch-card h4 {
    font-family: 'gvozdoder', 'Courier New', monospace;
    margin: 15px 0 5px;
    color: #ff3366;
    font-size: 1.3rem;
}
.merch-card p {
    font-size: 0.9rem;
    margin: 8px 0;
}
.price {
    font-weight: bold;
    color: #ffaa33;
    font-size: 1.2rem;
}
.order-btn {
    background: #ff3366;
    border: none;
    color: black;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 40px;
    margin-top: 10px;
    transition: 0.2s;
    width: 100%;
    font-family: inherit;
}
.order-btn:hover {
    background: white;
    color: #ff3366;
    transform: scale(1.02);
    cursor: none;
}
/* ===== СТИЛИ ДЛЯ КОНЦЕРТОВ ===== */
.gigs-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}
.gig-card {
    width: 300px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #ff3366;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}
.gig-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px #ff3366;
}
.gig-poster {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center 1px !important;
    border-bottom: 2px solid #ff3366;
    cursor: pointer;
}
.gig-info {
    padding: 15px;
}
.gig-title {
    font-family: 'gvozdoder', 'Courier New', monospace;
    font-size: 1.3rem;
    color: #ff3366;
    margin-bottom: 10px;
    cursor: pointer;
    transition: 0.2s;
}
.gig-title:hover {
    text-shadow: 0 0 5px #ff3366;
    transform: scale(1.02);
}
.gig-date {
    font-size: 0.9rem;
    margin: 10px 0;
    color: #ffaa33;
}
.gig-countdown {
    background: #111;
    padding: 8px;
    border-radius: 15px;
    margin: 15px 0;
    font-weight: bold;
    font-size: 0.9rem;
}
.gig-countdown span {
    color: #ff3366;
    font-size: 1.1rem;
    margin: 0 2px;
}
.gig-link {
    display: inline-block;
    background: #ff3366;
    color: black;
    padding: 8px 16px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
    margin-top: 5px;
}
.gig-link:hover {
    background: white;
    color: #ff3366;
    transform: scale(1.02);
}
@media (max-width: 700px) {
    .gig-card { width: 260px; }
    .gig-poster { height: 160px; object-position: center 20px; }
    .gig-title { font-size: 1.1rem; }
}
#about {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #ff3366;
    box-shadow: 0 0 10px #ff3366, inset 0 0 5px #ff3366;
    transition: 0.3s;
}
#about:hover {
    box-shadow: 0 0 20px #ff3366, inset 0 0 10px #ff3366;
}
#about p {
    text-shadow: 2px 2px 0 #000;
    letter-spacing: 1px;
}
/* ===== НЕОНОВАЯ РАМКА ДЛЯ ПОДВАЛА ===== */
footer {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #ff3366;
    box-shadow: 0 0 10px #ff3366, inset 0 0 5px #ff3366;
    transition: 0.3s;
    border-radius: 20px;
    margin: 40px 20px;
    padding: 20px;
    text-align: center;
}
footer:hover {
    box-shadow: 0 0 20px #ff3366, inset 0 0 10px #ff3366;
}
.video-wrapper {
    border: 2px solid #ff3366;
    box-shadow: 0 0 10px #ff3366, inset 0 0 5px #ff3366;
    border-radius: 20px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    transition: 0.3s;
    display: inline-block;
}
.video-wrapper:hover {
    box-shadow: 0 0 20px #ff3366, inset 0 0 10px #ff3366;
}
/* ===== НЕОНОВАЯ РАМКА ДЛЯ СЕКЦИИ ГАЛЕРЕИ ===== */
#gallery {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #ff3366;
    box-shadow: 0 0 10px #ff3366, inset 0 0 5px #ff3366;
    transition: 0.3s;
    border-radius: 20px;
    margin: 40px 20px;
    padding: 20px;
    text-align: center;
}
#gallery:hover {
    box-shadow: 0 0 20px #ff3366, inset 0 0 10px #ff3366;
}

/* ===== КАРТИНКИ В ГАЛЕРЕЕ – РАМКА ПОДСВЕЧИВАЕТСЯ ПРИ НАВЕДЕНИИ ===== */
.gallery-grid img {
    width: 250px;
    height: auto;
    border-radius: 15px;
    border: 2px solid #ff3366;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(255,51,102,0.3);
}
.gallery-grid img:hover {
    transform: scale(1.05);
    border-color: #ff3366;
    box-shadow: 0 0 20px #ff3366;
}
/* ===== КНОПКИ АЛЬБОМОВ ===== */
.gallery-albums {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}
.album-btn {
    background: #111;
    border: 2px solid #ff3366;
    color: #ff3366;
    padding: 8px 20px;
    font-family: 'gvozdoder', 'Courier New', monospace;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    border-radius: 40px;
}
.album-btn:hover, .album-btn.active {
    background: #ff3366;
    color: black;
    box-shadow: 0 0 10px #ff3366;
}

/* ===== ЛАЙТБОКС (ПОЛНОЭКРАННЫЙ ПРОСМОТР) ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.lightbox-img {
    max-width: 90%;
    max-height: 85%;
    border: 3px solid #ff3366;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(255,51,102,0.5);
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 3rem;
    color: #ff3366;
    cursor: pointer;
    transition: 0.2s;
}
.lightbox-close:hover {
    color: white;
    transform: scale(1.2);
}
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: #ff3366;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    padding: 10px;
    border-radius: 50%;
    width: 60px;
    text-align: center;
    transition: 0.2s;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover {
    color: white;
    background: #ff3366;
    transform: scale(1.1);
}
@media (max-width: 700px) {
    .lightbox-prev, .lightbox-next { font-size: 2rem; width: 40px; }
    .lightbox-close { font-size: 2rem; top: 10px; right: 20px; }
}

/* ===== ШРИФТЫ: ОКОНЧАТЕЛЬНАЯ ВЕРСИЯ ===== */
/* 1. Обычный текст – всегда russianpunk */
body, p, .bot-message, .user-message, .punk-bot-questions button, 
.punk-bot-input input, .punk-bot-input button, .gig-date, 
.gig-countdown, .gig-link, .price, .modal-body p, #song-lyrics,
.punk-nav a { 
    font-family: 'russianpunk', monospace;
}

/* 2. Заголовки и элементы с gvozdoder (русский) */
h1, h2, h3, h4, .gig-title, .track-title, 
.member-card h4, .merch-card h4, .album-btn, .order-btn {
    font-family: 'gvozdoder', 'Courier New', monospace;
}

/* 3. Английская версия – заменяем gvozdoder на латиницу */
body.lang-en h2, 
body.lang-en h3, 
body.lang-en h4, 
body.lang-en .gig-title, 
body.lang-en .track-title, 
body.lang-en .member-card h4, 
body.lang-en .merch-card h4, 
body.lang-en .album-btn, 
body.lang-en .order-btn {
    font-family: 'Courier New', 'Arial', monospace !important;
}

/* 4. Шапка (glitch) – всегда russianpunk */
.glitch {
    font-family: 'russianpunk', monospace !important;
}