* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

        body {
            background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            padding: 20px;
        }        h1 {
            color: #fff;
            margin-bottom: 30px;
            text-align: center;
            font-size: 2.5em;
            font-weight: 600;
            text-shadow: 0 4px 12px rgba(229, 9, 20, 0.5);
            letter-spacing: 1px;
        }        .video-container {
            position: relative;
            width: 100%;
            max-width: 1280px;
            aspect-ratio: 16 / 9;
            background-color: #000;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6),
                        0 0 80px rgba(229, 9, 20, 0.2);
        }video {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    z-index: 1;
}

#cinema-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: bottom center;
    z-index: 2;
}

.controls {
    margin-top: 20px;
    color: #fff;
    text-align: center;
    width: 100%;
    max-width: 800px;
}

        .url-input {
            width: 100%;
            max-width: 600px;
            padding: 14px 18px;
            margin: 10px 0;
            border: 2px solid rgba(255, 255, 255, 0.1);
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            color: #fff;
            border-radius: 12px;
            font-size: 15px;
            transition: all 0.3s ease;
        }

        .url-input:focus {
            outline: none;
            border-color: #e50914;
            background: rgba(255, 255, 255, 0.08);
            box-shadow: 0 0 20px rgba(229, 9, 20, 0.3);
        }        button {
            padding: 12px 24px;
            margin: 5px;
            background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
            color: #fff;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        button::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        button:hover::before {
            width: 300px;
            height: 300px;
        }

        button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(229, 9, 20, 0.5);
        }

        button:active {
            transform: translateY(0);
        }        button:disabled {
            background-color: #666;
            cursor: not-allowed;
        }

        input[type="range"]:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        input[type="checkbox"]:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        @media (hover: none) and (pointer: coarse) {
            button {
                padding: 15px 25px;
                font-size: 16px;
                min-height: 48px;
            }

            .slider {
                height: 10px;
            }

            .slider::-webkit-slider-thumb {
                width: 28px;
                height: 28px;
            }

            .slider::-moz-range-thumb {
                width: 28px;
                height: 28px;
            }

            input[type="checkbox"] {
                width: 22px;
                height: 22px;
            }
        }

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .video-container {
        border-radius: 8px;
    }

    .url-input {
        font-size: 16px;
        padding: 12px 16px;
    }

    .settings-panel {
        padding: 12px;
        font-size: 14px;
    }

    .settings-section {
        padding: 10px 12px;
    }

    .settings-section h4 {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .setting-group label {
        font-size: 13px;
    }

    .settings-row {
        flex-direction: column;
    }

    select {
        font-size: 16px;
        padding: 12px;
    }

    button {
        font-size: 15px;
        padding: 14px 20px;
        min-height: 48px;
        margin: 4px;
    }

    .button-row {
        gap: 8px;
    }

    .preset-btn {
        font-size: 14px;
        padding: 12px 16px;
        min-height: 44px;
    }

    .settings-header h3 {
        font-size: 15px;
    }

    .slider {
        height: 8px;
    }

    .slider::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }

    .slider::-moz-range-thumb {
        width: 24px;
        height: 24px;
    }

    input[type="checkbox"] {
        width: 20px;
        height: 20px;
        min-width: 20px;
        min-height: 20px;
    }

    .checkbox-row label {
        font-size: 13px;
        gap: 10px;
    }

    small {
        font-size: 11px;
    }
}.info {
    color: #888;
    font-size: 12px;
    margin-top: 10px;
    text-align: center;
}

        .settings-panel {
            margin-top: 20px;
            padding: 15px;
            background: rgba(26, 26, 46, 0.6);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            max-width: 800px;
            width: 100%;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        }.setting-group {
    margin: 8px 0;
    color: #fff;
}

        .setting-group label {
            display: block;
            margin-bottom: 4px;
            font-size: 12px;
            font-weight: 500;
            color: rgba(255, 255, 255, 0.9);
            letter-spacing: 0.3px;
        }

.slider {
    width: 100%;
    height: 4px;
    border-radius: 10px;
    background: linear-gradient(to right, rgba(255,255,255,0.1), rgba(255,255,255,0.2));
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: all 0.3s ease;
}

.slider:hover {
    background: linear-gradient(to right, rgba(229,9,20,0.2), rgba(229,9,20,0.4));
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e50914 0%, #ff0a16 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(229, 9, 20, 0.6);
    transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.8);
}

.slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e50914 0%, #ff0a16 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(229, 9, 20, 0.6);
    transition: all 0.3s ease;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.8);
}

select {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 13px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

select:hover {
    border-color: #e50914;
    background: rgba(255, 255, 255, 0.08);
}

select:focus {
    outline: none;
    border-color: #e50914;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.3);
}

select option {
    background: #1a1a2e;
    color: #fff;
    padding: 8px;
}

#vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.8) 100%);
    opacity: 0;
    transition: opacity 0.5s;
}

#vignette.active {
    opacity: 1;
}

.preset-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

        .preset-btn {
            padding: 10px 18px;
            font-size: 13px;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(10px);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        }

        .preset-btn:hover {
            background: rgba(255, 255, 255, 0.12);
            border-color: #e50914;
            transform: translateY(-2px);
        }.checkbox-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

        .checkbox-row label {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            white-space: nowrap;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .checkbox-row label:hover {
            color: #e50914;
        }

        input[type="checkbox"] {
            width: 18px;
            height: 18px;
            cursor: pointer;
            accent-color: #e50914;
        }

.settings-section {
            margin: 10px 0;
            padding: 12px 15px;
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(10px);
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-left: 3px solid #e50914;
            transition: all 0.3s ease;
        }

        .settings-section:hover {
            background: rgba(255, 255, 255, 0.05);
            border-left-width: 4px;
            transform: translateX(2px);
        }        .settings-section h4 {
            margin: 0 0 10px 0;
            color: #e50914;
            font-size: 14px;
            font-weight: 600;
            letter-spacing: 0.3px;
            text-shadow: 0 2px 8px rgba(229, 9, 20, 0.3);
        }        .settings-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            user-select: none;
            padding: 8px 4px;
            border-radius: 6px;
            transition: all 0.3s ease;
        }

        .settings-header:hover {
            background: rgba(229, 9, 20, 0.1);
            padding-left: 8px;
        }.settings-header h3 {
    margin: 0;
}

        .collapse-icon {
            font-size: 16px;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            color: #e50914;
        }

        .collapse-icon.collapsed {
            transform: rotate(-90deg);
        }

        .settings-header:hover .collapse-icon {
            transform: scale(1.2);
        }

        .settings-header:hover .collapse-icon.collapsed {
            transform: rotate(-90deg) scale(1.2);
        }.settings-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.settings-content.expanded {
    max-height: 3000px;
}

.button-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.settings-row {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.settings-half {
    flex: 1;
    min-width: 0;
}

@media (max-width: 768px) {
    .settings-row {
        flex-direction: column;
    }
}

@keyframes shake {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-2px, 1px); }
    50% { transform: translate(2px, -1px); }
    75% { transform: translate(-1px, -2px); }
}

.shake {
    animation: shake 0.3s;
}

.fullscreen-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 20;
    padding: 8px 12px;
    font-size: 12px;
}

.walking-person {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 100%;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom center;
}

.walking-person.active {
    opacity: 1;
}

@keyframes walkLeftToRight {
    from {
        left: -100px;
    }
    to {
        left: calc(100% + 100px);
    }
}

@keyframes walkRightToLeft {
    from {
        left: calc(100% + 100px);
    }
    to {
        left: -100px;
    }
}

.walk-left-to-right {
    animation: walkLeftToRight var(--walk-duration, 4s) linear forwards;
}

.walk-right-to-left {
    animation: walkRightToLeft var(--walk-duration, 4s) linear forwards;
    transform: scaleX(-1);
}

.climbing-rat {
    position: absolute;
    bottom: -50px;
    left: 20%;
    font-size: 80px;
    z-index: 101;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.8));
}

.climbing-rat.active {
    opacity: 1;
}

@keyframes climbUp {
    from {
        bottom: -50px;
    }
    to {
        bottom: calc(100% + 50px);
    }
}

.climbing-rat.climbing {
    animation: climbUp var(--climb-duration, 5s) linear forwards;
}
