/* ========== 全局变量 暖橙活力风 ========== */
:root{
    --primary: #ff7a1a;
    --primary-hover: #f26a00;
    --primary-light: #fff3e8;
    --bg: #f6f3ee;
    --card: #ffffff;
    --border: #ece7df;
    --text-1: #26221c;
    --text-2: #5f594f;
    --text-3: #9a9386;
    --radius: 14px;
    --shadow: 0 2px 10px rgba(38, 34, 28, 0.05);
}

*{margin:0;padding:0;box-sizing:border-box;}
body{
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text-1);
    line-height: 1.6;
    font-size: 14px;
    -webkit-overflow-scrolling: touch;
}
a{text-decoration:none;color:inherit;transition:all .25s ease;}
ul{list-style:none;}
img{max-width:100%;display:block;}
.clearfix::after{content:"";display:block;clear:both;}

/* ========== 公共容器 ========== */
.container{
    width: 1200px;
    margin: 0 auto;
    padding: 82px 0 30px;
}
.layout{
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.layout-main{flex:1;min-width:0;}
.layout-side{width:280px;flex-shrink:0;}

/* ========== 顶部导航 ========== */
.header{
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 999;
    background: #fff;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #ff7a1a, #ffb37a) 1;
    box-shadow: 0 2px 12px rgba(255, 122, 26, 0.08);
}
.header-inner{
    width: 1200px;
    margin: 0 auto;
    height: 66px;
    display: flex;
    align-items: center;
    gap: 28px;
}
.logo h1{
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
}
.nav{flex:1;overflow-x:auto;}
.nav::-webkit-scrollbar{display:none;}
.nav-list{
    display: flex;
    gap: 6px;
    white-space: nowrap;
}
.nav-item{
    display: block;
    padding: 8px 18px;
    border-radius: 999px;
    color: var(--text-2);
    font-size: 15px;
    font-weight: 500;
}
.nav-item:hover{
    color: var(--primary);
    background: var(--primary-light);
}
.nav-item.on{
    color: #fff;
    background: var(--primary);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 122, 26, 0.3);
}

/* 搜索框 */
.search form{display:flex;align-items:center;}
.search input{
    width: 200px;
    height: 36px;
    padding: 0 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 18px 0 0 18px;
    outline: none;
    color: var(--text-1);
    font-size: 14px;
}
.search input:focus{
    border-color: var(--primary);
    background: #fff;
}
.search button{
    height: 36px;
    padding: 0 18px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 0 18px 18px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}
.search button:hover{
    background: var(--primary-hover);
}

/* ========== 卡片通用 ========== */
.card{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.card-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.card-head h2{
    font-size: 18px;
    font-weight: 700;
    color: var(--text-1);
    position: relative;
    padding-left: 12px;
}
.card-head h2::before{
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: var(--primary);
    border-radius: 3px;
}
.card-head .more{
    font-size: 13px;
    color: var(--text-3);
}
.card-head .more:hover{color: var(--primary);}

/* ========== 视频网格 ========== */
.vod-grid{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.vod-card{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .3s ease;
}
.vod-card:hover{
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 10px 24px rgba(255, 122, 26, 0.12);
}
.vod-pic{
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #f1ece3;
}
.vod-pic img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vod-card:hover .vod-pic img{
    transform: scale(1.05);
    transition: transform .4s ease;
}
.vod-flag{
    position: absolute;
    top: 8px; left: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 2;
    font-weight: 600;
}
.vod-name-mask{
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 22px 10px 9px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.2), transparent);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    z-index: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vod-info{
    padding: 10px 12px;
}
.vod-name{
    font-size: 14px;
    font-weight: 600;
    color: var(--text-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vod-meta{
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-3);
    display: flex;
    justify-content: space-between;
}
.vod-score{
    color: var(--primary);
    font-weight: 700;
}

/* ========== 排行榜 ========== */
.rank-box{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.rank-title{
    font-size: 16px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    position: relative;
    padding-left: 12px;
}
.rank-title::before{
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: var(--primary);
    border-radius: 3px;
}
.rank-list li{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 14px;
}
.rank-list li:last-child{border-bottom:none;}
.rank-num{
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    background: var(--bg);
    color: var(--text-3);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.rank-num.top{background: var(--primary);color:#fff;}
.rank-num.gold{background: linear-gradient(135deg,#ff7a1a,#ffb37a);color:#fff;}
.rank-name{
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-2);
}
.rank-name:hover{color: var(--primary);}
.rank-hits{
    font-size: 12px;
    color: var(--text-3);
    flex-shrink: 0;
}

/* ========== 筛选栏 横向滑动 ========== */
.filter-box{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.filter-row{
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}
.filter-row:last-child{margin-bottom:0;}
.filter-label{
    width: 56px;
    color: var(--text-3);
    flex-shrink: 0;
    line-height: 30px;
    font-size: 14px;
    font-weight: 600;
}
.filter-items{
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
}
.filter-items::-webkit-scrollbar{height:4px;}
.filter-items::-webkit-scrollbar-track{background:var(--bg);border-radius:2px;}
.filter-items::-webkit-scrollbar-thumb{background:var(--primary);border-radius:2px;}
.filter-item{
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-2);
    background: var(--bg);
    border: 1px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
}
.filter-item:hover{
    color: var(--primary);
    border-color: var(--primary);
}
.filter-item.active{
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ========== 分页 ========== */
.pagination{
    margin: 26px 0 10px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.pagination a{
    min-width: 36px;
    height: 36px;
    padding: 0 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    line-height: 36px;
    text-align: center;
    color: var(--text-2);
    font-size: 14px;
}
.pagination a:hover{
    border-color: var(--primary);
    color: var(--primary);
}
.pagination a.current{
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ========== 面包屑 ========== */
.crumbs{
    font-size: 14px;
    color: var(--text-3);
    margin-bottom: 16px;
}
.crumbs a:hover{color: var(--primary);}

/* ========== 详情页头部 ========== */
.detail-head{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    margin-bottom: 20px;
    display: flex;
    gap: 28px;
    box-shadow: var(--shadow);
}
.detail-cover{
    width: 220px;
    flex-shrink: 0;
    position: relative;
}
.detail-cover img{
    width: 100%;
    border-radius: 10px;
    aspect-ratio: 3/4;
    object-fit: cover;
    border: 1px solid var(--border);
}
.detail-flag{
    position: absolute;
    top: 10px; right: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
}
.detail-body{flex:1;min-width:0;}
.detail-title{
    font-size: 26px;
    font-weight: 800;
    color: var(--text-1);
    margin-bottom: 8px;
}
.detail-sub{
    color: var(--text-3);
    margin-bottom: 18px;
    font-size: 14px;
}
.detail-meta p{
    padding: 7px 0;
    color: var(--text-2);
    font-size: 14px;
    border-bottom: 1px dashed var(--border);
}
.detail-meta label{
    color: var(--text-3);
    display: inline-block;
    width: 70px;
    font-weight: 500;
}
.play-btn{
    display: inline-block;
    margin-top: 18px;
    padding: 12px 40px;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(255, 122, 26, 0.25);
}
.play-btn:hover{
    background: var(--primary-hover);
    color: #fff;
}

/* ========== 播放源与集数（CSS折叠） ========== */
.episodes-box{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.source-tabs{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.source-tab{
    padding: 8px 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-2);
    cursor: pointer;
    font-size: 14px;
}
.source-tab:hover{color: var(--primary);border-color: var(--primary);}
.source-tab.active{background: var(--primary);color:#fff;border-color:var(--primary);}

/* 集数折叠核心样式 */
.ep-list{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-height: 150px;
    overflow: hidden;
    transition: max-height .35s ease;
}
.ep-list.open{
    max-height: 2000px;
}
.ep-list a{
    min-width: 84px;
    padding: 8px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: center;
    color: var(--text-2);
    font-size: 14px;
}
.ep-list a:hover{
    color: var(--primary);
    border-color: var(--primary);
}
.ep-list a.active{
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.ep-more{
    margin-top: 14px;
    text-align: center;
}
.ep-more-btn{
    display: inline-block;
    padding: 6px 26px;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 999px;
    font-size: 14px;
    cursor: pointer;
}
.ep-more-btn:hover{background: var(--primary-light);}

/* ========== 详情页三大模块 ========== */
.movie-summary{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.movie-summary .title{
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.movie-summary .theme{
    font-size: 17px;
    font-weight: 700;
    color: var(--text-1);
    position: relative;
    padding-left: 12px;
}
.movie-summary .theme::before{
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: var(--primary);
    border-radius: 3px;
}
.mb10{margin-bottom:10px;}
.summary-con{
    color: var(--text-2);
    line-height: 1.9;
}
.my-dt dd{
    padding: 6px 0;
    font-size: 14px;
    line-height: 1.8;
}
.my-dt em{
    font-style: normal;
    color: var(--text-3);
    margin-right: 4px;
}
.my-dt b{
    color: var(--text-1);
    font-weight: 700;
}
.my-dt a{
    color: var(--primary);
}
.my-dt a:hover{text-decoration:underline;}
.text-overflow{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.summary-con a.mr10{
    display: inline-block;
    margin: 4px 10px 4px 0;
    padding: 5px 12px;
    background: var(--primary-light);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-2);
}
.summary-con a.mr10:hover{
    background: var(--primary);
    color: #fff;
}

/* ========== 播放页播放器 ========== */
.play-box{
    margin-bottom: 20px;
}
.player-wrap{
    width: 100%;
    background: #000;
    border-radius: var(--radius) var(--radius) 0 0;
    aspect-ratio: 16/9;
    overflow: hidden;
    border: 1px solid var(--border);
    border-bottom: none;
}
.player-wrap iframe,
.player-wrap video{
    width: 100% !important;
    height: 100% !important;
    display: block;
}
.play-title-bar{
    background: var(--card);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 15px 20px;
}
.play-title-bar h2{
    font-size: 17px;
    font-weight: 700;
    color: var(--text-1);
}

/* ========== 搜索页 ========== */
.search-tip{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    font-size: 15px;
    color: var(--text-2);
}
.search-tip em{
    color: var(--primary);
    font-style: normal;
    font-weight: 700;
    margin: 0 4px;
}
.empty-box{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 80px 20px;
    text-align: center;
    color: var(--text-3);
    font-size: 15px;
}

/* ========== 底部页脚 ========== */
.footer{
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 28px 0;
    margin-top: 20px;
}
.footer-inner{
    width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-3);
    font-size: 13px;
    line-height: 2;
}
.footer-links{
    margin-bottom: 8px;
}
.footer-links a{
    margin: 0 10px;
    color: var(--text-2);
}
.footer-links a:hover{color: var(--primary);}
.footer-copy{font-weight: 600;color: var(--text-2);}

/* ========== 响应式自适应 ========== */
@media (max-width: 1200px){
    .container, .header-inner, .footer-inner{width: 96%;}
    .vod-grid{grid-template-columns: repeat(4, 1fr);}
    .layout-side{width: 260px;}
}

@media (max-width: 900px){
    .layout{flex-direction: column;}
    .layout-side{width: 100%;}
    .vod-grid{grid-template-columns: repeat(3, 1fr);}
    .detail-head{flex-direction: column;}
    .detail-cover{width: 100%;max-width: 240px;margin: 0 auto;}
    .detail-title{text-align: center;}
}

@media (max-width: 720px){
    .header-inner{
        flex-direction: column;
        height: auto;
        padding: 10px 0;
        gap: 10px;
    }
    .nav, .search{width: 100%;}
    .search form{width: 100%;}
    .search input{flex: 1;}
    .vod-grid{grid-template-columns: repeat(2, 1fr);gap: 12px;}
    .detail-title{font-size: 22px;}
    .detail-head{padding: 18px;}
    .container{padding-top: 130px;}
}

@media (max-width: 520px){
    .vod-grid{gap: 10px;}
    .card, .episodes-box, .movie-summary{padding: 16px;}
    .detail-title{font-size: 20px;}
    .filter-label{width: 100%;line-height: 1.5;font-weight: 700;color: var(--text-2);}
    .filter-row{flex-direction: column;gap: 6px;}
    .filter-items{width: 100%;}
}
/* ========== 评论板块 ========== */
.comment-box{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.comment-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.comment-head h2{
    font-size: 18px;
    font-weight: 700;
    color: var(--text-1);
    position: relative;
    padding-left: 12px;
}
.comment-head h2::before{
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: var(--primary);
    border-radius: 3px;
}
.comment-count{
    font-size: 13px;
    color: var(--text-3);
}

/* ---- 评论框（提交区） ---- */
.comment-write{
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 22px;
}
.cw-head{
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.cw-label{
    font-size: 14px;
    color: var(--text-2);
    font-weight: 600;
}
.star-select{
    display: flex;
    gap: 2px;
    cursor: pointer;
}
.star-select i{
    font-style: normal;
    font-size: 22px;
    color: #d8d2c6;
    transition: color .2s ease;
    user-select: none;
}
.star-select i:hover{
    color: var(--primary);
}
.star-select i.lit{
    color: var(--primary);
}
.star-text{
    font-size: 12px;
    color: var(--text-3);
}
.cw-input{
    width: 100%;
    height: 90px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    color: var(--text-1);
    font-size: 14px;
    resize: vertical;
    line-height: 1.7;
    box-sizing: border-box;
}
.cw-input:focus{
    border-color: var(--primary);
}
.cw-foot{
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.cw-tip{
    font-size: 12px;
    color: var(--text-3);
}
.cw-btn{
    padding: 8px 28px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}
.cw-btn:hover{
    background: var(--primary-hover);
}

/* ---- 评论列表 ---- */
.comment-item{
    position: relative;
    padding: 14px 90px 14px 0;
    border-bottom: 1px dashed var(--border);
}
.comment-item:last-child{
    border-bottom: none;
}
.c-head{
    font-size: 14px;
    margin-bottom: 6px;
}
.c-user{
    font-weight: 700;
    color: var(--text-1);
}
.c-seen{
    color: var(--text-3);
    margin: 0 6px;
    font-size: 12px;
    background: var(--bg);
    padding: 1px 8px;
    border-radius: 6px;
}
.c-stars{
    color: var(--primary);
    letter-spacing: 1px;
    font-size: 13px;
}
.c-time{
    color: var(--text-3);
    font-size: 12px;
    margin-left: 10px;
}
.c-content{
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.9;
    word-break: break-word;
}
.c-useful{
    position: absolute;
    right: 0;
    top: 14px;
}
.c-useful span{
    color: var(--primary);
    font-size: 13px;
}

/* ---- 空状态 ---- */
.comment-empty{
    padding: 50px 20px;
    text-align: center;
    color: var(--text-3);
    font-size: 15px;
}

/* ---- 响应式 ---- */
@media (max-width: 520px){
    .comment-item{
        padding-right: 0;
    }
    .c-useful{
        position: static;
        margin-top: 6px;
    }
    .cw-foot{
        flex-direction: column;
        align-items: flex-start;
    }
}
.c-stars i{
    font-style: normal;
    color: #d8d2c6;
    letter-spacing: 1px;
    font-size: 13px;
}
.c-stars i.on{
    color: #ff7a1a;
}