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

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
            background: #000;
            color: #fff;
            overflow: hidden;
            height: 100vh;
            -webkit-font-smoothing: antialiased;
        }

        .container {
            position: relative;
            height: 100vh;
            display: flex;
        }

        /* ============ 侧边栏样式 - 渐变背景 ============ */
        .sidebar {
            width: 280px;
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
            border-right: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            flex-direction: column;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 1000;
            box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
        }

        .sidebar-header {
            padding: 24px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: linear-gradient(135deg, rgba(255, 0, 80, 0.1) 0%, transparent 100%);
        }

        .sidebar-header .logo {
            font-size: 28px;
            font-weight: 900;
            background: linear-gradient(135deg, #ff0050 0%, #ff4081 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            letter-spacing: 2px;
            text-shadow: 0 2px 10px rgba(255, 0, 80, 0.3);
        }

        .sidebar-toggle {
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: #fff;
            cursor: pointer;
            display: none;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            transition: all 0.3s ease;
        }

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

        .sidebar-content {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
        }

        .sidebar-content::-webkit-scrollbar {
            width: 6px;
        }

        .sidebar-content::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 3px;
        }

        .source-title {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.5);
            margin-bottom: 16px;
            text-transform: uppercase;
            letter-spacing: 2px;
            font-weight: 600;
        }

        .source-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .source-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #fff;
            padding: 14px 18px;
            border-radius: 12px;
            cursor: pointer;
            font-size: 15px;
            text-align: left;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        .source-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            transition: left 0.5s ease;
        }

        .source-btn:hover::before {
            left: 100%;
        }

        .source-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.2);
            transform: translateX(5px);
        }

        .source-btn.active {
            background: linear-gradient(135deg, #ff0050 0%, #ff4081 100%);
            border-color: transparent;
            color: #fff;
            box-shadow: 0 4px 15px rgba(255, 0, 80, 0.4);
            transform: translateX(5px);
        }

        /* ============ 主内容区域 ============ */
        .main-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            transition: margin-left 0.3s ease;
        }

        /* ============ 右上角分类抽屉浮动按钮 ============ */
        .cat-fab {
            position: fixed;
            top: calc(12px + env(safe-area-inset-top));
            right: calc(12px + env(safe-area-inset-right));
            z-index: 1100;
            display: none;
            align-items: center;
            gap: 6px;
            padding: 9px 14px;
            border: 1px solid rgba(255, 255, 255, 0.18);
            border-radius: 22px;
            background: rgba(0, 0, 0, 0.45);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            color: #fff;
            font-size: 13px;
            font-weight: 600;
            letter-spacing: 1px;
            cursor: pointer;
            transition: transform 0.2s ease, background 0.2s ease;
        }

        .cat-fab svg {
            width: 16px;
            height: 16px;
        }

        .cat-fab:active {
            transform: scale(0.94);
            background: rgba(0, 0, 0, 0.6);
        }

        @media (max-width: 768px) {
            .cat-fab {
                display: flex;
            }
        }

        /* ============ 视频容器 ============ */
        .video-container {
            flex: 1;
            position: relative;
            overflow: hidden;
            background: #000;
        }

        .video-item {
            position: absolute;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #000;
        }

        .video-item video {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .loading {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 16px;
            color: rgba(255, 255, 255, 0.6);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .loading::after {
            content: '';
            width: 20px;
            height: 20px;
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-top-color: #ff0050;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        /* ============ 互动面板 - 抖音风格 ============ */
        .interaction-panel {
            position: absolute;
            right: 16px;
            bottom: 120px;
            display: flex;
            flex-direction: column;
            gap: 20px;
            z-index: 100;
        }

        .interaction-btn {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.3);
            border: 2px solid rgba(255, 255, 255, 0.2);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(10px);
            position: relative;
        }

        .interaction-btn::before {
            content: '';
            position: absolute;
            inset: -2px;
            border-radius: 50%;
            background: linear-gradient(135deg, #ff0050, #ff4081);
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: -1;
        }

        .interaction-btn:hover {
            transform: scale(1.15);
            border-color: rgba(255, 255, 255, 0.4);
        }

        .interaction-btn.active {
            border-color: transparent;
        }

        .interaction-btn.active::before {
            opacity: 1;
        }

        .interaction-btn svg {
            width: 26px;
            height: 26px;
            margin-bottom: 2px;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
        }

        .interaction-btn span {
            font-size: 11px;
            font-weight: 600;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
        }

        /* ============ 进度条 - 抖音红色 ============ */
        /* v82u-9j-2：隐藏声音图标（保持声音常开） */
.volume-control { display: none !important; }
.progress-bar {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: rgba(255, 255, 255, 0.2);
            z-index: 1000;
            display: flex;
            align-items: center;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #ff0050 0%, #ff4081 100%);
            width: 0%;
            transition: width 0.1s linear;
            box-shadow: 0 0 10px rgba(255, 0, 80, 0.5);
        }

        /* ============ 音量控制 ============ */
        .volume-control {
            position: absolute;
            right: 12px;
            bottom: 8px;
            background: rgba(0, 0, 0, 0.5);
            border-radius: 24px;
            padding: 6px 12px;
            display: flex;
            align-items: center;
            gap: 8px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .volume-btn {
            background: none;
            border: none;
            color: #fff;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 28px;
            transition: transform 0.2s ease;
        }

        .volume-btn:hover {
            transform: scale(1.1);
        }

        .volume-slider {
            width: 70px;
            height: 4px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 2px;
            position: relative;
            cursor: pointer;
        }

        .volume-level {
            position: absolute;
            height: 100%;
            background: linear-gradient(90deg, #ff0050 0%, #ff4081 100%);
            border-radius: 2px;
            width: 100%;
            box-shadow: 0 0 6px rgba(255, 0, 80, 0.5);
        }

        /* ============ 缓冲指示器（v37：科技风 · 非阻塞）
           不再用全屏黑遮罩：pointer-events:none 保证缓冲时右侧按钮可见可点、
           滑动手势照常生效；z-index 90 低于互动面板(100)  └── 永不盖住按钮 ============ */
        .buffering {
            position: fixed;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            z-index: 90;
            pointer-events: none;
            display: none;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            user-select: none;
            -webkit-user-select: none;
        }

        .buffering.show {
            display: flex;
        }

        .tech-loader {
            position: relative;
            width: 64px;
            height: 64px;
        }

        .tech-loader .ring {
            position: absolute;
            inset: 0;
            border-radius: 50%;
            border: 2px solid transparent;
        }

        /* 外圈：主旋 + 霓虹描边 */
        .tech-loader .ring-a {
            border-top-color: #00e5ff;
            border-left-color: rgba(0, 229, 255, 0.45);
            filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.7));
            animation: spin 0.9s linear infinite;
        }

        /* 中圈：反向旋转 */
        .tech-loader .ring-b {
            inset: 9px;
            border-bottom-color: #7cf7ff;
            border-right-color: rgba(124, 247, 255, 0.3);
            animation: spin 1.3s linear infinite reverse;
        }

        /* 内圈：高频微转 */
        .tech-loader .ring-c {
            inset: 18px;
            border-top-color: rgba(0, 229, 255, 0.85);
            border-bottom-color: rgba(0, 229, 255, 0.15);
            animation: spin 0.7s linear infinite;
        }

        /* 中心脉冲核 */
        .tech-loader .core {
            position: absolute;
            left: 50%;
            top: 50%;
            width: 10px;
            height: 10px;
            margin: -5px 0 0 -5px;
            border-radius: 50%;
            background: radial-gradient(circle, #ffffff 0%, #00e5ff 60%, rgba(0, 229, 255, 0) 100%);
            box-shadow: 0 0 12px rgba(0, 229, 255, 0.9);
            animation: corePulse 1.2s ease-in-out infinite;
        }

        /* 向外扩散的扫描环 */
        .tech-loader::after {
            content: '';
            position: absolute;
            inset: -6px;
            border-radius: 50%;
            border: 1px solid rgba(0, 229, 255, 0.25);
            animation: scanRing 1.8s ease-out infinite;
        }

        .buffering-text {
            font-size: 13px;
            letter-spacing: 3px;
            color: rgba(160, 245, 255, 0.92);
            text-shadow: 0 0 10px rgba(0, 229, 255, 0.55);
        }

        .buffering-text i {
            font-style: normal;
            animation: dotBlink 1.2s infinite steps(1);
        }

        .buffering-text i:nth-child(2) { animation-delay: 0.2s; }
        .buffering-text i:nth-child(3) { animation-delay: 0.4s; }

        @keyframes corePulse {
            0%, 100% { transform: scale(0.7);  opacity: 0.65; }
            50%      { transform: scale(1.15); opacity: 1; }
        }

        @keyframes scanRing {
            0%   { transform: scale(0.8); opacity: 0; }
            30%  { opacity: 0.9; }
            100% { transform: scale(1.3); opacity: 0; }
        }

        @keyframes dotBlink {
            0%, 60%, 100% { opacity: 0.25; }
            30%           { opacity: 1; }
        }

        /* ============ 错误提示 ============ */
        .error-message {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.9);
            color: #fff;
            padding: 30px;
            border-radius: 20px;
            text-align: center;
            z-index: 1000;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .retry-btn {
            background: linear-gradient(135deg, #ff0050 0%, #ff4081 100%);
            color: #fff;
            border: none;
            padding: 12px 30px;
            border-radius: 25px;
            margin-top: 15px;
            cursor: pointer;
            font-weight: 600;
            font-size: 15px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(255, 0, 80, 0.3);
        }

        .retry-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(255, 0, 80, 0.4);
        }

        /* ============ 动画 ============ */
        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        @keyframes rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* ============ 移动端适配 ============ */
        @media (max-width: 768px) {
            .sidebar {
                position: fixed;
                left: 0;
                top: 0;
                bottom: 0;
                transform: translateX(-100%);
                z-index: 2000;
            }

            .sidebar.open {
                transform: translateX(0);
            }

            .interaction-panel {
                right: 12px;
                bottom: 100px;
                gap: 16px;
            }

            .interaction-btn {
                width: 52px;
                height: 52px;
            }
        }

        /* ============ 深度移动端适配 ============ */
        html {
            overscroll-behavior: none;
        }

        body, .container {
            height: 100vh;
            height: 100dvh;
        }

        body {
            overscroll-behavior: none;
            -webkit-tap-highlight-color: transparent;
            -webkit-touch-callout: none;
        }

        button, .source-btn, .interaction-btn, .volume-btn, .retry-btn {
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
        }

        .video-container {
            touch-action: none;
            user-select: none;
            -webkit-user-select: none;
        }

        .sidebar-content {
            -webkit-overflow-scrolling: touch;
            overscroll-behavior: contain;
        }

        /* 移动端侧边栏遮罩 */
        .sidebar-backdrop {
            display: none;
        }

        @media (max-width: 768px) {
            .sidebar-backdrop {
                display: block;
                position: fixed;
                inset: 0;
                background: rgba(0, 0, 0, 0.55);
                z-index: 1500;
                opacity: 0;
                pointer-events: none;
                transition: opacity 0.3s ease;
            }

            .sidebar-backdrop.show {
                opacity: 1;
                pointer-events: auto;
            }

            .sidebar {
                width: min(280px, 78vw);
            }

            /* 安全区适配（刘海屏 / Home 指示条） */
            .interaction-panel {
                right: calc(12px + env(safe-area-inset-right));
                bottom: calc(110px + env(safe-area-inset-bottom));
            }

            .volume-control {
                right: calc(12px + env(safe-area-inset-right));
                bottom: calc(8px + env(safe-area-inset-bottom));
            }

            .progress-bar {
                bottom: env(safe-area-inset-bottom);
            }

            .sidebar-header {
                padding-top: calc(24px + env(safe-area-inset-top));
            }
        }

        /* 超小屏（iPhone SE 等 ≤380px） */
        @media (max-width: 380px) {
            .interaction-btn {
                width: 46px;
                height: 46px;
            }

            .interaction-btn svg {
                width: 22px;
                height: 22px;
            }

            .interaction-btn span {
                font-size: 10px;
            }

            .cat-fab {
                font-size: 12px;
                padding: 8px 12px;
            }
        }

        /* 横屏（低高度设备） */
        @media (max-height: 500px) and (orientation: landscape) {
            .interaction-panel {
                bottom: calc(56px + env(safe-area-inset-bottom));
                gap: 10px;
            }

            .interaction-btn {
                width: 42px;
                height: 42px;
            }

            .interaction-btn svg {
                width: 20px;
                height: 20px;
            }
        }
        /* ============ 暂停状态中央指示 ============ */
        .pause-indicator {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.45);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s ease;
            z-index: 150;
            color: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(4px);
        }

        .pause-indicator svg {
            width: 40px;
            height: 40px;
            margin-left: 5px;
        }

        .pause-indicator.show {
            opacity: 1;
        }

        /* ============ 双击点赞飘心 ============ */
        .like-heart {
            position: absolute;
            width: 90px;
            height: 90px;
            margin: -45px 0 0 -45px;
            color: #ff0050;
            pointer-events: none;
            z-index: 160;
            animation: heartPop 0.9s ease forwards;
            filter: drop-shadow(0 4px 12px rgba(255, 0, 80, 0.45));
        }

        .like-heart svg {
            width: 100%;
            height: 100%;
        }

        @keyframes heartPop {
            0%   { transform: scale(0);    opacity: 0; }
            15%  { transform: scale(1.25); opacity: 1; }
            30%  { transform: scale(1); }
            75%  { opacity: 1; }
            100% { transform: scale(1) translateY(-34px); opacity: 0; }
        }

        /* ============ 按钮按压动效 ============ */
        @keyframes btnPop {
            0%   { transform: scale(1); }
            40%  { transform: scale(0.78); }
            70%  { transform: scale(1.12); }
            100% { transform: scale(1); }
        }

        .interaction-btn.btn-pop {
            animation: btnPop 0.35s ease;
        }

        /* 移动端：音量滑块过窄不好点按，只保留静音开关 */
        @media (max-width: 768px) {
            .volume-slider {
                display: none;
            }
        }
/* v82u-9j-4：音频未解锁时的一次性提示（iOS 必需，出现后自动消失） */
.sound-hint {
  position: fixed;
  left: 50%;
  top: 68px;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(0, 0, 0, .62);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  padding: 9px 15px;
  border-radius: 999px;
  z-index: 3000;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.sound-hint.show { opacity: 1; transform: translateX(-50%) translateY(0); }
