/* ===== Page frame ===== */
.mh-page {
  --mh-gutter: clamp(18px, 3.9vw, 56px);
  --mh-head-height: clamp(64px, 5.6vw, 84px);
  position: relative; min-height: 100svh; line-height: 1.5; color: var(--text);
}
.mh-page-catalog { padding-top: var(--mh-head-height); }
.mh-page h1, .mh-page h2, .mh-page p { margin: 0; }
.mh-page a { text-decoration: none; color: inherit; }
.mh-page .mh-icon { display: inline-block; flex: 0 0 auto; width: 1.2em; height: 1.2em; }

/* ===== Top bar ===== */
.mh-top {
  position: fixed; inset: 0 0 auto; z-index: 20;
  height: var(--mh-head-height); display: flex; align-items: center; gap: clamp(18px, 3vw, 44px);
  padding: 0 var(--mh-gutter);
  background: linear-gradient(180deg, rgba(5, 7, 15, .85), transparent);
  transition: background .35s, backdrop-filter .35s, border-color .35s; border-bottom: 1px solid transparent;
}
.mh-top-solid {
  background: rgba(5, 7, 15, .78); border-color: var(--line);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
}
.mh-wordmark { display: inline-flex; align-items: center; flex: 0 0 auto; }
.mh-wordmark img { display: block; width: clamp(120px, 11vw, 176px); height: auto; filter: drop-shadow(0 0 14px rgba(129, 140, 248, .35)); }
/* Twelve channels: the row tightens on mid-size screens and scrolls sideways rather than slide under the search box. */
.mh-nav { display: flex; align-items: center; gap: clamp(2px, .35vw, 10px); min-width: 0; flex: 0 1 auto; overflow-x: auto; scrollbar-width: none; }
.mh-nav::-webkit-scrollbar { display: none; }
.mh-nav a { position: relative; padding: 8px clamp(6px, .62vw, 14px); font-size: clamp(13px, 1.05vw, 15px); color: var(--muted-2); white-space: nowrap; border-radius: 8px; transition: color .2s, background .2s; }
.mh-nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.mh-nav a[aria-current="page"] { color: #fff; font-weight: 650; }
.mh-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--gradient); }
.mh-break, .mh-korean { display: none; }
.mh-search {
  position: relative; display: flex; align-items: center; flex: 0 1 300px; margin-left: auto;
  height: 40px; gap: 10px; padding: 0 6px 0 16px;
  border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted-2);
  background: rgba(255, 255, 255, .06); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: border-color .2s, box-shadow .25s, background .2s, flex-basis .3s var(--ease);
}
.mh-search:focus-within { flex-basis: 420px; border-color: rgba(129, 140, 248, .8); background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 4px rgba(129, 140, 248, .18); }
.mh-search > .mh-icon { width: 17px; height: 17px; color: var(--muted); }
.mh-search input { min-width: 0; flex: 1; color: var(--text); border: 0; outline: 0; background: transparent; font-size: 14px; }
.mh-search input::placeholder { color: var(--muted); }
.mh-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.mh-search button { display: inline-grid; place-items: center; height: 30px; width: 30px; padding: 0; border: 0; border-radius: 999px; color: #0a0a19; background: #fff; }
.mh-search:not(:focus-within) input:placeholder-shown + button { visibility: hidden; }

/* ===== Mobile preview channel tabs ===== */
.mh-preview-channels { position: relative; z-index: 2; display: flex; gap: 6px; padding: calc(var(--mh-head-height) + 8px) var(--mh-gutter) 4px; overflow-x: auto; scrollbar-width: none; }
.mh-preview-channels::-webkit-scrollbar { display: none; }
.mh-preview-channels a { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--muted-2); border: 1px solid var(--line); background: var(--surface); }
.mh-preview-channels a[aria-current="page"] { color: #fff; border-color: rgba(129, 140, 248, .5); background: linear-gradient(90deg, rgba(129, 140, 248, .25), rgba(103, 232, 249, .12)); }

/* ===== Hero ===== */
.mh-feature { position: relative; isolation: isolate; overflow: hidden; height: 100svh; min-height: 620px; max-height: 1000px; }
.mh-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: my-fade .9s var(--ease) backwards, my-drift 24s linear both alternate infinite; }
.mh-backdrop-blur { object-position: 50% 30%; filter: blur(36px) saturate(1.35) brightness(.55); transform: scale(1.3); animation: my-fade .9s var(--ease) backwards; }
.mh-poster-card {
  position: absolute; z-index: 1; right: clamp(40px, 8vw, 140px); top: 50%; width: clamp(200px, 19vw, 300px); aspect-ratio: 2/3; object-fit: cover;
  transform: translateY(-56%) rotate(0deg); border-radius: 16px; border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 1), 0 0 0 1px rgba(129, 140, 248, .25);
  animation: my-rise .8s var(--ease) backwards;
}
.mh-hero-rank { display: inline-flex; align-items: center; margin-left: 10px; padding: 3px 10px; border-radius: 999px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: #06070f; background: #fff; vertical-align: middle; }
.mh-blurb:empty { display: none; }
.mh-hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 7, 15, .96) 0%, rgba(5, 7, 15, .6) 32%, rgba(5, 7, 15, .08) 66%, transparent 100%),
    linear-gradient(0deg, var(--canvas) 0%, rgba(5, 7, 15, .55) 26%, transparent 55%),
    linear-gradient(180deg, rgba(5, 7, 15, .6) 0%, transparent 30%);
}
.mh-feature-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--mh-gutter) clamp(72px, 11vh, 120px); }
.mh-feature-copy { max-width: min(760px, 62%); animation: my-rise .6s var(--ease) backwards; }
.mh-week { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: clamp(11px, .9vw, 13px); letter-spacing: .28em; text-transform: uppercase; color: var(--accent); }
.mh-week::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.mh-feature h1 { margin-top: clamp(14px, 1.6vw, 22px); font-size: clamp(54px, 8.4vw, 124px); font-weight: 800; line-height: .98; letter-spacing: -.03em; color: #fff; text-shadow: 0 14px 50px rgba(0, 0, 0, .6); }
.mh-original { margin-top: clamp(8px, 1vw, 14px); font-family: var(--mono); font-size: clamp(12px, 1.1vw, 16px); letter-spacing: .4em; text-transform: uppercase; font-weight: 600; color: var(--accent); }
.mh-film-meta { margin-top: clamp(18px, 1.8vw, 26px); font-size: clamp(14px, 1.05vw, 16px); color: #d7dcf2; letter-spacing: .03em; }
.mh-film-meta b { font-weight: 400; color: var(--muted); padding: 0 .35em; }
.mh-blurb { margin-top: 8px; max-width: 560px; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.75; color: var(--muted-2); }
.mh-feature-actions { display: flex; align-items: center; gap: 14px; margin-top: clamp(24px, 2.6vw, 36px); animation: my-rise .6s .08s var(--ease) backwards; }
.mh-page .mh-play {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em; height: clamp(48px, 3.8vw, 58px); padding: 0 clamp(24px, 2.2vw, 34px);
  color: #06070f; background: #fff; border-radius: 999px; font-size: clamp(16px, 1.2vw, 18px); font-weight: 750; white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .4), 0 20px 60px -20px #fff; transition: transform .25s var(--ease), box-shadow .25s;
}
.mh-page .mh-play:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 0 0 1px #fff, 0 24px 70px -18px #fff; }
.mh-page .mh-play:active { transform: scale(.99); }
.mh-play .mh-icon { width: 1em; height: 1em; }
.mh-secondary { display: inline-flex; align-items: center; height: clamp(48px, 3.8vw, 58px); padding: 0 clamp(22px, 2vw, 30px); border-radius: 999px; font-size: clamp(15px, 1.1vw, 17px); font-weight: 600; color: #fff; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .2s, border-color .2s; }
.mh-secondary:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .45); }
.mh-features { position: absolute; z-index: 3; right: var(--mh-gutter); bottom: clamp(80px, 12vh, 132px); display: flex; align-items: flex-end; gap: 6px; }
.mh-features button { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 0 6px; border: 0; background: none; color: #fff; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; }
.mh-dot { display: block; overflow: hidden; width: 22px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .28); transition: background-color .3s; }
.mh-dot::after { content: ""; display: block; height: 100%; border-radius: inherit; background: var(--gradient); transform: scaleX(0); transform-origin: left; }
.mh-features button:hover .mh-dot { background: rgba(255, 255, 255, .5); }
.mh-features button[aria-pressed="true"] .mh-dot { width: 72px; }
.mh-features button[aria-pressed="true"] .mh-dot::after { animation: my-progress 10s linear forwards; }
.mh-feature:is(:hover, :focus-within) button[aria-pressed="true"] .mh-dot::after { animation-play-state: paused; }
.mh-dot-label { display: none; position: absolute; left: 0; bottom: 100%; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-features button[aria-pressed="true"] .mh-dot-label { display: block; }
@keyframes my-progress { to { transform: scaleX(1); } }

/* ===== Portal modules ===== */
.mh-module { padding: 0 var(--mh-gutter); margin-top: clamp(26px, 3vw, 38px); }
.mh-module-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.mh-module-head h2 { position: relative; padding-left: 16px; font-size: clamp(21px, 1.8vw, 26px); font-weight: 750; letter-spacing: -.01em; }
.mh-module-head h2::before { content: ""; position: absolute; left: 0; top: .22em; bottom: .22em; width: 4px; border-radius: 4px; background: var(--gradient); }
.mh-module-tabs { display: inline-flex; gap: 4px; margin-left: 6px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); overflow-x: auto; scrollbar-width: none; }
.mh-module-tabs::-webkit-scrollbar { display: none; }
.mh-module-tabs button { flex: 0 0 auto; font: inherit; font-size: 13px; color: var(--muted-2); padding: 5px 12px; border-radius: 999px; border: 0; background: none; transition: color .2s, background .2s; }
.mh-module-tabs button:hover { color: #fff; }
.mh-module-tabs button[aria-current] { color: #06070f; font-weight: 650; background: #fff; }
.mh-module-head > a { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--accent); transition: color .2s; }
.mh-module-head > a:hover { color: #fff; }
.mh-module-head .mh-icon { width: 13px; height: 13px; }
.mh-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.mh-row .mh-card .mh-still { border-radius: 12px; }
.mh-row-posters .mh-card .mh-still { aspect-ratio: 2/3; }
/* 片单: collection tiles. Text on the left, the list's three leading posters fanned on the right. */
.mh-lists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mh-lists-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mh-list { position: relative; display: flex; align-items: center; min-height: 148px; padding: 18px 20px; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); transition: border-color .25s, transform .3s var(--ease); }
.mh-list:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.mh-list-text { position: relative; z-index: 1; display: grid; gap: 4px; min-width: 0; max-width: 56%; }
.mh-list-text small { font-family: var(--mono); font-size: 11px; letter-spacing: .24em; color: var(--accent); }
.mh-list-text b { font-size: clamp(18px, 1.55vw, 23px); font-weight: 750; letter-spacing: -.01em; white-space: nowrap; }
.mh-list-text span { font-size: 13px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-list-text em { margin-top: 8px; min-height: 1.4em; font-style: normal; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.mh-list-fan { position: absolute; right: 14px; top: 50%; display: flex; transform: translateY(-50%); }
.mh-list-fan img { width: 76px; aspect-ratio: 2/3; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-strong); background: #0f1424; box-shadow: -8px 0 18px -6px rgba(0, 0, 0, .7); transition: transform .35s var(--ease); }
.mh-list-fan img:nth-child(n+4) { display: none; }
.mh-list-fan img + img { margin-left: -30px; }
.mh-list-fan img:nth-child(2) { position: relative; z-index: 1; }
.mh-list-fan img:nth-child(1) { transform: rotate(-5deg) translateY(4px); }
.mh-list-fan img:nth-child(3) { transform: rotate(5deg) translateY(4px); }
.mh-list:hover .mh-list-fan img:nth-child(1) { transform: rotate(-8deg) translate(-6px, 4px); }
.mh-list:hover .mh-list-fan img:nth-child(3) { transform: rotate(8deg) translate(6px, 4px); }
.mh-module .mh-status:not(:empty) { margin-top: 12px; }
.mh-rank-panel { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 8px; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.mh-rank-panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 120px; background: radial-gradient(60% 100% at 20% 0%, rgba(129, 140, 248, .18), transparent 70%); pointer-events: none; }
.mh-rank-panel h3 { display: flex; align-items: center; margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.mh-rank-panel h3 a { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--muted); font-weight: 400; }
.mh-rank-panel h3 a:hover { color: #fff; }
.mh-rank-panel h3 .mh-icon { width: 12px; height: 12px; }
.mh-rank-panel ol { list-style: none; margin: 0; padding: 0; min-height: 300px; }
.mh-rank-panel li a { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; transition: color .2s; }
.mh-rank-panel li a:hover { color: var(--accent); }
.mh-rank-panel li i { width: 20px; font-style: normal; font-weight: 800; font-size: 15px; color: var(--muted); font-family: var(--mono); text-align: center; }
.mh-rank-panel li:nth-child(-n+3) i { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mh-rank-panel li img, .mh-rank-blank { flex: 0 0 auto; width: 36px; aspect-ratio: 2/3; object-fit: cover; border-radius: 5px; background: var(--surface-solid); }
.mh-rank-panel li span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-rank-panel li small { margin-left: auto; color: var(--muted); font-size: 12px; font-family: var(--mono); }
.mh-portal .my-sponsor { margin-top: 30px; }

/* ===== Shelves & cards ===== */
.mh-shelf { position: relative; z-index: 3; padding: 0 var(--mh-gutter) clamp(18px, 2vw, 34px); margin-top: clamp(-70px, -7vh, -40px); }
.mh-shelf + .mh-shelf { margin-top: 0; }
.mh-section-heading { display: flex; align-items: baseline; gap: 16px; margin-bottom: clamp(14px, 1.5vw, 20px); }
.mh-section-heading h2 { font-size: clamp(22px, 2vw, 30px); font-weight: 750; letter-spacing: -.01em; line-height: 1.3; }
.mh-count, .mh-number { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.mh-section-heading a, .mh-browse-region { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-size: clamp(13px, 1vw, 14px); font-weight: 500; transition: color .2s; }
.mh-section-heading a:hover, .mh-browse-region:hover { color: #fff; }
.mh-section-heading .mh-icon, .mh-browse-region .mh-icon { width: 13px; height: 13px; }
.mh-film-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.2vw, 20px); }
.mh-film-grid.mh-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, calc((100% - 3 * clamp(12px, 1.2vw, 20px)) / 4)); grid-template-columns: none; overflow-x: auto; padding: 8px var(--mh-gutter) 14px; margin: -8px calc(0px - var(--mh-gutter)) 0; scroll-padding-inline: var(--mh-gutter); scroll-snap-type: x proximity; scrollbar-width: none; }
.mh-track::-webkit-scrollbar { display: none; }
.mh-track .mh-card { scroll-snap-align: start; }
.mh-card { position: relative; min-width: 0; display: block; border-radius: 14px; transition: transform .35s var(--ease); }
.mh-card .mh-still {
  position: relative; width: 100%; display: grid; align-items: center; aspect-ratio: 16/9; overflow: hidden; isolation: isolate;
  border-radius: 14px; border: 1px solid var(--line); background: var(--surface-solid);
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .9); transition: border-color .3s, box-shadow .35s var(--ease);
}
.mh-card .mh-still[data-color="1"] { background: linear-gradient(135deg, #2a1a3d, #120d1f); }
.mh-card .mh-still[data-color="2"] { background: linear-gradient(135deg, #0f2a35, #0a141c); }
.mh-card .mh-still[data-color="3"] { background: linear-gradient(135deg, #1e2347, #0e1022); }
.mh-card .mh-still[data-color="4"] { background: linear-gradient(135deg, #33212b, #140d14); }
.mh-type-poster { padding: 14px; font-size: clamp(15px, 1.4vw, 22px); font-weight: 700; line-height: 1.3; color: rgba(255, 255, 255, .72); }
.mh-still img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.mh-card:hover img { transform: scale(1.06); }
.mh-card:hover .mh-still { border-color: rgba(255, 255, 255, .35); box-shadow: 0 18px 44px -16px rgba(0, 0, 0, .9), 0 0 0 1px rgba(129, 140, 248, .35); }
/* Position mark: one corner tab for every ranking and numbered list. */
.mh-mark { position: absolute; z-index: 2; left: 0; top: 0; display: grid; justify-items: center; min-width: 40px; padding: 6px 9px 7px; border-radius: 12px 0 14px 0; background: rgba(5, 7, 15, .74); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-right: 1px solid rgba(255, 255, 255, .16); border-bottom: 1px solid rgba(255, 255, 255, .16); color: #fff; line-height: 1; pointer-events: none; }
/* Own class names and explicit resets: card rows restyle bare <small>, <b> and <strong>, and the mark must not inherit that. */
.mh-mark-cap, .mh-mark-num { position: static; display: block; margin: 0; padding: 0; font-family: var(--mono); font-style: normal; text-shadow: none; white-space: nowrap; }
.mh-mark-cap { font-size: 8px; font-weight: 600; letter-spacing: .22em; margin-right: -.22em; color: rgba(255, 255, 255, .62); }
.mh-mark-num { margin-top: 3px; font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: inherit; }
.mh-mark[data-lead] { background: var(--gradient); border-color: transparent; color: #06070f; box-shadow: 0 8px 22px -8px rgba(129, 140, 248, .9); }
.mh-mark[data-lead] .mh-mark-cap { color: rgba(6, 7, 15, .62); }
.mh-card strong { display: block; padding: 10px 2px 0; font-size: clamp(14px, 1.1vw, 16px); font-weight: 600; line-height: 1.4; }
.mh-card:hover strong { color: #fff; }
.mh-card small { display: block; padding: 2px 2px 0; color: var(--muted); font-size: 12px; letter-spacing: .02em; }
.mh-card .mh-edition { color: var(--accent); opacity: .85; }
/* Track cards: title overlays the image like the mockup. */
.mh-track .mh-card strong, .mh-track .mh-card small { position: absolute; left: 14px; right: 14px; padding: 0; z-index: 2; pointer-events: none; }
.mh-track .mh-card strong { bottom: 30px; font-size: clamp(15px, 1.2vw, 17px); text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.mh-track .mh-card small { bottom: 13px; color: #c4cbe6; font-size: 12px; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }
.mh-track .mh-card small + small { display: none; }
.mh-track .mh-still::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgba(5, 7, 15, .92) 0%, rgba(5, 7, 15, .35) 40%, transparent 65%); }
.mh-page .my-sponsor { margin: 10px var(--mh-gutter) 0; }
.mh-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; padding: 24px var(--mh-gutter) 28px; color: var(--muted); font-size: 12px; }
.mh-footer a:hover, .mh-footer button:hover { color: var(--accent); }
.mh-footer button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
/* The install guide: a sheet from the bottom on a phone, a centred card on a wide screen. */
.mh-sheet { position: fixed; inset: 0; z-index: 200; display: grid; align-items: end; justify-items: center; background: rgba(3, 5, 12, .72); }
.mh-sheet-box { width: min(100%, 440px); padding: 26px 24px calc(22px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; border: 1px solid var(--line-strong); border-bottom: 0; background: #0d1222; text-align: center; }
.mh-sheet-box img { border-radius: 14px; }
.mh-sheet-box h2 { margin: 12px 0 14px; font-size: 20px; font-weight: 750; }
.mh-sheet-box ol { margin: 0; padding: 0; list-style: none; counter-reset: step; text-align: left; display: grid; gap: 10px; }
.mh-sheet-box li { counter-increment: step; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--text); }
.mh-sheet-box li::before { content: counter(step); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; font-weight: 700; color: #06070f; background: #fff; }
.mh-sheet-box p { margin: 16px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted-2); text-align: left; }
.mh-sheet-box button { margin-top: 20px; width: 100%; height: 48px; border: 0; border-radius: 999px; background: #fff; color: #06070f; font: inherit; font-size: 16px; font-weight: 700; }
@media (min-width: 701px) { .mh-sheet { align-items: center; } .mh-sheet-box { border-radius: 22px; border-bottom: 1px solid var(--line-strong); padding-bottom: 24px; } }
/* On a phone the install entry is a visible button, not small footer text. */
@media (max-width: 700px) { .mh-footer { justify-content: center; text-align: center; } .mh-footer [data-install] { order: -1; flex: 1 0 100%; height: 46px; margin-bottom: 8px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .06); color: #fff; font-size: 15px; font-weight: 600; } }

/* ===== Catalog / results ===== */
.mh-catalog-layout { padding: clamp(20px, 2.6vw, 36px) var(--mh-gutter) 0; }
.mh-results { min-width: 0; min-height: calc(100svh - var(--mh-head-height) - 80px); padding: 0 0 48px; }
.mh-result-heading { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 18px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.mh-result-heading h1 { font-size: clamp(30px, 3.4vw, 52px); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.mh-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); }
.mh-kicker::before { content: ""; width: 22px; height: 1px; background: var(--accent); }
.mh-result-heading .mh-number { padding-bottom: 8px; }
.mh-intro { flex: 1 0 100%; max-width: 60ch; color: var(--muted-2); font-size: 14.5px; line-height: 1.7; }
.mh-result-heading .mh-browse-region { padding-bottom: 8px; }
.mh-library-controls {
  position: sticky; top: var(--mh-head-height); z-index: 8; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 16px;
  margin: 0 calc(0px - var(--mh-gutter)) 24px; padding: 12px var(--mh-gutter);
  background: rgba(5, 7, 15, .72); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); border-bottom: 1px solid var(--line);
}
.mh-library-controls .mh-library-views { grid-column: 1; grid-row: 1; margin: 0; }
.mh-library-controls .mh-library-filters { grid-column: 2; grid-row: 1; margin: 0; justify-content: flex-end; }
.mh-library-controls .mh-regions, .mh-library-controls .mh-people { grid-column: 1 / -1; margin: 0; }
.mh-library-controls .mh-regions { margin-top: 2px; }
.mh-result-heading .mh-number { white-space: nowrap; font-size: 13px; }
.mh-query, .mh-status { color: var(--muted); font-size: 14px; }
.mh-query { margin-bottom: 16px; overflow-wrap: anywhere; font-size: 15px; color: var(--muted-2); }
.mh-status:not(:empty) { margin-top: 18px; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
.mh-result-list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px 16px; }
.mh-more-matches { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(129, 140, 248, .35); background: rgba(129, 140, 248, .1); color: #d6dcff; font-size: 13px; transition: background .2s, border-color .2s; }
.mh-more-matches:hover { background: rgba(129, 140, 248, .22); border-color: rgba(129, 140, 248, .7); }
.mh-search-summary { display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; margin: 0 0 18px; }
.mh-search-summary .mh-query { margin: 0; }
.mh-library-views { display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 0 0 16px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.mh-library-views a { padding: 7px 14px; border-radius: 999px; color: var(--muted-2); font-size: 14px; transition: color .2s, background .2s; }
.mh-library-views a:hover { color: #fff; }
.mh-library-views a[aria-current="page"] { color: #06070f; font-weight: 650; background: #fff; }
.mh-regions { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; }
.mh-regions a { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--muted-2); transition: color .2s, border-color .2s, background .2s; }
.mh-regions a:hover { color: #fff; border-color: var(--line-strong); background: var(--surface-2); }
.mh-regions a[aria-current="page"] { color: #fff; border-color: rgba(103, 232, 249, .6); background: rgba(103, 232, 249, .12); }
.mh-people { display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: center; margin: -4px 0 18px; }
.mh-people div { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; }
.mh-person-role { font-family: var(--mono); color: var(--muted); font-size: 11px; letter-spacing: .14em; padding-right: 6px; }
.mh-people a { padding: 5px 9px; font-size: 14px; color: var(--muted-2); border-radius: 8px; transition: color .2s, background .2s; }
.mh-people a:hover, .mh-people a[aria-current="page"] { color: #fff; background: rgba(129, 140, 248, .18); }
.mh-library-controls .mh-regions { margin-bottom: 14px; }
.mh-library-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; }
.mh-library-field { position: relative; display: inline-flex; color: var(--text); }
.mh-library-field select, .mh-library-pager select { appearance: none; font-size: 14px; color: inherit; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; min-height: 38px; cursor: pointer; transition: border-color .2s, background .2s; }
.mh-library-field select:hover, .mh-library-pager select:hover { background: var(--surface-2); border-color: rgba(129, 140, 248, .6); }
.mh-library-field select { width: 124px; padding: 5px 30px 5px 12px; text-overflow: ellipsis; }
.mh-library-field select option, .mh-library-pager select option { background: var(--surface-solid); color: var(--text); }
.mh-library-field .mh-icon { position: absolute; pointer-events: none; top: 50%; right: 11px; width: 11px; height: 11px; transform: translateY(-50%) rotate(90deg); color: var(--muted); }
.mh-library-reset, .mh-library-retry { display: inline-flex; align-items: center; min-height: 36px; padding: 3px 8px; color: var(--accent); font-size: 13px; border: 0; background: none; }
.mh-library-reset:hover, .mh-library-retry:hover { text-decoration: underline; }
.mh-library-pager { display: flex; justify-content: center; align-items: center; gap: 10px; margin-block: 34px 6px; font-size: 14px; color: var(--muted-2); }
.mh-library-pager a, .mh-library-pager span[aria-disabled] { display: inline-flex; padding: 7px 14px; min-height: 38px; align-items: center; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); transition: color .2s, border-color .2s, background .2s; }
.mh-library-pager a:hover { color: #fff; border-color: rgba(129, 140, 248, .7); background: rgba(129, 140, 248, .15); }
.mh-library-pager [aria-disabled] { color: var(--muted); border-color: var(--line); opacity: .6; }
.mh-library-pager select { appearance: auto; padding: 4px 6px 4px 10px; border-radius: 999px; }
.mh-page-total { font-family: var(--mono); color: var(--muted); font-size: 12px; letter-spacing: .04em; }
.mh-program-list { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 26px 16px; }
.mh-program-list .mh-card .mh-still { aspect-ratio: 2/3; }
.mh-program-list .mh-card strong { font-size: clamp(14px, 1.1vw, 16px); }
.mh-results > section + section, .mh-taiwan section + section { margin-top: clamp(28px, 4vw, 52px); }
.mh-shuffle { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: #fff; font-size: 13px; font-weight: 600; transition: background .2s, border-color .2s, transform .25s var(--ease); }
.mh-shuffle .mh-icon { width: 15px; height: 15px; color: var(--accent); }
.mh-shuffle:hover { background: var(--surface-2); border-color: rgba(129, 140, 248, .7); transform: translateY(-1px); }
.mh-shuffle:disabled { opacity: .5; cursor: default; transform: none; }
.mh-section-heading .mh-shuffle + a, .mh-section-heading .mh-count + a { margin-left: 0; }
.mh-random .mh-section-heading a { margin-left: 0; }
.mh-taiwan .mh-section-heading { margin-bottom: 16px; }
.mh-taiwan .mh-section-heading h2 { font-size: clamp(20px, 1.8vw, 26px); }
.mh-film-grid.mh-track.mh-taiwan-grid { grid-auto-columns: minmax(240px, calc((100% - 4 * 14px) / 5)); gap: 14px; }
.mh-taiwan-grid .mh-card strong { font-size: clamp(14px, 1.1vw, 16px); }

/* ===== Tablet ===== */
@media (max-width: 1100px) {
  .mh-film-grid, .mh-result-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mh-film-grid.mh-track { grid-auto-columns: minmax(240px, calc((100% - 2 * 14px) / 3)); }
}
@media (max-width: 900px) and (min-width: 701px) {
  .mh-nav a { padding-inline: 7px; font-size: 13px; }
  .mh-search { flex-basis: 200px; }
  .mh-feature { min-height: 520px; }
  .mh-feature-copy { max-width: 72%; }
  .mh-features { display: none; }
  .mh-result-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ===== Phone ===== */
@media (max-width: 700px) {
  /* Installed to the home screen the page runs under the status bar, so the header keeps clear of it. */
  .mh-page { --mh-safe-top: env(safe-area-inset-top, 0px); --mh-head-height: calc(104px + var(--mh-safe-top)); --mh-gutter: 16px; --mh-hero-height: clamp(560px, 128vw, 720px); }
  .mh-top { flex-wrap: wrap; align-content: flex-start; height: auto; min-height: var(--mh-head-height); gap: 10px 12px; padding: calc(10px + var(--mh-safe-top)) var(--mh-gutter) 8px; }
  .mh-top-solid, .mh-top { background: rgba(5, 7, 15, .82); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); border-bottom-color: var(--line); }
  .mh-wordmark img { width: clamp(100px, 26vw, 130px); }
  .mh-search { order: 2; flex: 1; margin: 0; height: 36px; padding: 0 5px 0 12px; gap: 6px; }
  .mh-search:focus-within { flex-basis: auto; }
  .mh-search input { width: 40px; font-size: 14px; }
  .mh-search button { height: 26px; width: 26px; }
  .mh-search:not(:focus-within) input:placeholder-shown + button { display: none; }
  .mh-nav { order: 3; flex: 1 0 100%; gap: 4px; margin: 0 calc(0px - var(--mh-gutter)); padding: 0 var(--mh-gutter); overflow-x: auto; scrollbar-width: none; }
  .mh-nav::-webkit-scrollbar { display: none; }
  .mh-nav a { flex: 0 0 auto; padding: 6px 10px; font-size: 13px; }
  .mh-nav a[aria-current="page"]::after { left: 10px; right: 10px; bottom: 0; }
  .mh-preview-channels { padding-top: calc(var(--mh-head-height) + 6px); }
  .mh-feature { height: auto; min-height: var(--mh-hero-height); max-height: none; }
  .mh-backdrop { object-position: var(--mh-mobile-position, 83%) 42% !important; animation: none; }
  .mh-hero-shade { background: linear-gradient(0deg, var(--canvas) 0%, rgba(5, 7, 15, .85) 22%, rgba(5, 7, 15, .3) 52%, rgba(5, 7, 15, .15) 100%), linear-gradient(180deg, rgba(5, 7, 15, .9) 0%, transparent 32%); }
  .mh-feature-content { height: auto; min-height: var(--mh-hero-height); padding: calc(var(--mh-head-height) + 20px) var(--mh-gutter) 56px; }
  .mh-feature-copy { max-width: 100%; }
  .mh-week { font-size: 10px; letter-spacing: .22em; }
  .mh-feature h1 { font-size: clamp(46px, 14vw, 72px); margin-top: 12px; }
  .mh-original { font-size: 11px; letter-spacing: .28em; }
  .mh-film-meta { font-size: 13px; margin-top: 12px; }
  .mh-blurb { font-size: 13px; line-height: 1.65; }
  .mh-feature-actions { gap: 10px; margin-top: 20px; }
  .mh-page .mh-play { height: 46px; padding: 0 20px; font-size: 15px; gap: 6px; }
  .mh-secondary { height: 46px; padding: 0 16px; font-size: 14px; }
  .mh-features { right: var(--mh-gutter); bottom: 18px; gap: 8px; }
  .mh-dot { width: 14px; height: 3px; }
  .mh-features button[aria-pressed="true"] .mh-dot { width: 40px; }
  .mh-features button[aria-pressed="true"] .mh-dot-label { display: none; }
  .mh-poster-card { right: var(--mh-gutter); top: calc(var(--mh-head-height) + 18px); width: 96px; transform: none; border-radius: 10px; }
  .mh-module { margin-top: 24px; }
  .mh-module-head { flex-wrap: wrap; gap: 8px 10px; }
  .mh-module-head h2 { font-size: 19px; }
  .mh-module-tabs { order: 3; flex: 1 0 100%; margin: 0; }
  .mh-row { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(150px, 44%); overflow-x: auto; padding: 4px var(--mh-gutter) 8px; margin: -4px calc(0px - var(--mh-gutter)) 0; scroll-snap-type: x proximity; scrollbar-width: none; }
  .mh-row::-webkit-scrollbar { display: none; }
  .mh-row-posters { grid-auto-columns: minmax(130px, 36%); }
  .mh-rank-panel ol { min-height: 0; }
  .mh-backdrop-blur { filter: blur(28px) saturate(1.3) brightness(.5); }
  .mh-hero-rank { margin: 6px 0 0; }
  .mh-shelf { margin-top: -24px; padding-bottom: 14px; }
  .mh-section-heading { margin-bottom: 10px; gap: 10px; }
  .mh-section-heading h2 { font-size: 20px; }
  .mh-count { display: none; }
  .mh-section-heading a { font-size: 12px; }
  .mh-film-grid.mh-track { grid-auto-columns: minmax(200px, 62%); gap: 10px; padding: 6px var(--mh-gutter) 10px; }
  .mh-mark { min-width: 34px; padding: 5px 7px 6px; }
  .mh-mark-num { font-size: 16px; }
  .mh-track .mh-card strong { font-size: 15px; bottom: 26px; left: 12px; }
  .mh-track .mh-card small { bottom: 11px; left: 12px; font-size: 11px; }
  .mh-card:hover { transform: none; }
  .mh-card strong { font-size: 14px; padding: 7px 1px 0; }
  .mh-card small { font-size: 11px; }
  .mh-catalog-layout { padding: 14px var(--mh-gutter) 0; }
  .mh-results { padding-bottom: 32px; min-height: calc(100svh - 170px); }
  .mh-result-heading h1 { font-size: 30px; }
  .mh-result-heading { padding-bottom: 14px; margin-bottom: 16px; }
  .mh-library-controls { grid-template-columns: 1fr; margin-bottom: 18px; padding: 10px var(--mh-gutter); }
  .mh-library-controls .mh-library-filters { grid-column: 1; grid-row: auto; justify-content: flex-start; }
  .mh-library-controls .mh-library-views { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; scrollbar-width: none; }
  .mh-library-controls .mh-library-views::-webkit-scrollbar { display: none; }
  .mh-library-controls .mh-library-views a { white-space: nowrap; }
  .mh-result-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
  .mh-people { display: grid; margin-bottom: 12px; }
  .mh-people a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 40px; padding: 4px 6px; font-size: 13px; }
  .mh-library-views a { padding: 6px 11px; font-size: 13px; }
  .mh-library-filters { gap: 6px; margin-bottom: 16px; }
  .mh-library-field select { width: 96px; font-size: 13px; padding-left: 9px; }
  .mh-library-pager { gap: 6px; flex-wrap: wrap; }
  .mh-library-pager a, .mh-library-pager span[aria-disabled] { padding-inline: 10px; }
  .mh-regions { gap: 5px; margin-bottom: 16px; }
  .mh-regions a { padding-inline: 12px; min-height: 34px; font-size: 13px; }
  .mh-program-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mh-program-list .mh-card strong { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .mh-backdrop { animation: none; } }

.mh-browse-region + .mh-browse-region { margin-left: 14px; }

/* 继续观看: a slim strip of small cards */
.mh-module.cw { margin-top: clamp(18px, 2vw, 26px); }
.cw-strip { display: flex; align-items: center; gap: 16px; padding: 12px 14px 12px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.cw-title { flex: none; position: relative; padding-left: 14px; font-size: 15px; font-weight: 700; white-space: nowrap; }
.cw-title::before { content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 3px; border-radius: 3px; background: var(--gradient); }
.cw-list { display: flex; gap: 10px; min-width: 0; flex: 1; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.cw-list::-webkit-scrollbar { display: none; }
.cw-item { position: relative; flex: 0 0 auto; width: clamp(220px, 21vw, 280px); scroll-snap-align: start; }
.cw-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 12px; padding: 8px 34px 8px 8px; border-radius: 12px; border: 1px solid transparent; background: rgba(255, 255, 255, .04); transition: background .2s, border-color .2s; }
.cw-card:hover { background: rgba(255, 255, 255, .09); border-color: var(--line-strong); }
.cw-thumb { display: block; width: 44px; aspect-ratio: 2/3; border-radius: 7px; overflow: hidden; background: var(--surface-solid); }
.cw-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cw-text { display: grid; gap: 3px; min-width: 0; }
.cw-text strong { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-text small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-text small.cw-fresh { color: #fcd34d; }
.cw-bar { display: block; height: 3px; margin-top: 4px; border-radius: 3px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.cw-bar b { display: block; height: 100%; border-radius: 3px; background: var(--gradient); }
.cw-forget { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; opacity: 0; transition: opacity .2s, color .2s, background .2s; }
.cw-item:hover .cw-forget, .cw-forget:focus-visible { opacity: 1; }
.cw-forget:hover { color: #fff; background: rgba(255, 255, 255, .12); }
@media (hover: none) { .cw-forget { opacity: .7; } }
@media (max-width: 720px) {
  .cw-strip { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; }
  .cw-item { width: min(78vw, 260px); }
}

/* Phones: long rows scroll sideways in one line and fade at the edge to show there is more. */
@media (max-width: 700px) {
  .mh-nav, .mh-people div { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 30px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 30px), transparent); padding-right: 26px; }
  .mh-library-views { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-radius: 999px; max-width: 100%; }
  .mh-library-views a { flex: none; white-space: nowrap; }
  .mh-people { display: grid; gap: 2px; margin-bottom: 10px; }
  .mh-people div { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .mh-people a, .mh-person-role { flex: none; white-space: nowrap; }
  .mh-library-views::-webkit-scrollbar, .mh-people div::-webkit-scrollbar { display: none; }
  .mh-library-controls { row-gap: 8px; }
  .mh-module-head { flex-wrap: wrap; row-gap: 8px; }
  .mh-module-tabs { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; }
  .mh-module-tabs::-webkit-scrollbar { display: none; }
  .mh-module-tabs button { flex: none; }
}
@media (max-width: 1400px) { .mh-lists-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .mh-lists { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .mh-lists { gap: 10px; }
  .mh-list { min-height: 0; padding: 12px; align-items: flex-start; flex-direction: column; gap: 10px; border-radius: 14px; }
  .mh-list-fan { position: static; transform: none; order: -1; height: 84px; }
  .mh-list-fan img { width: 56px; }
  .mh-list-fan img + img { margin-left: -18px; }
  .mh-list-text { max-width: 100%; gap: 2px; }
  .mh-list-text small { font-size: 10px; letter-spacing: .18em; }
  .mh-list-text b { font-size: 16px; }
  .mh-list-text span { font-size: 12px; }
  .mh-list-text em { margin-top: 2px; font-size: 11px; }
}

/* 地区 menu in the top navigation: opens on hover or keyboard focus, no script. */
.mh-nav-group { position: relative; flex: none; }
.mh-nav-more { display: inline-flex; align-items: center; gap: 6px; padding: 8px clamp(6px, .62vw, 14px); font: inherit; font-size: clamp(13px, 1.05vw, 15px); color: var(--muted-2); white-space: nowrap; border: 0; border-radius: 8px; background: none; transition: color .2s, background .2s; }
.mh-nav-more i { width: 6px; height: 6px; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.mh-nav-more[data-current] { color: #fff; font-weight: 650; }
.mh-nav-group:hover .mh-nav-more, .mh-nav-group:focus-within .mh-nav-more { color: #fff; background: rgba(255, 255, 255, .06); }
.mh-nav-menu { position: absolute; left: 0; top: 100%; z-index: 30; display: none; min-width: 132px; padding: 6px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(10, 14, 28, .96); box-shadow: 0 24px 50px -20px #000; }
.mh-nav-group:hover .mh-nav-menu, .mh-nav-group:focus-within .mh-nav-menu { display: grid; }
.mh-nav .mh-nav-menu a { display: block; padding: 9px 12px; font-size: 14px; }
.mh-nav .mh-nav-menu a[aria-current="page"]::after { display: none; }
@media (min-width: 701px) { .mh-nav, .my-masthead .mh-nav { overflow: visible; } }
@media (max-width: 700px) {
  .mh-nav-group, .mh-nav-menu { display: contents; }
  .mh-nav-more { display: none; }
  .mh-nav .mh-nav-menu a { display: inline; padding: 6px 10px; font-size: 13px; }
  .mh-nav .mh-nav-menu a[aria-current="page"]::after { display: block; }
}

/* Search panel: hot searches when the box is empty, matching works while typing. */
.mh-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40; max-height: min(70vh, 520px); overflow-y: auto; padding: 8px; border-radius: 16px; border: 1px solid var(--line-strong); background: rgba(10, 14, 28, .97); box-shadow: 0 30px 60px -24px #000; }
.mh-suggest-head { margin: 4px 8px 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--muted); }
.mh-suggest-hot { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mh-suggest a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; color: var(--text); font-size: 14px; min-width: 0; }
.mh-suggest a:hover, .mh-suggest a[data-active] { background: rgba(255, 255, 255, .08); }
.mh-suggest-hot a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-suggest-hot i { flex: none; width: 18px; font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: center; }
.mh-suggest-hot a:nth-child(-n+3) i { color: var(--accent); }
.mh-suggest-thumb { flex: none; width: 34px; aspect-ratio: 2/3; border-radius: 5px; overflow: hidden; background: #141a2c; }
.mh-suggest-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mh-suggest-text { display: grid; gap: 2px; min-width: 0; }
.mh-suggest-text b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-suggest-text small { color: var(--muted); font-size: 12px; }
.mh-suggest .mh-suggest-all { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; color: var(--accent); font-size: 13px; }
.mh-suggest-all .mh-icon { width: 12px; height: 12px; }
/* The search box is narrow on a phone; its panel takes the width of the screen. */
@media (max-width: 700px) { .mh-suggest { left: auto; right: 0; width: calc(100vw - 2 * var(--mh-gutter)); } }

/* Loading placeholders: the footprint of a poster card, with a slow sheen. */
.mh-skel { display: grid; gap: 8px; align-content: start; }
.mh-skel i, .mh-skel b, .mh-skel s { display: block; border-radius: 8px; background: linear-gradient(100deg, rgba(255, 255, 255, .05) 30%, rgba(255, 255, 255, .11) 50%, rgba(255, 255, 255, .05) 70%) 0 0 / 300% 100%; animation: mh-sheen 1.6s linear infinite; }
.mh-skel i { aspect-ratio: 2/3; border-radius: 12px; }
.mh-skel b { height: 14px; width: 72%; }
.mh-skel s { height: 11px; width: 46%; }
@keyframes mh-sheen { to { background-position: -300% 0; } }
@media (prefers-reduced-motion: reduce) { .mh-skel i, .mh-skel b, .mh-skel s { animation: none; } }
.mh-list-fan:empty::before { content: ""; display: block; width: 150px; height: 114px; border-radius: 10px; background: rgba(255, 255, 255, .05); }
@media (max-width: 700px) { .mh-list-fan:empty::before { width: 100px; height: 84px; } }

/* 猜你喜欢's reason and the schedule's weekday tabs. */
.mh-module-note { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mh-week-tabs button { font-family: var(--mono); }
@media (max-width: 700px) { .mh-schedule-grid { grid-auto-columns: minmax(130px, 36%); } .mh-module-note { flex: 1 1 100%; order: 3; } }
/* Between phone and wide desktop the search box keeps its width on focus, so it never covers the navigation. */
@media (min-width: 701px) and (max-width: 1100px) { .mh-search:focus-within { flex-basis: 300px; } .mh-nav { flex: none; } }

/* ---- Home feature: a darker, grained screen behind a poster that stands like a lit print. ---- */
.mh-backdrop-blur { filter: blur(56px) saturate(1.25) brightness(.42); transform: scale(1.4); }
.mh-feature::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.mh-hero-shade { box-shadow: inset 0 0 220px 40px rgba(0, 0, 0, .65); }
.mh-poster-card { border-radius: 14px; border-color: rgba(255, 255, 255, .16);
  box-shadow: 0 60px 120px -30px rgba(0, 0, 0, 1), 0 30px 60px -30px rgba(0, 0, 0, .9), 0 0 80px -20px rgba(129, 140, 248, .35);
  -webkit-box-reflect: below 10px linear-gradient(transparent 72%, rgba(255, 255, 255, .16)); }
.mh-feature .mh-poster-card { transition: transform .6s var(--ease); }
.mh-feature:hover .mh-poster-card { transform: translateY(-57%) perspective(1200px) rotateY(-6deg); }

/* ---- Cards: on hover the poster lifts, a play button and the score come up. ---- */
.mh-card-hover { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .25s;
  background: linear-gradient(180deg, rgba(5, 7, 15, .05) 30%, rgba(5, 7, 15, .75) 100%); pointer-events: none; }
.mh-card-hover i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #06070f; transform: scale(.8); transition: transform .3s var(--ease); box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .8); }
.mh-card-hover i svg { width: 20px; height: 20px; margin-left: 3px; }
.mh-card-hover b { position: absolute; left: 10px; bottom: 10px; padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fcd34d; font-family: var(--mono); font-size: 12px; font-weight: 700; }
.mh-card:hover { transform: translateY(-4px); }
.mh-card:hover .mh-card-hover, .mh-card:focus-visible .mh-card-hover { opacity: 1; }
.mh-card:hover .mh-card-hover i { transform: scale(1); }
@media (hover: none) { .mh-card-hover { display: none; } .mh-card:hover { transform: none; } }
/* A long title would run to three lines at full size. */
.mh-feature h1.mh-title-long { font-size: clamp(40px, 5.2vw, 84px); line-height: 1.05; }

/* 片单 on the home page: one slim row that slides sideways instead of a block of large tiles. */
.mh-lists-strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 4px 2px 6px; margin: -4px -2px -6px; }
.mh-lists-strip::-webkit-scrollbar { display: none; }
.mh-lists-strip .mh-list { flex: 0 0 clamp(230px, 21vw, 290px); min-height: 92px; padding: 12px 16px; scroll-snap-align: start; flex-direction: row; align-items: center; gap: 0; }
.mh-lists-strip .mh-list-text { max-width: 58%; gap: 2px; }
.mh-lists-strip .mh-list-text b { font-size: 17px; }
.mh-lists-strip .mh-list-text span { font-size: 12px; }
.mh-lists-strip .mh-list-text em { margin-top: 4px; font-size: 11px; }
.mh-lists-strip .mh-list-fan { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); height: auto; order: 0; }
.mh-lists-strip .mh-list-fan img { width: 48px; border-radius: 6px; }
.mh-lists-strip .mh-list-fan img + img { margin-left: -22px; }
@media (max-width: 720px) {
  .mh-lists-strip .mh-list { flex-basis: 220px; min-height: 84px; }
}
.mh-lists-strip .mh-list-fan img:nth-child(n+3) { display: none; }
.mh-lists-strip .mh-list-text { max-width: 62%; }
.mh-lists-strip .mh-list-text b { overflow: hidden; text-overflow: ellipsis; }

/* ---- Glass, after Apple's materials: translucent capsules that blur what lies behind them,
   a hairline edge and a faint light along the top. ---- */
:root { --glass: rgba(255, 255, 255, .1); --glass-strong: rgba(255, 255, 255, .16); --glass-edge: rgba(255, 255, 255, .22); --glass-light: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -1px 0 rgba(255, 255, 255, .04); --glass-blur: blur(24px) saturate(180%); }
.mh-history-link { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 999px; color: var(--muted-2); background: var(--glass); border: .5px solid var(--glass-edge); box-shadow: var(--glass-light); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); transition: color .2s, background .2s; }
.mh-history-link:hover { color: #fff; background: var(--glass-strong); }
.mh-history-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.mh-top .mh-history-link { margin-left: auto; margin-right: 10px; }
/* Hero buttons: a lit white capsule for play, frosted glass for the second. */
.mh-page .mh-play { border-radius: 999px; background: linear-gradient(180deg, #fff, #e8e9f2); box-shadow: inset 0 1px 0 #fff, 0 10px 30px -10px rgba(0, 0, 0, .7); }
.mh-page .mh-play:hover { box-shadow: inset 0 1px 0 #fff, 0 16px 44px -12px rgba(255, 255, 255, .45); }
.mh-secondary { background: var(--glass); border: .5px solid var(--glass-edge); box-shadow: var(--glass-light); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.mh-secondary:hover { background: var(--glass-strong); border-color: rgba(255, 255, 255, .35); }
.mh-hero-rank { color: #fff; background: rgba(255, 255, 255, .14); border: .5px solid var(--glass-edge); box-shadow: var(--glass-light); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); font-weight: 600; }
/* Section tabs: a frosted track with a raised glass capsule for the one chosen. */
.mh-module-tabs { background: rgba(255, 255, 255, .06); border: .5px solid rgba(255, 255, 255, .12); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); padding: 3px; }
.mh-module-tabs button { padding: 5px 13px; transition: color .2s, background .25s, box-shadow .25s; }
.mh-module-tabs button[aria-current] { color: #fff; font-weight: 600; background: rgba(255, 255, 255, .2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 2px 8px -2px rgba(0, 0, 0, .5); }
/* Ranking marks: a small glass capsule in the poster's corner; the top three glow faintly. */
.mh-mark { left: 8px; top: 8px; display: inline-flex; align-items: baseline; gap: 4px; min-width: 0; padding: 4px 9px 4px 8px; border-radius: 999px;
  background: rgba(10, 12, 22, .42); border: .5px solid rgba(255, 255, 255, .28); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 4px 14px -4px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%); color: #fff; }
.mh-mark-cap { font-size: 8.5px; letter-spacing: .14em; margin-right: 0; color: rgba(255, 255, 255, .7); }
.mh-mark-num { margin-top: 0; font-size: 15px; font-weight: 750; }
.mh-mark[data-lead] { background: rgba(255, 255, 255, .78); color: #0b0d18; border-color: rgba(255, 255, 255, .9); box-shadow: inset 0 1px 0 #fff, 0 6px 18px -6px rgba(165, 180, 252, .9); }
.mh-mark[data-lead] .mh-mark-cap { color: rgba(11, 13, 24, .6); }
.mh-card-hover b { background: rgba(10, 12, 22, .45); border: .5px solid rgba(255, 255, 255, .25); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.mh-card-hover i { background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 #fff, 0 10px 30px -8px rgba(0, 0, 0, .8); }
@media (max-width: 720px) { .mh-top .mh-history-link { order: 1; margin: 0 0 0 auto; width: 34px; height: 34px; } }
/* The 历史 link sits after the search, in the search's own quiet style, not as a separate glass button. */
.mh-top .mh-history-link { margin: 0 0 0 8px; width: 40px; height: 40px; background: transparent; border: 1px solid var(--line-strong); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--muted); }
.mh-top .mh-history-link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
@media (max-width: 720px) { .mh-top .mh-history-link { order: 2; margin: 0; width: 36px; height: 36px; } }

.cw-thumb { display: grid; place-items: center; }
.cw-thumb > b { font-size: 18px; font-weight: 700; color: var(--muted-2); background: linear-gradient(160deg, rgba(129, 140, 248, .28), rgba(103, 232, 249, .12)); width: 100%; height: 100%; display: grid; place-items: center; }

/* ---- 搜不到时 ---- */
.mh-search-hints { max-width: 560px; margin: 6px 0 28px; padding: 18px 20px; border-radius: 18px; background: var(--glass); border: .5px solid var(--glass-edge); box-shadow: var(--glass-light); }
.mh-search-hints ul { margin: 0 0 4px; padding-left: 18px; color: var(--muted-2); font-size: 14px; line-height: 1.9; }
.mh-search-hints p { margin: 14px 0 8px; font-size: 12px; letter-spacing: .12em; color: var(--muted); }
.mh-search-hints .mh-suggest-hot a { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 10px; color: var(--text, #fff); font-size: 14px; text-decoration: none; }
.mh-search-hints .mh-suggest-hot a:hover { background: rgba(255, 255, 255, .06); }

/* ---- 首页主推：滑动切换 ---- */
@keyframes mh-swipe-left { from { opacity: .2; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes mh-swipe-right { from { opacity: .2; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
[data-swiped="left"] > * { animation: mh-swipe-left .35s cubic-bezier(.2, .8, .2, 1); }
[data-swiped="right"] > * { animation: mh-swipe-right .35s cubic-bezier(.2, .8, .2, 1); }
@media (prefers-reduced-motion: reduce) { [data-swiped] > * { animation: none; } }

/* ---- 本周上新 ---- */
.mh-fresh-more { margin-left: auto; padding: 6px 14px; border-radius: 999px; font: inherit; font-size: 13px; color: var(--muted-2); background: var(--glass); border: .5px solid var(--glass-edge); box-shadow: var(--glass-light); cursor: pointer; }
.mh-fresh-more:hover { color: #fff; }

/* ---- 卡片收藏 ---- */
.mh-card[data-fav] { -webkit-touch-callout: none; }
.mh-card-fav { position: absolute; top: 8px; right: 8px; z-index: 3; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; color: #fff; background: rgba(8, 10, 20, .5); border: .5px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transform: scale(.85); transition: opacity .2s, transform .25s var(--ease), background .2s; cursor: pointer; }
.mh-card-fav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.mh-card:hover .mh-card-fav, .mh-card:focus-visible .mh-card-fav, .mh-card[data-faved] .mh-card-fav { opacity: 1; transform: none; }
.mh-card-fav:hover { background: rgba(8, 10, 20, .72); }
.mh-card[data-faved] .mh-card-fav { color: #fda4af; }
.mh-card[data-faved] .mh-card-fav svg { fill: currentColor; }
@media (hover: none) { .mh-card:not([data-faved]) .mh-card-fav { display: none; } .mh-card[data-faved] .mh-card-fav { width: 26px; height: 26px; pointer-events: none; } .mh-card[data-faved] .mh-card-fav svg { width: 13px; height: 13px; } }
.mh-toast { position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); z-index: 150; transform: translateX(-50%); margin: 0; padding: 10px 18px; border-radius: 999px; font-size: 14px; color: #fff; background: rgba(12, 14, 24, .84); border: .5px solid rgba(255, 255, 255, .18); box-shadow: 0 14px 40px rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); white-space: nowrap; animation: mh-rise .28s cubic-bezier(.2, .8, .2, 1); }
.mh-toast[hidden] { display: none; }
@keyframes mh-rise { from { opacity: 0; transform: translate(-50%, 8px); } }
