    :root {
        --primary-color: #fe2c55; /* Douyin/TikTok Red */
        --text-white: #ffffff;
        --text-gray: #face15;
    }

    body, html {
        margin: 0;
        padding: 0;
        height: 100%;
        background-color: #000;
        overflow: hidden;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    }
    
    /* ✅ 新增: 骨架屏加载动画 */
    .video-skeleton {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #000;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        transition: opacity 0.3s ease-out;
    }
    
    .video-skeleton.hide {
        opacity: 0;
        pointer-events: none;
    }
    
    .skeleton-spinner {
        width: 50px;
        height: 50px;
        border: 3px solid rgba(255, 255, 255, 0.1);
        border-top-color: var(--primary-color);
        border-radius: 50%;
        animation: skeleton-spin 0.8s linear infinite;
    }
    
    @keyframes skeleton-spin {
        to { transform: rotate(360deg); }
    }
    
    .video-feed-container {
        width: 100%;
        height: 100%;
        background: #000;
    }

    .swiper-slide {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        overflow: hidden;
        background: #000;
    }
    
    /* ✅ 占位符样式 - 用于懒加载 */
    .video-placeholder {
        background: #000;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .video-placeholder::after {
        content: '';
        width: 40px;
        height: 40px;
        border: 3px solid rgba(255, 255, 255, 0.1);
        border-top-color: #fff;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }
    
    @keyframes spin {
        to { transform: rotate(360deg); }
    }

    /* Video Player - Hardware Acceleration */
    .video-player {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        perspective: 1000px;
        background-color: #000;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    /* Video container for fallback poster */
    .video-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    
    .video-poster-fallback {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 2;
        background-color: #000;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    .video-blur-bg {
        display: none;
    }
    
    /* PC Optimization */
    @media (min-width: 768px) {
        .video-player {
            object-fit: contain;
            max-width: 450px;
            background: transparent;
            z-index: 2;
            box-shadow: 0 0 50px rgba(0,0,0,0.5);
            border-radius: 12px;
        }
        
        .video-blur-bg {
            display: block;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            filter: blur(30px);
            opacity: 0.3;
            z-index: 1;
        }

        /* Adjust positions for PC centered video */
        .right-action-bar {
            right: calc(50% - 225px + 10px) !important; /* Center + half width + padding */
        }
        .bottom-info {
            left: calc(50% - 225px) !important;
            width: 450px !important;
            padding-bottom: 20px !important;
        }
    }

    /* Gradient Overlays */
    .overlay-gradient-top {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 150px;
        background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
        z-index: 10;
        pointer-events: none;
    }
    
    .overlay-gradient-bottom {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 250px;
        background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
        z-index: 10;
        pointer-events: none;
    }

    /* Top Bar */
    .top-bar {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
        z-index: 50;
        color: #fff;
    }
    
    /* ✅ 积分显示组件 - 优化为竖向紧凑设计 */
    .points-display {
        position: absolute;
        top: 80px;
        right: 15px;
        background: linear-gradient(135deg, rgba(254, 44, 85, 0.9), rgba(255, 107, 53, 0.9));
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 10px;
        padding: 5px 6px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        box-shadow: 0 3px 10px rgba(254, 44, 85, 0.4);
        z-index: 60;
        transition: all 0.3s ease;
        animation: slideInRight 0.5s ease-out;
        min-width: 36px;
        cursor: pointer;
    }
    
    /* ✅ 未登录状态 - 锁定样式 */
    .points-display.locked {
        background: linear-gradient(135deg, rgba(128, 128, 128, 0.9), rgba(96, 96, 96, 0.9));
    }
    
    .points-display.locked .points-icon {
        animation: shake 2s ease-in-out infinite;
    }
    
    .points-display:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(254, 44, 85, 0.6);
    }
    
    .points-icon {
        font-size: 13px;
        color: #FFD700;
        animation: sparkle 2s ease-in-out infinite;
    }
    
    .points-text {
        font-size: 9px;
        font-weight: 600;
        color: #fff;
        text-shadow: 0 1px 2px rgba(0,0,0,0.3);
        white-space: nowrap;
    }
    
    .points-number {
        font-size: 13px;
        font-weight: 700;
        color: #FFD700;
        text-align: center;
        animation: numberPulse 0.5s ease;
    }
    
    /* ✅ 首次提示气泡 */
    .points-hint-bubble {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(0, 0, 0, 0.85);
        color: #fff;
        padding: 20px 30px;
        border-radius: 16px;
        font-size: 16px;
        z-index: 9999;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
        animation: fadeInScale 0.5s ease-out;
        text-align: center;
        max-width: 80%;
    }
    
    .points-hint-bubble .hint-icon {
        font-size: 32px;
        color: #FFD700;
        margin-bottom: 10px;
        animation: bounce 1s ease-in-out infinite;
    }
    
    .points-hint-bubble .hint-text {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 8px;
    }
    
    .points-hint-bubble .hint-desc {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.8);
    }
    
    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateX(100px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    @keyframes sparkle {
        0%, 100% { 
            transform: scale(1) rotate(0deg);
            opacity: 1;
        }
        50% { 
            transform: scale(1.2) rotate(180deg);
            opacity: 0.8;
        }
    }
    
    @keyframes numberPulse {
        0% { 
            transform: scale(1);
        }
        50% { 
            transform: scale(1.3);
        }
        100% { 
            transform: scale(1);
        }
    }
    
    @keyframes fadeInScale {
        from {
            opacity: 0;
            transform: translate(-50%, -50%) scale(0.8);
        }
        to {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }
    }
    
    @keyframes bounce {
        0%, 100% { 
            transform: translateY(0);
        }
        50% { 
            transform: translateY(-10px);
        }
    }
    
    @keyframes shake {
        0%, 100% { transform: rotate(0deg); }
        10%, 30%, 50%, 70%, 90% { transform: rotate(-5deg); }
        20%, 40%, 60%, 80% { transform: rotate(5deg); }
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translate(-50%, -20px);
        }
        to {
            opacity: 1;
            transform: translate(-50%, 0);
        }
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    /* ✅ 积分奖励弹窗 - 中间显示，红色醒目 */
    .points-reward-popup {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0);
        background: linear-gradient(135deg, #ff4757, #ff6348);
        color: #fff;
        padding: 30px 40px;
        border-radius: 20px;
        z-index: 10000;
        box-shadow: 0 10px 40px rgba(255, 71, 87, 0.6);
        text-align: center;
        animation: popupBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
        min-width: 280px;
    }
    
    .points-reward-icon {
        font-size: 64px;
        margin-bottom: 15px;
        animation: coinSpin 0.8s ease-out;
    }
    
    .points-reward-text {
        font-size: 24px;
        font-weight: 700;
        margin-bottom: 8px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    
    .points-reward-number {
        font-size: 48px;
        font-weight: 900;
        color: #ffd700;
        text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
        animation: numberScale 0.5s ease-out 0.3s backwards;
    }
    
    .points-reward-desc {
        font-size: 16px;
        margin-top: 10px;
        opacity: 0.9;
    }
    
    @keyframes popupBounce {
        0% {
            opacity: 0;
            transform: translate(-50%, -50%) scale(0);
        }
        50% {
            transform: translate(-50%, -50%) scale(1.1);
        }
        100% {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }
    }
    
    @keyframes coinSpin {
        0% {
            transform: rotateY(0deg) scale(0);
        }
        50% {
            transform: rotateY(180deg) scale(1.2);
        }
        100% {
            transform: rotateY(360deg) scale(1);
        }
    }
    
    @keyframes numberScale {
        0% {
            transform: scale(0);
            opacity: 0;
        }
        50% {
            transform: scale(1.3);
        }
        100% {
            transform: scale(1);
            opacity: 1;
        }
    }
    
    /* ✅ 登录引导弹窗 - 温和提示 */
    .login-hint-gentle {
        position: fixed;
        top: 15vh; /* 使用视口高度，避免被顶部遮挡 */
        left: 50%;
        transform: translateX(-50%);
        background: linear-gradient(135deg, rgba(254, 44, 85, 0.95), rgba(255, 107, 53, 0.95));
        backdrop-filter: blur(10px);
        color: #fff;
        padding: 12px 20px;
        border-radius: 20px;
        z-index: 10001; /* 提高z-index，确保在最上层 */
        animation: slideDown 0.5s ease-out;
        box-shadow: 0 4px 20px rgba(254, 44, 85, 0.5);
        display: flex;
        align-items: center;
        gap: 10px;
        max-width: 85vw; /* 使用视口宽度 */
        position: relative;
    }
    
    /* 小屏幕优化 */
    @media (max-width: 375px) {
        .login-hint-gentle {
            top: 12vh;
            padding: 10px 16px;
            max-width: 90vw;
        }
        
        .login-hint-gentle .hint-message {
            font-size: 14px;
        }
        
        .login-hint-gentle .hint-sub {
            font-size: 12px;
        }
        
        .login-hint-gentle .hint-action {
            padding: 6px 12px;
            font-size: 12px;
        }
    }
    
    .login-hint-gentle .hint-close {
        position: absolute;
        top: 8px;
        right: 8px;
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: #fff;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        transition: all 0.2s ease;
    }
    
    .login-hint-gentle .hint-close:hover {
        background: rgba(255, 255, 255, 0.3);
    }
    
    .login-hint-gentle .hint-content {
        flex: 1;
    }
    
    .login-hint-gentle .hint-message {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 2px;
    }
    
    .login-hint-gentle .hint-sub {
        font-size: 13px;
        opacity: 0.9;
    }
    
    .login-hint-gentle .hint-action {
        background: rgba(255, 255, 255, 0.95);
        color: #fe2c55;
        border: none;
        padding: 8px 16px;
        border-radius: 12px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        white-space: nowrap;
        transition: all 0.2s ease;
    }
    
    .login-hint-gentle .hint-action:active {
        transform: scale(0.95);
    }
    
    /* ✅ 登录引导弹窗 - 卡片式 */
    .login-hint-card {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
        border-radius: 20px;
        z-index: 10001; /* 提高z-index，确保在最上层 */
        animation: fadeInScale 0.4s ease-out;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
        max-width: 85vw; /* 使用视口宽度 */
        max-height: 80vh; /* 限制最大高度 */
        width: 320px;
        overflow-y: auto; /* 内容过多时可滚动 */
    }
    
    /* 小屏幕优化 */
    @media (max-width: 375px) {
        .login-hint-card {
            width: 90vw;
            max-width: 300px;
            max-height: 70vh;
        }
        
        .login-card-header {
            padding: 16px;
        }
        
        .login-card-icon {
            font-size: 40px;
        }
        
        .login-card-message {
            font-size: 20px;
        }
        
        .login-card-sub {
            font-size: 13px;
        }
        
        .login-card-body {
            padding: 16px;
        }
        
        .login-benefits li {
            font-size: 14px;
            padding: 8px 0;
        }
        
        .login-card-actions button {
            padding: 12px;
            font-size: 15px;
        }
    }
    
    /* 大屏幕优化 */
    @media (min-width: 768px) {
        .login-hint-card {
            width: 380px;
            max-width: 90vw;
        }
    }
    
    .login-hint-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 10000; /* 与弹窗配套，确保在最上层 */
        animation: fadeIn 0.3s ease-out;
    }
    
    .login-card-header {
        background: linear-gradient(135deg, #fe2c55, #ff6b35);
        padding: 20px;
        text-align: center;
        position: relative;
    }
    
    .login-card-icon {
        font-size: 48px;
        margin-bottom: 10px;
        animation: bounce 1s ease-in-out infinite;
    }
    
    .login-card-message {
        font-size: 22px;
        font-weight: 700;
        color: #fff;
        margin-bottom: 5px;
    }
    
    .login-card-sub {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.9);
    }
    
    .login-card-body {
        padding: 20px;
        color: #fff;
    }
    
    .login-benefits {
        list-style: none;
        padding: 0;
        margin: 15px 0;
    }
    
    .login-benefits li {
        padding: 10px 0;
        font-size: 15px;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .login-benefits li::before {
        content: '✓';
        color: #4CAF50;
        font-weight: bold;
        font-size: 16px;
    }
    
    .login-card-actions {
        display: flex;
        gap: 10px;
        margin-top: 20px;
    }
    
    .login-card-actions button {
        flex: 1;
        padding: 14px;
        border: none;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .login-card-actions .btn-primary {
        background: linear-gradient(135deg, #fe2c55, #ff6b35);
        color: #fff;
    }
    
    .login-card-actions .btn-secondary {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .login-card-actions button:active {
        transform: scale(0.95);
    }
    
    .back-btn {
        font-size: 20px;
        color: #fff;
        text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    }

    /* Right Action Bar - Douyin Style */
    /* Right Action Bar - Douyin Style */
    .right-action-bar {
        position: absolute;
        right: 2vw; /* 响应式宽度 */
        bottom: 18vh; /* 再向下移动一个图标的位置（从25vh改为18vh） */
        display: flex;
        flex-direction: column;
        align-items: center;
        z-index: 30;
        width: auto;
    }
    
    .action-item {
        margin-bottom: 4vw; /* 响应式间距 */
        display: flex;
        flex-direction: column;
        align-items: center;
        cursor: pointer;
        position: relative;
    }
    
    .avatar-wrapper {
        margin-bottom: 5vw; /* 响应式间距 */
        position: relative;
        width: 11vw; /* 响应式宽度 */
        height: 11vw;
        max-width: 50px; /* 最大宽度 */
        max-height: 50px;
        min-width: 36px; /* 最小宽度 */
        min-height: 36px;
    }
    
    .user-avatar {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        border: 2px solid #fff;
        object-fit: cover;
        box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    }
    
    .follow-btn {
        position: absolute;
        bottom: -2vw;
        left: 50%;
        transform: translateX(-50%);
        width: 5vw;
        height: 5vw;
        max-width: 22px;
        max-height: 22px;
        min-width: 16px;
        min-height: 16px;
        background: var(--primary-color);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 2.5vw;
        max-font-size: 12px;
        box-shadow: 0 1px 2px rgba(0,0,0,0.3);
    }
    
    .action-icon {
        font-size: 7vw; /* 响应式字体 */
        max-font-size: 32px; /* 最大字体 */
        min-font-size: 24px; /* 最小字体 */
        color: #fff;
        margin-bottom: 1vw;
        text-shadow: 0 2px 5px rgba(0,0,0,0.3);
        transition: transform 0.1s;
    }
    
    .action-icon.active {
        color: var(--primary-color);
        animation: pulse 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    
    .action-text {
        color: #fff;
        font-size: 2.8vw; /* 响应式字体 */
        max-font-size: 13px;
        min-font-size: 10px;
        font-weight: 500;
        text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    }
    
    /* 小屏幕优化 */
    @media (max-width: 375px) {
        .right-action-bar {
            right: 1.5vw;
            bottom: 15vh; /* 小屏幕也向下移动 */
        }
        
        .action-icon {
            font-size: 6.5vw;
        }
        
        .action-text {
            font-size: 2.5vw;
        }
    }
    
    /* 大屏幕优化 */
    @media (min-width: 768px) {
        .right-action-bar {
            right: 15px;
            bottom: 140px; /* 大屏幕也向下移动 */
        }
        
        .action-icon {
            font-size: 32px;
        }
        
        .action-text {
            font-size: 13px;
        }
    }
    
    /* Bottom Info - Douyin Style */
    .bottom-info {
        position: absolute;
        bottom: 50px; /* 紧贴底部导航栏（50px高度） */
        left: 0;
        width: 100%;
        padding: 0 100px 10px 15px;
        z-index: 20;
        color: #fff;
        text-align: left;
    }
    
    .user-name {
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 8px;
        text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    }
    
    .video-description {
        font-size: 15px;
        line-height: 1.4;
        margin-bottom: 10px;
        text-shadow: 0 1px 2px rgba(0,0,0,0.5);
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    /* ✅ 商品卡片样式 - 卡片形式设计 */
    .product-card {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 8px;
        padding: 6px;
        display: flex;
        align-items: center;
        margin-top: 8px;
        margin-bottom: 8px;
        text-decoration: none;
        color: #fff;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        max-width: 44%; /* 缩小宽度：从66.66%缩小1/3 = 44% */
    }
    
    .product-card:hover {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
        text-decoration: none;
        color: #fff;
    }
    
    .product-card:active {
        transform: translateY(0);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }
    
    .product-card-image {
        width: 40px;
        height: 40px;
        border-radius: 6px;
        object-fit: cover;
        margin-right: 8px;
        flex-shrink: 0;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .product-card-info {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .product-card-name {
        font-size: 12px;
        font-weight: 500;
        color: #fff;
        margin-bottom: 3px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        line-height: 1.3;
    }
    
    .product-card-price {
        font-size: 14px;
        font-weight: 700;
        color: #ff6b6b;
        display: flex;
        align-items: baseline;
    }
    
    .product-card-price .price-symbol {
        font-size: 10px;
        font-weight: 600;
        margin-right: 2px;
    }
    
    .product-card-action {
        color: rgba(255, 255, 255, 0.6);
        font-size: 14px;
        margin-left: 6px;
        transition: all 0.3s ease;
    }
    
    .product-card:hover .product-card-action {
        color: #fff;
        transform: translateX(3px);
    }
    
    /* 旧样式保留作为备用 */
    .product-link-bar {
        display: none; /* 隐藏旧样式 */
    }

    /* Bottom Navigation Bar - Fixed at screen bottom */
    .bottom-nav {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 50px;
        background: #000;
        border-top: 1px solid rgba(255,255,255,0.1);
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 50;
    }
    
    .nav-item {
        color: #999;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 16px;
        font-weight: 600;
        position: relative;
    }
    
    .nav-item.active {
        color: #fff;
    }
    
    .nav-item.active::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 50%;
        transform: translateX(-50%);
        width: 20px;
        height: 2px;
        background: #fff;
        border-radius: 2px;
    }
    
    .nav-publish-btn {
        width: 45px;
        height: 30px;
        background: linear-gradient(to right, #00f2ea, #ff0050); /* TikTok Colors */
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 20px;
    }
    
    .nav-publish-btn i {
        color: #000;
        font-weight: bold;
    }

    /* Comment Modal - Half Screen */
    .comment-modal-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 10000; /* 高于底部导航栏(1000),确保盖住所有元素 */
        display: none;
    }
    .comment-modal {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70vh;
        background: #161616; /* Dark mode comments */
        border-radius: 12px 12px 0 0;
        transform: translateY(100%);
        transition: transform 0.3s ease-out;
        display: flex;
        flex-direction: column;
        color: #fff;
        z-index: 10001; /* 高于背景层 */
    }
    .comment-modal.show {
        transform: translateY(0);
    }
    .comment-header {
        padding: 15px;
        text-align: center;
        position: relative;
        color: #fff;
        font-weight: 600;
        font-size: 14px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .comment-close {
        position: absolute;
        right: 15px;
        top: 15px;
        cursor: pointer;
        color: #999;
    }
    .comment-body {
        flex: 1;
        overflow-y: auto;
        padding: 0;
    }
    .comment-input-area {
        padding: 10px 15px;
        border-top: 1px solid rgba(255,255,255,0.1);
        background: #161616;
        display: flex;
        align-items: center;
    }
    .comment-input {
        flex: 1;
        background: #333;
        border: none;
        border-radius: 20px;
        padding: 8px 15px;
        color: #fff;
        margin-right: 10px;
    }
    .comment-send-btn {
        color: var(--primary-color);
        background: none;
        border: none;
        font-weight: 600;
    }

    /* Play/Pause Icon Animation */
    .play-state-icon {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 60px;
        color: rgba(255,255,255,0.8);
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.2s, transform 0.2s;
        z-index: 20;
    }
    .show-icon {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }

    /* Loading Spinner */
    .video-loading-spinner {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 40px;
        color: rgba(255, 255, 255, 0.8);
        z-index: 15;
        display: none;
        pointer-events: none;
    }
    


    @keyframes spin {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }
    
    @keyframes pulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.2); }
        100% { transform: scale(1); }
    }
