:root {
  --mh-bg: #f6f8fc;
  --mh-surface: #fff;
  --mh-text: #172033;
  --mh-muted: #758096;
  --mh-accent: #635bff;
  --mh-accent-2: #27c2a5;
  --mh-line: #e7eaf1;
  --mh-radius: 16px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body.mh-body { margin: 0; color: var(--mh-text); background: var(--mh-bg); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.mh-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(231,234,241,.9); background: rgba(255,255,255,.9); backdrop-filter: blur(18px); }
.mh-header-inner { width: min(1440px, calc(100% - 40px)); min-height: 72px; margin: auto; display: flex; align-items: center; gap: 28px; }
.mh-brand { flex: none; font-size: 23px; font-weight: 800; letter-spacing: -.04em; }
.mh-brand::before { content: ""; display: inline-block; width: 11px; height: 11px; margin-right: 9px; border-radius: 4px; background: linear-gradient(135deg,var(--mh-accent),var(--mh-accent-2)); box-shadow: 0 0 0 6px rgba(99,91,255,.1); }
.mh-nav { display: flex; align-items: center; gap: 5px; }
.mh-nav-link { padding: 9px 13px; border-radius: 10px; color: #566078; font-size: 14px; font-weight: 600; }
.mh-nav-link:hover,.mh-nav-link.active { color: var(--mh-accent); background: #f0efff; }
.mh-search { margin-left: auto; display: flex; width: min(300px, 32vw); padding: 5px; border: 1px solid var(--mh-line); border-radius: 12px; background: #f8f9fc; }
.mh-search-input { min-width: 0; flex: 1; padding: 6px 10px; border: 0; outline: 0; background: transparent; color: var(--mh-text); }
.mh-search-btn { border: 0; border-radius: 9px; padding: 8px 15px; color: #fff; background: var(--mh-accent); cursor: pointer; }
.mh-main { width: min(1440px, calc(100% - 40px)); margin: auto; padding: 34px 0 60px; }
.mh-section { margin-bottom: 42px; }
.mh-list-header { display: flex; align-items: end; justify-content: space-between; margin-bottom: 18px; }
.mh-list-header h2 { margin: 0; font-size: 25px; letter-spacing: -.03em; }
.mh-list-header a { color: var(--mh-accent); font-size: 14px; font-weight: 700; }
.mh-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 22px 16px; }
.mh-card { min-width: 0; overflow: hidden; border: 1px solid var(--mh-line); border-radius: var(--mh-radius); background: var(--mh-surface); box-shadow: 0 8px 28px rgba(20,32,61,.055); transition: transform .22s,box-shadow .22s; }
.mh-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(20,32,61,.12); }
.mh-cover { position: relative; display: block; overflow: hidden; aspect-ratio: 2/3; background: #e9ecf3; }
.mh-image { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.mh-card:hover .mh-image { transform: scale(1.035); }
.mh-card-badge { position: absolute; right: 9px; bottom: 9px; max-width: calc(100% - 18px); overflow: hidden; padding: 5px 8px; border-radius: 7px; color: #fff; background: rgba(19,25,39,.74); backdrop-filter: blur(8px); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.mh-card-body { padding: 13px 14px 15px; }
.mh-title { overflow: hidden; margin: 0 0 7px; font-size: 15px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.mh-title a:hover { color: var(--mh-accent); }
.mh-meta { overflow: hidden; color: var(--mh-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.mh-footer { border-top: 1px solid var(--mh-line); color: var(--mh-muted); background: #fff; }
.mh-footer-inner { width: min(1440px,calc(100% - 40px)); margin: auto; padding: 28px 0; text-align: center; font-size: 13px; }
.mh-footer p:first-child { display: none; }
.mh-detail-page,.mh-play-page { padding: 26px; border: 1px solid var(--mh-line); border-radius: 20px; background: #fff; }
.mh-detail-hero { display: grid; grid-template-columns: 240px 1fr; gap: 34px; }
.mh-detail-poster { width: 100%; border-radius: 15px; aspect-ratio: 2/3; object-fit: cover; }
.mh-detail-title { margin: 8px 0; font-size: clamp(28px,4vw,44px); }
.mh-detail-meta,.mh-detail-desc { color: var(--mh-muted); line-height: 1.8; }
.mh-detail-info>a,.mh-play-episodes a { display: inline-block; margin: 8px 6px 0 0; padding: 10px 18px; border-radius: 10px; color: #fff; background: var(--mh-accent); }
.mh-player-box { overflow: hidden; margin: 20px 0; border-radius: 16px; background: #090b10; }
.mh-player-box video { display: block; width: 100%; max-height: 72vh; }
.mh-play-header a { color: var(--mh-accent); }
.mh-play-tags span { display: inline-block; margin-right: 8px; padding: 5px 9px; border-radius: 8px; color: var(--mh-muted); background: #f0f2f7; font-size: 12px; }
.mh-empty { padding: 60px; border: 1px dashed var(--mh-line); border-radius: 16px; color: var(--mh-muted); text-align: center; }
@media (max-width:1100px) { .mh-grid { grid-template-columns: repeat(4,1fr); } }
@media (max-width:760px) {
  .mh-header-inner { width: calc(100% - 24px); min-height: 62px; gap: 10px; flex-wrap: wrap; padding: 9px 0; }
  .mh-brand { font-size: 19px; }
  .mh-nav { order: 3; width: 100%; overflow-x: auto; }
  .mh-nav-link { white-space: nowrap; }
  .mh-search { width: auto; flex: 1; }
  .mh-search-btn { padding-inline: 10px; }
  .mh-main { width: calc(100% - 24px); padding-top: 24px; }
  .mh-grid { grid-template-columns: repeat(3,1fr); gap: 14px 9px; }
  .mh-card-body { padding: 10px; }
  .mh-detail-hero { grid-template-columns: 110px 1fr; gap: 16px; }
  .mh-detail-page,.mh-play-page { padding: 14px; }
}
@media (max-width:480px) { .mh-grid { grid-template-columns: repeat(2,1fr); } }
