/* Основной стиль страницы */
html,
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(to bottom, #87CEEB, #FFFACD);
    transition: background 1s ease;
    max-width: 100%;
    overflow-x: hidden;
    /* убираем горизонтальный скролл */
}

/* Шапка и логотип */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, #FF7F50, #FFA500);
    color: white;
    padding: 10px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: background 0.5s ease;
}

header .logo {
    display: flex;
    align-items: center;
}

header .logo img {
    height: 40px;
    margin-right: 10px;
}

/* Навигация */
nav ul {
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
}

nav .tab-btn {
    background: linear-gradient(to bottom, #FFD700, #FFC107);
    border: none;
    color: #004080;
    font-size: 16px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    border-radius: 5px;
}

nav .tab-btn:hover {
    background: linear-gradient(to bottom, #FFEB3B, #FFC107);
    transform: scale(1.05);
}

nav .tab-btn.active {
    background: linear-gradient(to bottom, #FFA500, #FF8C00);
    color: white;
}

/* Основной контент */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

.tab-content p {
    line-height: 1.6;
    font-size: 16px;
    color: #000;
    max-width: 800px;
    margin: 10px auto;
    text-align: left;
}

.tab-content ul {
    margin: 20px auto;
    padding-left: 0;
    max-width: 700px;
    text-align: left;
}

.tab-content img,
video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
}

.tab-content h2,
h1 {
    text-align: center;
    margin-top: 25px;
    color: #2c3e50;
}

/* Картинки с эффектом увеличения */
.zoom-img {
    width: 300px;
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 10px;
    margin: 10px auto;
}

.zoom-img:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Подвал */
footer {
    background: linear-gradient(to right, #7ADAA5, #239BA7);
    color: white;
    text-align: center;
    padding: 10px;
    transition: background 0.5s ease;
}

.marquee {
    overflow: hidden;
    white-space: nowrap;
    display: block;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Анимация появления */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Кнопка управления музыкой */
#music-toggle {
    margin-left: 20px;
    padding: 8px 12px;
    background: linear-gradient(to bottom, #FFD700, #FFC107);
    border: none;
    color: #004080;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

#music-toggle:hover {
    background: linear-gradient(to bottom, #FFEB3B, #FFC107);
    transform: scale(1.05);
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.4s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #ff9800;
}

/* Подписи */
figcaption {
    text-align: center;
    font-size: 0.9em;
    color: #555;
    margin-top: 8px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Фильмы */
.movie-list {
    list-style: none;
    padding: 0;
    max-width: 300px;
    margin: 10px auto 20px auto;
    line-height: 1.6;
}

.movie-list li {
    padding: 8px 12px;
    background-color: #fff;
    margin: 5px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.movie-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.media-block {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.poster img {
    max-width: 200px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.movie-list-wrapper {
    flex: 1;
    min-width: 250px;
}

.month-title {
    text-align: center;
    margin: 20px auto;
    font-weight: bold;
    font-size: 22px;
    color: #2c3e50;
}

/* Адаптивность */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    nav .tab-btn {
        width: 100%;
        text-align: left;
        margin: 5px 0;
    }

    main {
        padding: 10px;
    }

    .zoom-img {
        width: 90%;
    }

    video {
        width: 100%;
        height: auto;
    }

    #music-toggle {
        margin: 10px 0 0 0;
        width: 100%;
    }

    .media-block {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .tab-content p {
        font-size: 14px;
    }

    nav .tab-btn {
        font-size: 14px;
        padding: 6px 10px;
    }

    header .logo img {
        height: 30px;
    }
}
