/* Общие стили */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: #181818;
    color: #ffffff;
    line-height: 1.6;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

/* Хедер */
.header-banner {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.avatar-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    transition: transform 0.3s;
}

.avatar:hover {
    transform: scale(1.05) rotate(5deg);
}

/* Навигация */
nav {
    background: #222;
    position: relative;
    padding: 15px 0;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 14px 20px;
    font-size: 17px;
    display: block;
    transition: color 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ff5722;
    transition: all 0.3s;
}

.nav-link:hover::after {
    width: 60%;
    left: 20%;
}

.nav-link:hover {
    color: #bb86fc;
}

/* Мобильное меню */
.menu-toggle {
    display: none;
    background: #ff5722;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: clamp(20px, 5vw, 24px);
    padding: 12px 18px;
    margin: 15px auto;
    width: 90%;
    max-width: 300px;
    cursor: pointer;
    transition: background 0.3s;
}

.menu-toggle:hover {
    background: #e64a19;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 5px !important;
        width: 100%;
        background: #333;
        padding: 5px 0 !important;
        animation: slideDown 0.3s ease-out;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        font-size: clamp(16px, 4.5vw, 18px) !important;
        padding: 12px 5% !important;
    }

    .menu-toggle {
        display: block;
    }
}

/* Аудиоплеер */
:root {
    --plyr-color-main: #ff5722;
    --plyr-control-radius: 12px;
    --plyr-tooltip-background: #222;
}

.plyr--audio .plyr__controls,
.plyr--video .plyr__controls {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.plyr__control svg {
    fill: #ff5722 !important;
    color: #ff5722 !important;
}

.plyr__control:hover svg {
    fill: #e64a19 !important;
}

/* Видео */
.video-player {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

/* Секции контента */
section.content {
    background: #222;
    border-radius: 15px;
    margin: 30px auto;
    padding: 25px;
    max-width: 900px;
    animation: fadeInUp 0.5s ease-out;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    color: #ff5722;
    text-align: center;
}

h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

h3 {
    font-size: 22px;
    margin: 20px 0;
}

/* Стилизация медиа-контента */
.track, .poem, .gallery-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.track:hover, .poem:hover, .gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.track-title, .poem-title {
    color: #ff5722;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2em;
    margin-bottom: 10px;
}

/* Видеогалерея */
/* .video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

 .video-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
} */

.video-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Центрирование по вертикали */
    gap: 20px;
    padding: 20px;
}

.video-card {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 600px; /* Максимальная ширина */
}

.video-player {
    width: 100%;
    height: auto;
    display: block;
}

/* Контакты */
.contact-link {
    color: #ff5722 !important;
    text-decoration: underline;
}

@media (min-width: 769px) {
    .contact-info {
        max-width: 600px;
        margin: 0 auto;
        text-align: center;
    }

    .contact-info ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 30px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 20px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }

    .contact-info li {
        display: flex;
        align-items: center;
        gap: 15px;
        font-size: 18px;
    }
}

/* Футер */
.copyright {
    text-align: center;
    padding: 20px 0;
    color: #ff5722;
    font-size: 14px;
}
.avatar-text {
    text-align: center;
    margin-top: 10px;
    white-space: nowrap; /* Запрещаем перенос текста на новую строку */
    overflow: hidden; /* Скрываем текст, который не помещается */
    text-overflow: ellipsis; /* Добавляем многоточие, если текст обрезается */
    max-width: 100%; /* Ограничиваем ширину текста */
}

.avatar-text h1 {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    white-space: nowrap; /* Запрещаем перенос текста на новую строку */
    overflow: hidden; /* Скрываем текст, который не помещается */
    text-overflow: ellipsis; /* Добавляем многоточие, если текст обрезается */
    max-width: 100%; /* Ограничиваем ширину текста */
}
.avatar-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin: 0;
    white-space: nowrap; /* Запрещаем перенос текста на новую строку */
    overflow: hidden; /* Скрываем текст, который не помещается */
    text-overflow: ellipsis; /* Добавляем многоточие, если текст обрезается */
    max-width: 100%; /* Ограничиваем ширину текста */
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Медиазапросы для мобильных */
@media (max-width: 480px) {
    .header-banner {
        height: 300px;
    }

    .avatar {
        width: 140px;
        height: 140px;
    }

    section.content {
        margin: 20px 10px;
        padding: 15px;
    }
}