/* 4hu 仿制版式 · 共用样式 */
:root {
  --blue: #0086CF;
  --blue-dark: #0072b3;
  --navy: #003366;
  --bg: #f9f9fb;
  --card: #fff;
  --line: #e6e6ea;
  --text: #333;
  --muted: #888;
  --maxw: 1300px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.6 "Microsoft YaHei", Avenir, "Segoe UI", Tahoma, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { border: 0; display: block; }
input, button, select, textarea { font-family: inherit; }

.container { width: var(--maxw); margin: 0 auto; }
@media (max-width: 1320px) { .container { width: auto; padding: 0 8px; } }

/* ============ 顶栏 ============ */
.v-header { height: 60px; background: var(--navy); color: #eee; }
.v-header .container { height: 60px; display: flex; align-items: center; position: relative; }
.v-header .logo { width: 250px; flex: 0 0 250px; display: flex; align-items: center; gap: 10px; }
.v-header .logo .logo-img { height: 46px; width: auto; display: block; }
.v-header .logo .l1 { font-size: 24px; font-weight: 800; letter-spacing: 3px; color: #fff; }
.v-header .logo .l2 { font-size: 13px; color: #c9d6e2; letter-spacing: .5px; }
.v-header .hitem { width: 196px; flex: 0 0 196px; text-align: center; cursor: pointer; }
.v-header .hitem .t { font-size: 14px; color: #eee; line-height: 1.5; }
.v-header .hitem .s { font-size: 12px; color: #93a5b8; transform: scale(.92); line-height: 1.3; }
.v-header .hitem:hover .t { color: #fff; }
.v-header .hitem.search .t svg { vertical-align: -2px; margin-left: 4px; }
.v-header .lang-switch {
  position: absolute; right: 0; top: 17px;
  min-width: 52px; height: 26px; padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 3px; background: rgba(255, 255, 255, .08);
  color: #e6eef6; font-size: 12px; line-height: 24px; cursor: pointer; letter-spacing: .5px;
}
.v-header .lang-switch:hover { background: rgba(255, 255, 255, .18); color: #fff; }

/* 搜索浮层 */
.search-modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); display: none; z-index: 90; }
.search-modal.open { display: block; }
.search-modal .box { width: 620px; max-width: 92vw; margin: 160px auto 0; background: #fff; border-radius: 6px; padding: 26px; box-shadow: 0 12px 40px rgba(0, 0, 0, .25); }
.search-modal .box h3 { margin: 0 0 14px; font-size: 16px; color: var(--navy); }
.search-modal .row { display: flex; gap: 8px; }
.search-modal input { flex: 1; height: 40px; border: 1px solid var(--line); padding: 0 12px; font-size: 14px; border-radius: 4px; }
.search-modal button { height: 40px; padding: 0 22px; border: 0; background: var(--blue); color: #fff; border-radius: 4px; cursor: pointer; font-size: 14px; }

/* ============ 大导航 ============ */
.mega { background: var(--blue); }
.mega .row { display: flex; align-items: center; height: 71px; padding: 0 46px; border-bottom: 1px solid rgba(255, 255, 255, .10); }
.mega .row:last-child { border-bottom: 0; }
.mega .row-dt { width: 92px; flex: 0 0 92px; color: #fff; font-size: 14px; }
.mega .row-dd { width: 145px; flex: 0 1 145px; min-width: 0; }
.mega .row-dd a { color: #fff; font-size: 14px; opacity: .95; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mega .row-dd a:hover { text-decoration: underline; }

/* ============ 广告位 ============ */
.adwall { margin: 4px 0; }
.adrow { display: flex; gap: 3px; margin-bottom: 3px; }
.adunit {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #eef2f7;
  border-radius: 1px;
  display: block;
}
.adunit img { width: 100%; height: 100%; object-fit: fill; display: block; }
.adunit.code { display: flex; align-items: center; justify-content: center; }
.adunit .adtag {
  position: absolute;
  right: 4px;
  top: 4px;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  font-size: 10px;
  line-height: 1.5;
  padding: 0 5px;
  border-radius: 2px;
  letter-spacing: 1px;
}
.adunit .adsize {
  position: absolute;
  left: 6px;
  bottom: 5px;
  background: rgba(0, 0, 0, .42);
  color: #fff;
  font-size: 10px;
  line-height: 1.5;
  padding: 0 5px;
  border-radius: 2px;
  opacity: .9;
}
.adside {
  position: fixed;
  right: 6px;
  top: 430px;
  width: 150px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 70;
}
.adside .adunit { height: 300px; }
.adside .adclose {
  position: absolute;
  right: -8px;
  top: -10px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  z-index: 2;
}
@media (max-width: 1200px) { .adside { display: none; } }

@media (max-width: 700px) {
  .adrow { display: block; height: auto !important; }
  .adunit { display: block !important; flex: none !important; width: 100% !important; height: auto !important; }
  .adunit img { width: 100%; height: auto; }
}

/* ============ 区块标题 ============ */
.page-title {
  background: var(--blue);
  color: #f5f5f5;
  font-size: 14px;
  padding: 8px 12px;
  margin: 14px 0.5px 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.page-title .more { font-size: 12px; color: #d8ecfa; }
.page-title .more:hover { color: #fff; text-decoration: underline; }

/* ============ 卡片墙 ============ */
.video-list { display: flex; flex-wrap: wrap; }
.video-list .col {
  width: 20%;
  padding: 0 2px 5px;
}
@media (max-width: 900px) {
  .video-list .col { width: 33.333%; }
}
@media (max-width: 560px) {
  .video-list .col { width: 50%; }
}

.video-block {
  display: block;
  position: relative;
  background: #e9edf3;
  overflow: hidden;
}
.video-block .thumb {
  position: relative;
  width: 100%;
  padding-top: 56.6%;
  background: #dde4ee;
  overflow: hidden;
}
.video-block .thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.video-block .date-left-down {
  position: absolute;
  left: 5px;
  bottom: 5px;
  background: rgba(0, 0, 0, .5);
  color: #f5f5f5;
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 1px;
  line-height: 1.4;
}
.video-block .hd-tag {
  position: absolute;
  right: 5px;
  top: 5px;
  background: rgba(0, 0, 0, .5);
  color: #ffd85e;
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 1px;
}
.video-block .hover-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 8px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .82));
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.video-block:hover .hover-title { opacity: 1; transform: none; }
.video-block:hover .thumb img { transform: scale(1.05); }
.video-block::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  transition: border-color .15s ease;
  pointer-events: none;
}
.video-block:hover::after { border-color: var(--blue); }

/* ============ 面包屑 ============ */
.crumb { background: #fff; height: 40px; display: flex; align-items: center; font-size: 13px; color: #666; padding: 0 12px; border-bottom: 1px solid var(--line); }
.crumb a { color: #666; }
.crumb a:hover { color: var(--blue); }
.crumb .sep { margin: 0 7px; color: #bbb; }
.crumb .cur { color: #333; max-width: 620px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============ 页脚 ============ */
.footer { background: #333; color: #f5f5f5; margin-top: 24px; padding: 22px 0; font-size: 13px; line-height: 1.9; }
.footer .container { color: #f5f5f5; }
.footer .warn { color: #ffcc00; }
.footer a { color: #9fd4f5; }
.footer .links { margin-top: 6px; color: #bdbdbd; font-size: 12px; }

.float-home {
  position: fixed;
  right: 14px;
  bottom: 90px;
  width: 32px;
  height: 32px;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
  z-index: 40;
}
.float-top {
  position: fixed;
  right: 14px;
  bottom: 52px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 3px;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  cursor: pointer;
  z-index: 40;
  display: none;
}
.float-top.show { display: block; }

/* ============ 入口页 ============ */
.entry { background: #fff; min-height: 100vh; text-align: center; padding: 40px 16px; position: relative; }
.entry .entry-lang {
  position: absolute; right: 20px; top: 18px; min-width: 56px; height: 28px; padding: 0 10px;
  border: 1px solid #cfd8e0; border-radius: 3px; background: #fff; color: #1e88c7;
  font-size: 13px; line-height: 26px; cursor: pointer;
}
.entry .entry-lang:hover { border-color: #1e88c7; }
.entry .stamp { width: 300px; margin: 30px auto 26px; }
.entry .line1 { font-size: 15px; color: #333; margin: 10px 0; }
.entry .line2 { font-size: 14px; color: #d90000; margin: 6px 0 26px; font-weight: 700; }
.entry .enter-btn {
  display: block;
  width: 500px;
  max-width: 92vw;
  margin: 0 auto 34px;
  height: 52px;
  line-height: 52px;
  background: #1e88c7;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 2px;
  border-radius: 4px;
  border: 0;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}
.entry .enter-btn:hover { background: #1779b4; }
.entry .info { font-size: 14px; color: #444; line-height: 2.15; }
.entry .info a { color: #1e88c7; }
.entry .info .muted { color: #888; }

/* ============ 播放页 ============ */
/* 跳转播放页时的封面遮罩：跳转要等回源，先盖住，避免整屏黑 */
.navcover {
  position: fixed; inset: 0; z-index: 99999; background: #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.navcover img { max-width: min(94vw, 780px); max-height: 62vh; object-fit: contain; }
.navcover-tip { color: #c9d4e0; margin-top: 16px; font-size: 14px; }
.navcover-spin {
  width: 30px; height: 30px; margin-top: 14px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .22); border-top-color: #fff;
  animation: dplayer-spin .8s linear infinite;
}
.video-wrapper { background: #000; margin-top: 8px; position: relative; width: 100%; }
.dplayer { position: relative; width: 100%; padding-top: 56.25%; background: #000; overflow: hidden; }
.dplayer video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; z-index: 1; }
.dplayer .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; z-index: 2; }
/* embed-wrap 默认不显示：它和 video 同层级且写在 DOM 后面，若常驻会把正在播放的画面整个盖黑（黑屏根因） */
.dplayer .embed-wrap { position: absolute; inset: 0; z-index: 1; background: #000; display: none; }
.dplayer.has-embed .embed-wrap { display: block; }
.dplayer .embed-frame { display: block; width: 100%; height: 100%; border: 0; }
.dplayer.has-embed .progress,
.dplayer.has-embed .dplayer-bar,
.dplayer.has-embed .center-play,
.dplayer.has-embed .hint { display: none; }
.dplayer.loading::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; border-radius: 50%;
  animation: dplayer-spin .8s linear infinite; z-index: 5; pointer-events: none;
}
@keyframes dplayer-spin { to { transform: rotate(360deg); } }
.video-wrapper:fullscreen, .video-wrapper:-webkit-full-screen { display: flex; align-items: center; justify-content: center; background: #000; }
.video-wrapper:fullscreen .dplayer, .video-wrapper:-webkit-full-screen .dplayer { width: 100%; height: 100%; padding-top: 0; }
.dplayer .center-play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border-radius: 50%; background: rgba(0, 0, 0, .45); border: 2px solid rgba(255, 255, 255, .85);
  display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 3;
}
.dplayer .center-play svg { margin-left: 5px; }
.dplayer .center-play:hover { background: var(--blue); border-color: var(--blue); }
.dplayer .hint {
  position: absolute; left: 0; right: 0; bottom: 64px; text-align: center; color: #ffcf5c; font-size: 13px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8); z-index: 6; padding: 0 16px;
}
.dplayer .hint:empty { display: none; }
.dplayer .hint.err { color: #ff8a80; }
.dplayer-bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 44px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .72));
  display: flex; align-items: center; gap: 14px; padding: 0 14px; z-index: 4; color: #fff;
}
.dplayer-bar .ic { width: 22px; height: 22px; cursor: pointer; opacity: .92; display: flex; align-items: center; justify-content: center; }
.dplayer-bar .ic:hover { opacity: 1; color: #7fc9f0; }
.dplayer-bar .time { font-size: 12px; color: rgba(255, 255, 255, .9); font-variant-numeric: tabular-nums; }
.dplayer-bar .spacer { flex: 1; }
.dplayer-bar .txt { font-size: 12px; cursor: pointer; opacity: .9; }
.dplayer-bar .txt:hover { color: #7fc9f0; }
.dplayer-bar .sep-line { width: 1px; height: 14px; background: rgba(255, 255, 255, .28); }
.progress { position: absolute; left: 0; right: 0; bottom: 44px; height: 4px; background: rgba(255, 255, 255, .22); cursor: pointer; z-index: 4; touch-action: none; }
.progress::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 16px; } /* 扩大点击热区 */
.progress:hover { height: 6px; bottom: 43px; }
.progress .loaded { position: absolute; inset: 0 auto 0 0; background: rgba(255, 255, 255, .4); width: 0; }
.progress .played { position: absolute; inset: 0 auto 0 0; background: var(--blue); width: 0; }

.copy-box { background: #222; color: #ffbf00; font-size: 13px; padding: 12px 14px; line-height: 1.9; }
.copy-box .url { color: #ffbf00; cursor: pointer; text-decoration: underline; }
.copy-box .small { color: #d5b25c; font-size: 12px; }

.prev-next { background: #fafafa; height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; font-size: 13px; border-bottom: 1px solid var(--line); }
.prev-next a { color: #555; max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prev-next a:hover { color: var(--blue); }
.prev-next .r { text-align: right; }

.change-route { background: #fafafa; padding: 16px 14px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.change-route .tip { font-size: 13px; color: #666; }
.change-route .line-btn { background: var(--blue); color: #fff; font-size: 13px; border: 0; width: 76px; height: 31px; border-radius: 2px; cursor: pointer; }
.change-route .line-btn.active { background: var(--blue-dark); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }

.info-box { background: #fafafa; padding: 18px 14px 22px; font-size: 13px; color: #555; line-height: 2; }
.info-box .dl-tip { color: #888; margin-bottom: 10px; }
.info-box .dl-row { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.info-box input.input-url { width: 448px; height: 35px; border: 1px solid #ddd; background: #fff; padding: 0 10px; font-size: 13px; color: #666; }
.info-box .btn-dark { height: 35px; padding: 0 16px; background: #333; color: #fff; border: 0; cursor: pointer; font-size: 13px; border-radius: 2px; }
.info-box .btn-dark:hover { background: #000; }
.info-box .name { font-size: 18px; font-weight: 700; color: #222; margin: 4px 0 10px; }
.info-box .kv { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.info-box .kv .k { color: #777; }
.info-box .atag { display: inline-block; background: #eaf6fd; color: var(--blue); border: 1px solid #cfe8f8; font-size: 12px; padding: 0 6px; margin-right: 6px; line-height: 20px; border-radius: 2px; }
.info-box .del a { color: #d9534f; }

.related-grid .col { width: 20%; padding: 0 2px 5px; }
@media (max-width: 900px) { .related-grid .col { width: 33.333%; } }

/* ============ 排行榜 ============ */
.rank-list { background: #fff; padding: 6px 12px 12px; }
.rank-row { display: flex; align-items: center; gap: 12px; height: 34px; font-size: 13px; border-bottom: 1px dashed #eee; }
.rank-row .num { width: 34px; color: #999; font-weight: 700; font-variant-numeric: tabular-nums; }
.rank-row .num.top { color: #e0572e; }
.rank-row .cat { width: 108px; color: #888; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row .tt { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #333; }
.rank-row .tt:hover { color: var(--blue); }
.rank-row .dt { width: 96px; text-align: right; color: #aaa; font-size: 12px; }

/* 首页标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px 14px; background: #fff; }
.tag-cloud a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: #444; background: #fafbfc; }
.tag-cloud a:hover { border-color: var(--blue); color: var(--blue); background: #f2f9ff; }

/* 首页三列榜单：窄屏自动改成单列 */
.home-ranks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.home-ranks .rank-col { background: #fff; min-width: 0; }
.home-ranks .rank-row { gap: 8px; }
.home-ranks .rank-row .cat { display: none; }
.home-ranks .rank-row .dt { width: 78px; }
@media (max-width: 900px) {
  .home-ranks { grid-template-columns: 1fr; }
}
.rank-cols { display: flex; gap: 6px; }
.rank-cols > div { flex: 1; min-width: 0; }
@media (max-width: 900px) { .rank-cols { flex-direction: column; } }

/* ============ 分类页 / 工具条 ============ */
.cat-bar { background: #fff; padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: 13px; margin-top: 8px; border-bottom: 1px solid var(--line); }
.cat-bar .lb { color: #888; margin-right: 4px; }
.cat-bar a { padding: 3px 10px; border: 1px solid #e3e3e8; color: #555; border-radius: 2px; background: #fbfbfd; }
.cat-bar a.on, .cat-bar a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

.empty { background: #fff; padding: 60px 0; text-align: center; color: #999; font-size: 14px; }

.pager { display: flex; justify-content: center; gap: 6px; padding: 18px 0; }
.pager a, .pager span { min-width: 34px; height: 32px; line-height: 32px; text-align: center; border: 1px solid #e3e3e8; background: #fff; color: #555; font-size: 13px; padding: 0 8px; border-radius: 2px; }
.pager a:hover { border-color: var(--blue); color: var(--blue); }
.pager .on { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ============ 通知条 ============ */
.notice-bar { background: #fff6d6; color: #8a6d1b; font-size: 13px; padding: 8px 12px; border-bottom: 1px solid #f0e0a8; }

/* ============ 通用提示 ============ */
.toast {
  position: fixed; left: 50%; bottom: 60px; transform: translateX(-50%);
  background: rgba(0, 0, 0, .78); color: #fff; font-size: 13px; padding: 9px 18px;
  border-radius: 3px; z-index: 200; opacity: 0; transition: opacity .2s ease; pointer-events: none;
}
.toast.show { opacity: 1; }

/* ============ 帮助页 ============ */
.help-box { background: #fff; padding: 22px 24px; margin-top: 10px; font-size: 14px; line-height: 2.1; color: #444; }
.help-box h2 { font-size: 16px; color: var(--navy); margin: 0 0 10px; }
.help-box h3 { font-size: 14px; color: #222; margin: 18px 0 4px; }

/* ============ 响应式 ============ */
@media (max-width: 1100px) {
  .v-header .logo { width: auto; flex: 0 0 auto; padding-right: 14px; }
  .v-header .hitem { width: auto; flex: 1 1 0; padding: 0 4px; }
  .v-header .hitem .s { display: none; }
  .v-header .lang-switch { position: static; margin-left: 8px; flex: 0 0 auto; min-width: 44px; height: 24px; line-height: 22px; font-size: 11px; }
  .mega .row { flex-wrap: wrap; height: auto; padding: 10px 12px; }
  .mega .row-dt { width: 100%; flex: 0 0 100%; margin-bottom: 2px; }
  .mega .row-dd { width: 25%; flex: 0 0 25%; }
}

@media (max-width: 600px) {
  body { font-size: 13px; }
  /* 顶栏两行：居中 logo（透明印章 + 域名），下方一行 5 个功能入口 */
  .v-header { height: auto; }
  .v-header .container { height: auto; flex-wrap: wrap; padding: 10px 8px 0; gap: 0; }
  .v-header .logo { order: 1; flex: 0 0 100%; width: 100%; justify-content: center; gap: 8px; padding: 0 0 8px; }
  .v-header .logo .logo-img { height: 38px; padding: 0; }
  .v-header .logo .l2 { display: inline; font-size: 15px; color: #a9d6f5; letter-spacing: .5px; }
  .v-header .hitem { order: 2; flex: 1 1 20%; width: auto; min-width: 0; padding: 0 2px 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .v-header .hitem .t { font-size: 13px; }
  .v-header .hitem[data-act="fav"], .v-header .hitem[data-act="mail"] { display: block; }
  .v-header .lang-switch { order: 0; position: absolute; right: 8px; top: 12px; margin: 0; min-width: 40px; height: 24px; line-height: 22px; padding: 0 4px; font-size: 11px; }
  .entry { padding: 24px 14px; }
  .entry .stamp { width: 220px; margin: 12px auto 16px; }
  .entry .enter-btn { width: 100%; font-size: 15px; }
  .entry .info { font-size: 12px; line-height: 2; }
  .info-box input.input-url { width: 100%; }
  .info-box .dl-row { flex-wrap: wrap; }
  .prev-next { flex-direction: column; height: auto; gap: 6px; padding: 10px 12px; align-items: flex-start; }
  .change-route { flex-wrap: wrap; }
  .page-title { margin-top: 10px; }
  .rank-row .cat { width: 76px; }
  .rank-row .dt { width: 76px; }
  /* 4hu 模板移动端：卡片标题常显，避免只有封面没有片名 */
  .video-block .hover-title { opacity: 1; transform: none; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* 移动端分类导航：按 4hu 截图改为 6 组蓝底网格，组名左列竖排，右侧 4 列 */
@media (max-width: 900px) {
  .mega { display: block; overflow: visible; padding: 0; }
  .mega .container { display: block; width: auto; padding: 0; }
  .mega .row {
    position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch; height: auto; padding: 0 0 0 58px; gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
  }
  .mega .row:last-child { border-bottom: 0; }
  .mega .row-dt {
    position: absolute; left: 0; top: 0; bottom: 0; width: 58px;
    display: flex; align-items: center; justify-content: center;
    padding: 4px 2px; margin: 0;
    font-size: 16px; line-height: 1.25; letter-spacing: 1px; text-align: center; word-break: break-all;
  }
  .mega .row-dd { width: auto; flex: none; min-width: 0; padding: 13px 4px; }
  .mega .row-dd a {
    display: block; padding: 0; text-align: center; color: #fff;
    font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    background: none; border: 0; border-radius: 0;
  }
  .mega .row-dd a:hover { text-decoration: underline; }
  /* 移动端不显示「更多」，避免 4 列网格多出半行 */
  .mega .row-more { display: none; }
  /* 英文组名较长，缩小字号避免撑高行 */
  html[lang="en"] .mega .row-dt { font-size: 11px; letter-spacing: 0; line-height: 1.3; }
}
