
:root {
  --bg: #07111f;
  --bg-2: #0b1628;
  --panel: rgba(15, 23, 42, 0.86);
  --panel-2: rgba(30, 41, 59, 0.78);
  --line: rgba(148, 163, 184, 0.18);
  --text: #e5eefc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --accent: #22d3ee;
  --accent-2: #3b82f6;
  --accent-3: #a855f7;
  --success: #34d399;
  --shadow: 0 20px 60px rgba(2, 8, 23, 0.45);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container: 1320px;
  --nav-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.14), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(59, 130, 246, 0.16), transparent 26%),
    linear-gradient(180deg, #09111f 0%, #07101d 34%, #050a14 100%);
  min-height: 100vh;
  line-height: 1.65;
}

img, video, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
}
.skip-link:focus {
  left: 12px;
  z-index: 9999;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  border-radius: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  background: rgba(4, 10, 22, 0.78);
  border-bottom: 1px solid var(--line);
}

.navbar {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1.1rem;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(34, 211, 238, 0.95), rgba(59, 130, 246, 0.95));
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.28);
  color: white;
  font-weight: 900;
}

.brand-text {
  background: linear-gradient(90deg, #7dd3fc, #38bdf8, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.96rem;
  padding: 10px 12px;
  border-radius: 999px;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: white;
  background: rgba(34, 211, 238, 0.10);
  transform: translateY(-1px);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 10px 14px;
  min-width: 320px;
}
.search-form input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
}
.search-form input::placeholder { color: #7c8aa3; }

.search-button,
.btn {
  border: 0;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 16px 35px rgba(34, 211, 238, 0.2);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.search-button:hover,
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 45px rgba(34, 211, 238, 0.28);
}
.btn.secondary {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: none;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.72);
  color: white;
  align-items: center;
  justify-content: center;
}

.hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 17, 31, 0.22), rgba(7, 17, 31, 0.92)),
    var(--hero-bg);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 25%, rgba(34, 211, 238, 0.18), transparent 20%),
    radial-gradient(circle at 82% 12%, rgba(168, 85, 247, 0.14), transparent 20%),
    linear-gradient(180deg, rgba(7, 17, 31, 0), rgba(7, 17, 31, 0.8));
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 72px 0 56px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  color: #c7f9ff;
  background: rgba(15, 23, 42, 0.52);
  margin-bottom: 16px;
  font-size: 0.94rem;
}
.hero-title {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #c2f8ff, #7dd3fc 25%, #60a5fa 60%, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 20px 60px rgba(0,0,0,0.22);
}
.hero-subtitle {
  margin: 18px 0 30px;
  max-width: 780px;
  color: #d3deee;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 30px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.66);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #dbeafe;
  font-size: 0.92rem;
}
.chip strong { color: white; }

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.stat-card {
  padding: 18px 18px 16px;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow: var(--shadow);
}
.stat-card .value {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.1;
}
.stat-card .label { color: var(--muted); font-size: 0.92rem; margin-top: 6px; }

.section {
  padding: 44px 0;
}
.section.flush-top { padding-top: 24px; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  line-height: 1.1;
}
.section-heading p {
  margin: 0;
  color: var(--muted);
  max-width: 720px;
}
.section-heading .more {
  color: #7dd3fc;
  font-weight: 700;
  white-space: nowrap;
}
.section-heading .more:hover { color: white; }

.panel {
  background: rgba(6, 12, 24, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 280px);
  gap: 18px;
  overflow-x: auto;
  padding: 6px 2px 16px;
  scroll-snap-type: x mandatory;
}
.carousel::-webkit-scrollbar,
.results-grid::-webkit-scrollbar,
.cards-grid::-webkit-scrollbar {
  height: 10px;
}
.carousel::-webkit-scrollbar-thumb,
.results-grid::-webkit-scrollbar-thumb,
.cards-grid::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.22);
  border-radius: 999px;
}

.movie-card {
  display: grid;
  gap: 12px;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.movie-card:hover { transform: translateY(-4px); }

.poster {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 2 / 3;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.88));
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 18px 40px rgba(2, 8, 23, 0.35);
}
.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform .28s ease, filter .28s ease;
}
.movie-card:hover .poster img { transform: scale(1.06); filter: saturate(1.08); }
.poster .overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.02), rgba(2, 6, 23, 0.84));
}
.poster .meta-top,
.poster .meta-bottom {
  position: absolute;
  left: 14px;
  right: 14px;
}
.poster .meta-top { top: 14px; display: flex; justify-content: space-between; gap: 8px; }
.poster .meta-bottom { bottom: 14px; }
.poster .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255,255,255,0.12);
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.poster .title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 800;
  text-shadow: 0 3px 18px rgba(0,0,0,0.48);
}
.poster .subtitle {
  margin-top: 6px;
  color: rgba(255,255,255,0.86);
  font-size: 0.84rem;
}

.card-title {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
}
.card-title a:hover { color: #7dd3fc; }
.card-desc {
  color: var(--muted);
  font-size: 0.93rem;
  margin: 6px 0 0;
}
.card-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.cards-grid.six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.cards-grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ribbon-panel {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 22px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(15,23,42,0.92), rgba(30,41,59,0.84)),
    radial-gradient(circle at 20% 20%, rgba(34,211,238,0.14), transparent 35%);
  border: 1px solid rgba(148,163,184,0.14);
  box-shadow: var(--shadow);
}

.ribbon-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.ribbon-images .mini {
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 4 / 5;
  position: relative;
}
.ribbon-images .mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
}
.ribbon-images .mini:hover img { transform: scale(1.05); }

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.info-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.14);
}
.info-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}
.info-card p { margin: 0; color: #cbd5e1; }

.category-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 14px;
}
.category-bar a {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(15,23,42,0.7);
  border: 1px solid rgba(148,163,184,0.16);
  color: #cbd5e1;
  font-weight: 700;
}
.category-bar a.active,
.category-bar a:hover {
  background: rgba(34,211,238,0.12);
  color: #fff;
}

.page-head {
  padding: 24px 0 18px;
}
.page-head h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  background: linear-gradient(90deg, #c2f8ff, #7dd3fc 30%, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-head p {
  color: var(--muted);
  margin: 12px 0 0;
  max-width: 860px;
}

.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 20px;
}
.filter-bar input,
.filter-bar select {
  background: rgba(15,23,42,0.72);
  border: 1px solid rgba(148,163,184,0.18);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
}
.filter-bar input { min-width: min(100%, 420px); }
.filter-bar select { min-width: 180px; }

.results-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
}
.pagination a,
.pagination span {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(15,23,42,0.72);
  border: 1px solid rgba(148,163,184,0.16);
  color: #dbeafe;
  font-weight: 700;
  padding: 0 12px;
}
.pagination a:hover,
.pagination .current {
  background: rgba(34,211,238,0.12);
  color: white;
}

.breadcrumbs {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 6px 0 18px;
}
.breadcrumbs a { color: #7dd3fc; }
.breadcrumbs a:hover { color: white; }

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 22px;
  align-items: start;
}
.detail-media {
  display: grid;
  gap: 16px;
}
.player-shell {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(148,163,184,0.14);
  background: #020817;
  box-shadow: var(--shadow);
}
.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.player-note {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 10px 2px 0;
}

.detail-aside {
  display: grid;
  gap: 16px;
}
.detail-box {
  padding: 22px;
  border-radius: 22px;
  background: rgba(15,23,42,0.76);
  border: 1px solid rgba(148,163,184,0.14);
  box-shadow: var(--shadow);
}
.detail-box h2 {
  margin: 0 0 12px;
  font-size: 1.22rem;
}
.meta-list {
  display: grid;
  gap: 12px;
}
.meta-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.meta-item .key {
  color: #7dd3fc;
  min-width: 72px;
  font-weight: 700;
}
.meta-item .value { color: #e2e8f0; }

.related-list {
  display: grid;
  gap: 12px;
}
.related-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  transition: background .2s ease;
}
.related-item:hover { background: rgba(148,163,184,0.08); }
.related-item img {
  width: 92px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
}
.related-item h3 {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.35;
}
.related-item .sub {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 5px;
}

.prose-box {
  padding: 24px;
  border-radius: 22px;
  background: rgba(15,23,42,0.74);
  border: 1px solid rgba(148,163,184,0.14);
  box-shadow: var(--shadow);
}
.prose-box h2 {
  margin: 0 0 12px;
  font-size: 1.22rem;
}
.prose-box p {
  margin: 0;
  color: #d4def0;
}
.prose-box p + p { margin-top: 12px; }

.site-footer {
  margin-top: 42px;
  padding: 34px 0 44px;
  border-top: 1px solid rgba(148,163,184,0.14);
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
}
.footer-grid h3 {
  margin: 0 0 10px;
  color: white;
  font-size: 1rem;
}
.footer-links {
  display: grid;
  gap: 8px;
}
.footer-links a:hover { color: white; }
.footer-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(148,163,184,0.12);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.notice {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.16);
  color: #d9faff;
}

.menu-panel {
  display: none;
}

.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1180px) {
  .cards-grid.six,
  .results-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-grid,
  .ribbon-panel,
  .info-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav-links,
  .nav-tools .search-form {
    display: none;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .menu-panel {
    display: none;
    padding: 0 0 18px;
  }
  .menu-panel.open { display: block; }
  .menu-panel .search-form {
    display: flex;
    min-width: 100%;
    margin-bottom: 14px;
  }
  .menu-panel .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cards-grid,
  .cards-grid.five,
  .cards-grid.six,
  .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ribbon-images { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 20px), var(--container)); }
  .hero-inner { padding: 54px 0 36px; }
  .stat-row { grid-template-columns: 1fr; }
  .cards-grid,
  .cards-grid.five,
  .cards-grid.six,
  .results-grid { grid-template-columns: 1fr; }
  .section { padding: 34px 0; }
  .page-head h1 { font-size: 2rem; }
  .poster .title { font-size: 0.95rem; }
  .brand-text { font-size: 1rem; }
  .filter-bar input { min-width: 100%; }
}
