/* 视频元信息 */
.video-meta {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    margin-top: 3rem;
}

.poster img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.info h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.description {
    line-height: 1.6;
    color: #444;
}

/* 播放源列表 */
.source-list {
    background: var(--secondary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.source-list h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.source-card {
    margin-bottom: 2rem;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.source-header {
    background: var(--hover-bg);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.platform-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.source-card h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
}

/* 剧集列表 */
.episode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
}

.episode-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
}

.episode {
    display: block;
    padding: 0.8rem 1rem;
    background: var(--secondary);
    border: 2px solid var(--primary);
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

.episode:hover,
.episode:focus {
    background: var(--primary);
    color: var(--secondary);
    transform: translateY(-2px);
}

.episode:active {
    transform: translateY(0);
}

/* 当前播放剧集标记 */
.episode.current {
    background: var(--primary);
    color: var(--secondary);
    position: relative;
}

.episode.current::after {
    content: "正在播放";
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4757;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .video-meta {
        grid-template-columns: 1fr;
    }

    .poster {
        max-width: 200px;
        margin: 0 auto;
    }

    .episode-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .source-list {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .episode-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .episode {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
}

/* 推荐模块样式 */
.recommend-section {
    margin-top: 3rem;
}

.video-module {
    margin-bottom: 3rem;
}

.module-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid var(--primary);
}

/* 垂直列表布局 */
.vertical-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

/* 垂直项目样式 */
.vertical-item {
    display: block;
    background: var(--secondary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
}

.vertical-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* 封面容器 */
.vertical-cover {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.vertical-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vertical-item:hover img {
    transform: scale(1.05);
}

.video-item {
    display: flex;
    flex-direction: column;
    background: var(--secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: var(--text-primary);
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* 时长显示 */
.duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--secondary);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* 文字信息 */
.vertical-info {
    padding: 1rem;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .vertical-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .vertical-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .vertical-cover {
        height: 200px;
    }

    .vertical-info {
        height: 100px;
    }
    .video-item {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .vertical-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .vertical-cover {
        height: 180px;
    }

    .desc {
        -webkit-line-clamp: 1;
    }
}

video {
    width: 100%;
    height: auto;
    display: block;
}

/* 视频主容器 */
.video-main {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

/* 播放器占位（relative：play.js 内绝对定位 video/iframe 的 100% 相对此框） */
.player-placeholder {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: #000;
    border-radius: 12px;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

/* 视频标题 */
.video-header h1 {
    font-size: 1.8rem;
    margin: 1rem 0 0.5rem;
    color: var(--text-primary);
}

.video-stats {
    display: flex;
    gap: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .video-header h1 {
        font-size: 1.5rem;
    }
}