/* 选集网格布局优化 */
.playlist-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
}
.playlist-grid li {
    list-style: none;
}
.playlist-grid li a {
    display: block;
    padding: 6px 14px;
    background: #f5f5f5;
    color: #333;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    transition: all 0.2s;
}
.playlist-grid li a:hover {
    background: #ff5722;
    color: #fff;
}
/* 当前选中集高亮样式 */
.playlist-grid li a.active {
    background: #ff5722;
    color: #fff;
    font-weight: bold;
}


/* ================================= 
   1. 整体容器与基础布局（统一设置顶部下移 5px 避开导航）
================================= */
.container {
    max-width: 1200px;
    margin: 5px auto 40px auto !important;
    padding: 0 20px;
    box-sizing: border-box;
}

.vod-type-box,
.vod-detail {
    width: 100%;
}

/* ================================= 
   2. 分类筛选栏样式 (Filter)
================================= */
.filter {
    background-color: #fff;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.filter-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-item span {
    font-size: 14px;
    color: #666;
    font-weight: 600;
    margin-right: 4px;
}

.filter-item a {
    display: inline-block;
    padding: 6px 14px;
    font-size: 14px;
    color: #333;
    background-color: #f7f9fa;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.filter-item a:hover {
    color: #ff5722;
    background-color: #fff5f2;
}

/* 分类选中状态 */
.filter-item a.active {
    color: #fff;
    background-color: #ff5722;
    font-weight: 500;
}

/* ================================= 
   3. 视频列表网格优化 (Vod List - 固定每行6个)
================================= */
.vod-list {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 强制每行 6 个 */
    gap: 18px;
    margin-bottom: 40px;
}

.vod-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vod-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.vod-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* 封面图优化（自适应比例和防变形） */
.vod-pic {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4; 
    background-color: #f0f0f0;
    overflow: hidden;
}

.vod-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vod-item:hover .vod-pic img {
    transform: scale(1.05);
}

/* 右下角备注标签 */
.vod-pic span {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
}

/* 视频标题 */
.vod-item h3 {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 年份和地区 */
.vod-item p {
    font-size: 12px;
    color: #999;
    margin: 0 10px 12px 10px;
}

/* ================================= 
   4. 分页样式优化 (Pagination)
================================= */
.page {
    margin: 40px 0 !important;
    text-align: center !important;
    clear: both !important;
}

.mac_pages {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}

.mac_pages a, 
.mac_pages span,
.mac_pages .mac_page {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 36px !important;
    height: 36px !important;
    padding: 0 12px !important;
    font-size: 14px !important;
    color: #333 !important;
    background-color: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    transition: all 0.2s !important;
}

.mac_pages a:hover {
    color: #ff5722 !important;
    border-color: #ff5722 !important;
    background-color: #fff5f2 !important;
}

.mac_pages .disabled {
    color: #ccc !important;
    background-color: #f9f9f9 !important;
    border-color: #eee !important;
    cursor: not-allowed !important;
}

.mac_pages .current,
.mac_pages span.current {
    color: #fff !important;
    background-color: #ff5722 !important;
    border-color: #ff5722 !important;
    font-weight: bold !important;
}

/* ================================= 
   5. 详情页：顶部核心区域 (左封面 + 右信息)
================================= */
.detail-main {
    display: flex;
    gap: 30px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    margin-bottom: 30px;
}

/* 详情页左侧封面海报 */
.detail-main .vod-pic {
    width: 220px;
    flex-shrink: 0;
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f0f0f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.detail-main .vod-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 详情页右侧信息介绍 */
.vod-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.vod-info h1 {
    font-size: 24px;
    font-weight: 600;
    color: #222;
    margin: 0 0 16px 0;
}

.vod-info ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 12px 20px;
}

.vod-info ul li {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 立即播放按钮 */
.play-btn a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 36px;
    background: linear-gradient(135deg, #ff7b37, #ff5722);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
    transition: all 0.2s ease;
}

.play-btn a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 87, 34, 0.4);
}

/* ================================= 
   6. 详情页：通用模块 (剧情、选集、推荐)
================================= */
.vod-content, 
.vod-play-list, 
.vod-related {
    background: #fff;
    border-radius: 12px;
    padding: 24px 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.vod-content h2, 
.vod-play-list h2, 
.vod-related h2 {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin: 0 0 16px 0;
    padding-left: 10px;
    border-left: 4px solid #ff5722; 
}

/* 剧情简介文字 */
.vod-content div {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
}

/* ================================= 
   7. 详情页：播放选集列表
================================= */
.play-line {
    margin-bottom: 20px;
}

.play-line:last-child {
    margin-bottom: 0;
}

.play-line h3 {
    font-size: 15px;
    color: #444;
    margin: 0 0 12px 0;
    font-weight: 500;
}

/* 让选集链接变成规整的横向网格/自适应排列按钮 */
.play-line {
    display: block;
}

.play-line a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 38px;
    padding: 0 14px;
    margin: 0 8px 10px 0;
    background-color: #f7f9fa;
    border: 1px solid #e5e9ef;
    border-radius: 6px;
    color: #333;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.play-line a:hover {
    color: #ff5722;
    border-color: #ff5722;
    background-color: #fff5f2;
}

/* ================================= 
   8. 详情页：相关推荐视频网格
================================= */
.vod-related .vod-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr); 
    gap: 16px;
}

.vod-related .vod-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vod-related .vod-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.vod-related .vod-item a {
    text-decoration: none;
    display: block;
}

.vod-related .vod-item img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background-color: #f0f0f0;
}

.vod-related .vod-item p {
    font-size: 13px;
    color: #333;
    margin: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}