/* ========== 全局重置 ========== */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;max-width:100%}
html,body{width:100%;margin:0;padding:0;overflow-x:hidden}
body{
background:#0f1115;
color:#d0d5dd;
font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
font-size:14px;line-height:1.6;
padding-top:70px;
word-wrap:break-word;
overflow-wrap:break-word;
}
a{color:inherit;text-decoration:none}
a:hover{color:#e879f9}
img{display:block;max-width:100%;height:auto}
.main-container{min-height:calc(100vh - 300px);max-width:1280px;margin:0 auto;padding:0 20px}

/* ========== 头部 ========== */
.top-site-bar{
position:fixed;top:0;left:0;right:0;
z-index:999;
background:#181b21;
border-bottom:1px solid #2a2e38;
}
.top-bar-inner{max-width:1280px;margin:0 auto;padding:0 20px}
.top-row-flex{display:flex;align-items:center;gap:24px;height:60px}
.site-brand-text{font-size:22px;font-weight:800;color:#e879f9;white-space:nowrap;flex-shrink:0}
.top-nav-menu{display:flex;align-items:center;gap:24px;flex:1;min-width:0;overflow:hidden}
.top-nav-item{color:#9ca3af;font-size:15px;white-space:nowrap;transition:.2s}
.top-nav-item:hover,.top-nav-item.cur{color:#e879f9}

.top-search-form{flex-shrink:0}
.top-search-form form{display:flex;align-items:center;background:#0f1115;border:1px solid #2a2e38;border-radius:20px;height:36px;overflow:hidden}
.top-search-form input{width:180px;background:transparent;border:0;outline:none;color:#fff;padding:0 16px;font-size:13px}
.top-search-form input::placeholder{color:#6b7280}
.top-search-form button{background:transparent;border:0;color:#9ca3af;padding:0 14px;height:100%;cursor:pointer;font-size:13px}

.mobile-burger{display:none;flex-direction:column;justify-content:center;gap:5px;width:40px;height:40px;cursor:pointer;padding:8px;flex-shrink:0}
.mobile-burger span{display:block;width:100%;height:2px;background:#e879f9;border-radius:2px;transition:.3s}
.mobile-burger.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.mobile-burger.open span:nth-child(2){opacity:0}
.mobile-burger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

.mobile-slide-menu{display:none;position:fixed;top:60px;left:0;right:0;bottom:0;z-index:998;background:#181b21;padding:20px;overflow-y:auto}
.mobile-slide-menu.open{display:block}
.mobile-menu-inner{padding-bottom:20px}
.mobile-search-box{margin-bottom:20px}
.mobile-search-box input{width:100%;height:44px;padding:0 16px;background:#0f1115;border:1px solid #2a2e38;border-radius:8px;color:#fff;outline:none;margin-bottom:10px}
.mobile-search-box button{width:100%;height:44px;background:#e879f9;border:none;border-radius:8px;color:#fff;font-weight:700;cursor:pointer}
.mobile-menu-link{display:block;padding:14px 0;color:#fff;font-size:16px;font-weight:600;border-bottom:1px solid #2a2e38}
.mobile-menu-link.cur{color:#e879f9}
.mobile-cat-block{border-bottom:1px solid #2a2e38;padding:12px 0}
.mobile-cat-title{display:block;color:#fff;font-size:16px;font-weight:600;margin-bottom:10px}
.mobile-cat-sub{display:flex;flex-wrap:wrap;gap:8px}
.mobile-cat-sub a{padding:6px 14px;background:#0f1115;border:1px solid #2a2e38;border-radius:16px;color:#9ca3af;font-size:13px}
.mobile-cat-sub a:hover{background:#e879f9;color:#fff;border-color:#e879f9}

/* ========== 面包屑 ========== */
.breadcrumb-line{font-size:13px;color:#6b7280;margin-bottom:18px;padding-top:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.breadcrumb-inner{max-width:1280px;margin:0 auto;padding:0 20px}
.breadcrumb-line a{color:#9ca3af;margin:0 4px}
.breadcrumb-line b{color:#d0d5dd}

/* ========== 横幅 ========== */
.welcome-banner-area{background:linear-gradient(135deg,rgba(232,121,249,.15),transparent);border-bottom:1px solid #2a2e38;padding:50px 20px;text-align:center;margin-bottom:20px}
.welcome-inner h1{font-size:32px;font-weight:800;color:#e879f9;margin-bottom:10px}
.welcome-inner p{font-size:15px;color:#9ca3af}

/* ========== 区块 ========== */
.film-section-block{margin-bottom:30px}
.section-bar-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;padding-bottom:10px;border-bottom:1px solid #2a2e38}
.section-bar-title h2{font-size:20px;font-weight:800;color:#fff;position:relative;padding-left:14px}
.section-bar-title h2::before{content:'';position:absolute;left:0;top:50%;transform:translateY(-50%);width:4px;height:22px;background:linear-gradient(180deg,#e879f9,#c026d3);border-radius:2px}
.see-more-link{font-size:13px;color:#6b7280}
.see-more-link:hover{color:#e879f9}

/* ========== 视频卡片网格 ========== */
.film-grid-layout{display:grid;grid-template-columns:repeat(5, 1fr);gap:20px 2%}
.film-card-box{display:block;background:#181b21;border:1px solid #2a2e38;border-radius:8px;overflow:hidden;transition:.2s;max-width:100%}
.film-card-box:hover{border-color:#e879f9;transform:translateY(-3px)}
.film-poster-box{position:relative;width:100%;height:280px;overflow:hidden}
.film-poster-box img{width:100%;height:100%;object-fit:cover;object-position:center top;transition:.3s}
.film-card-box:hover .film-poster-box img{transform:scale(1.05)}
.poster-flag{position:absolute;top:8px;right:8px;padding:3px 10px;background:rgba(232,121,249,.9);color:#fff;font-size:12px;font-weight:700;border-radius:4px}
.film-text-info{padding:12px 14px}
.film-text-info h3{font-size:14px;font-weight:600;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:6px}
.film-meta-line{font-size:12px;color:#6b7280;margin-bottom:4px}
.film-score-line{font-size:13px;color:#e879f9;font-weight:700}
.small-grid-size{grid-template-columns:repeat(5, 1fr)}
.small-poster{height:200px}

/* ========== 筛选栏 ========== */
.filter-wrap-block{background:#181b21;border:1px solid #2a2e38;border-radius:8px;padding:16px;margin-bottom:20px;max-width:1240px;margin-left:auto;margin-right:auto;overflow:hidden}
.filter-inner-area{max-width:1240px}
.filter-row-item{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.filter-row-item:last-child{margin-bottom:0}
.filter-label-text{flex-shrink:0;width:50px;color:#6b7280;font-size:13px;text-align:right}
.filter-scroll-area{flex:1;display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;flex-wrap:nowrap}
.filter-scroll-area::-webkit-scrollbar{display:none}
.filter-tag{flex-shrink:0;padding:5px 14px;background:#0f1115;border:1px solid #2a2e38;border-radius:16px;color:#9ca3af;font-size:13px;white-space:nowrap;transition:.2s}
.filter-tag:hover{border-color:#e879f9;color:#e879f9}
.filter-tag.cur{background:#e879f9;border-color:transparent;color:#fff;font-weight:700}

/* ========== 分页 ========== */
.pagination-block{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;margin:24px 0}
.pagination-block a{padding:8px 16px;border:1px solid #2a2e38;border-radius:6px;color:#9ca3af;font-size:13px;transition:.2s}
.pagination-block a:hover{border-color:#e879f9;color:#e879f9}
.pagination-block a.cur{background:#e879f9;border-color:transparent;color:#fff;font-weight:700}

/* ========== 主侧栏布局 ========== */
.content-with-sidebar{display:flex;gap:24px;align-items:flex-start}
.content-main-col{flex:1;min-width:0;overflow:hidden}
.sidebar-col{flex:0 0 280px;width:280px}

/* ========== 详情头部 ========== */
.movie-head-card{display:flex;gap:30px;background:#181b21;border:1px solid #2a2e38;border-radius:10px;padding:24px;margin-bottom:20px;overflow:hidden}
.movie-poster-left{flex:0 0 180px;width:180px;height:270px;border-radius:8px;overflow:hidden;box-shadow:0 8px 24px rgba(0,0,0,.3)}
.movie-poster-left img{width:180px;height:270px;object-fit:cover}
.movie-info-right{flex:1;min-width:0;overflow:hidden}
.movie-big-title{font-size:32px;font-weight:800;color:#fff;margin-bottom:12px;word-break:break-all}
.movie-tag-row{display:flex;gap:10px;margin-bottom:20px;flex-wrap:wrap}
.movie-tag-row span{padding:5px 14px;background:rgba(232,121,249,.1);color:#e879f9;border-radius:4px;font-size:13px}
.movie-meta-rows{list-style:none;margin-bottom:24px}
.movie-meta-rows dd{font-size:14px;color:#9ca3af;margin-bottom:10px;word-break:break-all}
.movie-meta-rows dd em{color:#6b7280;font-style:normal;display:inline-block;width:60px}
.movie-meta-rows dd strong{color:#fbbf24;font-style:normal;font-weight:800;font-size:22px}
.goto-play-btn{display:inline-block;padding:14px 50px;background:linear-gradient(135deg,#e879f9,#c026d3);color:#fff;border-radius:30px;font-size:16px;font-weight:800;box-shadow:0 8px 24px rgba(232,121,249,.3);transition:.2s;white-space:nowrap}
.goto-play-btn:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(232,121,249,.4);color:#fff}

/* ========== 内容卡片 ========== */
.content-box-card{background:#181b21;border:1px solid #2a2e38;border-radius:10px;padding:20px;margin-bottom:20px;overflow:hidden}
.box-title-bar{font-size:18px;font-weight:800;color:#fff;margin-bottom:16px;padding-left:14px;border-left:4px solid #e879f9;word-break:break-all}

/* 集数 */
.source-tabs-row{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.source-tab-btn{padding:7px 18px;background:#0f1115;border:1px solid #2a2e38;border-radius:6px;color:#9ca3af;font-size:13px;cursor:pointer;transition:.2s}
.source-tab-btn.cur{background:#e879f9;border-color:transparent;color:#fff;font-weight:700}
.ep-chapter-list{max-height:160px;overflow:hidden;transition:.4s;display:flex;flex-wrap:wrap;gap:8px}
.ep-chapter-list.open{max-height:2000px}
.ep-chapter-list a{padding:7px 16px;background:#0f1115;border:1px solid #2a2e38;border-radius:6px;color:#9ca3af;font-size:13px;transition:.2s;white-space:nowrap}
.ep-chapter-list a:hover,.ep-chapter-list a.cur{background:#e879f9;color:#fff;border-color:transparent;font-weight:600}
.ep-expand-area{margin-top:12px;text-align:center}
.expand-ep-btn{display:inline-block;padding:7px 28px;border:1px solid #e879f9;border-radius:20px;color:#e879f9;font-size:13px;cursor:pointer;transition:.2s}
.expand-ep-btn:hover{background:#e879f9;color:#fff}

/* 详情介绍 */
.detail-dl-rows{display:block;font-size:13px;color:#9ca3af;line-height:1.9;margin-bottom:16px}
.detail-dl-rows dd{margin-bottom:6px;word-break:break-all}
.detail-dl-rows dd em{color:#6b7280;font-style:normal;display:inline-block;min-width:90px}
.detail-dl-rows dd a{color:#e879f9;word-break:break-all}
.plot-para-text p{font-size:14px;color:#9ca3af;line-height:1.9;margin-bottom:12px;word-break:break-all}
.plot-para-text strong{color:#fff}
.plot-para-text a{color:#e879f9}
.one-line-ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* 标签云 */
.keyword-tag-wrap{display:flex;flex-wrap:wrap;gap:10px}
.keyword-tag-wrap a{padding:6px 14px;background:#0f1115;border:1px solid #2a2e38;border-radius:16px;color:#9ca3af;font-size:13px;transition:.2s;word-break:break-all}
.keyword-tag-wrap a:hover{border-color:#e879f9;color:#e879f9}

/* 常见问题 */
.faq-question-list{display:block}
.faq-question-list dd{margin-bottom:16px}
.faq-question-list dd b{color:#fff;display:block;margin-bottom:6px;word-break:break-all}
.faq-question-list dd p{color:#6b7280;line-height:1.8;font-size:13px;word-break:break-all}
.faq-question-list dd a{color:#e879f9}

/* 评论 */
.comment-row-item{display:flex;gap:14px;padding:16px 0;border-bottom:1px solid #2a2e38;overflow:hidden}
.comment-row-item:last-child{border-bottom:none}
.comment-user-ava{flex:0 0 40px;width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#e879f9,#c026d3);color:#fff;display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:700}
.comment-main-text{flex:1;min-width:0;overflow:hidden}
.comment-top-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:6px}
.comment-nick-name{font-size:14px;font-weight:700;color:#fff;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.comment-watched-mark{font-size:11px;color:#e879f9;background:rgba(232,121,249,.1);padding:2px 8px;border-radius:3px}
.comment-star-level{font-size:13px;letter-spacing:2px}
.comment-star-level i{font-style:normal;color:#2a2e38}
.comment-star-level i.on{color:#fbbf24}
.comment-time-text{font-size:12px;color:#6b7280;margin-left:auto}
.comment-body-text{font-size:13px;color:#9ca3af;line-height:1.7;word-break:break-all}
.comment-useful-num{flex-shrink:0;font-size:12px;color:#6b7280;align-self:flex-start}

/* 排行榜 */
.rank-card-block{background:#181b21;border:1px solid #2a2e38;border-radius:10px;padding:16px;margin-bottom:16px;overflow:hidden}
.rank-card-title{font-size:16px;font-weight:800;color:#fff;margin-bottom:12px;padding-left:10px;border-left:3px solid #e879f9}
.rank-list-items{list-style:none}
.rank-list-items li{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid #2a2e38}
.rank-list-items li:last-child{border-bottom:none}
.rank-num-tag{flex:0 0 24px;width:24px;height:24px;line-height:24px;text-align:center;border-radius:4px;background:#0f1115;color:#6b7280;font-size:12px;font-weight:700}
.rank-num-tag.top-three{background:#e879f9;color:#fff}
.rank-list-items a{flex:1;font-size:13px;color:#9ca3af;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rank-list-items a:hover{color:#e879f9}

/* 播放器 */
.player-area-block{margin-bottom:0}
.player-frame-box{width:100%;background:#000;border-radius:8px;overflow:hidden;margin-bottom:12px;position:relative;padding-bottom:56.25%;height:0;max-width:100%}
.player-frame-box iframe,
.player-frame-box video,
.player-frame-box .dplayer,
.player-frame-box .play-box,
.player-frame-box .player-box,
.player-frame-box > div{position:absolute !important;top:0;left:0;width:100% !important;height:100% !important}
.player-heading-text{font-size:16px;font-weight:600;color:#fff;word-break:break-all}

/* 底部 */
.bottom-site-footer{background:#181b21;border-top:1px solid #2a2e38;margin-top:50px;padding:40px 0 0}
.footer-inner-box{max-width:1280px;margin:0 auto;padding:0 20px}
.footer-columns-wrap{display:grid;grid-template-columns:2fr 1fr 1fr;gap:40px;padding-bottom:30px;border-bottom:1px solid #2a2e38}
.footer-col-about h4,.footer-col-category h4,.footer-col-other h4{font-size:15px;font-weight:700;color:#fff;margin-bottom:16px}
.footer-col-about p{font-size:13px;color:#6b7280;line-height:1.8;margin-bottom:10px}
.footer-col-category a,.footer-col-other a{display:block;font-size:13px;color:#9ca3af;margin-bottom:10px}
.footer-col-category a:hover,.footer-col-other a:hover{color:#e879f9}
.footer-copyright-line{padding:20px 0;text-align:center}
.footer-copyright-line p{font-size:13px;color:#6b7280}

/* ========== 平板 1025-1280：4列 ========== */
@media (max-width:1280px) and (min-width:1025px){
.film-grid-layout{grid-template-columns:repeat(4, 1fr);gap:18px 2%}
.film-poster-box{height:250px}
.small-grid-size{grid-template-columns:repeat(5, 1fr)}
.sidebar-col{flex:0 0 240px;width:240px}
}

/* ========== 小平板 769-1024：4列 ========== */
@media (max-width:1024px) and (min-width:769px){
.film-grid-layout{grid-template-columns:repeat(4, 1fr);gap:16px 2%}
.film-poster-box{height:220px}
.film-text-info h3{font-size:13px}
.top-search-form input{width:130px}
.movie-big-title{font-size:26px}
.footer-columns-wrap{grid-template-columns:1fr 1fr}
.small-grid-size{grid-template-columns:repeat(5, 1fr)}
.small-poster{height:160px}
.content-with-sidebar{flex-direction:column}
.sidebar-col{width:100%;flex:none}
}

/* ========== 手机端 768px以下（固定尺寸防溢出） ========== */
@media (max-width:768px){
body{padding-top:60px;font-size:13px}
.top-nav-menu{display:none}
.top-search-form{display:none}
.mobile-burger{display:flex}
.site-brand-text{font-size:18px}
.mobile-slide-menu{top:60px}

.welcome-banner-area{padding:30px 16px}
.welcome-inner h1{font-size:22px}
.welcome-inner p{font-size:13px}

.main-container{padding:0 12px;max-width:100%;width:100%}

/* 手机端3列，固定封面高度 */
.film-grid-layout{grid-template-columns:repeat(3, 1fr);gap:14px 2%;width:100%}
.film-poster-box{height:180px}
.film-text-info{padding:8px 10px}
.film-text-info h3{font-size:12px;line-height:1.3}
.film-meta-line{font-size:11px}

.small-grid-size{grid-template-columns:repeat(3, 1fr);width:100%}
.small-poster{height:130px}

/* 详情头部手机端 */
.movie-head-card{flex-direction:column;gap:20px;padding:16px;width:100%}
.movie-poster-left{flex:none;width:120px;height:180px;margin:0 auto}
.movie-poster-left img{width:120px;height:180px}
.movie-info-right{width:100%}
.movie-big-title{font-size:22px;text-align:center}
.movie-tag-row{justify-content:center}
.movie-meta-rows dd{font-size:13px}
.goto-play-btn{display:block;text-align:center;margin-top:10px;width:100%;padding:12px 0}

/* 主侧栏堆叠 */
.content-with-sidebar{flex-direction:column;width:100%}
.sidebar-col{width:100%;flex:none}

/* 内容卡片手机端 */
.content-box-card{padding:16px;width:100%}
.box-title-bar{font-size:16px}

/* 播放器手机端 */
.player-frame-box{width:100%;padding-bottom:56.25%;border-radius:6px}
.player-heading-text{font-size:14px}

/* 集数手机端 */
.ep-chapter-list a{padding:6px 12px;font-size:12px}

/* 筛选手机端 */
.filter-row-item{flex-direction:column;align-items:flex-start}
.filter-label-text{width:auto}
.filter-scroll-area{width:100%}

/* 评论手机端 */
.comment-row-item{flex-direction:column;gap:10px}
.comment-user-ava{width:36px;height:36px}
.comment-time-text{margin-left:0;width:100%}
.comment-useful-num{align-self:auto;margin-left:auto}
.comment-nick-name{max-width:100%;width:auto}

/* 标签云手机端 */
.keyword-tag-wrap a{font-size:12px;padding:5px 10px}

/* 底部手机端 */
.footer-columns-wrap{grid-template-columns:1fr;gap:20px}
.footer-col-category,.footer-col-other{display:none}
.footer-inner-box{padding:0 12px}
}
