        /**
         * Video Player v1.2
         * A modern, responsive video player with no ads, no clutter and fast
         * 
         * Copyright (c) 2025 Ankit Mehta (Starexx)
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *      
         * http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */

            @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');
            :root {
            --primary-color: #ff3d3d;
            --secondary-color: rgba(255, 255, 255, 0.9);
            --bg-color: #000;
            --control-bg: rgba(0, 0, 0, 0.7);
            --slider-bg: rgba(255, 255, 255, 0.2);
            --alert-bg: #1e1e1e;
            --alert-header: #ff3d3d;
            }
            * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            }
            body {
            background: var(--bg-color);
            color: #fff;
            height: 100vh;
            overflow: hidden;
            touch-action: none;
            overscroll-behavior: contain;
            }
            .player-container {
            position: relative;
            width: 100%;
            height: 100vh;
            overflow: hidden;
            }
            .video-wrapper {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--bg-color);
            display: flex;
            justify-content: center;
            align-items: center;
            touch-action: none;
            }
            video {
            width: 100%;
            height: 100%;
            object-fit: contain;
            transition: transform 0.2s ease, filter 0.2s ease;
            }
            .thumbnail-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 2;
            }
            .play-center-btn {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: #121212;
            backdrop-filter: blur(10px);
            display: flex;
            justify-content: center;
            align-items: center;
            border: none;
            color: var(--secondary-color);
            font-size: 30px;
            cursor: pointer;
            opacity: 0;
            z-index: 3;
            margin: 0;
            padding: 0;
            }
            .play-center-btn.visible {
            opacity: 1;
            }
            .controls-container {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            padding: 15px;
            background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
            opacity: 0;
            transition: opacity 0.3s;
            pointer-events: none;
            z-index: 5;
            }
            .controls-container.visible {
            opacity: 1;
            pointer-events: all;
            }
            .progress-time {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px;
            }
            .progress-container {
            flex-grow: 1;
            height: 4px;
            background: var(--slider-bg);
            border-radius: 2px;
            cursor: pointer;
            }
            .progress-bar {
            height: 100%;
            background: var(--primary-color);
            border-radius: 2px;
            transition: width 0.1s;
            }
            .time-display {
            font-size: 13px;
            font-weight: 500;
            min-width: 100px;
            text-align: center;
            color: var(--secondary-color);
            }
            .main-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            }
            .seek-controls {
            display: flex;
            align-items: center;
            gap: 15px;
            }
            .right-controls {
            display: flex;
            align-items: center;
            gap: 15px;
            }
            .control-btn {
            background: none;
            border: none;
            color: var(--secondary-color);
            font-size: 22px;
            cursor: pointer;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0.9;
            transition: all 0.2s;
            border-radius: 50%;
            }
            .control-btn:hover {
            opacity: 1;
            transform: scale(1.1);
            }
            .seek-indicator {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: var(--control-bg);
            padding: 8px 20px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 500;
            opacity: 0;
            transition: opacity 0.3s;
            pointer-events: none;
            backdrop-filter: blur(5px);
            z-index: 6;
            }
            .seek-indicator.show {
            opacity: 1;
            }
            .orientation-prompt {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.9);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 20px;
            z-index: 10;
            text-align: center;
            padding: 0 20px;
            backdrop-filter: blur(50px);
            }
            .orientation-text {
            font-size: 15px;
            max-width: 300px;
            line-height: 1.2;
            }
            .rotate-icon {
            font-size: 50px;
            animation: pulse 2s infinite;
            color: white;
            }
            .settings-panel {
            position: absolute;
            top: 0;
            right: 0;
            width: 85%;
            max-width: 320px;
            height: 100%;
            background: rgba(20, 20, 20, 0.95);
            backdrop-filter: blur(15px);
            transform: translateX(100%);
            transition: transform 0.3s ease;
            z-index: 15;
            padding: 25px 20px;
            display: flex;
            flex-direction: column;
            gap: 25px;
            overflow-y: auto;
            box-shadow: -5px 0 15px rgba(0,0,0,0.3);
            }
            .settings-panel.show {
            transform: translateX(0);
            }
            .settings-header {
            font-size: 16px;
            font-weight: 600;
            color: var(--secondary-color);
            margin-bottom: 5px;
            display: flex;
            align-items: center;
            gap: 8px;
            }
            .settings-header i {
            font-size: 14px;
            opacity: 0.7;
            }
            .slider-container {
            width: 100%;
            margin: 15px 0;
            }
            .slider-label {
            display: flex;
            color: #aaa;
            justify-content: space-between;
            margin-bottom: 8px;
            font-size: 14px;
            }
            .slider {
            width: 100%;
            height: 8px;
            -webkit-appearance: none;
            background: var(--slider-bg);
            border-radius: 5px;
            outline: white;
            }
            .slider::-webkit-slider-thumb {
            width: 16px;
            height: 16px;
            -webkit-appearance: none;
            background: #fff;
            border-radius: 50%;
            cursor: pointer;
            transition: transform 0.2s;
            }
            .slider::-webkit-slider-thumb:hover {
            transform: scale(1.2);
            }
            .settings-btn {
            padding: 12px 15px;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 10px;
            display: flex;
            margin-top: 5px;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            transition: all 0.2s;
            color: var(--secondary-color);
            font-size: 14px;
            }
            .settings-btn:hover {
            transform: translateX(3px);
            }
            .settings-btn i {
            opacity: 0.7;
            font-size: 12px;
            }
            .pinch-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 5;
            pointer-events: none;
            }
            .zoom-level {
            position: absolute;
            bottom: 80px;
            right: 15px;
            background: var(--control-bg);
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 12px;
            opacity: 0;
            transition: opacity 0.3s;
            backdrop-filter: blur(5px);
            }
            .zoom-level.show {
            opacity: 1;
            }
            .custom-alert {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.9);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 100;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s;
            backdrop-filter: blur(25px);
            }
            .custom-alert.show {
            opacity: 1;
            pointer-events: all;
            }
            .alert-box {
            background: rgba(55,55,55,0.2);
            border-radius: 12px;
            width: 90%;
            max-width: 380px;
            overflow: hidden;
            transform: scale(0.9);
            transition: transform 0.3s;
            box-shadow: 0 10px 25px rgba(0,0,0,0.3);
            }
            .custom-alert.show .alert-box {
            transform: scale(1);
            }
            .alert-header {
            padding: 18px;
            background: transparent;
            color: white;
            font-weight: 600;
            text-align: center;
            font-size: 17px;
            display: flex;
            align-items: left;
            justify-content: left;
            gap: 8px;
            }
            .alert-content {
            padding: 25px 20px;
            text-align: left;
            line-height: 1.5;
            font-size: 15px;
            color: #ddd;
            white-space: pre-line;
            }
            .alert-actions {
            display: flex;
            border-top: 1px solid #333;
            }
            .alert-btn {
            flex: 1;
            padding: 15px;
            background: none;
            border: none;
            color: rgba(255,255,255,0.4);
            font-weight: 500;
            cursor: pointer;
            transition: background 0.2s;
            font-size: 15px;
            }
            .alert-btn:not(:last-child) {
            border-right: 1px solid #333;
            }
            .alert-btn:hover {
            background: rgba(255, 255, 255, 0.08);
            }
            .alert-btn.primary {
            color: white;
            font-weight: 600;
            }
            iframe {
            display: none !important;
            visibility: hidden !important;
            }
            .loading-spinner {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 40px;
            height: 40px;
            border: 4px solid rgba(255, 255, 255, 0.5);
            border-radius: 50%;
            border-top-color: transparent;
            animation: spin 1s ease-in-out infinite;
            z-index: 4;
            }
            @keyframes spin {
            to { transform: translate(-50%, -50%) rotate(360deg); }
            }

