/* =========================================================
   MACCMS10 影视模板（第二套） - style.css
   全新 mv- 命名体系，浅色清爽风，双行头部 + 友情链接条页脚
   所有封面固定尺寸（PC / 手机），响应式
   ========================================================= */

/* ---------- 基础 ---------- */
:root { --mv-text-3: #9aa0b0; }
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
  background: #f2f3f7;
  color: #44485a;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
ul, ol { list-style: none; }
.mv-shell { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.mv-page { flex: 1 0 auto; padding: 20px 20px 40px; }

/* ---------- 双行头部 ---------- */
.mv-site-head { background: #1c2b4d; }
.mv-topbar { display: flex; align-items: center; gap: 18px; height: 64px; }
.mv-brand { flex: 0 0 auto; font-size: 22px; font-weight: 800; color: #fff; letter-spacing: 1px; }
.mv-brand::before { content: ""; display: inline-block; width: 6px; height: 22px; margin-right: 8px; border-radius: 3px; background: #ffb14a; vertical-align: -3px; }
.mv-finder { flex: 0 1 320px; margin-left: auto; display: flex; align-items: center; background: rgba(255,255,255,.12); border-radius: 8px; overflow: hidden; }
.mv-finder input { flex: 1 1 auto; min-width: 0; height: 38px; border: 0; background: transparent; padding: 0 14px; font-size: 13px; color: #fff; outline: none; }
.mv-finder input::placeholder { color: rgba(255,255,255,.55); }
.mv-finder button { flex: 0 0 auto; height: 38px; border: 0; padding: 0 20px; font-size: 13px; cursor: pointer; background: #ffb14a; color: #1c2b4d; font-weight: 700; }
.mv-burger { flex: 0 0 auto; width: 40px; height: 40px; border: 0; cursor: pointer; background: rgba(255,255,255,.14); border-radius: 10px; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; margin-left: auto; }
.mv-burger span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: all .25s; }
.mv-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mv-burger.is-open span:nth-child(2) { opacity: 0; }
.mv-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mv-navbar { display: flex; gap: 4px; background: rgba(0,0,0,.22); padding: 0 8px; overflow-x: auto; scrollbar-width: none; }
.mv-navbar::-webkit-scrollbar { display: none; }
.mv-navlink { flex: 0 0 auto; display: block; padding: 11px 16px; font-size: 14px; color: rgba(255,255,255,.82); border-bottom: 3px solid transparent; }
.mv-navlink:hover, .mv-navlink.is-on { color: #fff; border-bottom-color: #ffb14a; }
/* 移动端侧滑菜单 */
.mv-sidemenu { display: none; background: #223358; border-top: 1px solid rgba(255,255,255,.08); }
.mv-sidemenu.is-open { display: block; }
.mv-sidemenu > a { display: block; padding: 12px 20px; color: rgba(255,255,255,.85); border-bottom: 1px solid rgba(255,255,255,.06); }
.mv-menu-group { border-bottom: 1px solid rgba(255,255,255,.06); }
.mv-menu-top { display: block; padding: 12px 20px; color: #fff; font-weight: 700; }
.mv-menu-subs { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 12px; }
.mv-menu-subs a { font-size: 12px; color: rgba(255,255,255,.6); padding: 4px 10px; background: rgba(255,255,255,.08); border-radius: 6px; }

/* ---------- 面包屑 ---------- */
.mv-crumbs { font-size: 13px; color: #9aa0b0; margin: 4px 0 16px; }
.mv-crumbs a:hover { color: #1f6bff; }
.mv-crumb-arrow { margin: 0 8px; color: #c3c7d4; }

/* ---------- 焦点区：左轮播 + 右四宫格 ---------- */
.mv-hero { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 16px; margin-bottom: 30px; }
.mv-hero-stage { position: relative; border-radius: 14px; overflow: hidden; height: 480px; background: #dfe2ea; }
.mv-hero-track { display: flex; height: 100%; transition: transform .6s ease; }
.mv-hero-slide { flex: 0 0 100%; position: relative; }
.mv-hero-slide a { display: block; position: relative; height: 100%; }
.mv-hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.mv-hero-shade { position: absolute; left: 0; right: 0; bottom: 0; height: 60%; background: linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.78)); }
.mv-hero-caption { position: absolute; left: 24px; right: 24px; bottom: 18px; color: #fff; }
.mv-hero-caption h2 { font-size: 22px; margin-bottom: 6px; }
.mv-hero-caption p { font-size: 13px; color: rgba(255,255,255,.8); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mv-hero-dots { position: absolute; right: 16px; bottom: 14px; display: flex; gap: 6px; }
.mv-hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; }
.mv-hero-dot.is-on { background: #ffb14a; }
.mv-hero-quad { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: 480px; }
.mv-quad-cell { position: relative; display: block; border-radius: 12px; overflow: hidden; min-width: 0; background: #dfe2ea; }
.mv-quad-cell img { width: 100%; height: 100%; object-fit: cover; }
.mv-quad-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 10px 6px; font-size: 13px; color: #fff; background: linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.7)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 首页模块 / 通用封面网格 ---------- */
.mv-module { margin-bottom: 30px; padding: 0 10px; }
.mv-module-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mv-module-title { position: relative; padding-left: 14px; font-size: 18px; color: #23263a; }
.mv-module-title::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 5px; height: 18px; border-radius: 3px; background: #ffb14a; }
.mv-module-more { font-size: 13px; color: #9aa0b0; }
.mv-module-more:hover { color: #1f6bff; }
.mv-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; }
.mv-item { min-width: 0; display: block; }
.mv-poster { position: relative; border-radius: 10px; overflow: hidden; height: 210px; background: #dfe2ea; }
.mv-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.mv-item:hover .mv-poster img { transform: scale(1.06); }
.mv-tag { position: absolute; left: 8px; top: 8px; z-index: 2; font-size: 11px; padding: 2px 8px; border-radius: 5px; background: rgba(28,43,77,.78); color: #fff; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-rate { position: absolute; right: 8px; bottom: 8px; z-index: 2; font-size: 12px; font-weight: 700; color: #ffb14a; }
.mv-item-name { margin-top: 9px; font-size: 14px; color: #2b2f45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-item:hover .mv-item-name { color: #1f6bff; }
.mv-item-meta { margin-top: 2px; font-size: 12px; color: #9aa0b0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 筛选 ---------- */
.mv-filter { background: #fff; border: 1px solid #e6e8f0; border-radius: 12px; padding: 10px 16px; margin-bottom: 16px; }
.mv-filter-box { padding: 12px 16px; }
.mv-filter-row { display: flex; align-items: flex-start; gap: 12px; padding: 6px 0; border-bottom: 1px dashed #eef0f6; }
.mv-filter-row:last-child { border-bottom: 0; }
.mv-filter-key { flex: 0 0 auto; font-size: 13px; color: #9aa0b0; padding-top: 7px; }
.mv-filter-scroll { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.mv-filter-scroll::-webkit-scrollbar { display: none; }
.mv-chip { flex: 0 0 auto; font-size: 13px; padding: 6px 12px; border-radius: 7px; background: #f3f4f8; color: #555a6e; white-space: nowrap; }
.mv-chip:hover { color: #1f6bff; background: #eaf1ff; }
.mv-chip.is-on { background: #1f6bff; color: #fff; }

/* ---------- 布局卡片 / 视频网格 ---------- */
.mv-layout { width: 100%; }
.mv-layout-main { min-width: 0; }
.mv-card { background: #fff; border: 1px solid #e6e8f0; border-radius: 12px; padding: 18px; margin-bottom: 16px; }
.mv-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.mv-card-head h2 { font-size: 17px; color: #23263a; position: relative; padding-left: 12px; }
.mv-card-head h2::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 16px; border-radius: 2px; background: #ffb14a; }
.mv-card-count { font-size: 13px; color: #9aa0b0; }
.mv-vod-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; }
.mv-vod-card { min-width: 0; }
.mv-vod-pic { position: relative; display: block; border-radius: 10px; overflow: hidden; height: 210px; background: #dfe2ea; }
.mv-vod-pic img { width: 100%; height: 100%; object-fit: cover; }
.mv-vod-flag { position: absolute; left: 8px; top: 8px; z-index: 2; font-size: 11px; padding: 2px 8px; border-radius: 5px; background: rgba(28,43,77,.78); color: #fff; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-vod-score { position: absolute; right: 8px; top: 8px; z-index: 2; font-size: 12px; font-weight: 700; color: #ffb14a; }
.mv-vod-mask { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 16px 10px 7px; font-size: 13px; font-weight: 400; color: #fff; background: linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.72)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-vod-info { padding: 8px 2px 0; }
.mv-vod-name { font-size: 13px; color: #2b2f45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-vod-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; font-size: 12px; color: #9aa0b0; }

/* ---------- 分页 ---------- */
.mv-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.mv-pager-btn { min-width: 36px; text-align: center; padding: 8px 12px; font-size: 13px; color: #555a6e; background: #fff; border: 1px solid #e6e8f0; border-radius: 8px; }
.mv-pager-btn:hover { color: #1f6bff; border-color: #bcd2ff; }
.mv-pager-btn.is-on { background: #1f6bff; color: #fff; border-color: transparent; }

/* ---------- 详情 / 播放页主体 ---------- */
.mv-page-main { min-width: 0; }
.mv-intro { display: flex; gap: 20px; flex-wrap: wrap; background: #fff; border: 1px solid #e6e8f0; border-radius: 12px; padding: 18px; margin-bottom: 16px; }
.mv-intro-poster { flex: 0 0 auto; width: 220px; height: 310px; border-radius: 10px; overflow: hidden; background: #dfe2ea; }
.mv-intro-poster img { width: 100%; height: 100%; object-fit: cover; }
.mv-intro-text { flex: 1 1 260px; min-width: 0; }
.mv-title-xl { font-size: 22px; color: #23263a; margin-bottom: 10px; }
.mv-intro-tags { font-size: 13px; color: #9aa0b0; margin-bottom: 12px; }
.mv-intro-desc { font-size: 14px; color: #666b80; line-height: 1.8; }
.mv-intro-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.mv-btn { display: inline-block; padding: 9px 22px; border-radius: 8px; font-size: 14px; background: #f3f4f8; color: #44485a; border: 1px solid #e6e8f0; }
.mv-btn:hover { color: #1f6bff; border-color: #bcd2ff; }
.mv-btn-primary { background: #1f6bff; color: #fff; border-color: transparent; }
.mv-btn-primary:hover { color: #fff; opacity: .88; }
.mv-player { position: relative; width: 100%; padding-top: 56.25%; background: #000; border-radius: 12px; overflow: hidden; margin: 0 auto 16px; }
.mv-player iframe, .mv-player video, .mv-player embed, .mv-player object {
  position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; border: 0;
}
.mv-player > div { position: relative; width: 100% !important; height: 100% !important; }

/* ---------- 播放源与集数（直接显示，多的折叠） ---------- */
.mv-ep-box { background: #fff; border: 1px solid #e6e8f0; border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.mv-ep-source { font-size: 14px; font-weight: 600; color: #23263a; padding: 4px 0 10px; }
.mv-ep-box > .mv-ep-source:first-child { padding-top: 0; }
.mv-ep-list { display: grid; grid-template-columns: repeat(auto-fill,minmax(74px,1fr)); gap: 8px; }
.mv-ep-list a { display: block; text-align: center; padding: 8px 4px; font-size: 13px; color: #555a6e; background: #f3f4f8; border-radius: 7px; }
.mv-ep-list a:hover { color: #1f6bff; }
.mv-ep-list a.on { background: #1f6bff; color: #fff; }
.mv-ep-list a.mv-ep-hidden { display: none; }
.mv-ep-list.is-expanded a.mv-ep-hidden { display: block; }
.mv-ep-more { display: flex; justify-content: center; margin-top: 12px; }
.mv-ep-morebtn { cursor: pointer; border: 1px solid #e6e8f0; background: #f3f4f8; color: #555a6e; padding: 8px 22px; border-radius: 8px; font-size: 13px; }
.mv-ep-morebtn:hover { color: #1f6bff; border-color: #bcd2ff; }

/* ---------- 详情介绍 / 常见问题 / 评论 ---------- */
.mv-sheet { background: #fff; border: 1px solid #e6e8f0; border-radius: 12px; padding: 18px; margin-bottom: 16px; }
.mv-sheet-title { margin-bottom: 12px; }
.mv-sheet-title h3, .mv-sheet-title p { font-size: 16px; color: #23263a; position: relative; padding-left: 12px; }
.mv-sheet-title h3::before, .mv-sheet-title p::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 15px; border-radius: 2px; background: #ffb14a; }
.mv-sheet-body { font-size: 14px; color: #666b80; }
.mv-spec { font-size: 14px; color: #666b80; }
.mv-spec dd { padding: 5px 0; word-break: break-all; }
.mv-spec em { font-style: normal; color: #9aa0b0; margin-right: 4px; }
.mv-spec a { color: #1f6bff; }
.mv-spec strong { color: #23263a; }
.mv-hots { display: inline-block; margin: 4px 8px 4px 0; font-size: 13px; color: #1f6bff; }
.mv-faq { font-size: 14px; color: #666b80; }
.mv-faq dd { padding: 6px 0; }
.mv-faq b { color: #23263a; font-weight: 600; }
.mv-faq p { color: #777c90; margin-top: 3px; }
.mv-faq a { color: #1f6bff; }
.mv-comments { background: #fff; border: 1px solid #e6e8f0; border-radius: 12px; padding: 18px; margin-bottom: 16px; }
.mv-comments-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.mv-comments-head h2 { font-size: 16px; color: #23263a; position: relative; padding-left: 12px; }
.mv-comments-head h2::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 15px; border-radius: 2px; background: #ffb14a; }
.mv-comments-count { font-size: 13px; color: #9aa0b0; }
.mv-comment { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed #eef0f6; }
.mv-comment-avatar { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: #1f6bff; color: #fff; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.mv-comment-body { flex: 1 1 auto; min-width: 0; }
.mv-comment-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.mv-comment-user { font-size: 13px; color: #1f6bff; font-weight: 600; }
.mv-comment-seen { font-size: 12px; color: #fff; background: #ffb14a; padding: 1px 8px; border-radius: 4px; }
.mv-comment-stars { font-size: 12px; color: #ffb14a; }
.mv-comment-stars i { font-style: normal; }
.mv-comment-stars i.off { color: #d9dce6; }
.mv-comment-time { font-size: 12px; color: #9aa0b0; margin-left: auto; }
.mv-comment-content { font-size: 14px; color: #44485a; word-break: break-all; }
.mv-comment-like { flex: 0 0 auto; font-size: 12px; color: #9aa0b0; }

/* ---------- 详情/播放页四大板块 ---------- */
.mv-side-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.mv-side-grid .mv-grid { grid-template-columns: repeat(5,1fr); gap: 12px; }
.mv-side-grid .mv-poster { height: 150px; }

/* ---------- 空结果 ---------- */
.mv-empty { text-align: center; padding: 60px 20px; color: #9aa0b0; font-size: 14px; }

/* ---------- 页脚：友情链接 + 四列 + 版权 ---------- */
.mv-site-foot { background: #1c2b4d; color: rgba(255,255,255,.7); margin-top: 30px; }
.mv-friendbar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.mv-friend-key { font-size: 13px; color: rgba(255,255,255,.5); }
.mv-friendbar a { font-size: 13px; color: rgba(255,255,255,.7); }
.mv-friendbar a:hover { color: #ffb14a; }
.mv-foot-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; padding: 26px 0 20px; }
.mv-foot-col h4 { font-size: 15px; color: #fff; margin-bottom: 12px; }
.mv-foot-links { display: flex; flex-direction: column; gap: 8px; }
.mv-foot-links a { font-size: 13px; color: rgba(255,255,255,.65); }
.mv-foot-links a:hover { color: #ffb14a; }
.mv-foot-txt { font-size: 12px; color: rgba(255,255,255,.5); line-height: 1.8; }
.mv-foot-copy { padding: 16px 0 22px; border-top: 1px solid rgba(255,255,255,.08); text-align: center; font-size: 12px; color: rgba(255,255,255,.45); }
.mv-foot-copy p { margin: 3px 0; }
.mv-foot-copy a { color: rgba(255,255,255,.6); }

/* ---------- 回到顶部 ---------- */
#mvBackTop { position: fixed; right: 18px; bottom: 26px; width: 44px; height: 44px; border: 0; border-radius: 12px; cursor: pointer; z-index: 999; display: none; background: #1f6bff; color: #fff; font-size: 18px; box-shadow: 0 4px 14px rgba(31,107,255,.35); }

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .mv-hero { grid-template-columns: 1fr; }
  .mv-hero-quad { grid-template-columns: repeat(4,1fr); grid-template-rows: none; height: auto; }
  .mv-grid, .mv-vod-grid { grid-template-columns: repeat(4,1fr); gap: 14px; }
  .mv-finder { flex-basis: 220px; }
  .mv-foot-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .mv-topbar { height: 56px; }
  .mv-finder { display: none; }
  .mv-burger { display: inline-flex; }
  .mv-navbar { display: none; }
  .mv-hero-quad { display: none; }
  .mv-hero-stage { height: 220px; }
  .mv-poster { height: 170px; }
  .mv-vod-pic { height: 170px; }
  .mv-intro-poster { width: 140px; height: 200px; }
  .mv-grid, .mv-vod-grid { grid-template-columns: repeat(3,1fr); gap: 12px; }
  .mv-side-grid .mv-grid { grid-template-columns: repeat(3,1fr); }
  .mv-side-grid .mv-poster { height: 150px; }
  .mv-foot-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 480px) {
  .mv-hero-stage { height: 200px; }
  .mv-grid, .mv-vod-grid { grid-template-columns: repeat(3,1fr); }
  .mv-poster { height: 150px; }
  .mv-vod-pic { height: 150px; }
  .mv-hero-caption h2 { font-size: 16px; }
  .mv-hero-caption p { -webkit-line-clamp: 1; }
  .mv-shell { padding: 0 12px; }
  .mv-page { padding: 14px 12px 30px; }
}
