/* 墨潮 · 手机端 v3（纯影视 · 全站免费 · 固定三段式布局） */
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
body { background: var(--bg2); display: flex; justify-content: center; align-items: center; }

/* 手机外壳：桌面预览时固定尺寸并居中；真机全屏。整体不动，只有 .mview 滚动 */
.phone {
  position: relative; width: 100%; max-width: 420px; height: 100%;
  background: var(--bg); display: flex; flex-direction: column; overflow: hidden;
}
@media (min-width: 460px) {
  body { padding: 20px 0; }
  .phone { height: min(900px, 100vh - 40px); border-radius: 38px; box-shadow: var(--shadow); border: 7px solid #000; }
}

/* 顶部：固定 */
.statusbar { flex: none; display: flex; justify-content: space-between; align-items: center; padding: 10px 22px 2px; font-size: 12.5px; font-weight: 700; }
.statusbar .sb-icons { font-size: 10.5px; letter-spacing: 1px; opacity: .8; }
.mtop { flex: none; background: var(--bg); padding: 6px 16px 12px; border-bottom: 1px solid var(--sep); }
.mtop-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mbrand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mbrand .logo { font-size: 22px; font-weight: 700; letter-spacing: .08em; color: var(--accent); }
.mbrand .slogan { font-size: 10.5px; color: var(--text3); white-space: nowrap; }
.theme-btn { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--card2); font-size: 15px; }
.msearch { display: flex; align-items: center; gap: 8px; background: var(--card2); border-radius: 999px; padding: 9px 15px; font-size: 13.5px; color: var(--text3); }

/* 内容：唯一滚动区 */
.mview { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding: 14px 16px 18px; }
.mview::-webkit-scrollbar { width: 0; }

/* 底部：固定 */
.mnav { flex: none; display: flex; background: var(--bg); border-top: 1px solid var(--sep); padding: 7px 0 max(7px, env(safe-area-inset-bottom)); }
.mnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text3); }
.mnav a .ic { font-family: 'Noto Serif SC', serif; font-size: 21px; font-weight: 700; line-height: 1; }
.mnav a .lb { font-size: 10px; }
.mnav a.on { color: var(--accent); }

.msec { margin-bottom: 22px; animation: fadeUp .3s both; }
.msec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.msec-title { font-size: 17px; font-weight: 800; }
.msec-more { font-size: 12.5px; color: var(--text3); }

/* 分类 chips：横滑（内部滚动，不撑破页面） */
.mchips { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; padding-bottom: 10px; margin-bottom: 6px; }
.mchips::-webkit-scrollbar { display: none; }
.chip { flex: none; }

/* Hero */
.mhero { position: relative; border-radius: 18px; overflow: hidden; height: 190px; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; color: #fff; margin-bottom: 20px; }
.mhero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.mhero .bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.1) 65%); }
.mhero > .z { position: relative; z-index: 1; }
.mhero .mh-badge { position: absolute; top: 14px; right: 14px; z-index: 1; }
.mhero h1 { font-family: 'Noto Serif SC', serif; font-size: 27px; margin-bottom: 6px; }
.mhero .mh-meta { font-size: 11.5px; color: rgba(255,255,255,.82); margin-bottom: 8px; }
.play-pill { display: inline-flex; align-items: center; gap: 6px; padding: 9px 20px; font-size: 13.5px; }

/* 横滑影视卡 */
.hscroll { display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; padding-bottom: 4px; }
.hscroll::-webkit-scrollbar { display: none; }
.dcard { flex: none; width: 116px; cursor: pointer; }
.dcard.g { width: auto; }
.dcard .cover { margin-bottom: 8px; box-shadow: var(--shadow-sm); }
.dcard .heat { position: absolute; left: 6px; bottom: 6px; z-index: 1; font-size: 10.5px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.dcard .cbadge { position: absolute; top: 6px; right: 6px; z-index: 1; }
.dcard .d-title { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcard .d-sub { font-size: 11px; color: var(--text3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 榜单行 */
.mrow { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--sep); cursor: pointer; align-items: center; }
.mrow:last-child { border-bottom: 0; }
.mrow .r-rank { width: 22px; flex: none; font-family: 'Noto Serif SC', serif; font-size: 19px; font-weight: 800; color: var(--accent); text-align: center; }
.mrow .r-rank.dim { color: var(--text3); }
.mrow .cover { width: 46px; aspect-ratio: 3/4; flex: none; }
.mrow .r-body { flex: 1; min-width: 0; }
.mrow .r-title { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow .r-meta { font-size: 12px; color: var(--text2); margin-top: 4px; }

/* 网格 */
.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px 10px; }

/* 详情 */
.mdetail { animation: fadeUp .3s both; }
.dhero { position: relative; border-radius: 16px; overflow: hidden; padding: 18px; display: flex; gap: 14px; align-items: flex-end; color: #fff; margin-bottom: 16px; min-height: 170px; }
.dhero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.dhero .bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.35)); }
.dhero .cover { position: relative; z-index: 1; width: 86px; flex: none; box-shadow: var(--shadow); }
.dhero .dh-info { position: relative; z-index: 1; min-width: 0; }
.dhero h1 { font-family: 'Noto Serif SC', serif; font-size: 20px; margin-bottom: 6px; }
.dhero .dh-meta { font-size: 11.5px; color: rgba(255,255,255,.85); margin-bottom: 8px; }
.dhero .dh-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.dintro { font-size: 13px; line-height: 1.7; color: var(--text2); margin-bottom: 18px; }
.eps-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.eps-head .free-tip { font-size: 11.5px; color: var(--accent); }
.eps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.ep { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--card2); font-size: 14px; font-weight: 600; cursor: pointer; }
.ep.cur { background: var(--accent); color: #fff; }
.dbar { display: flex; gap: 12px; margin-top: 18px; }
.dbar .follow { flex: none; padding: 13px 20px; border-radius: 999px; background: var(--card2); font-weight: 700; font-size: 14px; }
.dbar .play-main { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; font-size: 14.5px; }

/* 播放器 */
.mplayer { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16/10; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: rgba(255,255,255,.85); margin-bottom: 14px; }
.mplayer .pbg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .3; }
.mplayer .pi { position: relative; width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.mplayer .pn { position: relative; font-size: 11.5px; padding: 0 22px; text-align: center; line-height: 1.6; }
.mplayer video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; object-fit: contain; z-index: 1; }
.play-actions { display: flex; justify-content: space-around; padding: 2px 0 14px; border-bottom: 1px solid var(--sep); margin-bottom: 16px; }
.play-actions .pa { text-align: center; font-size: 11px; color: var(--text2); cursor: pointer; }
.play-actions .pa .pa-ic { font-size: 19px; margin-bottom: 4px; }

/* 我的 */
.mine-head { display: flex; align-items: center; gap: 14px; padding: 8px 0 20px; }
.mine-head .avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; font-family: 'Noto Serif SC'; font-size: 22px; color: #fff; }
.mine-head .mh-name { font-size: 17px; font-weight: 800; }
.mine-head .mh-sub { font-size: 12px; color: var(--text3); margin-top: 4px; }
.mine-head .mh-login { margin-left: auto; padding: 8px 18px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; }
.mlist { border-radius: 14px; background: var(--card); overflow: hidden; }
.mlist .mli { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border-bottom: 1px solid var(--sep); font-size: 14.5px; cursor: pointer; }
.mlist .mli:last-child { border-bottom: 0; }
.mlist .mli .mi-ic { font-size: 18px; width: 22px; text-align: center; }
.mlist .mli .mi-val { margin-left: auto; color: var(--text3); font-size: 13px; }

/* 搜索 */
.searchbar { display: flex; gap: 8px; align-items: center; background: var(--card2); border-radius: 999px; padding: 10px 16px; margin-bottom: 18px; }
.searchbar input { flex: 1; border: 0; background: transparent; outline: none; font-size: 15px; color: var(--text); }
.searchbar .go { color: var(--accent); font-weight: 700; }

.empty { text-align: center; color: var(--text3); padding: 60px 10px; }
.empty .em-ic { font-size: 34px; margin-bottom: 12px; opacity: .5; }
.loading { text-align: center; color: var(--text3); padding: 50px 0; font-size: 14px; }
