/* 视频播放页特定样式 (Video Play Page Specific Styles) */

/* 面包屑统一样式 */
.breadcrumb {
    margin-top: 0 !important;
    /* padding-top: 5px !important; */
}

/* ========================================
   1. 基础样式
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ========================================
   2. 主播放区域
   ======================================== */

.play-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
    margin-bottom: 30px;
}

.player-section {
    background: #141414;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

#player-container {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.player-controls {
    padding: 20px;
    background: rgba(0,0,0,0.3);
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #2a2a2a;
}

.control-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s;
}

.control-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.control-btn.active {
    background: #ff6b6b;
    border-color: #ff6b6b;
    color: #fff;
}

/* ========================================
   3. 选集列表
   ======================================== */

.episode-sidebar {
    background: #141414;
    border-radius: 12px;
    padding: 20px;
    max-height: 600px;
    overflow-y: auto;
}

.player-group {
    margin-bottom: 30px;
}

.player-group:last-child {
    margin-bottom: 0;
}

.episode-sidebar h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.episode-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.episode-item {
    aspect-ratio: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.episode-item:hover {
    background: rgba(255,255,255,0.1);
    border-color: #ff6b6b;
    transform: translateY(-2px);
}

.episode-item.current {
    background: #ff6b6b;
    border-color: #ff6b6b;
    color: #fff;
}

/* ========================================
   4. 视频信息区
   ======================================== */

.video-info {
    background: #141414;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.video-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #fff;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #888;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-label {
    color: #666;
}

.rating-stars {
    color: #ffb400;
    font-size: 18px;
}

.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tag {
    padding: 5px 15px;
    background: rgba(255,107,107,0.1);
    border: 1px solid rgba(255,107,107,0.3);
    border-radius: 20px;
    font-size: 13px;
    color: #ff6b6b;
}

.video-desc {
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 15px;
}

.desc-content {
    max-height: 60px;
    overflow: hidden;
    transition: max-height 0.3s;
}

.desc-content.expanded {
    max-height: none;
}

.expand-btn {
    color: #ff6b6b;
    cursor: pointer;
    font-size: 14px;
}

.expand-btn:hover {
    text-decoration: underline;
}

/* ========================================
   5. 深度解读区域
   ======================================== */

.vod-doc-section {
    background: #141414;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary-color, #ff6b6b);
}

.vod-doc-section h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff;
    font-weight: bold;
}

.vod-doc-section .doc-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    line-height: 1.5;
}

.vod-doc-section .doc-content {
    line-height: 1.9;
    color: rgba(255,255,255,0.9);
    font-size: 15px;
}

.vod-doc-section .doc-content p {
    margin-bottom: 15px;
}

/* Light theme support */
[data-theme="light"] .vod-doc-section {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

[data-theme="light"] .vod-doc-section h3 {
    color: #1a1a1a;
}

[data-theme="light"] .vod-doc-section .doc-title {
    color: rgba(0,0,0,0.75);
}

[data-theme="light"] .vod-doc-section .doc-content {
    color: #555;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .vod-doc-section {
        padding: 20px 15px;
        margin-bottom: 20px;
    }

    .vod-doc-section h3 {
        font-size: 20px;
    }

    .vod-doc-section .doc-title {
        font-size: 16px;
    }

    .vod-doc-section .doc-content {
        font-size: 14px;
        line-height: 1.8;
    }
}

/* ========================================
   7. 推荐视频
   ======================================== */

.recommend-section {
    background: #141414;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.recommend-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.recommend-item:hover {
    transform: translateY(-5px);
}

.recommend-item img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.recommend-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: #fff;
}

.recommend-title {
    font-size: 14px;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recommend-meta {
    font-size: 12px;
    color: #888;
    display: flex;
    justify-content: space-between;
}

/* ========================================
   8. 评论区
   ======================================== */

.comment-section {
    background: #141414;
    border-radius: 12px;
    padding: 30px;
}

.comment-form {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.form-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #fff;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #aaa;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b6b;
    background: rgba(255,255,255,0.08);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.rating-input {
    display: flex;
    gap: 10px;
    align-items: center;
}

.star-rating {
    display: flex;
    gap: 5px;
    font-size: 24px;
}

.star {
    color: #444;
    cursor: pointer;
    transition: color 0.2s;
}

.star:hover,
.star.active {
    color: #ffb400;
}

.submit-btn {
    background: #ff6b6b;
    color: #fff;
    padding: 12px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,107,107,0.4);
}

.comment-list {
    margin-top: 30px;
}

.comment-item {
    display: flex;
    gap: 15px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.05);
}

.comment-avatar {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.comment-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.username {
    font-weight: bold;
    color: #fff;
    font-size: 14px;
}

.comment-time {
    font-size: 12px;
    color: #666;
}

.comment-rating {
    color: #ffb400;
    font-size: 14px;
}

.comment-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-author {
    font-weight: bold;
    color: #fff;
    font-size: 15px;
}

.comment-text {
    color: #ccc;
    line-height: 1.8;
}

.comment-actions {
    display: flex;
    gap: 20px;
    font-size: 13px;
}

.like-btn,
.reply-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 13px;
}

.like-btn:hover,
.reply-btn:hover {
    color: #ff6b6b;
    background: rgba(255,107,107,0.1);
}

.action-btn {
    cursor: pointer;
    transition: color 0.3s;
}

.action-btn:hover {
    color: #ff6b6b;
}

/* ========================================
   9. 响应式 - 平板
   ======================================== */

@media (max-width: 1024px) {
    .play-wrapper {
        grid-template-columns: 1fr;
    }

    .episode-sidebar {
        max-height: 400px;
    }
}

/* ========================================
   10. 响应式 - 移动端
   ======================================== */

@media (max-width: 768px) {
    

    .video-title {
        font-size: 24px;
    }

    .episode-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .episode-item {
        font-size: 12px;
        padding: 8px 4px;
        border-radius: 6px;
        min-height: 40px;
        aspect-ratio: auto;
    }

    .recommend-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* 移动端控制按钮均匀分布 */
    .player-controls {
        padding: 15px 10px;
        gap: 8px;
    }

    .control-btn {
        flex: 1;
        min-width: 0;
        padding: 10px 8px;
        font-size: 13px;
        justify-content: center;
    }

    .control-btn span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ========================================
   11. 亮色主题 (Light Theme)
   ======================================== */

[data-theme="light"] body {
    background: #f5f5f5;
    color: #333;
}

[data-theme="light"] .player-section,
[data-theme="light"] .episode-sidebar,
[data-theme="light"] .video-info,
[data-theme="light"] .recommend-section,
[data-theme="light"] .comment-section {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

[data-theme="light"] .video-title,
[data-theme="light"] .section-title,
[data-theme="light"] .form-title,
[data-theme="light"] .username,
[data-theme="light"] .episode-sidebar h3 {
    color: #1a1a1a;
}

[data-theme="light"] .video-desc,
[data-theme="light"] .comment-content {
    color: #555;
}

[data-theme="light"] .video-meta,
[data-theme="light"] .meta-label {
    color: #666;
}

[data-theme="light"] .player-controls {
    background: rgba(0,0,0,0.05);
    border-top-color: #e0e0e0;
}

[data-theme="light"] .control-btn,
[data-theme="light"] .episode-item {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.1);
    color: #333;
}

[data-theme="light"] .control-btn:hover,
[data-theme="light"] .episode-item:hover {
    background: rgba(0,0,0,0.08);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background: #f9f9f9;
    border-color: #ddd;
    color: #333;
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus {
    background: #fff;
}

[data-theme="light"] .comment-item,
[data-theme="light"] .comment-form {
    background: #f9f9f9;
    border-color: #e0e0e0;
}

[data-theme="light"] .comment-time,
[data-theme="light"] .comment-actions {
    color: #999;
}

[data-theme="light"] .form-group label {
    color: #555;
}

[data-theme="light"] .star {
    color: #ddd;
}
