/* ===== CSS Variables ===== */
:root {
    --primary: #1a5cff;
    --primary-dark: #0a4ad0;
    --primary-light: #e9edff;
    --bg-body: #f4f6f9;
    --bg-white: #ffffff;
    --text-dark: #1e1e2a;
    --text-mid: #2d2d3f;
    --text-light: #6b6b80;
    --border-light: #e6eaf0;
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.07);
    --radius: 10px;
    --radius-sm: 6px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* 基础重置（仅内容部分所需） */
* { margin:0; padding:0; box-sizing:border-box; }
body {
    font-family: var(--font);
    background: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   1. 面包屑
   ============================================================ */
.breadcrumb-wrap {
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
    padding: 12px 0;
}
.breadcrumb {
    font-size: 14px;
    color: var(--text-light);
}
.breadcrumb a {
    color: var(--text-light);
    transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep {
    margin: 0 8px;
    font-size: 12px;
    color: var(--border-light);
}
.breadcrumb .current {
    color: var(--text-dark);
    font-weight: 500;
}

/* ============================================================
   2. 播放页主区域
   ============================================================ */
.play-main {
    padding: 20px 0 0px;
}

/* ============================================================
   3. 上部分：视频播放器
   ============================================================ */
.player-section {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px 28px 28px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}

.player-wrapper {
    max-width: 100%;
}

.player-container {
    position: relative;
    background: #000;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
}
.player-container video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}
.player-container .player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    pointer-events: none;
}
.player-container .player-overlay .play-btn-large {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.4);
    color: #fff;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    pointer-events: auto;
}
.player-container .player-overlay .play-btn-large:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.05);
}

.player-info {
    margin-top: 20px;
}
.player-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.player-title h1 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
}
.player-title .player-tag {
    background: var(--primary-light);
    color: var(--primary);
    padding: 0 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    line-height: 28px;
    flex-shrink: 0;
}
.player-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
}
.player-meta i {
    margin-right: 4px;
}
.player-desc {
    font-size: 15px;
    color: var(--text-mid);
    line-height: 1.8;
    border-top: 1px solid var(--border-light);
    padding-top: 14px;
}

/* ============================================================
   4. 中间：内容推荐 + 视频推荐（两列）
   ============================================================ */
.recommend-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 32px;
}

/* ===== 左侧：内容推荐 ===== */
.content-recommend {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px 22px 22px;
    box-shadow: var(--shadow-sm);
}
.content-recommend .rec-header,
.video-recommend .rec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}
.content-recommend .rec-header h4,
.video-recommend .rec-header h4 {
    font-size: 17px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.content-recommend .rec-header .more,
.video-recommend .rec-header .more {
    font-size: 13px;
    color: var(--text-light);
}
.content-recommend .rec-header .more:hover,
.video-recommend .rec-header .more:hover {
    color: var(--primary);
}

.content-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.content-item {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    align-items: flex-start;
}
.content-item:last-child {
    border-bottom: none;
}
.content-item .content-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: linear-gradient(135deg, #e0e7ff, #c7d9ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
}
.content-item .content-thumb a{
    display:block;
    width:100%;
    height:100%;
}
.content-item .content-thumb img {
    display:block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.content-item .content-info {
    flex: 1;
    min-width: 0;
}
.content-item .content-info h5 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}
.content-item .content-info h5 a:hover {
    color: var(--primary);
}
.content-item .content-info .content-meta {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}
.content-item .content-info .content-meta i {
    margin-right: 3px;
}

/* ===== 右侧：视频推荐 ===== */
.video-recommend {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px 22px 22px;
    box-shadow: var(--shadow-sm);
}

.video-rec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.video-rec-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid var(--border-light);
    background: var(--bg-white);
}
.video-rec-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.video-rec-item .rec-cover {
    position: relative;
    padding-top: 56.25%;
    background: linear-gradient(135deg, #d6e4ff, #b8ccff);
    overflow: hidden;
}
.video-rec-item .rec-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-rec-item .rec-cover .rec-duration {
    position: absolute;
    bottom: 6px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 4px;
}
.video-rec-item .rec-info {
    padding: 8px 10px 10px;
}
.video-rec-item .rec-info h5 {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.video-rec-item .rec-info h5 a:hover {
    color: var(--primary);
}
.video-rec-item .rec-info .rec-views {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 3px;
}
.video-rec-item .rec-info .rec-views i {
    margin-right: 3px;
}

/* ============================================================
   5. 底部：最新内容
   ============================================================ */
.latest-section {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px 28px 28px;
    box-shadow: var(--shadow-sm);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin:0;
    padding:0;
    margin-bottom: 16px;
}
.section-header h3 {
    font-size: 19px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-header h3 i {
    color: var(--primary);
}
.section-header .more {
    font-size: 14px;
    color: var(--text-light);
}
.section-header .more:hover {
    color: var(--primary);
}

.latest-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.latest-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.25s ease;
    background: var(--bg-white);
}
.latest-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.latest-item .latest-thumb {
    position: relative;
    padding-top: 56.25%;
    background: linear-gradient(135deg, #e0e7ff, #c7d9ff);
    overflow: hidden;
}
.latest-item .latest-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.latest-item .latest-thumb .latest-type {
    position: absolute;
    bottom: 6px;
    left: 8px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 10px;
    padding: 1px 10px;
    border-radius: 4px;
    font-weight: 500;
}
.latest-item .latest-info {
    padding: 10px 12px 12px;
}
.latest-item .latest-info h5 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.latest-item .latest-info h5 a:hover {
    color: var(--primary);
}
.latest-item .latest-info .latest-meta {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}
.latest-item .latest-info .latest-meta i {
    margin-right: 3px;
}

/* ============================================================
   6. 响应式
   ============================================================ */
@media (max-width: 1024px) {
    .recommend-section {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .video-rec-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .latest-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .player-section {
        padding: 16px 14px 18px;
    }
    .player-title h1 {
        font-size: 20px;
    }
    .player-title .player-tag {
        font-size: 12px;
        line-height: 24px;
        padding: 0 10px;
    }
    .player-meta {
        font-size: 13px;
        gap: 12px 16px;
    }
    .player-desc {
        font-size: 14px;
    }
    .player-container .player-overlay .play-btn-large {
        width: 56px;
        height: 56px;
        font-size: 22px;
    }
    .video-rec-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .content-item .content-thumb {
        width: 80px;
        height: 56px;
    }
    .content-item .content-info h5 {
        font-size: 14px;
    }
    .latest-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .latest-item .latest-info h5 {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .player-section {
        padding: 12px 10px 14px;
    }
    .player-title h1 {
        font-size: 17px;
    }
    .player-meta {
        font-size: 12px;
        gap: 10px 14px;
    }
    .player-container .player-overlay .play-btn-large {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    .video-rec-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .video-rec-item .rec-info h5 {
        font-size: 12px;
    }
    .content-item .content-thumb {
        width: 70px;
        height: 50px;
    }
    .content-item .content-info h5 {
        font-size: 13px;
    }
    .latest-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .latest-item .latest-info h5 {
        font-size: 13px;
    }
}