        :root {
            --neon-cyan: #00d4ff;
            --neon-cyan-glow: rgba(0, 212, 255, 0.4);
            --neon-cyan-dim: rgba(0, 212, 255, 0.1);
            --status-healthy: #10b981;
            --status-warning: #f59e0b;
            --status-error: #ef4444;
            --status-offline: #6b7280;
            --scanline-opacity: 0.03;
        }

        /* 深色主题（默认） */
        [data-theme="dark"] {
            --bg-primary: #0a0e1a;
            --bg-secondary: #0f172a;
            --bg-gradient: radial-gradient(circle at center, #1a1a3e 0%, #0a0e1a 100%);
            --grid-color: rgba(0, 212, 255, 0.05);
            --text-primary: #f8fafc;
            --text-secondary: #94a3b8;
            --text-accent: var(--neon-cyan);
            --card-bg: rgba(10, 14, 26, 0.6);
            --card-border: rgba(0, 212, 255, 0.2);
            --card-border-hover: rgba(0, 212, 255, 0.5);
            --hud-bg: rgba(10, 14, 26, 0.8);
            --poster-bg: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(10, 14, 26, 0.9));
        }

        /* 浅色主题 */
        [data-theme="light"] {
            --bg-primary: #f8fafc;
            --bg-secondary: #f1f5f9;
            --bg-gradient: radial-gradient(circle at center, #e2e8f0 0%, #f8fafc 100%);
            --grid-color: rgba(0, 0, 0, 0.05);
            --text-primary: #1e293b;
            --text-secondary: #64748b;
            --text-accent: #0284c7;
            --card-bg: rgba(255, 255, 255, 0.7);
            --card-border: rgba(0, 0, 0, 0.1);
            --card-border-hover: rgba(0, 0, 0, 0.2);
            --hud-bg: rgba(255, 255, 255, 0.9);
            --poster-bg: linear-gradient(135deg, #f1f5f9, #e2e8f0);
            --neon-cyan: #0284c7;
            --neon-cyan-glow: rgba(2, 132, 199, 0.2);
            --scanline-opacity: 0.01;
        }

        body {
            margin: 0;
            padding: 0;
            background: var(--bg-gradient);
            background-attachment: fixed;
            color: var(--text-primary);
            font-family: 'JetBrains Mono', -apple-system, BlinkMacSystemFont, sans-serif;
            min-height: 100vh;
            overflow-x: hidden;
        }

        body::before {
            content: "";
            position: fixed;
            inset: 0;
            background-image: radial-gradient(circle, var(--grid-color) 1px, transparent 1px);
            background-size: 30px 30px;
            pointer-events: none;
            z-index: 0;
        }

        body::after {
            content: "";
            position: fixed;
            inset: 0;
            background-image: 
                linear-gradient(var(--grid-color) 1px, transparent 1px),
                linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
            background-size: 60px 60px;
            pointer-events: none;
            z-index: 0;
        }

        .scanline-overlay {
            position: fixed;
            inset: 0;
            background: repeating-linear-gradient(
                0deg,
                transparent,
                transparent 1px,
                rgba(0, 212, 255, var(--scanline-opacity)) 2px,
                transparent 3px
            );
            pointer-events: none;
            z-index: 9999;
        }

        #app {
            position: relative;
            z-index: 1;
            padding: 70px 20px 40px 20px;
            max-width: 1800px;
            margin: 0 auto;
        }

        /* HUD Top Bar */
        .hud-top {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 50px;
            background: var(--hud-bg);
            border-bottom: 1px solid var(--card-border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
            z-index: 1000;
            backdrop-filter: blur(10px);
        }

        .hud-title {
            font-family: 'Orbitron', sans-serif;
            font-weight: 900;
            font-size: 1.2rem;
            letter-spacing: 2px;
            color: var(--neon-cyan);
            text-shadow: 0 0 10px var(--neon-cyan-glow);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .live-badge {
            background: var(--status-healthy);
            color: white;
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 4px;
            font-weight: bold;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .live-dot {
            width: 6px;
            height: 6px;
            background: white;
            border-radius: 50%;
            animation: livePulse 1.5s infinite;
        }

        @keyframes livePulse {
            0% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.5); opacity: 0.5; }
            100% { transform: scale(1); opacity: 1; }
        }

        .hud-stats {
            display: flex;
            gap: 20px;
            font-size: 12px;
            color: var(--text-secondary);
        }

        .hud-stat-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .hud-stat-value {
            color: var(--neon-cyan);
            font-weight: bold;
        }

        /* Sidebar */
        .hud-sidebar {
            position: fixed;
            right: 20px;
            top: 70px;
            width: 200px;
            z-index: 100;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }



        .hud-metric-card {
            padding: 15px;
            background: var(--hud-bg);
            border: 1px solid var(--card-border);
            border-radius: 8px;
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .hud-metric-label {
            font-size: 10px;
            color: var(--text-secondary);
            text-transform: uppercase;
        }

        .hud-metric-value {
            font-size: 1.2rem;
            font-family: 'Orbitron', sans-serif;
            color: var(--neon-cyan);
        }

        /* Controls */
        .controls {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-bottom: 20px;
            flex-wrap: wrap;
            padding: 0 10px;
        }

        .main-controls {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-top: 5px;
            padding-top: 15px;
            border-top: 1px solid var(--card-border);
        }
        .main-controls .glass-btn {
            width: 100%;
            justify-content: flex-start;
        }



        /* 手机 */
        @media (max-width: 767px) {
            .hud-sidebar {
                display: flex !important;  /* 覆盖之前的 display:none */
                position: fixed;
                bottom: 0;
                left: 0;
                right: 0;
                top: auto;
                width: auto;
                flex-direction: row;
                align-items: center;
                background: var(--hud-bg);
                backdrop-filter: blur(16px);
                border-top: 1px solid var(--card-border);
                padding: 8px 6px;
                z-index: 5000;
                gap: 4px;
                border-radius: 0;
            }
            .hud-metric-card { display: none !important; }
            .main-controls {
                display: flex;
                flex-direction: row;
                gap: 4px;
                width: 100%;
                margin: 0;
                padding: 0;
                border: none;
            }
            .main-controls .glass-btn {
                flex: 1;
                padding: 10px 4px;
                font-size: 11px;
                justify-content: center;
            }
            #app { padding-bottom: 70px; }
        }

        @media (max-width: 600px) {
            .controls {
                gap: 8px;
            }
            .glass-btn {
                padding: 10px 12px;
                font-size: 12px;
                flex: 1 1 calc(50% - 8px);
                justify-content: center;
                min-width: 0;
            }
        }

        .glass-btn {
            background: rgba(0, 212, 255, 0.08);
            border: 1px solid rgba(0, 212, 255, 0.3);
            color: var(--neon-cyan);
            padding: 8px 16px;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 13px;
            display: flex;
            align-items: center;
            gap: 8px;
            font-family: 'JetBrains Mono', monospace;
            text-transform: uppercase;
        }

        .glass-btn:hover {
            background: rgba(0, 212, 255, 0.15);
            border-color: var(--neon-cyan);
            box-shadow: 0 0 15px var(--neon-cyan-glow);
            transform: translateY(-1px);
        }

        .glass-btn i {
            width: 14px;
            height: 14px;
        }

        /* Video Grid */
        /* 桌面默认 */
        .video-grid {
            display: grid;
            gap: 15px;
            grid-auto-flow: dense;
            grid-template-columns: repeat(4, 1fr);
            margin-right: 220px;
        }

        /* 平板 */
        @media (max-width: 1024px) {
            .video-grid {
                grid-template-columns: repeat(3, 1fr);
                margin-right: 0;
            }
            .main-controls {
                flex-direction: row;
                gap: 6px;
                flex-wrap: wrap;
            }
            .main-controls .glass-btn {
                width: auto;
                justify-content: center;
                flex: 1;
            }
        }

        /* 手机 */
        @media (max-width: 767px) {
            .video-grid {
                grid-template-columns: repeat(1, 1fr);
                gap: 12px;
                max-width: 500px;
                margin: 0 auto;
            }
            .hud-top {
                flex-direction: column;
                height: 60px;
                gap: 8px;
                text-align: center;
                font-size: 10px;
            }
            .hud-top .hud-center { order: -1; }
            .hud-bottom { font-size: 9px; padding: 6px 10px; }
            .video-card { aspect-ratio: 16/9; }
            .video-name { font-size: 11px; }
            .status-badge { font-size: 10px; }
        }

        @media (min-width: 768px) and (max-width: 1400px) {
            .video-grid { margin-right: 0; }
            .hud-sidebar {
                display: flex;
                position: static;
                width: auto;
                flex-direction: row;
                justify-content: center;
                margin-bottom: 15px;
                background: transparent;
                border: none;
                box-shadow: none;
                padding: 0;
            }
            .hud-metric-card { display: none !important; }
            .main-controls {
                display: flex;
                flex-direction: row;
                gap: 8px;
                margin: 0;
                padding: 0;
                border: none;
            }
            .main-controls .glass-btn {
                width: auto;
                justify-content: center;
            }
        }

        .video-card {
            position: relative;
            aspect-ratio: 16/9;
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: 4px;
            overflow: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 0 15px rgba(0, 212, 255, 0.05);
        }

        .video-card:hover {
            border-color: var(--card-border-hover);
            box-shadow: 0 0 25px rgba(0, 212, 255, 0.1);
            transform: translateY(-2px);
            z-index: 10;
        }

        /* Video Corners */
        .video-corners {
            position: absolute;
            inset: 0;
            pointer-events: none;
            z-index: 15;
        }

        .corner {
            position: absolute;
            width: 15px;
            height: 15px;
            border: 2px solid var(--neon-cyan);
            opacity: 0.6;
        }

        .corner-tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
        .corner-tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
        .corner-bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
        .corner-br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

        .video-info {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            padding: 12px 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 20;
            background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
            pointer-events: none;
        }

        .video-name {
            font-size: 12px;
            font-weight: bold;
            color: white;
            text-shadow: 0 1px 3px rgba(0,0,0,0.8);
        }

        .status-badge {
            font-size: 10px;
            padding: 2px 8px;
            border-radius: 10px;
            background: rgba(0,0,0,0.5);
            border: 1px solid rgba(255,255,255,0.1);
            display: flex;
            align-items: center;
            gap: 5px;
        }

        /* Status Colors */
        .video-card[data-status="healthy"] { border-color: var(--status-healthy); }
        .video-card[data-status="warning"] { border-color: var(--status-warning); animation: borderPulseWarning 2s infinite; }
        .video-card[data-status="error"] { border-color: var(--status-error); animation: borderPulseError 1s infinite; }
        .video-card[data-status="offline"] { border-color: var(--status-offline); opacity: 0.6; }

        @keyframes borderPulseWarning {
            0% { box-shadow: 0 0 5px var(--status-warning); }
            50% { box-shadow: 0 0 15px var(--status-warning); }
            100% { box-shadow: 0 0 5px var(--status-warning); }
        }

        @keyframes borderPulseError {
            0% { box-shadow: 0 0 5px var(--status-error); }
            50% { box-shadow: 0 0 20px var(--status-error); }
            100% { box-shadow: 0 0 5px var(--status-error); }
        }

        .status-healthy { color: var(--status-healthy); }
        .status-warning { color: var(--status-warning); }
        .status-error { color: var(--status-error); }
        .status-offline { color: var(--status-offline); }

        /* Plyr Overrides */
        .plyr {
            height: 100% !important;
            --plyr-color-main: var(--neon-cyan);
            --plyr-video-controls-background: rgba(10, 14, 26, 0.8);
            --plyr-video-control-color: #fff;
            --plyr-video-control-color-hover: var(--neon-cyan);
            --plyr-range-fill-background: var(--neon-cyan);
        }

        /* 移动端 Plyr 控件增大 */
        @media (max-width: 767px) {
            .plyr {
                --plyr-control-spacing: 12px;
                --plyr-control-icon-size: 20px;
                min-height: 0;
            }
            .plyr__control {
                padding: 8px;
                min-width: 40px;
                min-height: 40px;
            }
            .plyr__controls__item {
                min-height: 40px;
            }
            .plyr__progress__container {
                margin-left: 4px;
                margin-right: 4px;
            }
        }

        .plyr__video-wrapper { height: 100%; }
        .plyr video { object-fit: cover; width: 100%; height: 100%; }

        /* Fullscreen Overlay */
        .fullscreen-overlay {
            position: fixed;
            inset: 0;
            background: #000;
            z-index: 10000;
            display: flex;
            flex-direction: column;
        }

        .fullscreen-osd {
            position: absolute;
            inset: 0;
            pointer-events: none;
            z-index: 10010;
            padding: 40px;
        }

        .osd-top-left { position: absolute; top: 40px; left: 40px; }
        .osd-top-right { position: absolute; top: 40px; right: 40px; text-align: right; }
        .osd-bottom-left { position: absolute; bottom: 100px; left: 40px; }
        
        .osd-title { font-family: 'Orbitron', sans-serif; font-size: 2rem; color: var(--neon-cyan); text-shadow: 0 0 15px var(--neon-cyan-glow); margin-bottom: 10px; }
        .osd-meta { font-size: 1rem; color: rgba(255,255,255,0.7); }

        .fullscreen-controls {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 80px;
            background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            z-index: 10020;
            transition: opacity 0.5s;
        }

        .fullscreen-controls.fade-out { opacity: 0; pointer-events: none; }

        .fs-btn {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: rgba(0, 212, 255, 0.1);
            border: 1px solid rgba(0, 212, 255, 0.3);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }

        .fs-btn:hover {
            background: rgba(0, 212, 255, 0.3);
            border-color: var(--neon-cyan);
            box-shadow: 0 0 15px var(--neon-cyan-glow);
            transform: scale(1.1);
        }

        .fs-btn.active {
            background: var(--neon-cyan);
            color: black;
        }

        /* Toast */
        .toast-container {
            position: fixed;
            top: 60px;
            right: 20px;
            z-index: 20000;
            display: flex;
            flex-direction: column;
            gap: 10px;
            pointer-events: none;
        }

        .toast {
            width: 300px;
            background: var(--hud-bg);
            border: 1px solid var(--card-border);
            border-left: 4px solid var(--neon-cyan);
            padding: 12px 15px;
            border-radius: 4px;
            backdrop-filter: blur(10px);
            display: flex;
            align-items: center;
            gap: 12px;
            animation: toastIn 0.3s ease-out;
            pointer-events: auto;
        }

        @keyframes toastIn {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

        .toast-success { border-left-color: var(--status-healthy); }
        .toast-warning { border-left-color: var(--status-warning); }
        .toast-error { border-left-color: var(--status-error); }

        .toast-icon { width: 20px; height: 20px; }
        .toast-content { flex: 1; }
        .toast-msg { font-size: 13px; font-weight: bold; }
        .toast-time { font-size: 10px; color: var(--text-secondary); }

        /* HUD Bottom */
        .hud-bottom {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 30px;
            background: var(--hud-bg);
            border-top: 1px solid var(--card-border);
            display: flex;
            align-items: center;
            padding: 0 20px;
            font-size: 10px;
            color: var(--text-secondary);
            z-index: 1000;
            backdrop-filter: blur(5px);
        }

        [v-cloak] { display: none; }
