/* ===== 全局重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft Yahei", sans-serif; font-size: 14px; color: #333; background: #f5f5f5; line-height: 1.6; }
a { text-decoration: none; color: #333; transition: color .2s; }
a:hover { color: #ff6600; }
ul, li { list-style: none; }
img { border: 0; vertical-align: middle; max-width: 100%; }
.clearfix::after { content: ""; display: block; clear: both; }
h1,h2,h3,h4 { font-weight: normal; }

/* ===== 顶部导航 ===== */
.cine-header { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 100; }
.cine-header-inner { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.cine-header-row { height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cine-logo { font-size: 24px; font-weight: bold; color: #ff6600; flex-shrink: 0; }

.cine-nav { display: flex; gap: 30px; flex: 1; }
.cine-nav > li { position: relative; }
.cine-nav > li > a { display: block; line-height: 70px; font-size: 15px; }
.cine-nav > li > a.cur { color: #ff6600; }
.cine-nav li ul { position: absolute; top: 100%; left: 0; background: #fff; min-width: 120px; box-shadow: 0 4px 12px rgba(0,0,0,.1); display: none; padding: 8px 0; z-index: 99; }
.cine-nav li:hover ul { display: block; }
.cine-nav li ul li a { line-height: 36px; padding: 0 15px; display: block; font-size: 13px; }

.cine-search { display: flex; align-items: center; flex-shrink: 0; }
.cine-search input { width: 220px; height: 36px; border: 1px solid #eee; border-radius: 18px 0 0 18px; padding: 0 15px; outline: none; font-size: 13px; }
.cine-search button { height: 36px; padding: 0 18px; background: #ff6600; color: #fff; border: none; border-radius: 0 18px 18px 0; cursor: pointer; font-size: 13px; }

.cine-menu-btn { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; }
.cine-menu-btn span { width: 22px; height: 2px; background: #333; border-radius: 2px; }

/* ===== 主体容器 ===== */
.cine-container { max-width: 1200px; margin: 20px auto; padding: 0 15px; display: flex; gap: 20px; }
.cine-main { flex: 1; min-width: 0; }
.cine-side { width: 300px; flex-shrink: 0; }

/* ===== 板块标题 ===== */
.cine-title { height: 42px; line-height: 42px; border-bottom: 2px solid #ff6600; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; }
.cine-title h3 { font-size: 18px; font-weight: 600; }
.cine-title a { font-size: 13px; color: #999; }

/* ===== 视频卡片网格 ===== */
.cine-card-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }
.cine-vcard { background: #fff; border-radius: 6px; overflow: hidden; transition: transform .2s; }
.cine-vcard:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.1); }
.cine-vcard-cover { position: relative; height: 260px; overflow: hidden; background: #eee; }
.cine-vcard-cover a { display: block; width: 100%; height: 100%; }
.cine-vcard-cover img { width: 100%; height: 100%; object-fit: cover; }
.cine-vcard-cover .score { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.6); color: #ff9800; padding: 2px 6px; border-radius: 4px; font-size: 12px; }
.cine-vcard-cover .episode { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.7); color: #fff; padding: 2px 6px; border-radius: 4px; font-size: 12px; }
.cine-vcard-info { padding: 10px; }
.cine-vcard-info h4 { font-size: 14px; font-weight: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cine-vcard-info p { color: #999; font-size: 12px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== 筛选栏 ===== */
.cine-filter { background: #fff; padding: 15px; border-radius: 6px; margin-bottom: 20px; overflow-x: auto; white-space: nowrap; }
.cine-filter-item { display: inline-block; margin-right: 20px; vertical-align: top; }
.cine-filter-item dt { display: inline-block; color: #999; margin-right: 10px; font-size: 13px; }
.cine-filter-item dd { display: inline-block; margin: 0 6px; }
.cine-filter-item dd a { padding: 4px 10px; border-radius: 4px; font-size: 13px; display: inline-block; }
.cine-filter-item dd a.active { background: #ff6600; color: #fff; }

/* ===== 分页 ===== */
.cine-page { text-align: center; margin-top: 25px; }
.cine-page a { display: inline-block; padding: 6px 12px; margin: 0 4px; border: 1px solid #eee; background: #fff; border-radius: 4px; font-size: 13px; }
.cine-page a.current { background: #ff6600; color: #fff; border-color: #ff6600; }

/* ===== 右侧排行榜 ===== */
.cine-rank { background: #fff; border-radius: 6px; padding: 15px; margin-bottom: 20px; }
.cine-rank-list li { height: 36px; line-height: 36px; display: flex; align-items: center; gap: 10px; border-bottom: 1px dashed #f0f0f0; }
.cine-rank-list li:last-child { border-bottom: 0; }
.cine-rank-num { width: 20px; height: 20px; line-height: 20px; text-align: center; background: #eee; border-radius: 3px; font-size: 12px; color: #666; flex-shrink: 0; }
.cine-rank-list li:nth-child(1) .cine-rank-num { background: #ff4500; color: #fff; }
.cine-rank-list li:nth-child(2) .cine-rank-num { background: #ff7f00; color: #fff; }
.cine-rank-list li:nth-child(3) .cine-rank-num { background: #ffb700; color: #fff; }
.cine-rank-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.cine-rank-hits { color: #999; font-size: 12px; flex-shrink: 0; }

/* ===== 详情页 ===== */
.cine-detail-box { background: #fff; border-radius: 6px; padding: 20px; margin-bottom: 20px; }
.cine-detail-top { display: flex; gap: 20px; margin-bottom: 20px; }
.cine-detail-cover { width: 220px; height: 300px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: #eee; }
.cine-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.cine-detail-info { flex: 1; min-width: 0; }
.cine-detail-info h1 { font-size: 22px; margin-bottom: 15px; font-weight: 600; }
.cine-detail-info dl { line-height: 2; }
.cine-detail-info dt { display: inline-block; color: #999; width: 80px; }
.cine-detail-info dd { display: inline; margin-right: 10px; }
.cine-detail-blurb { margin-top: 15px; padding-top: 15px; border-top: 1px solid #f0f0f0; line-height: 1.8; color: #666; }

.cine-dt-list dl { line-height: 2.2; }
.cine-dt-list dt { display: inline-block; color: #999; width: 90px; }
.cine-dt-list dd { display: inline; }
.text-overflow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== 集数列表 ===== */
.cine-ep-list { margin-top: 10px; }
.cine-ep-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.cine-ep-item { width: calc(10% - 9px); }
.cine-ep-item a { display: block; text-align: center; padding: 8px 0; background: #f5f5f5; border-radius: 4px; font-size: 13px; }
.cine-ep-item a:hover { background: #ff6600; color: #fff; }
.cine-ep-more { text-align: center; margin-top: 15px; }
.cine-ep-more a { color: #ff6600; cursor: pointer; }
.cine-ep-hidden { display: none; }

/* ===== 播放页 ===== */
.cine-player { background: #000; border-radius: 6px; margin-bottom: 20px; aspect-ratio: 16/9; overflow: hidden; }
.cine-player iframe { width: 100%; height: 100%; border: 0; }

/* ===== 评论区 ===== */
.cine-comment-box { background: #fff; border-radius: 6px; padding: 20px; }
.cine-comment-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #f0f0f0; }
.cine-comment-head h2 { font-size: 18px; font-weight: 600; }
.cine-comment-count { color: #999; font-size: 13px; }
.cine-comment-item { display: flex; gap: 12px; padding: 15px 0; border-bottom: 1px dashed #f0f0f0; }
.cine-c-avatar { width: 40px; height: 40px; border-radius: 50%; background: #ff6600; color: #fff; text-align: center; line-height: 40px; flex-shrink: 0; }
.cine-c-main { flex: 1; min-width: 0; }
.cine-c-top { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; font-size: 13px; }
.cine-c-user { font-weight: 600; }
.cine-c-seen { color: #999; }
.cine-c-stars { color: #ff9800; }
.cine-c-time { color: #999; margin-left: auto; }
.cine-c-content { line-height: 1.6; color: #444; }
.cine-c-useful { text-align: right; margin-top: 8px; font-size: 12px; color: #999; }

/* ===== 底部 ===== */
.cine-footer { background: #fff; padding: 30px 0; margin-top: 30px; border-top: 1px solid #eee; }
.cine-footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 15px; text-align: center; color: #999; font-size: 13px; line-height: 2; }
.cine-footer a { color: #666; margin: 0 8px; }

/* ===== 回到顶部 ===== */
.cine-back-top { position: fixed; right: 20px; bottom: 50px; width: 45px; height: 45px; background: #fff; border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,.1); text-align: center; line-height: 45px; cursor: pointer; display: none; z-index: 99; }

/* ===== 响应式 ===== */
@media screen and (max-width: 992px) {
    .cine-card-grid { grid-template-columns: repeat(4, 1fr); }
    .cine-side { width: 250px; }
    .cine-ep-item { width: calc(20% - 8px); }
}
@media screen and (max-width: 768px) {
    .cine-nav { display: none; position: absolute; top: 70px; left: 0; width: 100%; background: #fff; flex-direction: column; gap: 0; box-shadow: 0 4px 12px rgba(0,0,0,.1); }
    .cine-nav.show { display: flex; }
    .cine-nav > li > a { line-height: 45px; padding: 0 15px; border-bottom: 1px solid #f5f5f5; }
    .cine-nav li ul { position: static; box-shadow: none; display: block; padding-left: 20px; }
    .cine-menu-btn { display: flex; }
    .cine-container { flex-direction: column; }
    .cine-side { width: 100%; }
    .cine-card-grid { grid-template-columns: repeat(3, 1fr); }
    .cine-vcard-cover { height: 200px; }
    .cine-detail-top { flex-direction: column; align-items: center; }
    .cine-ep-item { width: calc(25% - 7.5px); }
}
@media screen and (max-width: 480px) {
    .cine-card-grid { grid-template-columns: repeat(2, 1fr); }
    .cine-vcard-cover { height: 220px; }
    .cine-search input { width: 140px; }
    .cine-ep-item { width: calc(33.33% - 7px); }
}
/* ===== 高级筛选框 ===== */
.cine-filter-box { background: #fff; border-radius: 6px; margin-bottom: 15px; overflow: hidden; }
.cine-filter-title { height: 42px; line-height: 42px; padding: 0 15px; border-bottom: 1px solid #f0f0f0; }
.cine-filter-title h3 { font-size: 16px; font-weight: 600; }
.cine-filter-content { padding: 10px 15px; }

.cine-filter-row { padding: 8px 0; border-bottom: 1px dashed #f0f0f0; line-height: 2; }
.cine-filter-row:last-child { border-bottom: 0; }
.cine-filter-row h5 { display: inline-block; width: 60px; font-weight: normal; color: #999; font-size: 13px; vertical-align: top; }
.cine-filter-row ul { display: inline; }
.cine-filter-row li { display: inline-block; margin: 0 8px; }
.cine-filter-row li a { padding: 3px 10px; border-radius: 4px; font-size: 13px; display: inline-block; }
.cine-filter-row li a.active { background: #ff6600; color: #fff; }

.cine-filter-letter li { margin: 0 5px; }
.cine-filter-letter li a { padding: 2px 8px; font-size: 12px; }

/* ===== 排序栏 ===== */
.cine-sort-bar { background: #fff; border-radius: 6px; padding: 0 15px; margin-bottom: 20px; height: 40px; line-height: 40px; }
.cine-sort-list { display: flex; gap: 20px; }
.cine-sort-item { font-size: 13px; color: #666; }
.cine-sort-item.active { color: #ff6600; font-weight: 600; }
/* ===== 高级筛选框（横向滚动版） ===== */
.cine-filter-box { background: #fff; border-radius: 6px; margin-bottom: 15px; overflow: hidden; }
.cine-filter-title { height: 42px; line-height: 42px; padding: 0 15px; border-bottom: 1px solid #f0f0f0; }
.cine-filter-title h3 { font-size: 16px; font-weight: 600; margin: 0; }
.cine-filter-content { padding: 0 15px; }

.cine-filter-row { 
    display: flex; 
    align-items: center; 
    border-bottom: 1px dashed #f0f0f0; 
    height: 44px;
}
.cine-filter-row:last-child { border-bottom: 0; }
.cine-filter-row h5 { 
    width: 60px; 
    font-weight: normal; 
    color: #999; 
    font-size: 13px; 
    flex-shrink: 0;
    margin: 0;
}
.cine-filter-row ul { 
    flex: 1; 
    overflow-x: auto; 
    white-space: nowrap; 
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; 
    margin: 0;
    padding: 6px 0;
}
.cine-filter-row ul::-webkit-scrollbar { display: none; }

.cine-filter-row li { 
    display: inline-block; 
    margin: 0 6px; 
}
.cine-filter-row li a { 
    padding: 4px 12px; 
    border-radius: 4px; 
    font-size: 13px; 
    display: inline-block; 
    white-space: nowrap;
    transition: all .2s;
}
.cine-filter-row li a.active { background: #ff6600; color: #fff; }
.cine-filter-row li a:hover { background: #f5f5f5; }
.cine-filter-row li a.active:hover { background: #ff6600; }

.cine-filter-letter li { margin: 0 4px; }
.cine-filter-letter li a { padding: 2px 9px; font-size: 12px; }

/* ===== 排序栏 ===== */
.cine-sort-bar { background: #fff; border-radius: 6px; padding: 0 15px; margin-bottom: 20px; height: 40px; line-height: 40px; }
.cine-sort-list { display: flex; gap: 20px; }
.cine-sort-item { font-size: 13px; color: #666; }
.cine-sort-item.active { color: #ff6600; font-weight: 600; }
