* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif);
}

.demo-controls {
    display: none !important; /* Hidden for embedded version */
}

        .demo-controls h3 {
            margin-bottom: 15px;
            color: #2c3e50;
        }

        .demo-controls select {
            padding: 10px;
            border: 2px solid #e0e0e0;
            border-radius: 6px;
            font-size: 16px;
            margin-right: 10px;
        }

        .demo-controls button {
            background: var(--primary-color, #3498db);
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 16px;
        }

        .poster-controls,
        .autoplay-controls,
        .option-video-controls,
        .keyboard-controls-info,
        .trigger-controls {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 2px solid #e0e0e0;
        }

        .poster-controls h4,
        .autoplay-controls h4,
        .option-video-controls h4,
        .keyboard-controls-info h4,
        .trigger-controls h4 {
            margin-bottom: 15px;
            color: #2c3e50;
        }
        
        .video-config-group {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
            flex-wrap: wrap;
        }
        
        .video-config-group label {
            min-width: 140px;
            font-weight: 500;
            color: #555;
        }
        
        .video-config-note {
            background: #f8f9fa;
            padding: 10px;
            border-radius: 6px;
            border-left: 4px solid var(--primary-color, #3498db);
        }
        
        .keyboard-shortcuts {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 8px;
        }
        
        .shortcut {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            color: #555;
        }
        
        .shortcut kbd {
            background: #f4f4f4;
            border: 1px solid #ccc;
            border-radius: 4px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            padding: 2px 6px;
            font-family: monospace;
            font-size: 12px;
            font-weight: bold;
            color: #333;
            min-width: 20px;
            text-align: center;
        }

        .poster-input-group {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .time-input-group {
            display: flex;
            gap: 10px;
            align-items: center;
            margin-bottom: 15px;
            flex-wrap: wrap;
        }

        .time-input {
            width: 80px;
            padding: 8px;
            border: 2px solid #e0e0e0;
            border-radius: 4px;
            text-align: center;
        }

        .timeline-container {
            margin-top: 15px;
            background: #f8f9fa;
            border-radius: 8px;
            padding: 15px;
        }

        .timeline {
            position: relative;
            height: 40px;
            background: linear-gradient(to right, #e0e0e0 0%, #e0e0e0 100%);
            border-radius: 20px;
            overflow: hidden;
            cursor: pointer;
        }

        .timeline-progress {
            height: 100%;
            background: linear-gradient(to right, var(--primary-color, #3498db), var(--secondary-color, #2980b9));
            border-radius: 20px;
            width: 0%;
            transition: width 0.1s ease;
        }

        .timeline-trigger {
            position: absolute;
            top: -5px;
            width: 20px;
            height: 50px;
            background: #e74c3c;
            border-radius: 10px;
            cursor: pointer;
            transform: translateX(-50%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 12px;
            font-weight: bold;
            box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
        }

        .timeline-trigger:hover {
            background: #c0392b;
            transform: translateX(-50%) scale(1.1);
        }

        .timeline-trigger.triggered {
            background: #95a5a6;
        }

        .timeline-time {
            text-align: center;
            margin-top: 10px;
            font-size: 14px;
            color: #7f8c8d;
        }

        .trigger-list {
            margin-top: 15px;
        }

        .trigger-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px;
            background: white;
            border-radius: 6px;
            margin-bottom: 8px;
            border: 1px solid #e0e0e0;
        }

        .trigger-item.triggered {
            background: #d5f4e6;
            border-color: #27ae60;
        }

        .trigger-time {
            font-weight: bold;
            color: #2c3e50;
        }

        .trigger-mode {
            color: #7f8c8d;
            font-size: 14px;
        }

        .remove-trigger {
            background: #e74c3c;
            color: white;
            border: none;
            padding: 5px 10px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
        }

        .remove-trigger:hover {
            background: #c0392b;
        }

        .video-container {
            position: relative;
            margin: 0 auto;
            background: #000;
            border-radius: var(--border-radius, 8px);
            overflow: hidden;
            box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
            transition: all 0.3s ease;
        }

        .video-container:hover {
            box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
        }

        .video-wrapper {
            position: relative;
            width: 100%;
            height: 0;
            padding-bottom: 56.25%; /* 16:9 aspect ratio */
            background: #000;
        }

        video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            cursor: pointer;
        }

        /* Custom Video Controls */
        .custom-controls {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
            padding: 20px 16px 16px;
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 5;
        }

        .video-container:hover .custom-controls,
        .custom-controls.always-visible {
            opacity: 1;
        }

        /* Disable controls hover in muted autoplay mode */
        .video-container.muted-autoplay:hover .custom-controls {
            opacity: 0;
        }



        .progress-bar {
            height: 100%;
            background: linear-gradient(90deg, var(--primary-color, #667eea) 0%, var(--secondary-color, #764ba2) 50%, #ffffff 100%);
            border-radius: 3px;
            width: 0%;
            transition: width 0.1s ease;
        }

        .progress-handle {
            position: absolute;
            top: 50%;
            transform: translateY(-50%) translateX(-50%);
            width: 14px;
            height: 14px;
            background: white;
            border-radius: 50%;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
            opacity: 0;
            transition: opacity 0.2s ease;
            left: 0%;
        }

        .progress-container:hover .progress-handle {
            opacity: 1;
        }

        /* Trigger highlights on progress bar */
        .trigger-marker {
            position: absolute;
            top: -2px;
            width: 10px;
            height: 10px;
            background: #ffd700;
            border: 2px solid white;
            border-radius: 50%;
            transform: translateX(-50%);
            cursor: pointer;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
            z-index: 10;
        }

        .trigger-marker:hover {
            transform: translateX(-50%) scale(1.2);
        }

        .trigger-marker.triggered {
            background: #90ee90;
        }

        .controls-row {
            display: flex;
            align-items: center;
            gap: 15px;
            height: 40px;
        }

        .controls-left,
        .controls-right {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .progress-container {
            flex: 1;
            position: relative;
            height: 6px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 3px;
            cursor: pointer;
            overflow: visible;
            margin: 0;
        }

        .control-button {
            background: none;
            border: none;
            color: white;
            cursor: pointer;
            padding: 6px;
            border-radius: 4px;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .control-button:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.1);
        }

        .control-button svg {
            width: 20px;
            height: 20px;
            fill: currentColor;
        }

        .play-button svg {
            width: 24px;
            height: 24px;
        }

        .time-display {
            color: white;
            font-size: 13px;
            font-weight: 500;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
            min-width: 80px;
        }

        .volume-container {
            position: relative;
            display: flex;
            align-items: center;
        }

        .volume-flyout {
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.9);
            padding: 10px 8px;
            border-radius: 6px;
            margin-bottom: 10px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.2s ease;
            pointer-events: none;
        }

        .volume-flyout::after {
            content: '';
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            border: 5px solid transparent;
            border-top-color: rgba(0, 0, 0, 0.9);
        }

        .volume-container:hover .volume-flyout {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .volume-slider {
            width: 4px;
            height: 80px;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 2px;
            outline: none;
            -webkit-appearance: slider-vertical;
            cursor: pointer;
            transform: rotate(0deg);
        }

        .volume-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 12px;
            height: 12px;
            background: white;
            border-radius: 50%;
            cursor: pointer;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        /* Speed Control Flyout */
        .speed-container {
            position: relative;
            display: flex;
            align-items: center;
        }

        .speed-flyout {
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.9);
            border-radius: 6px;
            margin-bottom: 10px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.2s ease;
            pointer-events: none;
            min-width: 80px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
        }

        .speed-flyout::after {
            content: '';
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            border: 5px solid transparent;
            border-top-color: rgba(0, 0, 0, 0.9);
        }

        .speed-container:hover .speed-flyout,
        .speed-flyout.visible {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .speed-option {
            display: block;
            width: 100%;
            padding: 8px 12px;
            background: none;
            border: none;
            color: white;
            cursor: pointer;
            font-size: 13px;
            font-weight: 500;
            text-align: center;
            transition: background-color 0.2s ease;
            border-radius: 0;
        }

        .speed-option:first-child {
            border-top-left-radius: 6px;
            border-top-right-radius: 6px;
        }

        .speed-option:last-child {
            border-bottom-left-radius: 6px;
            border-bottom-right-radius: 6px;
        }

        .speed-option:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .speed-option.active {
            background: var(--button-color, rgba(0, 173, 239, 0.6));
            color: white;
        }



        .logo-container {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .logo-container:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.05);
        }

        .logo-container img {
            width: 24px;
            height: 24px;
            object-fit: contain;
        }

        /* Fullscreen Styles */
        .video-container:fullscreen,
        .video-container:-webkit-full-screen,
        .video-container:-moz-full-screen,
        .video-container:-ms-fullscreen {
            max-width: none;
            width: 100vw;
            height: 100vh;
            margin: 0;
            border-radius: 0;
            box-shadow: none;
        }

        .video-container:fullscreen .video-wrapper,
        .video-container:-webkit-full-screen .video-wrapper,
        .video-container:-moz-full-screen .video-wrapper,
        .video-container:-ms-fullscreen .video-wrapper {
            height: 100vh;
            padding-bottom: 0;
        }

        .video-container:fullscreen video,
        .video-container:-webkit-full-screen video,
        .video-container:-moz-full-screen video,
        .video-container:-ms-fullscreen video {
            object-fit: contain;
        }

        .video-container:fullscreen .custom-controls,
        .video-container:-webkit-full-screen .custom-controls,
        .video-container:-moz-full-screen .custom-controls,
        .video-container:-ms-fullscreen .custom-controls {
            opacity: 1;
            padding: 30px 24px 24px;
        }

        .video-container:fullscreen:hover .custom-controls,
        .video-container:-webkit-full-screen:hover .custom-controls,
        .video-container:-moz-full-screen:hover .custom-controls,
        .video-container:-ms-fullscreen:hover .custom-controls {
            opacity: 1;
        }

        .video-container:fullscreen .big-play-button,
        .video-container:-webkit-full-screen .big-play-button,
        .video-container:-moz-full-screen .big-play-button,
        .video-container:-ms-fullscreen .big-play-button {
            width: 100px;
            height: 100px;
        }

        .video-container:fullscreen .big-play-button svg,
        .video-container:-webkit-full-screen .big-play-button svg,
        .video-container:-moz-full-screen .big-play-button svg,
        .video-container:-ms-fullscreen .big-play-button svg {
            width: 40px;
            height: 40px;
        }

        /* Loading State */
        .loading-spinner {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 40px;
            height: 40px;
            border: 3px solid rgba(255, 255, 255, 0.3);
            border-top: 3px solid var(--button-color, #00adef);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            z-index: 3;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .loading-spinner.visible {
            opacity: 1;
        }

        @keyframes spin {
            0% { transform: translate(-50%, -50%) rotate(0deg); }
            100% { transform: translate(-50%, -50%) rotate(360deg); }
        }

        /* Big Play Button */
        .big-play-button {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 80px;
            height: 80px;
            background: rgba(0, 0, 0, 0.8);
            border: 3px solid rgba(255, 255, 255, 0.9);
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 4;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .big-play-button:hover {
            transform: translate(-50%, -50%) scale(1.1);
            background: rgba(0, 0, 0, 0.9);
            border-color: var(--button-color, #00adef);
        }

        .big-play-button svg {
            width: 32px;
            height: 32px;
            fill: white;
        }

        .big-play-button.hidden {
            opacity: 0;
            visibility: hidden;
        }

        /* Muted autoplay overlay */
        .muted-autoplay-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(1px);
            z-index: 3;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .muted-autoplay-overlay.visible {
            opacity: 1;
            visibility: visible;
        }

        .muted-autoplay-overlay .big-play-button {
            position: relative;
            top: auto;
            left: auto;
            transform: none;
            background: rgba(0, 0, 0, 0.8);
            border: 3px solid rgba(255, 255, 255, 0.9);
            z-index: 4;
        }

        .overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--overlay-bg, rgba(0, 0, 0, 0.8));
            backdrop-filter: blur(8px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 15;
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            padding: clamp(8px, 2.5vw, 20px);
            box-sizing: border-box;
            container-type: size;
        }

        .overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .form-container {
            padding: 32px;
            border-radius: 0;
            box-shadow: none;
            border: none;
            max-width: 420px;
            width: 100%;
            height: fit-content;
            max-height: 90%;
            text-align: center;
            transform: scale(0.8) translateY(20px);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            justify-content: center;
            color: white;
        }

        .overlay.active .form-container {
            transform: scale(1) translateY(0);
        }

        .form-header {
            margin-bottom: 30px;
        }

        .form-header h2 {
            font-size: 24px;
            color: white;
            margin-bottom: 8px;
            font-weight: 600;
            letter-spacing: -0.025em;
        }

        .form-header p {
            color: rgba(255, 255, 255, 0.8);
            font-size: 15px;
            line-height: 1.4;
        }

        /* Optin Form Styles */
        .optin-form {
            display: none;
        }

        .optin-form.active {
            display: block;
        }

        .form-input {
            width: 100%;
            padding: 12px 16px;
            border: 1.5px solid rgba(255, 255, 255, 0.3);
            border-radius: 6px;
            font-size: 15px;
            margin-bottom: 16px;
            transition: all 0.2s ease;
            background: rgba(0, 0, 0, 0.3);
            font-family: inherit;
            color: white;
        }

        .form-input:focus {
            outline: none;
            border-color: var(--button-color, #00adef);
            box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2);
            background: rgba(0, 0, 0, 0.5);
        }

        .form-input.error {
            border-color: #ff6b6b;
            box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.3);
        }

        .form-input::placeholder {
            color: rgba(255, 255, 255, 0.6);
        }

        /* Options Styles */
        .options-form {
            display: none;
        }

        .options-form.active {
            display: block;
        }

        .options-container {
            display: flex;
            gap: 12px;
            margin-bottom: 24px;
        }

        .option {
            flex: 1;
            padding: 20px 16px;
            border: 1.5px solid rgba(255, 255, 255, 0.3);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            background: rgba(0, 0, 0, 0.4);
            text-align: left;
        }

        .option:hover {
            border-color: var(--button-color, #00adef);
            transform: translateY(-1px);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
            background: rgba(0, 0, 0, 0.6);
        }

        .option.selected {
            border-color: var(--button-color, #00adef);
            background: rgba(0, 0, 0, 0.6);
            transform: translateY(-1px);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
        }

        .option h3 {
            font-size: 16px;
            color: white;
            margin-bottom: 6px;
            font-weight: 600;
            letter-spacing: -0.01em;
        }

        .option p {
            color: rgba(255, 255, 255, 0.7);
            font-size: 13px;
            line-height: 1.3;
        }

        .submit-btn {
            background: var(--button-color, #00adef);
            color: white;
            padding: 12px 24px;
            border: none;
            border-radius: 6px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            width: 100%;
            opacity: 0.4;
            pointer-events: none;
            font-family: inherit;
            letter-spacing: -0.01em;
        }

        .submit-btn.enabled {
            opacity: 1;
            pointer-events: auto;
        }

        .submit-btn.enabled:hover {
            background: var(--button-color, #00adef);
            filter: brightness(0.9);
            transform: translateY(-1px);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
        }

        .submit-btn.enabled:active {
            transform: translateY(0);
        }

        .control-buttons {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
            z-index: 5;
        }

        .control-btn {
            background: rgba(255, 255, 255, 0.9);
            border: none;
            padding: 10px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .control-btn:hover {
            background: white;
            transform: translateY(-1px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .success-message {
            display: none;
            background: linear-gradient(135deg, var(--primary-color, #667eea), var(--secondary-color, #764ba2));
            color: white;
            padding: 12px 16px;
            border-radius: 6px;
            margin-bottom: 16px;
            font-weight: 500;
            font-size: 14px;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
        }

        .success-message.show {
            display: block;
            animation: slideInDown 0.3s ease;
        }

        @keyframes slideInDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .back-btn {
            background: rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.8);
            padding: 8px 16px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 4px;
            cursor: pointer;
            font-size: 13px;
            margin-bottom: 16px;
            transition: all 0.2s ease;
            font-family: inherit;
        }

        .back-btn:hover {
            background: var(--primary-color, rgba(255, 255, 255, 0.2));
            color: white;
            border-color: var(--primary-color, rgba(255, 255, 255, 0.3));
        }

        @media (max-width: 768px) {
            .overlay {
                padding: 15px;
            }
            
            .form-container {
                padding: clamp(16px, 4vw, 24px);
                max-width: 100%;
                max-height: 95%;
                transform: scale(0.9) translateY(20px);
            }
            
            .options-container {
                flex-direction: column;
                gap: 12px;
            }
            
            .form-header h2 {
                font-size: 20px;
            }
            
            .demo-controls {
                padding: 15px;
            }

            .demo-controls select, .demo-controls button {
                width: 100%;
                margin-bottom: 10px;
            }
            
            .poster-input-group {
                flex-direction: column;
                align-items: stretch;
            }
            
            .poster-input-group input {
                width: 100% !important;
                margin: 5px 0 !important;
            }
            
            .controls-row {
                flex-wrap: wrap;
                gap: 8px;
            }
            
            .volume-container {
                order: 3;
                flex-basis: 100%;
                justify-content: center;
                margin-top: 8px;
            }
            
            .time-display {
                font-size: 13px;
            }
            
            .control-button {
                min-width: 36px;
                height: 36px;
            }
            
            .big-play-button {
                width: 60px;
                height: 60px;
            }
            
            .big-play-button svg {
                width: 24px;
                height: 24px;
            }
        }

        @media (max-width: 480px) {
            .overlay {
                padding: 10px;
            }
            
            .form-container {
                padding: clamp(12px, 3vw, 20px);
                max-width: 100%;
                max-height: 95%;
                transform: scale(0.85) translateY(20px);
            }
            
            .form-header h2 {
                font-size: clamp(16px, 4.5vw, 18px);
                margin-bottom: clamp(4px, 1.5vw, 6px);
            }
            
            .form-header p {
                font-size: clamp(13px, 3.5vw, 14px);
                margin-bottom: clamp(16px, 4vw, 20px);
                line-height: 1.3;
            }
            
            .option {
                padding: clamp(12px, 3vw, 16px);
            }
            
            .option h3 {
                font-size: clamp(14px, 3.8vw, 15px);
                margin-bottom: clamp(4px, 1vw, 6px);
            }
            
            .option p {
                font-size: clamp(11px, 3vw, 12px);
                line-height: 1.2;
            }
            
            .form-input {
                padding: clamp(8px, 2.5vw, 10px) clamp(10px, 3vw, 12px);
                font-size: clamp(13px, 3.5vw, 14px);
                margin-bottom: clamp(10px, 3vw, 12px);
            }
            
            .submit-btn {
                padding: clamp(8px, 2.5vw, 10px) clamp(16px, 4vw, 20px);
                font-size: clamp(13px, 3.5vw, 14px);
            }
            
            .video-container {
                margin: 0 -10px;
                border-radius: 0;
            }
        }

        /* Extra small screens */
        @media (max-width: 320px) {
            .overlay {
                padding: 8px;
            }
            
            .form-container {
                padding: clamp(8px, 2.5vw, 16px);
                max-width: 100%;
                max-height: 95%;
                transform: scale(0.8) translateY(20px);
            }
        }

        /* Container queries for different video sizes */
        @container (max-height: 400px) {
            .form-container {
                transform: scale(0.75) translateY(10px);
                padding: clamp(8px, 2vw, 16px);
            }
        }

        @container (max-height: 300px) {
            .form-container {
                transform: scale(0.65) translateY(5px);
                padding: clamp(6px, 1.8vw, 12px);
            }
            
            .form-header h2 {
                font-size: clamp(14px, 4vw, 16px);
                margin-bottom: clamp(2px, 1vw, 4px);
            }
            
            .form-header p {
                font-size: clamp(11px, 3vw, 12px);
                margin-bottom: clamp(10px, 2.5vw, 14px);
            }
            
            .options-container {
                gap: clamp(6px, 2vw, 10px);
            }
            
            .option {
                padding: clamp(6px, 1.8vw, 10px);
            }
            
            .option h3 {
                font-size: clamp(12px, 3vw, 14px);
                margin-bottom: clamp(2px, 0.5vw, 3px);
            }
            
            .option p {
                font-size: clamp(9px, 2.2vw, 11px);
            }
            
            .form-input {
                padding: clamp(5px, 1.5vw, 7px) clamp(7px, 2vw, 9px);
                font-size: clamp(11px, 2.8vw, 12px);
                margin-bottom: clamp(6px, 1.8vw, 8px);
            }
            
            .submit-btn {
                padding: clamp(5px, 1.5vw, 7px) clamp(10px, 2.5vw, 14px);
                font-size: clamp(10px, 2.8vw, 12px);
            }
        }

        @container (max-height: 250px) {
            .form-container {
                transform: scale(0.55) translateY(0px);
                padding: clamp(4px, 1.5vw, 8px);
            }
        }

        @container (max-width: 300px) {
            .form-container {
                transform: scale(0.8) translateY(10px);
                max-width: 95%;
            }
        }