@charset "utf-8";
/* ═══════════════════════════════════════════════
   RIJU 日娱站 — "Sakura Rouge Light" Design System
   Warm white · Sakura accent · Soft glow
   ═══════════════════════════════════════════════ */

/* ── Web Fonts (self-hosted, was Google Fonts) ── */
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/bebas-neue-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('../fonts/outfit-var.woff2') format('woff2');
}

/* ── CSS Variables ── */
:root {
  --bg-base: #ffffff;
  --bg-card: #ffffff;
  --bg-elevated: #fff0f4;
  --bg-glass: rgba(255,255,255,0.72);
  --bg-glass-hover: rgba(243,166,184,0.12);

  --accent: #f3a6b8;
  --accent-strong: #d94f70;
  --accent-dim: rgba(243,166,184,0.14);
  --accent-glow: rgba(243,166,184,0.32);
  --link: #f5b6c5;

  --text-1: #33272c;
  --text-2: #6f5962;
  --text-3: #9a7d88;
  --text-muted: #b59aa5;

  --border: rgba(217,79,112,0.14);
  --border-hover: rgba(217,79,112,0.3);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-card: 0 14px 34px rgba(217,79,112,0.12), 0 2px 14px rgba(51,39,44,0.08);
  --shadow-glow: 0 0 30px var(--accent-glow);

  --header-top-h: 64px;
  --header-search-h: 92px;
  --header-h: calc(var(--header-top-h) + var(--header-search-h));
  --max-w: 1400px;

  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-body: 'Outfit', 'PingFang SC', 'Noto Sans SC', -apple-system, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-body); background: var(--bg-base); color: var(--text-1); line-height: 1.6; min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol, li { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; outline: none; border: none; }

/* ── Utility ── */
.container { width: 100%; margin: 0 auto; }
.row { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(16px, 4vw, 60px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-overflow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden { display: none !important; }
.visible { display: block !important; }

/* responsive visibility */
@media (max-width: 768px) { .hide-m { display: none !important; } }
@media (min-width: 769px) { .show-m { display: none !important; } }

/* ── Noise Texture Overlay ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
  opacity: 0.4;
}

/* ═══════════════ HEADER ═══════════════ */
.mj-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; flex-direction: column; align-items: stretch;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}
.mj-header .row {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; height: var(--header-top-h); gap: 20px;
  position: relative;
}
.mj-header__brand {
  display: flex; align-items: center;
  flex-shrink: 0;
  overflow: hidden; /* 配合下方 logo 染色的位移法，裁掉移出的原图，杜绝残影 */
}
.mj-header__brand img { height: 36px; width: 36px; }
/* hanju3 五站（play/tv/movie/zongyi/dongman）共用的 OSS 黑色 logo（近纯黑透明图）
   在暗色 header 下几乎不可见：染成主题强调色 --accent，与站名同色。
   手法为 drop-shadow 位移染色——先压纯黑、生成 --accent 色投影，再把原图整体移出容器
   （配合 brand 的 overflow:hidden）只留投影落位。属性选择器仅命中这张 OSS logo，
   其他模板站若使用本地 logo 则不受影响。 */
.mj-header__brand img[src*="oss-cn-guangzhou"] {
  filter: brightness(0) saturate(100%) drop-shadow(200px 0 0 var(--accent));
  transform: translateX(-200px);
}
.mj-header__brand-name {
  /* 站名为中文，Bebas Neue/Impact 无中文字形、实际走后备字体；
     用纯拉丁的 --font-display 会在 Bebas 异步加载完成时触发行盒重算、
     line-height:1 下文字上移（FOUT 抖动）。改用含中文的 --font-body，
     中文走本地 PingFang SC / Noto Sans SC，从首帧即最终字体、无偏移。 */
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 26px; letter-spacing: 2px;
  color: var(--accent);
  line-height: 1;
  margin: 0;
}
@media (max-width: 480px) {
  .mj-header__brand-name { font-size: 20px; }
}

/* Nav */
.mj-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.mj-nav__item {
  padding: 6px 14px;
  font-size: 14px; font-weight: 500;
  color: var(--text-2);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
}
.mj-nav__item:hover { color: var(--text-1); background: var(--bg-glass-hover); }
.mj-nav__item.active {
  color: var(--accent);
  background: var(--accent-dim);
}
.mj-nav__item.active::after {
  content: '';
  position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 2px; border-radius: 1px;
  background: var(--accent);
}
@media (max-width: 1180px) and (min-width: 769px) {
  .mj-nav__item {
    padding-right: 9px;
    padding-left: 9px;
    font-size: 13px;
  }
  .mj-header__brand-name {
    font-size: 22px;
  }
}
@media (max-width: 768px) { .mj-nav { display: none; } }

.mj-mobile-header-actions,
.mj-mobile-play-link { display: none; }
@media (max-width: 768px) {
  .mj-mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }
  .mj-mobile-header-actions > a {
    height: 28px;
    box-sizing: border-box;
    justify-content: center;
  }
  .mj-mobile-play-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    color: #ffffff;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }
  .mj-mobile-play-link svg { width: 15px; height: 15px; }
  .mj-mobile-play-link svg polygon { fill: currentColor; }
  .mj-mobile-play-link:active { color: #ffffff; background: var(--accent-strong); border-color: var(--accent-strong); }
}
@media (max-width: 360px) {
  .mj-mobile-play-link { padding-right: 8px; padding-left: 8px; }
}

/* 移动端回门户站入口（承接站右上角，低调）。桌面端隐藏——由居中导航的「日娱快讯」承担。 */
.mj-portal-link { display: none; }
@media (max-width: 768px) {
  .mj-portal-link {
    display: inline-flex; align-items: center; gap: 4px;
    flex-shrink: 0;
    padding: 5px 10px;
    font-size: 12px; font-weight: 500;
    color: var(--text-3);
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: color 0.2s ease, border-color 0.2s ease;
  }
  .mj-portal-link svg { width: 15px; height: 15px; }
  .mj-portal-link:active { color: var(--text-1); border-color: var(--border-hover); }
}

/* Search */
.mj-header__search-row {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: var(--header-search-h);
  padding: 10px clamp(16px, 4vw, 60px) 22px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.mj-search {
  position: relative;
  width: min(880px, 100%);
  max-width: 880px;
  flex: none;
}
/* 播放页/详情页：面包屑置于内容区顶部（Player / hero 上方） */
.mj-page-crumb {
  margin: 0 0 14px;
  font-size: 13px;
}
.mj-search__input {
  width: 100%; height: 60px;
  padding: 0 68px 0 26px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: var(--text-1);
  background: rgba(255,255,255,0.96);
  border: 2px solid var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 0 4px var(--accent-dim), 0 18px 48px rgba(217,79,112,0.12), 0 0 32px rgba(243,166,184,0.2);
  transition: all 0.25s ease;
}
.mj-search__input::placeholder { color: var(--text-3); font-weight: 400; }
.mj-search__input:hover {
  background: rgba(255,255,255,1);
  box-shadow: 0 0 0 5px var(--accent-dim), 0 20px 56px rgba(217,79,112,0.14), 0 0 42px rgba(243,166,184,0.28);
}
.mj-search__input:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow:
    0 0 0 6px rgba(243,166,184,0.32),
    0 0 0 12px rgba(243,166,184,0.14),
    0 22px 64px rgba(217,79,112,0.16),
    0 0 70px rgba(243,166,184,0.42),
    inset 0 0 22px rgba(243,166,184,0.08);
}
.mj-search__btn {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #151316;
  background: var(--accent);
  box-shadow: 0 4px 14px rgba(243,166,184,0.4);
  transition: all 0.2s;
}
.mj-search__btn:hover { background: var(--accent-strong); color: #fff; transform: translateY(-50%) scale(1.05); box-shadow: 0 6px 20px rgba(217,79,112,0.45); }
.mj-search__btn svg { width: 22px; height: 22px; }
.mj-mobile-rank-entry { display: none; }

@media (max-width: 768px) {
  :root {
    --header-top-h: 56px;
    --header-search-h: 122px;
  }
  .mj-header__brand img { width: 32px; height: 32px; }
  .mj-header__search-row {
    padding: 8px 16px 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .mj-search {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: 0 1 auto;
  }
  .mj-page-crumb { font-size: 12px; margin-bottom: 10px; }
  .mj-search__input {
    height: 50px;
    padding: 0 58px 0 20px;
    font-size: 15px;
  }
  .mj-search__btn { width: 40px; height: 40px; }
  .mj-search__btn svg { width: 20px; height: 20px; }
  .mj-mobile-rank-entry {
    display: flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    gap: 8px;
    color: var(--text-2);
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(217,79,112,0.08);
  }
  .mj-mobile-rank-entry__icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--accent);
    color: #33272c;
    font-size: 11px;
    font-weight: 700;
  }
  .mj-mobile-rank-entry__text {
    flex-shrink: 0;
    color: var(--text-1);
    font-size: 13px;
    font-weight: 700;
  }
  .mj-mobile-rank-entry__meta {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-3);
    font-size: 12px;
  }
  .mj-mobile-rank-entry__arrow {
    flex-shrink: 0;
    color: var(--accent-strong);
    font-size: 18px;
    line-height: 1;
  }
}

/* ═══════════════ MOBILE NAV ═══════════════ */
.mj-mob-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 100; height: 60px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
@media (max-width: 768px) { .mj-mob-nav { display: flex; } }
.mj-mob-nav__item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px; color: var(--text-3);
  font-size: 10px; font-weight: 500;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.mj-mob-nav__item.active { color: var(--accent); }
.mj-mob-nav__item svg { width: 22px; height: 22px; }
.mj-mob-nav__item[data-channel="play"] svg polygon {
  fill: currentColor;
  stroke: currentColor;
}

/* ═══════════════ HERO / SLIDE ═══════════════ */
body#index > main { padding-top: 0; }

.mj-hero {
  position: relative;
  padding-top: var(--header-h);
  margin-bottom: 40px;
  overflow: hidden;
}
.mj-hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: blur(40px) brightness(1.04) saturate(0.92);
  opacity: 0.55;
  transform: scale(1.2);
  transition: background-image 0.8s ease;
}
.mj-hero__gradient {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.35) 0%,
    rgba(255,255,255,0.72) 50%,
    var(--bg-base) 100%
  );
}
.mj-hero__content {
  position: relative; z-index: 2;
  padding: 60px 0 40px;
}
.mj-hero__slide {
  display: flex; align-items: center; gap: 40px;
}
.mj-hero__poster {
  flex-shrink: 0;
  width: 220px; height: 310px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}
.mj-hero__poster img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.mj-hero__poster:hover img { transform: scale(1.05); }
.mj-hero__info { flex: 1; max-width: 600px; }
.mj-hero__tags {
  display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap;
}
.mj-hero__tag {
  padding: 3px 10px;
  font-size: 12px; font-weight: 500;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 20px;
  opacity: 0.8;
}
.mj-hero__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: 3px;
  line-height: 1.1;
  margin-bottom: 12px;
  color: var(--text-1);
}
.mj-hero__desc {
  font-size: 14px; line-height: 1.7;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 20px;
}
.mj-hero__actions { display: flex; gap: 12px; }
.mj-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px;
  font-size: 14px; font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.25s var(--ease-out);
}
.mj-btn--primary {
  background: var(--accent);
  color: #151316;
}
.mj-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.mj-btn--ghost {
  background: var(--bg-glass-hover);
  color: var(--text-1);
  border: 1px solid var(--border-hover);
}
.mj-btn--ghost:hover {
  background: var(--bg-elevated);
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 768px) {
  .mj-hero__content { padding: 30px 0 20px; }
  .mj-hero__slide { flex-direction: column; text-align: center; }
  .mj-hero__poster { width: 160px; height: 225px; }
  .mj-hero__info { max-width: 100%; }
  .mj-hero__actions { justify-content: center; }
}

/* ═══════════════ FEATURE CAROUSEL ═══════════════ */
.mj-feature-carousel {
  padding: calc(var(--header-h) + 30px) 0 34px;
  overflow: hidden;
}
.mj-feature-carousel__viewport {
  position: relative;
  outline: none;
}
.mj-feature-carousel__track {
  position: relative;
  height: clamp(240px, 24vw, 330px);
  overflow: hidden;
}
.mj-feature-carousel__slide {
  position: absolute;
  top: 0;
  left: 23%;
  width: 54%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.94);
  transition: left 0.55s var(--ease-out), opacity 0.4s ease, transform 0.55s var(--ease-out), filter 0.4s ease;
}
.mj-feature-carousel__slide[data-state="current"] {
  left: 23%;
  z-index: 3;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  box-shadow: 0 16px 40px rgba(51,39,44,0.12);
}
.mj-feature-carousel__slide[data-state="prev"] {
  left: -33%;
  z-index: 1;
  opacity: 0.48;
  pointer-events: auto;
  filter: brightness(0.6) saturate(0.75);
}
.mj-feature-carousel__slide[data-state="next"] {
  left: 79%;
  z-index: 1;
  opacity: 0.48;
  pointer-events: auto;
  filter: brightness(0.6) saturate(0.75);
}
.mj-feature-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mj-feature-carousel__shade {
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(to bottom, transparent, rgba(30,20,24,0.68));
}
.mj-feature-carousel__caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 18px;
  overflow: hidden;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.mj-feature-carousel__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 22px;
  margin-top: 10px;
}
.mj-feature-carousel__dot {
  width: 18px;
  height: 3px;
  padding: 0;
  border-radius: 0;
  background: rgba(243,166,184,0.28);
  transition: width 0.25s ease, background 0.25s ease;
}
.mj-feature-carousel__dot[aria-selected="true"] {
  width: 30px;
  background: var(--accent);
}
.mj-feature-carousel__arrow {
  position: absolute;
  top: calc(50% - 16px);
  z-index: 5;
  width: 56px;
  height: 72px;
  padding: 0;
  border: 0;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%) scale(0.9);
  background: transparent;
  color: var(--accent);
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.mj-feature-carousel__arrow--prev { left: 2%; }
.mj-feature-carousel__arrow--next { right: 2%; }
.mj-feature-carousel__arrow span {
  display: block;
  width: 24px;
  height: 24px;
  font-size: 0;
}
.mj-feature-carousel__arrow--prev span {
  border-bottom: 5px solid var(--accent);
  border-left: 5px solid var(--accent);
  transform: rotate(45deg);
}
.mj-feature-carousel__arrow--next span {
  border-top: 5px solid var(--accent);
  border-right: 5px solid var(--accent);
  transform: rotate(45deg);
}
.mj-feature-carousel__viewport:hover .mj-feature-carousel__arrow,
.mj-feature-carousel__viewport:focus-within .mj-feature-carousel__arrow {
  opacity: 0.92;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}
.mj-feature-carousel__arrow:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.12) !important;
}
.mj-feature-carousel__arrow:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .mj-feature-carousel {
    padding: calc(var(--header-h) + 18px) 0 24px;
  }
  .mj-feature-carousel__track {
    height: clamp(190px, 52vw, 240px);
  }
  .mj-feature-carousel__slide {
    left: 6%;
    width: 88%;
  }
  .mj-feature-carousel__slide[data-state="current"] { left: 6%; }
  .mj-feature-carousel__slide[data-state="prev"] { left: -84%; }
  .mj-feature-carousel__slide[data-state="next"] { left: 96%; }
  .mj-feature-carousel__caption {
    left: 16px;
    right: 16px;
    bottom: 12px;
    font-size: 15px;
  }
  .mj-feature-carousel__arrow { display: none; }
}

/* 首页没有轮播时，内容仍需避开固定头部。 */
body#index main > .container:first-child {
  padding-top: calc(var(--header-h) + 30px);
}
.mj-channel-filter + .mj-feature-carousel {
  padding-top: 10px;
}
.mj-feature-carousel + .container {
  padding-top: 0;
}

/* ═══════════════ SECTION ═══════════════ */
.mj-section { margin-bottom: 48px; }
.mj-section__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.mj-section__title {
  font-family: var(--font-body);
  font-size: 20px; font-weight: 700; letter-spacing: 0.5px;
  color: var(--text-1);
  display: flex; align-items: center; gap: 10px;
}
.mj-section__title::before {
  content: '';
  display: block; width: 4px; height: 24px;
  background: var(--accent);
  border-radius: 2px;
}
.mj-section__sub {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 400;
  margin-left: 10px;
  letter-spacing: 0;
}
.mj-section__more {
  font-size: 13px; font-weight: 500;
  color: var(--text-3);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all 0.2s;
}
.mj-section__more:hover {
  color: var(--accent); border-color: var(--accent);
}

/* ═══════════════ CARD GRID ═══════════════ */
.mj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}
.mj-filter-empty {
  grid-column: 1 / -1;
  min-height: 220px;
  padding: 64px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}
.mj-filter-empty__contact {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.mj-filter-empty__contact:hover { color: var(--accent); }
.mj-filter-empty__contact:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

body.mj-content-request-open { overflow: hidden; }
.mj-content-request[hidden] { display: none; }
.mj-content-request {
  position: fixed;
  inset: 0;
  z-index: 1000;
  padding: 20px;
  display: grid;
  place-items: center;
}
.mj-content-request__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 25, 28, 0.44);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.mj-content-request__dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(51, 39, 44, 0.22);
}
.mj-content-request__dialog:focus { outline: none; }
.mj-content-request__header {
  min-height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.mj-content-request__header h2 {
  margin: 0;
  color: var(--text-1);
  font-size: 19px;
  font-weight: 700;
}
.mj-content-request__close {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  background: transparent;
  border: 0;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.mj-content-request__close:hover { color: var(--text-1); }
.mj-content-request__close:focus-visible,
.mj-content-request__cancel:focus-visible,
.mj-content-request__submit:focus-visible,
.mj-content-request__captcha button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.mj-content-request__form { padding: 20px; }
.mj-content-request__summary {
  margin-bottom: 18px;
  padding: 11px 14px;
  display: grid;
  gap: 3px;
  background: var(--accent-dim);
  border-left: 3px solid var(--accent);
}
.mj-content-request__summary span {
  color: var(--text-3);
  font-size: 12px;
}
.mj-content-request__summary strong {
  color: var(--text-1);
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.mj-content-request__field {
  margin-top: 16px;
  display: grid;
  gap: 7px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
}
.mj-content-request__field > span em {
  margin-left: 4px;
  color: var(--text-3);
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
}
.mj-content-request__field textarea,
.mj-content-request__field input {
  width: 100%;
  min-width: 0;
  color: var(--text-1);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  font-weight: 400;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.mj-content-request__field textarea {
  min-height: 92px;
  padding: 10px 12px;
  line-height: 1.6;
  resize: vertical;
}
.mj-content-request__field input { height: 42px; padding: 0 12px; }
.mj-content-request__field textarea:focus,
.mj-content-request__field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
  outline: none;
}
.mj-content-request__captcha {
  display: grid;
  grid-template-columns: 116px minmax(96px, 1fr) auto;
  align-items: center;
  gap: 10px;
}
.mj-content-request__captcha img {
  width: 116px;
  height: 42px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
}
.mj-content-request__captcha button {
  padding: 0;
  color: var(--accent-strong);
  background: transparent;
  border: 0;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}
.mj-content-request__error {
  margin: 14px 0 0;
  color: #b8324a;
  font-size: 13px;
  line-height: 1.5;
}
.mj-content-request__actions {
  margin: 20px -20px -20px;
  padding: 14px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--border);
}
.mj-content-request__cancel,
.mj-content-request__submit {
  min-width: 92px;
  height: 40px;
  padding: 0 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.mj-content-request__cancel {
  color: var(--text-2);
  background: #fff;
  border: 1px solid var(--border);
}
.mj-content-request__submit {
  color: #241b1f;
  background: var(--accent);
  border: 1px solid var(--accent);
}
.mj-content-request__submit:hover { background: var(--accent-strong); color: #fff; }
.mj-content-request__submit:disabled { opacity: 0.55; cursor: wait; }

@media (max-width: 520px) {
  .mj-content-request { padding: 12px; }
  .mj-content-request__dialog { max-height: calc(100vh - 24px); }
  .mj-content-request__header { min-height: 56px; padding: 0 16px; }
  .mj-content-request__form { padding: 16px; }
  .mj-content-request__captcha {
    grid-template-columns: 116px minmax(80px, 1fr);
  }
  .mj-content-request__captcha button { grid-column: 1 / -1; justify-self: start; }
  .mj-content-request__actions { margin: 18px -16px -16px; padding: 12px 16px; }
  .mj-content-request__cancel,
  .mj-content-request__submit { flex: 1; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .mj-content-request__field textarea,
  .mj-content-request__field input { transition: none; }
}
@media (max-width: 768px) {
  .mj-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media (max-width: 480px) {
  .mj-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ═══════════════ CARD ═══════════════ */
.mj-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.35s var(--ease-out);
}
.mj-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}
.mj-card__poster {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--bg-elevated);
}
.mj-card__poster img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.mj-card:hover .mj-card__poster img { transform: scale(1.08); }

.mj-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(51,39,44,0.58) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.mj-card:hover .mj-card__overlay { opacity: 1; }

.mj-card__badge {
  position: absolute; top: 8px; left: 8px;
  max-width: calc(100% - 68px);
  padding: 2px 8px;
  font-size: 11px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--bg-base);
  background: var(--accent);
  border-radius: 4px;
  z-index: 2;
}

.mj-card__category {
  position: absolute; top: 8px; right: 8px;
  padding: 3px 8px;
  font-size: 11px; font-weight: 700; line-height: 1.35;
  letter-spacing: 0;
  color: var(--accent-strong);
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(243,166,184,0.48);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(51,39,44,0.12);
  z-index: 3;
}


.mj-card__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.8);
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: all 0.3s var(--ease-spring);
  z-index: 2;
}
.mj-card:hover .mj-card__play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.mj-card__play svg { width: 20px; height: 20px; color: #151316; margin-left: 2px; }

.mj-card__info { padding: 10px 12px 12px; }
.mj-card__title {
  font-size: 14px; font-weight: 600;
  color: var(--text-1);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  margin-bottom: 6px;
  transition: color 0.2s;
}
.mj-card:hover .mj-card__title { color: var(--accent); }
.mj-card__bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px; min-height: 18px;
}
.mj-card__rating {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 12px; font-weight: 600; color: #f59e0b;
}
.mj-card__rating svg { width: 12px; height: 12px; }
.mj-card__rating--douban { color: #2ea44f; }
.mj-card__rating--douban svg { color: #2ea44f; }
.mj-card__time {
  font-size: 11px; color: var(--text-3);
  white-space: nowrap;
}

/* NEW tag on poster (top-right) */
.mj-card__new-tag {
  position: absolute; top: 8px; right: 8px;
  padding: 2px 6px;
  font-size: 9px; font-weight: 700; letter-spacing: 1px;
  color: #fff; background: #ef4444;
  border-radius: 3px;
  z-index: 3;
  line-height: 1.4;
}

/* 播放页标题处「最新更新：日期」——纯文字，避免与可点击的线路按钮混淆 */
.mj-update-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 500;
  color: var(--text-2);
  line-height: 1.5;
}
.mj-update-tag::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Legacy new dot — keep for compat */
.mj-card__new {
  position: absolute; top: 12px; left: 12px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239,68,68,0.5);
  z-index: 3;
}

/* ═══════════════ DETAIL PAGE ═══════════════ */
.mj-detail {
  padding-top: calc(var(--header-h) + 10px);
}
.mj-detail__hero {
  display: flex; gap: 32px;
  margin-bottom: 32px;
}
.mj-detail__poster {
  flex-shrink: 0; width: 240px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}
.mj-detail__poster img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.mj-detail__info { flex: 1; }
.mj-detail__title {
  font-family: var(--font-display);
  font-size: 36px; letter-spacing: 2px; margin-bottom: 12px;
}
.mj-detail__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.mj-detail__tag {
  padding: 4px 12px;
  font-size: 12px; color: var(--text-2);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all 0.2s;
}
.mj-detail__tag:hover { color: var(--accent); border-color: var(--accent); }
.mj-detail__meta {
  font-size: 13px; color: var(--text-2); line-height: 2;
  margin-bottom: 16px;
}
.mj-detail__desc {
  font-size: 14px; line-height: 1.8;
  color: var(--text-2);
}
.mj-detail__desc * {
  color: inherit !important;
}
.mj-detail__desc h1,
.mj-detail__desc h2,
.mj-detail__desc h3,
.mj-detail__desc h4,
.mj-detail__desc h5,
.mj-detail__desc h6,
.mj-detail__desc strong,
.mj-detail__desc b {
  color: var(--text-1) !important;
}
.mj-detail__desc a {
  color: var(--link) !important;
}
@media (max-width: 768px) {
  .mj-detail__hero { flex-direction: column; align-items: center; text-align: center; }
  .mj-detail__poster { width: 180px; }
  .mj-detail__tags { justify-content: center; }
  .mj-detail__title { font-size: 28px; }
}

/* ═══════════════ PLAYER PAGE ═══════════════ */
.mj-player {
  padding-top: calc(var(--header-h) + 10px);
}
.mj-player__wrap {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.mj-player__wrap #PlayerVideoArea { width: 100%; }
.mj-player__wrap .MacPlayer {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.mj-player__wrap .MacPlayer table {
  position: absolute; top: 0; left: 0;
  width: 100% !important; height: 100% !important;
  table-layout: fixed; border-collapse: collapse;
}
.mj-player__wrap .MacPlayer td#playleft {
  width: 100% !important; height: 100% !important;
  padding: 0; vertical-align: top;
}
.mj-player__wrap .MacPlayer td#playright { display: none; }
.mj-player__wrap .MacPlayer iframe,
.mj-player__wrap .MacPlayer video,
.mj-player__wrap .MacPlayer embed,
.mj-player__wrap .MacPlayer object {
  position: absolute; top: 0; left: 0;
  width: 100% !important; height: 100% !important;
  border: 0;
}

/* Episode list */
.mj-player__episodes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  margin-bottom: 24px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}
.mj-player__episodes::-webkit-scrollbar { width: 4px; }
.mj-player__episodes::-webkit-scrollbar-track { background: transparent; }
.mj-player__episodes::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 2px; }
.mj-player__ep {
  padding: 8px 4px;
  font-size: 13px;
  text-align: center;
  color: var(--text-2);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mj-player__ep:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }
.mj-player__ep.active {
  color: var(--bg-base);
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}

/* Route tabs */
.mj-routes { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.mj-routes--inline { margin-bottom: 0; }
.mj-route {
  padding: 8px 20px;
  font-size: 14px; font-weight: 500;
  color: var(--text-2);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.2s;
  cursor: pointer;
}
.mj-route:hover { color: var(--text-1); border-color: var(--border-hover); }
.mj-route.active {
  color: var(--accent); border-color: var(--accent);
  background: var(--accent-dim);
}
.mj-route__ping {
  display: inline-block; margin-left: 6px;
  font-size: 10px; font-weight: 600; letter-spacing: 0;
  padding: 1px 5px; border-radius: 3px;
  vertical-align: middle;
}
.mj-route__ping--loading { color: var(--text-3); }
.mj-route__ping--fast { background: rgba(46,213,115,0.15); color: #2ed573; }
.mj-route__ping--mid { background: rgba(255,165,2,0.15); color: #ffa502; }
.mj-route__ping--slow { background: rgba(255,71,87,0.15); color: #ff4757; }
.mj-route__ping--warn {
  color: #a16207;
  background: rgba(234, 179, 8, 0.22);
  box-shadow: 0 0 0 1px rgba(202, 138, 4, 0.18);
}
.mj-route__ping--blocked {
  color: #fff;
  background: linear-gradient(135deg, #ff4757 0%, #c62839 100%);
  box-shadow: 0 0 0 1px rgba(255, 71, 87, 0.35);
}

/* Episode panels */
.mj-ep-panel { display: none; }
.mj-ep-panel.active { display: block; }
.mj-episodes-section .mj-section__head {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}

/* ═══════════════ SEARCH / SHOW PAGE ═══════════════ */
.mj-page {
  padding-top: calc(var(--header-h) + 30px);
  min-height: calc(100vh - 80px);
}
.mj-page__title {
  font-family: var(--font-display);
  font-size: 24px; letter-spacing: 2px;
  margin-bottom: 24px;
}
.mj-page__title em {
  font-style: normal;
  color: var(--accent);
}

/* Screen/filter */
.mj-filter {
  display: flex; flex-wrap: wrap; gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.mj-filter--screen {
  display: block;
}
.mj-filter__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.mj-filter__row + .mj-filter__row {
  margin-top: 12px;
}
.mj-filter__label {
  flex: 0 0 32px;
  padding-top: 6px;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.4;
}
.mj-filter__options {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.mj-filter__item {
  padding: 5px 14px;
  font-size: 13px;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  flex-shrink: 0;
  white-space: nowrap;
  transition: all 0.2s;
}
.mj-filter__item:hover { color: var(--text-1); border-color: var(--border-hover); }
.mj-filter__item.active {
  color: var(--accent); border-color: var(--accent);
  background: var(--accent-dim);
}

/* ═══════════════ SEARCH PAGE ═══════════════ */
.mj-search-page { margin: 32px 0 40px; }
.mj-search-page__form {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 8px 16px;
  transition: border-color 0.2s;
}
.mj-search-page__form:focus-within { border-color: var(--accent); }
.mj-search-page__input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text-1); font-size: 16px; padding: 10px 0;
  font-family: var(--font-body);
}
.mj-search-page__input::placeholder { color: var(--text-3); }
.mj-search-page__btn {
  background: var(--accent); border: none; border-radius: var(--radius-md);
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  color: var(--bg-base); cursor: pointer; transition: opacity 0.2s; flex-shrink: 0;
}
.mj-search-page__btn:hover { opacity: 0.85; }

.mj-search-section { margin-bottom: 32px; }
.mj-search-section__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.mj-search-section__title {
  font-size: 15px; font-weight: 600; color: var(--text-1);
  font-family: var(--font-body);
}
.mj-search-section__clear {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--text-3); cursor: pointer; transition: color 0.2s;
}
.mj-search-section__clear:hover { color: var(--text-2); }

.mj-search-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.mj-search-tags__item {
  padding: 6px 16px; font-size: 13px; color: var(--text-2);
  background: var(--bg-glass); border: 1px solid var(--border);
  border-radius: 20px; transition: all 0.2s; white-space: nowrap;
}
.mj-search-tags__item:hover {
  color: var(--accent); border-color: var(--accent); background: var(--accent-dim);
}

/* Hot search ranking list */
.mj-hot-list { display: flex; flex-direction: column; }
.mj-hot-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.mj-hot-item:last-child { border-bottom: none; }
.mj-hot-item:hover { background: var(--bg-glass-hover); }
.mj-hot-item__rank {
  width: 24px; flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
  text-align: center;
  color: var(--text-3);
}
.mj-hot-item:nth-child(1) .mj-hot-item__rank { color: #ff4757; }
.mj-hot-item:nth-child(2) .mj-hot-item__rank { color: #ff7f50; }
.mj-hot-item:nth-child(3) .mj-hot-item__rank { color: #ffa502; }
.mj-hot-item__text {
  flex: 1; font-size: 14px; color: var(--text-1);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mj-hot-item:nth-child(-n+3) .mj-hot-item__text { font-weight: 600; }
.mj-hot-item__badge {
  font-size: 10px; padding: 2px 6px;
  border-radius: 3px; font-weight: 600;
  flex-shrink: 0; letter-spacing: 0.5px;
}
.mj-hot-item__badge--hot { background: rgba(255,71,87,0.15); color: #ff4757; }
.mj-hot-item__badge--new { background: rgba(255,165,2,0.15); color: #ffa502; }
.mj-hot-item__badge--rec { background: rgba(46,213,115,0.15); color: #2ed573; }

@media (max-width: 768px) {
  .mj-search-page { margin: 0 0 24px; }
  .mj-search-page__form { padding: 4px 12px; }
  .mj-search-page__input { font-size: 14px; padding: 6px 0; }
  .mj-search-page__btn { width: 36px; height: 36px; }
  .mj-hot-item { padding: 10px 12px; gap: 10px; }
  .mj-hot-item__text { font-size: 13px; }
}

/* ═══════════════ RANK PAGE ═══════════════ */
.mj-rank-page {
  padding-top: calc(var(--header-h) + 30px);
  min-height: calc(100vh - 80px);
}
.mj-rank-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.mj-rank-hero__title {
  margin: 0;
  color: var(--text-1);
  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
}
.mj-rank-hero__title::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 24px;
  margin-right: 10px;
  border-radius: 3px;
  background: var(--accent);
  vertical-align: -4px;
}
.mj-rank-hero__sub {
  margin-top: 8px;
  color: var(--text-3);
  font-size: 14px;
}
.mj-rank-page__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.mj-rank-board {
  min-width: 0;
  padding: 20px 22px 18px;
  border-left: 1px solid var(--border);
}
.mj-rank-board:first-child {
  border-left: 0;
}
.mj-rank-board__head {
  min-height: 58px;
  padding-bottom: 14px;
}
.mj-rank-board__title {
  margin: 0;
  color: var(--text-1);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0;
}
.mj-rank-board__sub {
  display: block;
  margin-top: 4px;
  color: var(--text-3);
  font-size: 12px;
  white-space: nowrap;
}
.mj-rank-board__list {
  display: flex;
  flex-direction: column;
}
.mj-rank-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border-bottom: 1px dashed var(--border);
  color: var(--text-1);
  transition: color 0.2s ease, background 0.2s ease;
}
.mj-rank-row:hover {
  color: var(--accent-strong);
  background: rgba(243,166,184,0.06);
}
.mj-rank-row__no {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  background: #eeeeef;
  color: var(--text-2);
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}
.mj-rank-row:nth-child(1) .mj-rank-row__no {
  background: #ff4757;
  color: #fff;
}
.mj-rank-row:nth-child(2) .mj-rank-row__no {
  background: #ff7a1a;
  color: #fff;
}
.mj-rank-row:nth-child(3) .mj-rank-row__no {
  background: #ffb000;
  color: #fff;
}
.mj-rank-row__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
}
.mj-rank-row__tag {
  display: none;
}

@media (max-width: 1180px) {
  .mj-rank-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mj-rank-board:nth-child(odd) {
    border-left: 0;
  }
  .mj-rank-board:nth-child(n+3) {
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 640px) {
  .mj-rank-page {
    padding-top: calc(var(--header-h) + 18px);
    padding-bottom: 78px;
  }
  .mj-rank-hero {
    margin-bottom: 20px;
    align-items: flex-start;
  }
  .mj-rank-hero__title {
    font-size: 24px;
  }
  .mj-rank-page__grid {
    grid-template-columns: 1fr;
    border-bottom: 0;
  }
  .mj-rank-board,
  .mj-rank-board:nth-child(odd) {
    padding: 18px 0;
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .mj-rank-board:first-child {
    border-top: 0;
  }
  .mj-rank-board__head {
    min-height: 0;
  }
  .mj-rank-row {
    min-height: 42px;
  }
}

/* ═══════════════ PAGINATION ═══════════════ */
.mj-pagination {
  display: flex; justify-content: center;
  gap: 6px; margin: 40px 0;
}
.mj-pagination a, .mj-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px;
  padding: 0 10px;
  font-size: 13px;
  color: var(--text-2);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.mj-pagination a:hover { color: var(--accent); border-color: var(--accent); }
.mj-pagination .active {
  color: var(--bg-base); background: var(--accent); border-color: var(--accent);
}

/* ═══════════════ FOOTER ═══════════════ */
.mj-footer {
  margin-top: 60px;
  padding: 40px 0 30px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.mj-footer__copy {
  font-size: 13px; color: var(--text-3);
  line-height: 1.8;
}
.mj-footer__links {
  display: flex; justify-content: center; gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.mj-footer__links a {
  font-size: 13px; color: var(--text-3);
  transition: color 0.2s;
}
.mj-footer__links a:hover { color: var(--accent); }

.mj-back-to-top,
.mj-floating-home {
  position: fixed;
  right: 24px;
  z-index: 99;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--accent-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.94);
  color: var(--accent-strong);
  box-shadow: 0 8px 24px rgba(86,47,62,0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  cursor: pointer;
}
.mj-floating-home {
  bottom: 24px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.mj-back-to-top {
  bottom: 74px;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s, color 0.2s, border-color 0.2s;
}
.mj-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.mj-back-to-top:hover,
.mj-floating-home:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.mj-back-to-top svg,
.mj-floating-home svg { width: 22px; height: 22px; }
.mj-back-to-top:focus-visible,
.mj-floating-home:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 768px) {
  .mj-footer { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0)); }
  .mj-back-to-top,
  .mj-floating-home {
    right: 14px;
    width: 38px;
    height: 38px;
  }
  .mj-floating-home { bottom: calc(72px + env(safe-area-inset-bottom, 0)); }
  .mj-back-to-top { bottom: calc(118px + env(safe-area-inset-bottom, 0)); }
  .mj-back-to-top svg,
  .mj-floating-home svg { width: 20px; height: 20px; }
}

/* ═══════════════ BREADCRUMB ═══════════════ */
.mj-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-3);
  margin-bottom: 10px; flex-wrap: wrap;
}
.mj-breadcrumb a { transition: color 0.2s; }
.mj-breadcrumb a:hover { color: var(--accent); }
.mj-breadcrumb svg { width: 14px; height: 14px; opacity: 0.5; flex-shrink: 0; }

/* ═══════════════ ANIMATIONS ═══════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mj-animate { animation: fadeUp 0.6s var(--ease-out) both; }
.mj-animate:nth-child(1) { animation-delay: 0.05s; }
.mj-animate:nth-child(2) { animation-delay: 0.1s; }
.mj-animate:nth-child(3) { animation-delay: 0.15s; }
.mj-animate:nth-child(4) { animation-delay: 0.2s; }
.mj-animate:nth-child(5) { animation-delay: 0.25s; }
.mj-animate:nth-child(6) { animation-delay: 0.3s; }
.mj-animate:nth-child(7) { animation-delay: 0.35s; }
.mj-animate:nth-child(8) { animation-delay: 0.4s; }
.mj-animate:nth-child(9) { animation-delay: 0.45s; }
.mj-animate:nth-child(10) { animation-delay: 0.5s; }
.mj-animate:nth-child(11) { animation-delay: 0.55s; }
.mj-animate:nth-child(12) { animation-delay: 0.6s; }

/* ═══════════════ SCROLLBAR ═══════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ═══════════════ EMBED PLAYER ═══════════════ */
.embed-responsive { position: relative; display: block; overflow: hidden; padding: 0; height: 0; }
.embed-responsive .embed-responsive-item,
.embed-responsive embed,
.embed-responsive iframe,
.embed-responsive object,
.embed-responsive video { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; height: 100%; border: 0; }
.embed-responsive-16by9 { padding-bottom: 56.25%; }

/* ═══════════════ COMPAT: mizhiady JS hooks ═══════════════ */
.mac_hits, .mac_ulog_set, .vod_history, .mac_qrcode { display: none; }
.mizhiady-defer-card-img { width: 100%; height: 100%; object-fit: cover; }
.MacPlayer { position: relative; }

/* ═══════════════ NEWS (资讯) ═══════════════ */
.mj-news-wrap { max-width: var(--max-w); margin: 0 auto; padding: 24px 20px 80px; }
.mj-news-hero {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; padding: 32px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px; flex-wrap: wrap;
}
.mj-news-hero__title {
  font-family: var(--font-display); letter-spacing: 0.04em;
  font-size: clamp(30px, 6vw, 55px); line-height: 0.95;
  color: var(--text-1);
}
.mj-news-hero__title span { color: var(--accent); }
.mj-news-hero__sub {
  color: var(--text-2); font-size: 14px; max-width: 520px;
  line-height: 1.6; margin-top: 10px;
}
.mj-news-tabs {
  display: inline-flex; gap: 4px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 999px; padding: 4px;
}
.mj-news-tabs a {
  padding: 8px 18px; border-radius: 999px; color: var(--text-2);
  font-size: 13px; font-weight: 500; transition: all 0.2s;
  white-space: nowrap;
}
.mj-news-tabs a:hover { color: var(--text-1); background: var(--bg-glass); }
.mj-news-tabs a.active { background: var(--accent); color: #151316; }

.mj-news-category__breadcrumb {
  margin-bottom: 8px;
  font-size: 14px;
}
body#news-category .mj-news-hero--category {
  align-items: center;
  padding: 18px 0 24px;
}
body#news-category .mj-news-hero__title {
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--accent);
}
body#news-category .mj-news-hero__sub { margin-top: 8px; }

.mj-news-section { margin: 48px 0 0; }
.mj-news-section__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 18px;
}
.mj-news-section__title {
  font-family: var(--font-display); font-size: 32px;
  letter-spacing: 0.03em; color: var(--text-1);
}
.mj-news-section__title::before {
  content: ''; display: inline-block; width: 4px; height: 26px;
  background: var(--accent); vertical-align: -4px; margin-right: 12px;
  border-radius: 2px;
}
.mj-news-section__more {
  color: var(--text-3); font-size: 13px; transition: color 0.2s;
}
.mj-news-section__more:hover { color: var(--accent); }

.mj-news-feed__head {
  display: flex; align-items: center; justify-content: center;
  margin: 4px 0 28px;
}
.mj-news-feed__title {
  color: var(--text-1); font-size: 28px; font-weight: 700;
  letter-spacing: 0;
}

.mj-news-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.mj-news-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform 0.25s var(--ease-out), border-color 0.2s, box-shadow 0.25s;
  display: flex; flex-direction: column; height: 100%;
}
.mj-news-card:hover {
  transform: translateY(-4px); border-color: var(--accent-dim);
  box-shadow: var(--shadow-card);
}
.mj-news-card__cover {
  position: relative; aspect-ratio: 16/9; background: var(--bg-elevated);
  overflow: hidden;
}
.mj-news-card__cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s var(--ease-out);
}
.mj-news-card:hover .mj-news-card__cover img { transform: scale(1.05); }
.mj-news-card__cover--empty {
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-family: var(--font-display);
  font-size: 40px; letter-spacing: 0.1em;
}
.mj-news-card__tag {
  position: absolute; top: 10px; left: 10px;
  padding: 4px 10px; background: rgba(255,255,255,0.86);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-hover);
  color: var(--accent-strong); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 999px;
}
.mj-news-card__body {
  padding: 16px 18px 20px; display: flex; flex-direction: column;
  gap: 10px; flex: 1;
}
.mj-news-card__content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mj-news-card__title {
  color: var(--text-1); font-size: 15px; line-height: 1.45;
  font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.mj-news-card:hover .mj-news-card__title { color: var(--accent); }
.mj-news-card__excerpt,
.mj-news-card__topics { display: none; }
.mj-news-card__meta {
  margin-top: auto; color: var(--text-3); font-size: 12px;
  display: flex; align-items: center; gap: 10px;
}
.mj-news-card__meta time { color: var(--text-3); }

body#news-index .mj-news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 24px;
}
body#news-index .mj-news-card {
  border-radius: 6px;
  background: #fbfbfc;
  border-color: #f0edf0;
  box-shadow: 0 6px 18px rgba(42, 31, 38, 0.04);
}
body#news-index .mj-news-card__cover { aspect-ratio: 16 / 9; }
body#news-index .mj-news-card__tag { display: none; }
body#news-index .mj-news-card__body {
  padding: 14px 16px 18px;
  gap: 8px;
}
body#news-index .mj-news-card__title {
  font-size: 18px;
  line-height: 1.35;
  -webkit-line-clamp: 1;
}
body#news-index .mj-news-card__excerpt {
  display: -webkit-box;
  color: #6f696d;
  font-size: 14px;
  line-height: 1.65;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 69px;
}
body#news-index .mj-news-card__topics {
  display: flex;
  gap: 8px;
  overflow: hidden;
  color: #1683db;
  font-size: 13px;
  line-height: 1.4;
}
body#news-index .mj-news-card__topics a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 0 1 auto;
  transition: color 0.2s ease;
}
body#news-index .mj-news-card__topics a:hover { color: var(--text-1); }
body#news-index .mj-news-card__meta { margin-top: 2px; }
body#news-index .mj-news-section__head {
  position: relative;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}
body#news-index .mj-news-section__title {
  font-size: 28px;
  letter-spacing: 0;
}
body#news-index .mj-news-section__title::before { display: none; }
body#news-index .mj-news-section__more {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.mj-news-empty {
  padding: 60px 20px; text-align: center; color: var(--text-3);
  background: var(--bg-card); border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}

.mj-news-pagi {
  display: flex; justify-content: center; align-items: center;
  gap: 6px; margin: 48px 0 0; flex-wrap: wrap;
}
.mj-news-pagi > a, .mj-news-pagi > span {
  min-width: 40px; height: 40px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg-card); color: var(--text-2);
  font-size: 13px; transition: all 0.2s;
}
.mj-news-pagi a:hover { border-color: var(--accent-dim); color: var(--accent); }
.mj-news-pagi .active { background: var(--accent); color: #151316; border-color: var(--accent); }
.mj-news-pagi .disabled { opacity: 0.35; cursor: not-allowed; }
.mj-news-pagi__nav { gap: 4px; }

/* ── Detail ── */
.mj-news-detail-layout {
  width: min(100%, var(--max-w));
  margin: 0 auto;
  padding: 32px 20px 80px;
  display: grid;
  grid-template-columns: minmax(0, 820px) minmax(280px, 360px);
  justify-content: center;
  align-items: start;
  gap: 42px;
}
.mj-news-detail {
  max-width: 820px;
  margin: 0;
  padding: 0;
}
.mj-news-detail__kicker {
  color: var(--accent); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 12px;
}
.mj-news-detail__title {
  font-family: var(--font-display); font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1; color: var(--text-1); letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.mj-news-detail__meta {
  display: flex; align-items: center; gap: 14px;
  color: var(--text-3); font-size: 13px; margin-bottom: 28px;
  padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.mj-news-detail__body {
  color: var(--text-1); line-height: 1.8; font-size: 16px;
}
.mj-news-detail__body p { margin: 0 0 16px; color: var(--text-1); }
.mj-news-detail__body h1,
.mj-news-detail__body h2,
.mj-news-detail__body h3 {
  color: var(--text-1); margin: 28px 0 14px;
  font-family: var(--font-display); letter-spacing: 0.02em;
}
.mj-news-detail__body h2 { font-size: 28px; }
.mj-news-detail__body h3 { font-size: 22px; }
.mj-news-detail__body a { color: var(--link); text-decoration: underline; }
.mj-news-detail__body a:hover { color: var(--accent); }
.mj-news-detail__body img {
  max-width: 100%; height: auto; display: block;
  border-radius: var(--radius-md); margin: 18px auto;
  border: 1px solid var(--border);
}
.mj-news-detail__figure { margin: 24px 0; text-align: center; }
.mj-news-detail__figure img { margin: 0 auto; }
.mj-news-detail__figure figcaption {
  color: var(--text-3); font-size: 13px; line-height: 1.6;
  margin-top: 10px; padding: 0 16px;
}
.mj-news-detail__body blockquote {
  border-left: 3px solid var(--accent); padding: 6px 16px;
  margin: 20px 0; color: var(--text-2); background: var(--bg-glass);
  border-radius: 0 8px 8px 0;
}
.mj-news-detail__body em { color: var(--text-2); font-style: italic; }
.mj-news-detail__body strong { color: var(--text-1); font-weight: 600; }
.mj-news-detail__body .pmc-paywall { all: unset; display: block; }
.mj-news-detail__body .wp-block-embed__wrapper { margin: 20px 0; }
.mj-news-detail__body [data-src] { background: var(--bg-elevated); }

.mj-news-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: grid;
  gap: 30px;
}
.mj-news-watch {
  position: relative;
  min-height: 168px;
  overflow: hidden;
  border-radius: 8px;
  background: #33272c;
  color: #fff;
  isolation: isolate;
}
.mj-news-watch > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.mj-news-watch:hover > img { transform: scale(1.04); opacity: 0.5; }
.mj-news-watch__shade {
  position: absolute;
  inset: 0;
  background: rgba(31, 23, 27, 0.3);
}
.mj-news-watch__content {
  position: relative;
  z-index: 1;
  min-height: 168px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.mj-news-watch__content strong { font-size: 21px; line-height: 1.2; }
.mj-news-watch__content small { margin-top: 7px; font-size: 13px; opacity: 0.88; }
.mj-news-watch__button {
  margin-top: 16px;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #33272c;
  font-size: 14px;
  font-weight: 700;
}
.mj-news-watch__button b { margin-left: 5px; font-size: 18px; line-height: 0; }
.mj-news-recommend__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.mj-news-recommend__head h2 {
  color: var(--text-1);
  font-size: 22px;
  letter-spacing: 0;
}
.mj-news-recommend__refresh {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-strong);
  font-size: 13px;
}
.mj-news-recommend__refresh:hover { color: var(--text-1); }
.mj-news-recommend__refresh span { font-size: 17px; }
.mj-news-recommend__list { border-top: 1px solid var(--border); }
.mj-news-recommend__item {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.mj-news-recommend__item:nth-child(n+6) { display: none; }
.mj-news-recommend__thumb {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 5px;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 11px;
}
.mj-news-recommend__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.mj-news-recommend__item:hover .mj-news-recommend__thumb img { transform: scale(1.04); }
.mj-news-recommend__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}
.mj-news-recommend__text > strong {
  color: var(--text-1);
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mj-news-recommend__item:hover .mj-news-recommend__text > strong { color: var(--accent-strong); }
.mj-news-recommend__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-3);
  font-size: 11px;
}
.mj-news-recommend__meta em { color: var(--accent-strong); font-style: normal; }

/* 让列表/分类/详情页的首屏不被 fixed 顶栏遮挡 */
body#news-index    > main,
body#news-category > main,
body#news-search   > main,
body#news-detail   > main { padding-top: calc(var(--header-h) + 20px); }

/* 相关资讯：与正文同宽、水平居中（覆盖通用 .mj-news-wrap 的 1400px） */
.mj-news-wrap.mj-news-related {
  max-width: 820px;
  margin: 64px auto 0;
  padding: 0 20px 40px;
}

@media (max-width: 768px) {
  .mj-news-hero { padding: 20px 0; flex-direction: column; align-items: stretch; }
  .mj-news-tabs { overflow-x: auto; max-width: 100%; }
  body#news-category .mj-news-hero--category { align-items: stretch; padding: 14px 0 20px; }
  body#news-category .mj-news-hero__title { font-size: 32px; }
  .mj-news-section__title { font-size: 24px; }
  .mj-news-grid { gap: 16px; grid-template-columns: repeat(2, 1fr); }
  .mj-news-card__title { font-size: 13px; -webkit-line-clamp: 3; }
  .mj-news-feed__head { margin: 0 0 20px; }
  .mj-news-feed__title { font-size: 22px; }
  body#news-index .mj-news-grid { gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body#news-index .mj-news-card { border-radius: 8px; box-shadow: none; }
  body#news-index .mj-news-card__body { padding: 12px 12px 14px; gap: 8px; }
  body#news-index .mj-news-card__title { font-size: 13px; -webkit-line-clamp: 3; }
  body#news-index .mj-news-card__excerpt,
  body#news-index .mj-news-card__topics { display: none; }
  body#news-index .mj-news-section__head { align-items: center; justify-content: flex-start; margin-bottom: 18px; }
  body#news-index .mj-news-section__title { font-size: 24px; }
  body#news-index    > main,
  body#news-search   > main,
  body#news-detail   > main { padding-top: calc(var(--header-h) + 12px); }
  body#news-category > main { padding-top: calc(var(--header-search-h) + 12px); }
  .mj-news-pagi {
    flex-wrap: nowrap;
    gap: 3px;
    margin-top: 36px;
  }
  .mj-news-pagi > a,
  .mj-news-pagi > span {
    min-width: 32px;
    height: 36px;
    padding: 0 6px;
    border-radius: 7px;
    font-size: 12px;
    flex: 0 0 auto;
  }
  .mj-news-pagi .mj-news-pagi__nav {
    min-width: 32px;
    padding: 0 8px;
  }
  .mj-news-pagi__nav-text { display: none !important; }
  .mj-news-pagi .mj-news-pagi__arrow {
    min-width: 0;
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 20px;
    line-height: 1;
  }
  .mj-news-pagi .mj-news-pagi__ellipsis {
    min-width: 12px;
    padding: 0;
    border: 0;
    background: transparent;
  }
}

@media (max-width: 1040px) {
  .mj-news-detail-layout {
    grid-template-columns: minmax(0, 820px);
    gap: 42px;
  }
  .mj-news-sidebar {
    position: static;
    width: 100%;
    max-width: 820px;
  }
}

@media (max-width: 768px) {
  .mj-news-detail-layout { padding: 20px 20px 80px; gap: 34px; }
  .mj-news-watch { min-height: 150px; }
  .mj-news-watch__content { min-height: 150px; }
  .mj-news-recommend__item { grid-template-columns: 100px minmax(0, 1fr); }
}

/* ===== 横幅广告位（首页/详情/播放页，渲染见 common.php mac_render_banner_ad） ===== */
.mz-banner-ad{ width:100%; margin:12px 0 20px; }
.mz-banner-ad a{ display:block; line-height:0; }
.mz-banner-ad picture{ display:block; line-height:0; }
.mz-banner-ad img{ width:100%; height:auto; display:block; border-radius:12px; }
