:root {
  color-scheme: light;
  --bg: #f6f8fc;
  --card: #ffffff;
  --text: #172033;
  --muted: #667085;
  --line: #e5eaf3;
  --primary: #6d5dfc;
  --primary-dark: #4d3fe1;
  --accent: #12b8a6;
  --drama: #d946ef;
  --shadow: 0 18px 50px rgba(37, 50, 75, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(109, 93, 252, .12), transparent 34rem),
    linear-gradient(180deg, #ffffff 0, var(--bg) 42rem);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img, video { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 26px;
  height: 76px;
  padding: 0 clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(229, 234, 243, .86);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 190px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(109, 93, 252, .30);
}
.brand strong {
    display: block;
    max-width: unset;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 18px;
}
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.nav-links { display: flex; align-items: center; gap: 8px; flex: 1; }
.nav-link {
  padding: 9px 13px;
  border-radius: 999px;
  color: #475467;
  font-weight: 700;
  font-size: 14px;
}
.nav-link:hover, .nav-link.is-active { background: #eef2ff; color: var(--primary-dark); }
.member-links { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 700; font-size: 14px; }
.member-links a { padding: 8px 10px; border-radius: 999px; }
.member-links a:hover { color: var(--primary-dark); background: #f1f4ff; }
.compliance-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(229, 234, 243, .82);
  background: rgba(255, 255, 255, .72);
  overflow-x: auto;
}
.compliance-nav a {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}
.compliance-nav a:hover { color: var(--primary-dark); background: #eef2ff; }

.hero {
  width: min(1180px, calc(100vw - 36px));
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 28px;
  align-items: stretch;
}
.hero-copy, .hero-stage, .list-hero, .detail-wrap {
  border: 1px solid rgba(229, 234, 243, .92);
  border-radius: 32px;
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--shadow);
}
.hero-copy { padding: clamp(32px, 6vw, 64px); }
.eyebrow, .section-label {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.14;
  letter-spacing: -.035em;
}
.hero p { color: var(--muted); line-height: 1.75; font-size: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 800;
}
.btn.primary { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.btn.ghost { background: #fff; color: #344054; }
.hero-stage { overflow: hidden; min-height: 430px; }
.hero-card { height: 100%; display: flex; flex-direction: column; }
.hero-card .cover { min-height: 270px; flex: 1; }

.section { width: min(1180px, calc(100vw - 36px)); margin: 34px auto 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: clamp(21px, 2.2vw, 28px); letter-spacing: -.025em; }
.section-desc { margin: 8px 0 0; color: var(--muted); }
.text-link { color: var(--primary-dark); font-weight: 900; }
.content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.content-grid.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.media-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 12px 34px rgba(35, 45, 70, .07);
  transition: transform .18s ease, box-shadow .18s ease;
}
.media-card:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(35, 45, 70, .12); }
.cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #edf2ff, #f7f9fc);
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover.empty { display: grid; place-items: center; color: var(--muted); font-weight: 800; }
.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
}
.badge.drama { color: #a21caf; background: #fae8ff; }
.cover .badge { position: absolute; left: 12px; top: 12px; background: rgba(255, 255, 255, .92); }
.duration { position: absolute; right: 12px; bottom: 12px; padding: 4px 8px; border-radius: 999px; background: rgba(15, 23, 42, .72); color: #fff; font-size: 12px; font-weight: 800; }
.media-body { padding: 16px; }
.media-body h3 { margin: 0; font-size: 16px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.media-body p { margin: 8px 0 0; min-height: 40px; color: var(--muted); line-height: 1.55; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px; color: #667085; font-size: 13px; }

.list-hero {
  width: min(1180px, calc(100vw - 36px));
  margin: 34px auto 0;
  padding: clamp(24px, 4vw, 42px);
}
.list-hero h1 { margin: 0; font-size: clamp(24px, 2.8vw, 34px); letter-spacing: -.025em; }
.list-hero p { color: var(--muted); font-size: 15px; }
.search-bar { display: flex; gap: 10px; max-width: 640px; margin-top: 22px; }
.search-bar input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; outline: none; }
.search-bar input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(109, 93, 252, .12); }
.search-bar button, .pager button { border: 0; border-radius: 16px; padding: 0 18px; background: var(--primary); color: #fff; font-weight: 900; cursor: pointer; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.filter-tabs button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  background: #fff;
  color: #475467;
  font-weight: 800;
  cursor: pointer;
}
.filter-tabs button.is-active { border-color: transparent; background: #eef2ff; color: var(--primary-dark); }
.pager { display: flex; justify-content: center; gap: 12px; margin: 28px 0 16px; }
.pager button { min-height: 38px; background: #fff; color: var(--primary-dark); border: 1px solid var(--line); }
.pager button:disabled { opacity: .45; cursor: not-allowed; }

.detail-main { width: min(1180px, calc(100vw - 36px)); margin: 34px auto 0; }
.detail-wrap { overflow: hidden; }
.player-panel { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 0; }
.player-box { background: #0f172a; min-height: 420px; display: grid; place-items: center; }
.player-box video { width: 100%; height: 100%; max-height: 70vh; object-fit: contain; background: #0f172a; }
.detail-info { padding: clamp(24px, 4vw, 42px); }
.detail-info h1 { margin: 14px 0 12px; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.24; letter-spacing: -.02em; }
.detail-info p { color: var(--muted); line-height: 1.8; }
.info-list { display: grid; gap: 10px; margin-top: 20px; color: #475467; }
.info-list span { color: #98a2b3; margin-right: 8px; }
.empty-state, .skeleton {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 34px;
  border: 1px dashed #d8deea;
  border-radius: 24px;
  color: var(--muted);
  background: rgba(255, 255, 255, .70);
  font-weight: 800;
  text-align: center;
}
.legal-main { width: min(980px, calc(100vw - 36px)); margin: 34px auto 0; }
.legal-card {
  border: 1px solid rgba(229, 234, 243, .92);
  border-radius: 28px;
  background: rgba(255, 255, 255, .90);
  box-shadow: var(--shadow);
  padding: clamp(26px, 4vw, 46px);
}
.legal-kicker {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.legal-card h1 { margin: 0; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.025em; }
.legal-intro { margin: 12px 0 26px; color: var(--muted); line-height: 1.8; }
.legal-section { padding: 22px 0; border-top: 1px solid var(--line); }
.legal-section h2 { margin: 0 0 10px; font-size: 19px; }
.legal-section p, .legal-section li { color: #475467; line-height: 1.85; }
.legal-section ul, .legal-section ol { margin: 10px 0 0; padding-left: 22px; }
.legal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.legal-note {
  border: 1px solid #dbe4ff;
  border-radius: 18px;
  background: #f7f9ff;
  padding: 14px 16px;
  color: #475467;
  line-height: 1.75;
}
.legal-contact {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: #f8fafc;
  color: #475467;
}

.official-report-links {
  width: min(1180px, calc(100vw - 36px));
  margin: 34px auto 0;
  padding-bottom: 8px;
}

.official-report-links__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(229, 234, 243, .92);
  border-radius: 20px;
  background: rgba(255, 255, 255, .78);
  color: #667085;
  box-shadow: 0 10px 28px rgba(35, 45, 70, .06);
}

.official-report-links__label {
  color: #344054;
  font-size: 13px;
  font-weight: 900;
}

.official-report-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid #dbe4ff;
  border-radius: 999px;
  background: #f7f9ff;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.official-report-links a:hover {
  border-color: rgba(109, 93, 252, .45);
  background: #eef2ff;
  color: var(--primary);
}

body.hide-performance .nav-performance,
body.hide-performance .section-performance,
body.hide-performance button.nav-performance,
body.hide-drama .nav-drama,
body.hide-drama .section-drama,
body.hide-drama button.nav-drama { display: none !important; }

@media (max-width: 980px) {
  .site-header { height: auto; min-height: 76px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
  .brand { flex: 1; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; }
  .compliance-nav { justify-content: flex-start; }
  .member-links { margin-left: auto; }
  .hero, .player-panel { grid-template-columns: 1fr; }
  .content-grid, .content-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .member-links { display: none; }
  .hero, .section, .list-hero, .detail-main { width: min(100vw - 24px, 1180px); }
  .hero-copy, .list-hero, .detail-info { padding: 24px; border-radius: 24px; }
  .content-grid, .content-grid.compact { grid-template-columns: 1fr; }
  .search-bar { flex-direction: column; }
  .search-bar button { min-height: 42px; }
  .player-box { min-height: 300px; }
  .legal-grid { grid-template-columns: 1fr; }
}
