        :root {
            --bg-main: #0f0f1a;
            --accent-primary: #00f2ff;
            --accent-secondary: #bd00ff;
            --glass-bg: rgba(0, 0, 0, 0.4);
            --glass-border: rgba(255, 255, 255, 0.15);
            --text-main: #ffffff;
            --text-muted: #d0d0e0;
            --modal-bg-opacity: 0.70;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        body {
            font-family: 'Nunito', sans-serif;
            min-height: 100vh;
            background: var(--bg-main);
            color: var(--text-main);
            overflow-x: hidden;
        }

        /* --- Ambient Background --- */
        .ambient-bg {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            z-index: -1; overflow: hidden;
        }
        .orb {
            position: absolute; border-radius: 50%;
            filter: blur(100px); opacity: 0.3;
            animation: drift 30s infinite alternate;
        }
        .orb-1 { width: 600px; height: 600px; background: var(--accent-primary); top: -200px; left: -100px; }
        .orb-2 { width: 500px; height: 500px; background: var(--accent-secondary); bottom: -100px; right: -100px; animation-delay: -10s; }
        
        @keyframes drift { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(50px, 50px) scale(1.2); } }

        /* --- Cursor Bubble --- */
        #cursor-blob {
            display: block; position: fixed; width: 25px; height: 25px;
            background: radial-gradient(circle at center, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
            border-radius: 50%; pointer-events: none; z-index: 9999;
            mix-blend-mode: screen; transform: translate(-50%, -50%);
        }

        /* --- Header --- */
        header { padding: 1.5rem 2rem 1rem; text-align: center; z-index: 10; }
        h1 {
            font-size: 2.5rem; font-weight: 900;
            background: linear-gradient(to right, #fff, #a0a0b0);
            -webkit-background-clip: text; -webkit-text-fill-color: transparent;
            text-transform: uppercase; margin-bottom: 0.5rem; letter-spacing: 1px;
        }
        .header-desc { max-width: 600px; margin: 0 auto 1rem auto; font-size: 1.1rem; line-height: 1.5; color: var(--text-muted); font-weight: 600; }
        .header-desc strong { color: var(--accent-primary); font-weight: 900; }

        /* --- Grid Container --- */
        .container {
            max-width: 1400px; margin: 0 auto; padding: 1rem 2rem;
            display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 2rem; justify-items: center; perspective: 1000px;
        }

        /* --- Video Cards --- */
        .video-card-wrapper { width: 100%; height: 280px; perspective: 1000px; }
        .video-card {
            width: 100%; height: 100%; position: relative; border-radius: 20px; overflow: hidden;
            transform-style: preserve-3d; transition: transform 0.2s ease-out;
            background: var(--glass-bg); border: 1px solid var(--glass-border);
            display: flex; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        }
        .card-bg {
            position: absolute; top: -10px; left: -10px; width: 120%; height: 120%;
            background-size: cover; background-position: center;
            filter: blur(10px) brightness(0.6); z-index: 0;
            transition: transform 0.3s ease, filter 0.3s ease;
        }
        .video-card:hover { border-color: var(--accent-primary); box-shadow: 0 15px 40px rgba(0, 242, 255, 0.2); }
        .video-card:hover .card-bg { filter: blur(5px) brightness(0.8); transform: scale(1.1); }
        .card-content { position: relative; z-index: 2; text-align: center; margin: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; }
        .play-btn-circle {
            width: 60px; height: 60px; background: rgba(255, 255, 255, 0.1);
            border: 2px solid rgba(255,255,255,0.4); border-radius: 50%;
            display: flex; justify-content: center; align-items: center;
            backdrop-filter: blur(5px); transition: all 0.3s ease; box-shadow: 0 5px 20px rgba(0,0,0,0.3);
        }
        .video-card:hover .play-btn-circle { background: var(--accent-primary); border-color: var(--accent-primary); transform: translateZ(40px) scale(1.1); box-shadow: 0 0 20px var(--accent-primary); }
        .play-btn-circle::after { content: ''; width: 0; height: 0; border-left: 15px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
        .card-title { font-size: 1.2rem; font-weight: 800; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
        .card-subtitle { font-size: 0.8rem; color: rgba(255,255,255,0.7); }

        /* --- Search Section --- */
        .search-section { max-width: 750px; margin: 3rem auto 2rem auto; padding: 0 2rem; text-align: center; }
        .search-title { font-size: 1.5rem; color: #fff; margin-bottom: 1.5rem; font-weight: 800; }
        .search-box { display: flex; gap: 10px; background: rgba(255, 255, 255, 0.05); padding: 10px; border-radius: 50px; border: 1px solid var(--glass-border); backdrop-filter: blur(10px); }
        .search-input { flex: 1; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 40px; padding: 12px 20px; color: #fff; font-family: 'Nunito', sans-serif; font-size: 1rem; outline: none; transition: all 0.3s; }
        .search-input::placeholder { color: rgba(255, 255, 255, 0.4); }
        .search-input:focus { border-color: var(--accent-primary); }
        .search-btn { background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary)); border: none; border-radius: 40px; padding: 12px 30px; color: #fff; font-weight: 800; font-size: 1rem; cursor: pointer; transition: transform 0.2s; display: flex; align-items: center; gap: 8px; }
        .search-btn:hover { transform: scale(1.05); }

        /* --- Modal (Universal) --- */
        .video-modal {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(15, 15, 26, var(--modal-bg-opacity)); backdrop-filter: blur(10px);
            z-index: 10000; display: flex; justify-content: center; align-items: center;
            opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
        }
        .video-modal.active { opacity: 1; pointer-events: all; }
        
        .video-content {
            position: relative; width: 80%; max-width: 900px; background: #000;
            border-radius: 20px; box-shadow: 0 0 60px rgba(0, 242, 255, 0.2);
            transform: scale(0.9); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        .video-modal.active .video-content { transform: scale(1); }
        
        /* Universal Media Styling */
        video, .modal-image {
            width: 100%; height: auto; display: none; /* Скрыты по умолчанию */
            border-radius: 20px;
        }
        /* Классы для показа нужного элемента */
        video.active { display: block; }
        .modal-image.active { display: block; }

        /* Кнопка закрытия */
        .close-btn {
            position: absolute; top: -50px; right: 0;
            background: rgba(255, 255, 255, 0.1); border: 2px solid rgba(255,255,255,0.5);
            color: #fff; width: 44px; height: 44px; border-radius: 50%;
            font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
            transition: all 0.3s; z-index: 10;
        }
        .close-btn:hover { background: #fff; color: #000; transform: rotate(90deg) scale(1.1); }

        footer { padding: 3rem; text-align: center; color: #555; font-size: 0.8rem; }

        /* --- Mobile Adaptive --- */
        @media (max-width: 768px) {
            h1 { font-size: 2rem; }
            .container { grid-template-columns: 1fr; padding: 1rem; gap: 1.5rem; }
            .video-card-wrapper { height: 240px; }
            .video-content { width: 95%; }
            .close-btn { top: -45px; right: 5px; }
            #cursor-blob { display: none; }
            .search-box { flex-direction: column; border: none; padding: 0; gap: 1rem; background: transparent; }
            .search-input { width: 100%; }
            .search-btn { width: 100%; justify-content: center; }
        }
