/* style_konzerte.css */

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        body {
            font-family: Arial, sans-serif;
            background-color: #f5f5dc;
            line-height: 1;
        }
        .top-bar {
            height: 8px;
            background-color: #d4c9a8;
            width: 100%;
        }
        .header {
            padding: 10px 5% 5px;
            background-color: #f5f5dc;
            position: relative;
        }
        .header-content {
            display: flex;
            flex-direction: column;
            width: 100%;
        }
        .logo-container {
            width: 100%;
            margin-bottom: 15px;
            position: relative;
        }
        .logo-img {
            width: 100%;
            height: auto;
            display: block;
            border-radius: 8px;
            object-fit: cover;
        }
        .menu-toggle {
            display: none;
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            position: absolute;
            top: 50%;
            right: 0;
            transform: translateY(-50%);
            z-index: 10;
        }
        .menu-container {
            width: 100%;
            position: relative;
        }
        .menu {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-around;
            width: 100%;
            gap: 10px;
        }
        .menu a {
            text-decoration: none;
            color: #333;
            font-size: 18px;
            padding: 8px 12px;
            transition: all 0.2s ease;
            text-transform: capitalize;
            white-space: nowrap;
        }
        .menu a:hover {
            color: #666;
            border: 2px solid #722F37;
            border-radius: 5px;
        }
        .main-content {
            padding: 20px 5%;
        }
        .gallery-title {
            text-align: center;
            margin-bottom: 20px;
            font-size: 24px;
            color: #333;
        }
        .videos-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
        }
        .video-item {
            position: relative;
            border-radius: 8px;
            overflow: hidden;
            transition: transform 0.3s ease;
            cursor: pointer;
        }
        .video-item:hover {
            transform: scale(1.03);
        }
        .video-thumb {
            width: 100%;
            height: 180px;
            object-fit: cover;
            display: block;
        }
        .video-info {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 10px;
            transform: translateY(100%);
            transition: transform 0.3s ease;
        }
        .video-item:hover .video-info {
            transform: translateY(0);
        }
        .video-title {
            font-weight: bold;
            margin-bottom: 5px;
            font-size: 14px;
        }
        .video-details {
            font-size: 12px;
        }
        /* Стили для кнопки воспроизведения */
        .play-button {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 100px;
            height: 100px;
            background: url('img/play.png') no-repeat center center;
            background-size: contain;
            opacity: 0.8;
            transition: all 0.3s ease;
            z-index: 2;
        }
        .video-item:hover .play-button {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1.1);
        }
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }
        .modal-content {
            background: white;
            padding: 20px;
            border-radius: 8px;
            width: 90%;
            max-width: 900px;
            position: relative;
        }
        .close-modal {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 30px;
            height: 30px;
            background: #722F37;
            border-radius: 50%;
            border: 2px solid white;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            z-index: 1001;
            box-shadow: 0 2px 5px rgba(0,0,0,0.3);
            transition: all 0.3s ease;
        }
        .close-modal:hover {
            background: #8B4513;
            transform: scale(1.1);
        }
        .close-modal::before,
        .close-modal::after {
            content: '';
            position: absolute;
            width: 16px;
            height: 2px;
            background: white;
        }
        .close-modal::before {
            transform: rotate(45deg);
        }
        .close-modal::after {
            transform: rotate(-45deg);
        }
        .video-container {
            position: relative;
            padding-bottom: 56.25%;
            height: 0;
            overflow: hidden;
            margin-bottom: 15px;
        }
        .video-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
        }
        .video-description {
            padding: 10px;
        }
        .footer {
            background-color: #f5f5dc;
            padding: 20px 5%;
            text-align: center;
            font-family: 'Times New Roman', serif;
            border-top: 1px solid #d4c9a8;
            margin-top: 20px;
        }
        .footer a {
            color: #333;
            text-decoration: none;
            transition: all 0.1s ease;
        }
        .footer a:hover {
            border-bottom: 2px solid #d4c9a8;
        }

        /* Добавлен стиль для затемнения фона при открытом меню */
        .menu-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 5;
        }

        @media (min-width: 992px) {
            .header-content {
                flex-direction: row;
                align-items: center;
                gap: 15px;
            }
            .logo-container {
                width: calc(33.33% - 7.5px);
                margin-bottom: 0;
                display: flex;
                align-items: center;
            }
            .menu-container {
                width: calc(66.66% - 7.5px);
                display: flex;
                align-items: center;
            }
            .menu {
                justify-content: space-between;
            }
            .videos-grid {
                grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            }
        }

        @media (max-width: 991px) {
            .menu {
                display: none;
                flex-direction: column;
                margin-top: 15px;
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background-color: #f5f5dc;
                z-index: 10;
                padding: 15px 5%;
                box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
                justify-content: flex-start;
                align-items: flex-start;
            }
            .menu.active {
                display: flex;
            }
            .menu-toggle {
                display: block;
            }
            .logo-container {
                padding-right: 40px;
            }
            .videos-grid {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            }
            .play-button {
                width: 60px;
                height: 60px;
            }
        }

        @media (max-width: 480px) {
            .videos-grid {
                grid-template-columns: 1fr;
            }
        }