:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --ink: #111827;
  --muted: #64748b;
  --soft: #f8fafc;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: #f1f5f9;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.site-header-inner {
  width: min(1240px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.28);
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(135deg, #1d4ed8, #06b6d4);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  padding: 10px 13px;
  border-radius: 999px;
  color: #334155;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  transform: translateY(-1px);
}

.nav-link-soft {
  color: #475569;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #eff6ff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: #1d4ed8;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #334155;
  font-weight: 700;
}

.mobile-nav a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
}

.mobile-nav.open {
  display: block;
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4, #14b8a6);
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(6, 182, 212, 0.46), transparent 36%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.68) 44%, rgba(15, 23, 42, 0.25));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  padding: 120px 0 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1240px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #0891b2;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content .eyebrow,
.sub-hero .eyebrow,
.detail-copy .eyebrow,
.ranking-hero .eyebrow {
  color: #bfdbfe;
}

.hero-content h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 8vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.hero-summary {
  max-width: 680px;
  margin: 28px 0 0;
  color: #dbeafe;
  font-size: clamp(18px, 2.2vw, 25px);
}

.hero-tags,
.detail-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin-top: 26px;
}

.hero-tags span,
.detail-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-button,
.ghost-button,
.section-link,
.sub-search button,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.sub-search button,
.hero-search button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.32);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover,
.sub-search button:hover,
.hero-search button:hover {
  transform: translateY(-2px);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(14px);
}

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 132px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.hero-dot.active {
  width: 36px;
  background: #ffffff;
}

.hero-search {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%);
  width: min(940px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(16px);
}

.hero-search input,
.sub-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  outline: 0;
  border-radius: 999px;
  padding: 13px 18px;
  color: #0f172a;
  background: #ffffff;
}

.hero-category-row {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 104px;
  transform: translateX(-50%);
  width: min(940px, calc(100% - 32px));
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.hero-category-row a {
  flex: 0 0 auto;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 800;
}

.content-section {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-heading p:not(.eyebrow) {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.section-link {
  color: var(--primary-dark);
  background: #dbeafe;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.movie-year {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
}

.movie-card-body {
  padding: 18px;
}

.movie-meta {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
}

.movie-card h2 {
  margin: 0 0 9px;
  color: #0f172a;
  font-size: 19px;
  line-height: 1.25;
}

.movie-card p {
  margin: 0 0 14px;
  color: #64748b;
  font-size: 14px;
}

.tag-row span {
  color: #0369a1;
  background: #e0f2fe;
}

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

.category-tile,
.category-card-large a {
  position: relative;
  display: block;
  min-height: 210px;
  overflow: hidden;
  border-radius: 28px;
  padding: 26px;
  color: #ffffff;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.category-tile img,
.category-card-large img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.category-tile:hover img,
.category-card-large:hover img {
  transform: scale(1.08);
  opacity: 0.55;
}

.category-tile span,
.category-tile strong,
.category-card-large div {
  position: relative;
  z-index: 1;
}

.category-tile span {
  display: block;
  margin-bottom: 18px;
  font-size: 26px;
  font-weight: 950;
}

.category-tile strong {
  display: block;
  max-width: 260px;
  color: #dbeafe;
}

.category-card-large a {
  min-height: 260px;
}

.category-card-large h2 {
  margin: 0 0 10px;
  font-size: 34px;
}

.category-card-large p {
  max-width: 520px;
  margin: 0;
  color: #dbeafe;
}

.mini-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.mini-title-row span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 800;
}

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

.rank-list-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rank-item {
  display: grid;
  grid-template-columns: auto 76px 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.rank-number {
  color: var(--primary-dark);
  font-size: 22px;
  font-weight: 950;
}

.rank-item img {
  width: 76px;
  height: 98px;
  object-fit: cover;
  border-radius: 14px;
  background: #dbeafe;
}

.rank-copy strong,
.rank-copy em {
  display: block;
}

.rank-copy strong {
  color: #0f172a;
  line-height: 1.32;
}

.rank-copy em {
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
  font-style: normal;
}

.sub-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 16px;
  color: #ffffff;
  text-align: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(125, 211, 252, 0.38), transparent 35%),
    linear-gradient(135deg, #1d4ed8, #06b6d4 52%, #14b8a6);
}

.sub-hero h1 {
  max-width: 900px;
  margin: 0 auto 18px;
  font-size: clamp(34px, 6vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.sub-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 0 auto;
  color: #e0f2fe;
  font-size: 18px;
}

.sub-search {
  width: min(720px, 100%);
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  color: #dbeafe;
  font-weight: 800;
  margin-top: 24px;
}

.crumbs a:hover {
  color: #ffffff;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 14px;
  padding: 16px;
  margin-bottom: 24px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.empty-state {
  display: none;
  padding: 54px 20px;
  color: #64748b;
  text-align: center;
  border-radius: 24px;
  background: #ffffff;
}

.empty-state.show {
  display: block;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  filter: blur(8px);
  transform: scale(1.04);
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 24%, rgba(6, 182, 212, 0.35), transparent 32%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.72));
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 38px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  background: #dbeafe;
}

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

.detail-copy h1 {
  margin: 12px 0 18px;
  font-size: clamp(36px, 7vw, 78px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 24px;
  color: #dbeafe;
  font-size: 21px;
}

.detail-meta span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.detail-tags {
  margin: 18px 0 28px;
}

.detail-tags span {
  color: #e0f2fe;
  background: rgba(14, 165, 233, 0.24);
}

.player-section {
  width: min(1240px, calc(100% - 32px));
  margin: 52px auto 0;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.25), rgba(2, 6, 23, 0.72));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-trigger {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.45);
}

.play-icon {
  display: block;
  width: 0;
  height: 0;
  margin-left: 33px;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 24px solid #ffffff;
}

.player-overlay strong {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.detail-layout {
  width: min(1240px, calc(100% - 32px));
  margin: 42px auto 0;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
}

.detail-article,
.detail-side,
.prose-section {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.detail-article {
  padding: 34px;
}

.detail-article h2,
.detail-side h2,
.prose-section h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 28px;
}

.detail-article p,
.prose-section p {
  margin: 0 0 24px;
  color: #334155;
  font-size: 18px;
}

.detail-article p:last-child,
.prose-section p:last-child {
  margin-bottom: 0;
}

.detail-side {
  padding: 28px;
  align-self: start;
}

.detail-side dl {
  margin: 0;
}

.detail-side dt {
  margin-top: 16px;
  color: #64748b;
  font-size: 13px;
  font-weight: 900;
}

.detail-side dd {
  margin: 4px 0 0;
  color: #0f172a;
  font-weight: 800;
}

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

.movie-card-compact .movie-card-body {
  padding: 14px;
}

.movie-card-compact h2 {
  font-size: 16px;
}

.movie-card-compact p {
  display: none;
}

.site-footer {
  margin-top: 34px;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 34px;
}

.footer-logo .brand-text {
  color: #ffffff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.footer-brand p {
  max-width: 440px;
  margin: 18px 0 0;
  color: #94a3b8;
}

.footer-links h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

.footer-links a {
  display: block;
  margin: 8px 0;
  color: #cbd5e1;
}

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

.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.prose-section {
  padding: 38px;
}

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

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

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

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

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

  .detail-hero-inner,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 280px;
  }
}

@media (max-width: 720px) {
  .site-header-inner {
    width: min(100% - 22px, 1240px);
    height: 64px;
  }

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

  .hero-carousel {
    min-height: 720px;
  }

  .hero-content {
    min-height: 560px;
    padding: 84px 0 220px;
  }

  .hero-search,
  .sub-search,
  .filter-panel {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .hero-controls {
    bottom: 170px;
  }

  .hero-category-row {
    bottom: 136px;
  }

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

  .movie-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .movie-card-body {
    padding: 14px;
  }

  .movie-card h2 {
    font-size: 16px;
  }

  .category-grid,
  .category-list-grid,
  .rank-list,
  .rank-list-wide,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: auto 64px 1fr;
  }

  .rank-item img {
    width: 64px;
    height: 84px;
  }

  .sub-hero {
    padding: 68px 16px;
  }

  .detail-hero-inner {
    padding: 42px 0;
  }

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

  .detail-one-line,
  .detail-article p {
    font-size: 16px;
  }

  .detail-article,
  .detail-side,
  .prose-section {
    padding: 24px;
  }
}

@media (max-width: 430px) {
  .movie-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }
}
