@charset "utf-8";
/* ═══════════════════════════════════════════════
   MEIJU 美剧站 — "Prestige Noir" Design System
   Dark cinematic · Gold accent · Editorial layout
   ═══════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ── */
:root {
  --bg-base: #09090b;
  --bg-card: #131318;
  --bg-elevated: #1a1a22;
  --bg-glass: rgba(255,255,255,0.03);
  --bg-glass-hover: rgba(255,255,255,0.06);

  --accent: #c9a84c;
  --accent-dim: rgba(201,168,76,0.12);
  --accent-glow: rgba(201,168,76,0.25);
  --link: #6ea8fe;

  --text-1: #f0f0f2;
  --text-2: #a0a0b0;
  --text-3: #606070;
  --text-muted: #44445a;

  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);

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

  --shadow-card: 0 2px 20px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 30px var(--accent-glow);

  --header-h: 64px;
  --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; align-items: center;
  background: rgba(9,9,11,0.75);
  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%; gap: 20px;
}
.mj-header__brand {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.mj-header__brand img { height: 36px; width: 36px; border-radius: 8px; }
.mj-header__brand-name {
  font-family: var(--font-display);
  font-size: 26px; letter-spacing: 2px;
  color: var(--accent);
  line-height: 1;
}
@media (max-width: 480px) {
  .mj-header__brand-name { font-size: 20px; }
}

/* Nav */
.mj-nav { display: flex; align-items: 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: 768px) { .mj-nav { display: none; } }

/* Search */
.mj-search {
  position: relative;
  max-width: 320px; min-width: 180px; flex: 1;
}
.mj-search__input {
  width: 100%; height: 40px;
  padding: 0 44px 0 16px;
  font-size: 14px;
  color: var(--text-1);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all 0.25s ease;
}
.mj-search__input::placeholder { color: var(--text-3); }
.mj-search__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.mj-search__btn {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  transition: all 0.2s;
}
.mj-search__btn:hover { color: var(--accent); background: var(--accent-dim); }

/* ═══════════════ MOBILE NAV ═══════════════ */
.mj-mob-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 100; height: 60px;
  background: rgba(9,9,11,0.9);
  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; }

/* ═══════════════ HERO / SLIDE ═══════════════ */
body#index > main { padding-top: calc(var(--header-h) + 24px); }

.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(0.3);
  transform: scale(1.2);
  transition: background-image 0.8s ease;
}
.mj-hero__gradient {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(9,9,11,0.3) 0%,
    rgba(9,9,11,0.6) 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: #09090b;
}
.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; }
}

/* ═══════════════ 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;
}
@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(0,0,0,0.7) 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;
  padding: 2px 8px;
  font-size: 11px; font-weight: 600;
  color: var(--bg-base);
  background: var(--accent);
  border-radius: 4px;
  z-index: 2;
}


.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: #09090b; 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;
}

/* 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) + 30px);
}
.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);
}
@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) + 20px);
}
.mj-player__wrap {
  position: relative;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}
.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; }

/* 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__item {
  padding: 5px 14px;
  font-size: 13px;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  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; }
}

/* ═══════════════ 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); }

@media (max-width: 768px) {
  .mj-footer { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0)); }
}

/* ═══════════════ BREADCRUMB ═══════════════ */
.mj-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-3);
  margin-bottom: 20px; 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(40px, 6vw, 72px); 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: #1a1200; }

.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-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(0,0,0,0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-hover);
  color: var(--accent); 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__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__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); }

.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: #1a1200; border-color: var(--accent); }
.mj-news-pagi .disabled { opacity: 0.35; cursor: not-allowed; }

/* ── Detail ── */
.mj-news-detail {
  max-width: 820px; margin: 0 auto; padding: 32px 20px 80px;
}
.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); }

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