@charset "UTF-8";

:root {
  color-scheme: dark;
  --bg: #0F172A;
  --bg-deep: #020617;
  --panel: #1E293B;
  --panel-soft: #263449;
  --line: #334155;
  --text: #F1F5F9;
  --muted: #94A3B8;
  --accent: #22D3EE;
  --accent-strong: #67E8F9;
  --danger: #FDA4AF;
  --radius: 14px;
  --content: 1200px;
  --shadow: 0 18px 50px rgba(2, 6, 23, .25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-strong); }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.3; letter-spacing: -.025em; }
h1 { font-size: clamp(30px, 4vw, 48px); }
h2 { font-size: clamp(22px, 2.5vw, 28px); }
h3 { font-size: 17px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 9px 14px; background: var(--accent); color: var(--bg-deep); border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(2, 6, 23, .92);
  border-bottom: 1px solid rgba(148, 163, 184, .16);
  backdrop-filter: blur(18px);
}
.header-inner {
  width: min(var(--content), calc(100% - 44px)); min-height: 76px;
  margin: 0 auto; display: flex; align-items: center; gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand img { width: 42px; height: 42px; border-radius: 11px; object-fit: cover; background: var(--panel); }
.brand strong { display: block; font-size: 18px; line-height: 1.2; }
.brand small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.primary-nav { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.primary-nav a {
  padding: 9px 12px; border-radius: 9px; color: #CBD5E1; font-size: 14px; white-space: nowrap;
}
.primary-nav a:hover, .primary-nav a.is-active { background: rgba(34, 211, 238, .1); color: var(--accent-strong); }
.header-search { display: flex; gap: 5px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.header-search input { width: 140px; min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; padding: 5px 8px; font-size: 13px; }
.header-search button { border: 0; border-radius: 7px; padding: 5px 11px; color: var(--bg-deep); background: var(--accent); font-size: 13px; cursor: pointer; }
.menu-toggle { display: none; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; color: var(--text); background: var(--panel); }

main { width: min(var(--content), calc(100% - 44px)); margin: 0 auto; }
.hero-shell {
  min-height: 390px; margin: 28px 0 46px; padding: 42px 54px;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  align-items: center; overflow: hidden; position: relative;
  border: 1px solid rgba(148, 163, 184, .16); border-radius: 20px;
  background: radial-gradient(circle at 82% 44%, rgba(34,211,238,.14), transparent 33%), linear-gradient(125deg, #111E34, #0B1427 65%, #101F34);
}
.hero-copy { position: relative; z-index: 2; max-width: 650px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .08em; margin-bottom: 12px; }
.hero-copy h1 { margin-bottom: 16px; max-width: 650px; }
.hero-lead { max-width: 590px; color: #CBD5E1; font-size: 16px; line-height: 1.9; margin-bottom: 24px; }
.hero-actions, .detail-action { display: flex; flex-wrap: wrap; gap: 10px; }
.button {
  min-height: 42px; display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 17px; border: 1px solid transparent; border-radius: 9px;
  font-weight: 700; font-size: 14px; transition: transform .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #06212A; background: var(--accent); }
.button-primary:hover { color: #031820; background: var(--accent-strong); }
.button-quiet { color: var(--text); border-color: #475569; background: rgba(30,41,59,.45); }
.button-quiet:hover { color: var(--accent-strong); border-color: var(--accent); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 30px; color: var(--muted); font-size: 12px; }
.hero-facts b { color: var(--text); font-size: 17px; margin-right: 4px; }
.hero-art { height: 290px; position: relative; display: flex; align-items: center; justify-content: center; }
.hero-poster { position: absolute; width: 166px; height: 238px; object-fit: cover; border: 4px solid rgba(241,245,249,.82); border-radius: 8px; box-shadow: var(--shadow); }
.hero-poster-back { transform: translate(70px, 5px) rotate(9deg); opacity: .62; }
.hero-poster-front { transform: translate(-22px, -4px) rotate(-6deg); }
.hero-art-label { position: absolute; right: 8px; bottom: 18px; padding: 7px 12px; color: var(--bg-deep); background: var(--accent); border-radius: 7px; font-size: 12px; font-weight: 800; }

.content-section { margin: 0 0 52px; }
.section-topline { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; }
.section-topline h2, .section-heading h2 { margin-bottom: 7px; }
.section-intro, .section-heading p { color: var(--muted); margin-bottom: 0; font-size: 13px; }
.text-link { color: var(--accent); font-size: 13px; font-weight: 700; white-space: nowrap; padding-bottom: 5px; }
.text-link span { font-size: 18px; margin-left: 4px; }
.movie-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 16px; }
.movie-card { min-width: 0; overflow: hidden; border: 1px solid rgba(148,163,184,.15); border-radius: var(--radius); background: var(--panel); transition: border-color .2s ease, transform .2s ease; }
.movie-card:hover { transform: translateY(-3px); border-color: rgba(34,211,238,.55); }
.poster-link { display: block; position: relative; overflow: hidden; background: #263449; aspect-ratio: 2 / 3; }
.poster-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.movie-card:hover .poster-link img { transform: scale(1.035); }
.poster-badge { position: absolute; left: 10px; top: 10px; padding: 3px 8px; border-radius: 5px; background: rgba(2,6,23,.78); color: var(--accent-strong); font-size: 10px; }
.movie-card-body { padding: 12px 13px 14px; }
.movie-card h3 { margin: 0 0 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.movie-card h3 a { font-size: 15px; }
.movie-meta { color: var(--muted); font-size: 11px; margin: 0 0 7px; }
.movie-summary { color: #CBD5E1; font-size: 12px; line-height: 1.65; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.split-section { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, .8fr); gap: 30px; align-items: start; }
.section-heading { margin-bottom: 20px; }
.rank-list { border-top: 1px solid var(--line); }
.rank-row { display: grid; grid-template-columns: 30px 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid rgba(51,65,85,.7); }
.rank-number { color: var(--accent); font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rank-row > img { width: 64px; height: 76px; border-radius: 7px; object-fit: cover; background: var(--panel); }
.rank-info h3 { margin: 0 0 3px; font-size: 15px; }
.rank-info p { margin: 0 0 3px; color: var(--muted); font-size: 11px; }
.rank-info > span { display: block; color: #CBD5E1; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-score { color: var(--accent); font-size: 16px; }
.side-panel { padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, #1E293B, #172338); }
.side-panel h2 { font-size: 22px; margin-bottom: 9px; }
.side-panel > p:not(.eyebrow) { color: var(--muted); font-size: 12px; }
.score-list { list-style: none; padding: 0; margin: 18px 0 0; }
.score-list li { border-top: 1px solid rgba(148,163,184,.15); }
.score-list a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; font-size: 13px; }
.score-list b { color: var(--accent); font-variant-numeric: tabular-nums; }

.collection-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.collection-card { min-height: 210px; display: flex; flex-direction: column; padding: 19px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.collection-mark { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 13px; border-radius: 9px; color: var(--bg-deep); background: var(--accent); font-size: 18px; font-weight: 900; }
.collection-card h3 { margin: 0 0 6px; }
.collection-card p { color: var(--muted); font-size: 12px; margin-bottom: 15px; }
.collection-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.collection-links a { padding: 4px 8px; border-radius: 6px; background: #334155; color: #DCE7F1; font-size: 11px; }
.collection-links a:hover { background: rgba(34,211,238,.15); color: var(--accent); }
.compact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.compact-card { display: flex; gap: 12px; min-width: 0; padding: 9px; border: 1px solid rgba(148,163,184,.14); border-radius: 10px; background: var(--panel); }
.compact-card img { width: 58px; height: 72px; flex: 0 0 auto; object-fit: cover; border-radius: 6px; }
.compact-card span { min-width: 0; align-self: center; }
.compact-card b, .compact-card small { display: block; }
.compact-card b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.compact-card small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.access-note { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 28px; border: 1px solid rgba(34,211,238,.25); border-radius: var(--radius); background: linear-gradient(110deg, rgba(34,211,238,.09), rgba(30,41,59,.8)); }
.access-note h2 { margin-bottom: 7px; font-size: 22px; }
.access-note p:not(.eyebrow) { max-width: 720px; margin: 0; color: #CBD5E1; font-size: 13px; }

.site-footer { margin-top: 70px; background: var(--bg-deep); border-top: 1px solid rgba(148,163,184,.15); }
.footer-inner { width: min(var(--content), calc(100% - 44px)); margin: 0 auto; padding: 34px 0 24px; }
.footer-brand { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-name { font-size: 19px; font-weight: 800; }
.footer-brand p { margin: 0; color: var(--muted); font-size: 12px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; margin: 20px 0; color: #CBD5E1; font-size: 12px; }
.copyright { padding-top: 17px; margin: 0; border-top: 1px solid rgba(148,163,184,.13); color: #64748B; font-size: 11px; }

.breadcrumb { padding: 20px 0 12px; color: var(--muted); font-size: 12px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; color: #64748B; margin-right: 9px; }
.breadcrumb [aria-current="page"] { color: #CBD5E1; }
.detail-page { padding-bottom: 5px; }
.detail-hero { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 36px; align-items: center; padding: 24px 0 38px; border-bottom: 1px solid var(--line); }
.detail-poster { width: 100%; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 12px; background: var(--panel); box-shadow: var(--shadow); }
.detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.detail-copy h1 { margin-bottom: 12px; }
.detail-lead { max-width: 760px; color: #CBD5E1; font-size: 16px; line-height: 1.9; }
.detail-stats { display: flex; flex-wrap: wrap; gap: 9px; margin: 20px 0; }
.detail-stats span, .detail-stats strong { padding: 5px 10px; border-radius: 6px; background: var(--panel); color: #CBD5E1; font-size: 12px; }
.detail-stats strong { color: var(--accent); }
.detail-disclaimer { margin: 15px 0 0; color: var(--muted); font-size: 11px; }
.detail-content { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(240px, .8fr); gap: 34px; padding: 34px 0; }
.prose-block { margin-bottom: 28px; }
.prose-block h2 { padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 21px; }
.prose-block h3 { margin: 19px 0 7px; font-size: 16px; }
.prose-block p { color: #CBD5E1; line-height: 1.95; }
.highlight-list { padding-left: 20px; color: #CBD5E1; }
.highlight-list li { padding: 5px 0; }
.detail-aside { align-self: start; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.detail-aside h2 { font-size: 18px; }
.detail-aside dl { display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px; margin: 0; font-size: 12px; }
.detail-aside dt { color: var(--muted); }
.detail-aside dd { margin: 0; text-align: right; }
.related-section { padding-top: 12px; }

.info-page, .search-page { min-height: 55vh; }
.info-hero { margin: 10px 0 28px; padding: 38px 42px; border: 1px solid var(--line); border-radius: 18px; background: radial-gradient(circle at 85% 15%, rgba(34,211,238,.12), transparent 35%), var(--panel); }
.info-hero h1 { max-width: 800px; margin-bottom: 13px; }
.info-hero > p:not(.eyebrow) { max-width: 800px; color: #CBD5E1; line-height: 1.9; margin-bottom: 22px; }
.info-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin: 28px 0 38px; }
.info-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.info-icon { display: inline-block; margin-bottom: 16px; color: var(--accent); font-size: 22px; font-weight: 900; }
.info-card h2 { font-size: 18px; }
.info-card p, .device-card p, .device-card li { color: #CBD5E1; font-size: 13px; line-height: 1.85; }
.info-prose { max-width: 900px; padding: 10px 0 20px; }
.device-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 28px 0 38px; }
.device-card { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.device-card h2 { margin: 20px 0 9px; font-size: 20px; }
.device-card ul { padding-left: 19px; }
.device-visual { height: 150px; display: flex; align-items: center; justify-content: center; gap: 12px; border-radius: 10px; background: linear-gradient(135deg, #172338, #263B52); }
.desktop-visual span { width: 170px; height: 100px; border: 7px solid #64748B; border-bottom-width: 12px; border-radius: 8px; background: linear-gradient(145deg, rgba(34,211,238,.25), rgba(15,23,42,.8)); }
.desktop-visual i { width: 35px; height: 7px; margin-top: 105px; margin-left: -145px; border-radius: 0 0 5px 5px; background: #64748B; }
.mobile-visual span { width: 62px; height: 116px; border: 5px solid #64748B; border-radius: 12px; background: linear-gradient(160deg, rgba(34,211,238,.35), #0F172A); }
.mobile-visual i { width: 5px; height: 5px; margin-left: -47px; margin-top: 96px; border-radius: 50%; background: #CBD5E1; }

.search-heading { padding: 28px 0 12px; }
.search-heading h1 { margin-bottom: 8px; }
.search-heading p { color: var(--muted); }
.large-search { display: flex; gap: 9px; max-width: 720px; padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.large-search input { flex: 1; min-width: 0; padding: 9px 12px; border: 0; outline: 0; background: transparent; color: var(--text); }
.search-empty { margin: 32px 0 70px; padding: 35px; border: 1px dashed #475569; border-radius: var(--radius); text-align: center; }
.search-empty h2 { font-size: 20px; }
.search-empty p { color: var(--muted); }
.search-empty a { color: var(--accent); font-weight: 700; }
.search-result-title { display: flex; align-items: baseline; gap: 14px; margin: 30px 0 16px; }
.search-result-title h2 { margin: 0; font-size: 21px; }
.search-result-title span { color: var(--muted); font-size: 12px; }
.error-page { min-height: 55vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 0; }
.error-page p:not(.eyebrow) { max-width: 560px; color: var(--muted); }
.error-code { margin: 0; color: var(--accent); font-size: clamp(70px, 14vw, 130px); font-weight: 900; line-height: 1; letter-spacing: -.08em; }

@media (max-width: 1050px) {
  .header-inner { gap: 15px; }
  .primary-nav { gap: 1px; }
  .primary-nav a { padding: 8px; font-size: 12px; }
  .header-search input { width: 110px; }
  .hero-shell { padding: 35px; }
  .movie-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
  .split-section { gap: 20px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 70px; }
  .header-inner { width: min(100% - 28px, var(--content)); min-height: 66px; gap: 10px; flex-wrap: wrap; }
  .brand { margin-right: auto; }
  .brand img { width: 36px; height: 36px; }
  .brand strong { font-size: 16px; }
  .brand small { font-size: 10px; }
  .menu-toggle { display: block; order: 2; }
  .header-search { order: 3; width: 100%; margin-bottom: 10px; }
  .header-search input { flex: 1; width: 100%; }
  .primary-nav { display: none; order: 4; width: 100%; margin: 0 0 10px; padding: 7px; border-radius: 10px; background: var(--panel); }
  .primary-nav.is-open { display: grid; grid-template-columns: repeat(2, 1fr); }
  .primary-nav a { padding: 10px; font-size: 13px; }
  main { width: min(100% - 28px, var(--content)); }
  .hero-shell { min-height: 0; grid-template-columns: minmax(0,1fr) 150px; gap: 4px; margin: 18px 0 34px; padding: 25px 20px; }
  .hero-copy h1 { font-size: 29px; }
  .hero-lead { font-size: 13px; line-height: 1.75; }
  .hero-art { height: 205px; }
  .hero-poster { width: 100px; height: 150px; border-width: 3px; }
  .hero-poster-back { transform: translate(25px, 0) rotate(8deg); }
  .hero-poster-front { transform: translate(-12px, 0) rotate(-6deg); }
  .hero-art-label { right: 0; bottom: 0; font-size: 10px; }
  .hero-facts { gap: 12px; margin-top: 20px; }
  .hero-facts b { font-size: 14px; }
  .content-section { margin-bottom: 38px; }
  .movie-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px 9px; }
  .movie-card-body { padding: 9px; }
  .movie-card h3 a { font-size: 13px; }
  .movie-summary { font-size: 11px; }
  .split-section { grid-template-columns: 1fr; }
  .side-panel { padding: 18px; }
  .collection-grid { grid-template-columns: 1fr; }
  .collection-card { min-height: 0; }
  .compact-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .access-note { align-items: flex-start; flex-direction: column; padding: 20px; }
  .footer-inner { width: min(100% - 28px, var(--content)); }
  .footer-brand { align-items: flex-start; flex-direction: column; gap: 5px; }
  .detail-hero { grid-template-columns: 150px minmax(0,1fr); gap: 18px; padding-top: 10px; }
  .detail-copy h1 { font-size: 27px; }
  .detail-lead { font-size: 13px; }
  .detail-stats { gap: 5px; margin: 12px 0; }
  .detail-stats span, .detail-stats strong { padding: 4px 6px; font-size: 10px; }
  .detail-content { grid-template-columns: 1fr; gap: 10px; padding-top: 25px; }
  .detail-aside { order: -1; }
  .info-hero { padding: 27px 22px; }
  .info-columns { grid-template-columns: 1fr; }
  .device-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-shell { grid-template-columns: 1fr; }
  .hero-art { position: absolute; right: -25px; top: 6px; width: 145px; opacity: .26; pointer-events: none; }
  .hero-copy { max-width: 100%; }
  .hero-copy h1 { max-width: 310px; font-size: 28px; }
  .hero-lead { max-width: 100%; }
  .hero-facts { position: relative; }
  .movie-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .movie-card-body { padding: 10px; }
  .movie-card h3 a { font-size: 14px; }
  .rank-row { grid-template-columns: 24px 52px minmax(0,1fr) auto; gap: 9px; }
  .rank-row > img { width: 52px; height: 64px; }
  .rank-info > span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .rank-score { font-size: 13px; }
  .compact-grid { grid-template-columns: 1fr; }
  .detail-hero { grid-template-columns: 105px minmax(0,1fr); gap: 13px; }
  .detail-copy h1 { font-size: 22px; }
  .detail-lead { font-size: 12px; line-height: 1.65; }
  .detail-action { gap: 6px; }
  .detail-action .button { min-height: 36px; padding: 7px 9px; font-size: 11px; }
  .detail-disclaimer { font-size: 10px; }
  .large-search { flex-direction: column; }
  .large-search .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
