:root {
  --blue-950: #172554;
  --blue-900: #1e3a8a;
  --blue-800: #1e40af;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --indigo-600: #4f46e5;
  --purple-700: #7e22ce;
  --pink-500: #ec4899;
  --stone-950: #0c0a09;
  --stone-900: #1c1917;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-600: #57534e;
  --stone-200: #e7e5e4;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(30, 64, 175, 0.13);
  --shadow-card: 0 12px 35px rgba(15, 23, 42, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--stone-800);
  background: linear-gradient(180deg, #f8fbff 0%, #f5f7fb 42%, #ffffff 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, rgba(239, 246, 255, 0.94), rgba(238, 242, 255, 0.94), rgba(250, 245, 255, 0.94));
  border-bottom: 1px solid rgba(147, 197, 253, 0.55);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px rgba(30, 64, 175, 0.08);
}

.header-main {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 218px;
}

.brand-icon,
.footer-brand span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue-600), var(--purple-700));
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.26);
}

.brand-text strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--blue-800), var(--purple-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  font-style: normal;
  color: var(--blue-700);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.desktop-nav a,
.mobile-nav a {
  padding: 10px 15px;
  border-radius: 12px;
  color: var(--blue-900);
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--blue-800);
  background: rgba(219, 234, 254, 0.85);
  transform: translateY(-1px);
}

.desktop-nav a.active,
.mobile-nav a.active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue-600), var(--indigo-600));
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.22);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(219, 234, 254, 0.9);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--blue-900);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
}

.mobile-nav.is-open {
  display: grid;
  gap: 6px;
}

.category-strip {
  border-top: 1px solid rgba(191, 219, 254, 0.8);
  background: rgba(255, 255, 255, 0.7);
}

.strip-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 9px 0;
  scrollbar-width: thin;
}

.strip-scroll a {
  flex: 0 0 auto;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--blue-700);
  background: rgba(239, 246, 255, 0.8);
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.strip-scroll a:hover {
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue-600), var(--purple-700));
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #ffffff;
  background:
    radial-gradient(circle at 15% 18%, rgba(59, 130, 246, 0.28), transparent 28%),
    radial-gradient(circle at 80% 8%, rgba(168, 85, 247, 0.30), transparent 32%),
    linear-gradient(135deg, var(--stone-900), var(--blue-950) 52%, #312e81);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, #f8fbff);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  align-items: center;
  padding: 72px 0 96px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.7fr);
  align-items: center;
  gap: 44px;
}

.hero-slide.active {
  display: grid;
  animation: fadeUp 0.55s ease both;
}

.hero-copy {
  max-width: 740px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 9px 15px;
  border: 1px solid rgba(147, 197, 253, 0.36);
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.18);
  backdrop-filter: blur(14px);
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero h1 span {
  background: linear-gradient(90deg, #dbeafe, #faf5ff, #fbcfe8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 14px;
  color: #dbeafe;
  font-size: clamp(19px, 2.5vw, 27px);
  font-weight: 600;
}

.hero-desc {
  max-width: 680px;
  margin: 0 0 28px;
  color: rgba(219, 234, 254, 0.88);
  font-size: 17px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.btn-primary,
.btn-secondary,
.section-link,
.filter-panel button,
.player-cover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  padding: 14px 24px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue-600), var(--indigo-600));
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.32);
}

.btn-secondary {
  padding: 13px 22px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.btn-primary:hover,
.btn-secondary:hover,
.section-link:hover,
.filter-panel button:hover {
  transform: translateY(-2px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags a,
.hero-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(191, 219, 254, 0.24);
}

.hero-visual {
  position: relative;
  display: grid;
  justify-items: center;
}

.hero-poster {
  width: min(360px, 82vw);
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 95px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-card {
  width: min(320px, 80vw);
  margin-top: -46px;
  margin-left: -80px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(20px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.35);
}

.hero-card strong {
  display: block;
  margin-bottom: 7px;
  font-size: 20px;
}

.hero-card p {
  margin: 0;
  color: #bfdbfe;
  line-height: 1.7;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 20px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  opacity: 0.62;
}

.hero-dot.active {
  width: 30px;
  opacity: 1;
  background: #93c5fd;
}

.main-section,
.page-section {
  padding: 70px 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 30px;
}

.section-heading span {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading h2,
.page-title h1 {
  margin: 0;
  color: var(--stone-800);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.section-heading p,
.page-title p {
  max-width: 760px;
  margin: 9px 0 0;
  color: var(--stone-600);
  line-height: 1.8;
}

.section-link {
  flex: 0 0 auto;
  padding: 11px 17px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue-600), var(--purple-700));
  box-shadow: 0 13px 28px rgba(37, 99, 235, 0.22);
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.movie-grid.compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.movie-card {
  min-width: 0;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.18);
}

.movie-link {
  display: block;
  height: 100%;
}

.poster-wrap {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-wrap img {
  transform: scale(1.06);
}

.poster-year,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(10px);
}

.poster-year {
  left: 12px;
}

.rank-badge {
  right: 12px;
  background: linear-gradient(135deg, var(--pink-500), var(--purple-700));
}

.movie-info {
  padding: 16px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 9px;
}

.movie-meta span {
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--blue-700);
  background: #eff6ff;
  font-size: 12px;
  font-weight: 800;
}

.movie-info h3 {
  margin: 0 0 8px;
  color: var(--stone-800);
  font-size: 18px;
  line-height: 1.35;
}

.movie-info p {
  margin: 0;
  color: var(--stone-600);
  font-size: 14px;
  line-height: 1.7;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #6d28d9;
  background: #f5f3ff;
  font-size: 12px;
  font-weight: 700;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.category-card {
  display: block;
  min-height: 220px;
  padding: 22px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue-600), var(--indigo-600) 48%, var(--purple-700));
  box-shadow: 0 18px 42px rgba(79, 70, 229, 0.24);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(79, 70, 229, 0.32);
}

.category-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

.category-card p,
.category-card li {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
}

.category-card ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.page-title {
  padding: 64px 0 24px;
}

.page-title .crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--blue-700);
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 150px 170px 110px;
  gap: 12px;
  margin: 26px 0 30px;
  padding: 16px;
  border: 1px solid rgba(191, 219, 254, 0.84);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 0 13px;
  color: var(--stone-800);
  background: #ffffff;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.25);
}

.filter-panel button {
  min-height: 46px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue-600), var(--indigo-600));
}

.rank-list {
  display: grid;
  gap: 14px;
}

.rank-row {
  display: grid;
  grid-template-columns: 72px 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
}

.rank-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue-600), var(--purple-700));
  font-size: 18px;
  font-weight: 900;
}

.rank-row img {
  width: 74px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
}

.rank-row h3 {
  margin: 0 0 7px;
  font-size: 19px;
}

.rank-row p {
  margin: 0;
  color: var(--stone-600);
  line-height: 1.65;
}

.heat-pill {
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #db2777);
  font-weight: 900;
  white-space: nowrap;
}

.detail-hero {
  padding: 54px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 0%, rgba(59, 130, 246, 0.32), transparent 30%),
    linear-gradient(135deg, var(--stone-900), var(--blue-950) 54%, #312e81);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 40px 95px rgba(0, 0, 0, 0.42);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-copy .crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #bfdbfe;
  font-weight: 800;
}

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-copy p {
  margin: 0 0 20px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.85;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.player-section {
  padding: 56px 0 28px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.player-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  flex-direction: column;
  gap: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.58), rgba(30, 64, 175, 0.36));
  cursor: pointer;
}

.player-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.play-circle {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue-600), var(--purple-700));
  box-shadow: 0 18px 50px rgba(37, 99, 235, 0.45);
  font-size: 32px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  padding: 28px 0 68px;
}

.article-card,
.side-card {
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
}

.article-card h2,
.side-card h2 {
  margin: 0 0 16px;
  color: var(--stone-800);
  font-size: 26px;
}

.article-card p {
  margin: 0 0 20px;
  color: var(--stone-700);
  font-size: 16px;
  line-height: 1.95;
}

.related-list {
  display: grid;
  gap: 12px;
}

.related-link {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  background: #f8fafc;
  transition: background 0.2s ease, transform 0.2s ease;
}

.related-link:hover {
  background: #eff6ff;
  transform: translateX(3px);
}

.related-link img {
  width: 58px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
}

.related-link strong {
  display: block;
  margin-bottom: 4px;
  color: var(--stone-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-link span {
  color: var(--stone-600);
  font-size: 13px;
}

.hidden-card {
  display: none !important;
}

.site-footer {
  color: #bfdbfe;
  background: linear-gradient(135deg, var(--stone-900), var(--blue-950), var(--stone-900));
  border-top: 4px solid var(--blue-700);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 34px;
  padding: 48px 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-brand strong {
  color: #dbeafe;
  font-size: 22px;
}

.site-footer p {
  margin: 0;
  max-width: 430px;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #dbeafe;
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a {
  color: #bfdbfe;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid rgba(147, 197, 253, 0.18);
  text-align: center;
  color: #93c5fd;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .movie-grid,
  .movie-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .brand-text strong {
    font-size: 20px;
  }

  .hero-slide,
  .detail-grid,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding-top: 46px;
  }

  .hero-card {
    margin-left: 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .movie-grid,
  .movie-grid.compact,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-row {
    grid-template-columns: 46px 72px minmax(0, 1fr);
  }

  .rank-index {
    width: 42px;
    height: 42px;
  }

  .heat-pill {
    grid-column: 3;
    justify-self: start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-container {
    width: min(100% - 22px, 1200px);
  }

  .header-main {
    height: 70px;
  }

  .brand {
    min-width: 0;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
  }

  .brand-text em {
    display: none;
  }

  .hero {
    min-height: 690px;
  }

  .hero-inner {
    min-height: 690px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .movie-grid,
  .movie-grid.compact,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .detail-copy h1 {
    font-size: 36px;
  }

  .article-card,
  .side-card {
    padding: 22px;
  }
}
