/* ===== 基础变量 ===== */
:root {
    --primary-color: #07c160; /* 微信绿 */
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --tag-hot: #ff6b6b;
    --tag-new: #ffd93d;
    --header-height: 56px;
    --category-height: 50px;
    --bottom-nav-height: 60px;
}

/* ===== 基础重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    padding-bottom: calc(var(--bottom-nav-height) + 20px);
}

/* ===== 顶部导航 ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: linear-gradient(135deg, #07c160 0%, #06ad56 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.header-left, .header-right {
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon {
    color: white;
    cursor: pointer;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
    background: rgba(255,255,255,0.3);
}

/* ===== 分类筛选 ===== */
.category-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    height: var(--category-height);
    background: white;
    z-index: 999;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.category-scroll {
    display: flex;
    align-items: center;
    overflow-x: auto;
    height: 100%;
    padding: 0 12px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    border: none;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn.active {
    background: var(--primary-color);
    color: white;
}

.category-btn:hover:not(.active) {
    background: #e0e0e0;
}

/* ===== 视频列表 ===== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: calc(var(--header-height) + 16px) 16px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== 视频卡片 ===== */
.video-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.video-cover {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 比例 */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.video-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-duration {
    position: fixed;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.video-info {
    padding: 12px;
}

.video-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.tag-hot {
    background: #ffe5e5;
    color: var(--tag-hot);
}

.tag-new {
    background: #fff8e1;
    color: #f5a623;
}

.video-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

.views {
    display: flex;
    align-items: center;
    gap: 4px;
}

.views .material-icons {
    font-size: 14px;
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px;
}

.page-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.page-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-info {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== 底部导航（移动端） ===== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: white;
    border-top: 1px solid #e0e0e0;
    z-index: 1000;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 11px;
}

.nav-item .material-icons {
    font-size: 24px;
}

.nav-item.active {
    color: var(--primary-color);
}

/* ===== 响应式布局 ===== */

/* 大屏幕 - 4列 */
@media (min-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 平板横屏 - 3列 */
@media (min-width: 768px) and (max-width: 1199px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 平板竖屏 - 2列 */
@media (min-width: 480px) and (max-width: 767px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: calc(var(--header-height) + var(--category-height) + 10px) 10px 80px;
    }
    
    .video-info {
        padding: 8px;
    }
    
    .video-title {
        font-size: 13px;
    }
    
    .header-title {
        font-size: 16px;
    }
}

/* 手机 - 2列 + 底部导航 */
@media (max-width: 479px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: calc(var(--header-height) + var(--category-height) + 8px) 8px 80px;
    }
    
    .video-info {
        padding: 8px;
    }
    
    .video-title {
        font-size: 12px;
    }
    
    .video-meta {
        font-size: 11px;
    }
    
    .tag {
        font-size: 10px;
        padding: 1px 6px;
    }
    
    .header-title {
        font-size: 16px;
    }
    
    .bottom-nav {
        display: flex;
    }
    
    .pagination {
        padding-bottom: 80px;
    }
}

/* 隐藏桌面端分页箭头在移动端 */
@media (max-width: 479px) {
    .page-btn {
        width: 32px;
        height: 32px;
    }
    
    .page-btn .material-icons {
        font-size: 20px;
    }
}

/* ===== 加载动画 ===== */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

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

/* ===== 视频集卡片 ===== */
.video-series-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: calc(var(--header-height) + var(--category-height) + 16px) 12px 80px;
    max-width: 800px;
    margin: 0 auto;
}

.video-series-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.video-series-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.series-cover {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: none;
    overflow: hidden;
}
.series-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.series-cover .cover-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.series-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.series-info {
    padding: 12px;
}

.series-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.series-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.series-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

.series-meta .views {
    display: flex;
    align-items: center;
    gap: 4px;
}

.series-meta .material-icons {
    font-size: 14px;
}

/* ===== 系列列表（首页）===== */
.series-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: calc(var(--header-height) + 16px) 12px 80px;
    max-width: 800px;
    margin: 0 auto;
}

.series-grid .video-series-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.series-grid .video-series-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

@media (min-width: 768px) {
    .series-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        padding: calc(var(--header-height) + 20px) 20px 80px;
    }
}

@media (max-width: 479px) {
    .series-grid {
        grid-template-columns: 1fr;
        padding: calc(var(--header-height) + 12px) 12px 80px;
    }
}

/* ===== 播放器页面 ===== */
.player-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 2000;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    touch-action: manipulation;
}

/* CSS 全屏模式 - 保持 hls.js 控制 */
.player-page.css-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #000 !important;
    z-index: 2147483647 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.player-page.css-fullscreen video {
    width: 100vw !important;
    height: 100vh !important;
    object-fit: contain !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.player-page.css-fullscreen .player-header {
    display: none !important;
}

.css-fullscreen .bottom-controls {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(0,0,0,0.8) !important;
    z-index: 10 !important;
}

/* 横屏支持 */
@media (orientation: landscape) {
    .player-page.css-fullscreen .player-header {
        display: none !important;
    }
    .css-fullscreen .bottom-controls {
        flex-direction: row !important;
        height: 40px !important;
    }
}

.player-page .player-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    z-index: 9999;
}

.player-page .player-header .material-icons {
    color: white;
    cursor: pointer;
}

.player-page .player-header span:last-child {
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.player-page video {
    width: 100%;
    height: calc(100% - 56px - 84px);
    object-fit: contain;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    touch-action: manipulation;
}

@media (min-width: 768px) {
    .series-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 渐变色 */
.gradient-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.gradient-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.gradient-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.gradient-4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.gradient-5 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.gradient-6 { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }

@media (min-width: 768px) {
    .video-series-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        padding: calc(var(--header-height) + var(--category-height) + 20px) 20px 80px;
    }
}

@media (max-width: 479px) {
    .video-series-grid {
        grid-template-columns: 1fr;
        padding: calc(var(--header-height) + var(--category-height) + 12px) 12px 80px;
    }
}

/* ===== 播放器控制栏 ===== */
.player-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 10;
}

.player-controls .control-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.player-controls .control-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-controls .material-icons {
    color: white;
    cursor: pointer;
    font-size: 24px;
    user-select: none;
}

.player-controls .material-icons:active {
    transform: scale(0.9);
}

.player-controls .speed-btn {
    color: white;
    font-size: 14px;
    padding: 4px 8px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 4px;
    cursor: pointer;
    background: transparent;
}

.player-controls .speed-btn.active {
    background: #07c160;
    border-color: #07c160;
}

/* 进度条 */
.progress-bar {
    position: fixed;
    top: -30px;
    left: 0;
    right: 0;
    height: 30px;
    background: rgba(0,0,0,0.5);
    cursor: pointer;
}

.progress-bar .progress {
    height: 100%;
    background: #07c160;
    width: 0%;
    transition: width 0.1s;
}

/* 速度菜单 */
.speed-menu {
    position: fixed;
    bottom: 140px;
    padding-bottom: 140px;
    right: 16px;
    background: rgba(0,0,0,0.9);
    border-radius: 8px;
    padding: 8px 0;
    display: none;
    z-index: 20;
}

.speed-menu.show {
    display: block;
}

.speed-menu div {
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
}

.speed-menu div:hover {
    background: rgba(255,255,255,0.1);
}

.speed-menu div.active {
    color: #07c160;
}

/* 修复播放器控制栏显示 */
.player-page video {
    z-index: 1;
}

.player-page .player-controls {
    z-index: 100 !important;
    pointer-events: auto !important;
}

.player-page .player-header {
    z-index: 100 !important;
}

/* 点击视频区域切换控制栏显示 */
.video-tap-area {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 60px;
    z-index: 50;
    cursor: pointer;
}

/* 控制栏默认显示 */
.player-page .player-controls {
    opacity: 1;
    transition: opacity 0.3s;
}

.player-page .player-controls.hidden {
    opacity: 0;
}
/* 播放器控制栏 - 强制显示 */
.player-page .player-controls {
    position: fixed !important;
    bottom: 30px !important;
    left: 0 !important;
    right: 0 !important;
    height: 70px !important;
    background: rgba(0,0,0,0.9) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 20px !important;
    z-index: 9999 !important;
    opacity: 1 !important;
}

/* 控制栏图标 */
.player-page .player-controls .material-icons {
    color: white !important;
    font-size: 32px !important;
    cursor: pointer;
    padding: 10px;
}

/* 速度按钮 */
.player-page .player-controls .speed-btn {
    color: white !important;
    font-size: 16px !important;
    padding: 8px 16px !important;
    border: 1px solid white !important;
    border-radius: 6px !important;
}

/* 点击区域 */
.player-page .video-tap-area {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 140px;
    padding-bottom: 140px;
    z-index: 5000;
}

/* 简单底部控制栏 */
.bottom-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.85);
    z-index: 2100;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    padding: 0;
    transition: opacity 0.5s ease;
}

.controls-row {
    display: flex;
    align-items: center;
    padding: 0 12px;
    width: 100%;
    box-sizing: border-box;
}

.controls-row-top {
    height: 40px;
    gap: 8px;
}

/* 缩略图预览框 */
.scrub-preview {
    position: absolute;
    bottom: 90px;
    width: 90px;
    text-align: center;
    z-index: 100;
    pointer-events: none;
}

.scrub-preview img {
    width: 80px;
    height: 45px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 4px;
    background: #000;
    display: block;
    margin: 0 auto;
}

.scrub-preview-time {
    color: white;
    font-size: 12px;
    margin-top: 4px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.controls-row-bottom {
    height: 44px;
    gap: 4px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.bottom-controls .material-icons {
    color: white;
    font-size: 22px;
    padding: 6px;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}

.bottom-controls .speed-tag {
    color: white;
    font-size: 13px;
    font-weight: bold;
    padding: 4px 10px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.time-sep {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    padding: 0 2px;
}

#currentTime, #totalTime {
    color: white;
    font-size: 13px;
    padding: 0 2px;
    flex-shrink: 0;
}

.progress-container {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    margin: 0 4px;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.progress-bar {
    height: 100%;
    background: #07c160;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.progress-bar.drag-bar {
    position: absolute;
    top: 0;
    left: 0;
    background: #fff;
    opacity: 0.7;
    z-index: 2;
    transition: none;
}

.progress-handle {
    width: 12px;
    height: 12px;
    background: #07c160;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    left: 0%;
    display: none;
    box-shadow: 0 0 4px rgba(0,0,0,0.5);
}

.bottom-controls span {
    color: white;
    font-size: 22px;
    padding: 6px;
}

.bottom-controls .speed-tag {
    color: white;
    font-size: 13px;
    font-weight: bold;
}

/* ===== 视频加载旋转指示器 ===== */
.video-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.video-spinner.show {
    display: flex;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #07c160;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-text {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

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

/* ===== 中间播放按钮 ===== */
.center-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.3s, transform 0.2s;
}

.center-play-btn .material-icons {
    font-size: 48px;
    color: white;
}

.center-play-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

.center-play-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ===== 加载进度条 ===== */
.loading-progress {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999 !important;
}

.loading-bar {
    width: 200px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
}

.loading-bar-fill {
    height: 100%;
    background: #07c160;
    width: 0%;
    transition: width 0.1s;
}

.loading-percent {
    color: white;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* 播放器进度条样式 */
.progress-container {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    margin: 0 10px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

/* 缓冲进度背景 */
.progress-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--buffered, 0%);
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    transition: width 0.2s;
}

.progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #07c160;
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s;
    z-index: 1;
}

.progress-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #07c160;
    border-radius: 50%;
    left: 0%;
    display: none;
}

.progress-container:active .progress-handle,
.progress-container:hover .progress-handle {
    display: block;
}

#currentTime, #totalTime {
    color: #fff;
    font-size: 12px;
    min-width: 35px;
}

.bottom-controls {
    padding: 8px 12px;
}

/* 懒加载缩略图效果 */
.lazy-thumb {
    opacity: 0;
    transition: opacity 0.4s ease;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.lazy-thumb.loaded {
    opacity: 1;
}

/* 加载中占位动画 */
.video-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.video-cover:has(.loaded)::before {
    opacity: 0;
    pointer-events: none;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
