/* =========================================
   文件名: play.css
   版本: v2.0 (适配 1300px 宽度 & 按钮布局优化)
   风格: 暗黑黑金 (Dark & Gold)<!--  无忧模板出品 www.wuyouba.cc -->
   ========================================= */

/* --- 1. 全局布局限制 (解决“太宽”的问题) --- */
body {
    /* 确保背景色统一 */
    background-color: #0c0c0e; 
}

.wrapper .content {
    width: 100%;
    max-width: 1300px; /* 限制页面最大宽度，不再全屏 */
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* --- 2. 播放器容器修复 (解决黑屏/无容器) --- */
.player-block {
    width: 100%;
    background-color: #000;
    margin-bottom: 25px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    /* 保持 16:9 比例，防止高度塌陷 */
    aspect-ratio: 16 / 9;
}

/* 兼容旧浏览器写法 */
@supports not (aspect-ratio: 16 / 9) {
    .player-block::before {
        content: "";
        float: left;
        padding-top: 56.25%;
    }
    .player-block::after {
        content: "";
        display: block;
        clear: both;
    }
}

/* 确保播放器内核填满容器 */
.player-block iframe,
.player-block embed,
.player-block video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
    display: block;
}


/* 1. 播放器区域修复 */
.player-section {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #333;
}

/* 强制播放器比例 */
.embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 9; /* 现代浏览器支持 */
}
.embed-responsive iframe, 
.embed-responsive embed, 
.embed-responsive object, 
.embed-responsive video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}
/* 移动端适配微调 */
@media (max-width: 768px) {
    .episode-list {
        grid-template-columns: repeat(auto-fill, minmax(22%, 1fr)); /* 手机一行4个 */
    }
    .source-tab { padding: 6px 12px; font-size: 13px; }
}

/* 自定义滚动条 (暗黑风) */
.ulNumList::-webkit-scrollbar {
    width: 6px;
}
.ulNumList::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 3px;
}
.ulNumList::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}
.ulNumList::-webkit-scrollbar-thumb:hover {
    background: #F5C518;
}

/* --- 4. 剧情简介与底部模块微调 --- */
.video-info.des p {
    color: #aaa;
    line-height: 1.8;
    font-size: 14px;
    margin-bottom: 10px;
}
.video-info.des b {
    color: #F5C518;
    font-weight: normal;
}

/* 猜你喜欢模块微调 */
.module-item-cover {
    position: relative;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 6px;
}
.module-item-pic img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}
.module-item-cover:hover img {
    transform: scale(1.05);
}
.module-item-title {
    color: #fff;
    font-size: 15px;
    display: block;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.module-item-text {
    color: #666;
    font-size: 12px;
}