:root {
  --blue: #2563eb;
  --cyan: #0891b2;
  --teal: #0d9488;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 12px 30px rgba(37, 99, 235, 0.16);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--slate-800);
  background: linear-gradient(180deg, #f8fafc 0%, #eef6ff 45%, #ffffff 100%);
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--teal));
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  color: var(--cyan);
  background: var(--white);
  box-shadow: 0 10px 22px rgba(255, 255, 255, 0.22);
}

.logo-text {
  font-size: clamp(20px, 2vw, 28px);
}

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

.nav-link,
.mobile-link,
.category-mini-link {
  border-radius: 999px;
  transition: 0.22s ease;
}

.nav-link {
  padding: 10px 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--white);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

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

.mobile-link {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.12);
}

.category-strip {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 12px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.category-mini-link {
  flex: 0 0 auto;
  padding: 7px 12px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.13);
}

.category-mini-link:hover {
  background: rgba(255, 255, 255, 0.24);
}

main {
  overflow: hidden;
}

.hero-slider,
.page-hero {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  border-radius: var(--radius-xl);
  color: var(--white);
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.26), transparent 28%),
    linear-gradient(130deg, #1d4ed8 0%, #0891b2 50%, #0f766e 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-slider {
  min-height: 640px;
  padding: clamp(24px, 4vw, 52px);
}

.hero-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.46;
  background: rgba(255, 255, 255, 0.24);
}

.hero-glow-one {
  right: -70px;
  top: -70px;
}

.hero-glow-two {
  left: 40%;
  bottom: -160px;
}

.hero-topline {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  align-items: center;
}

.hero-topline h1,
.page-hero h1 {
  margin: 8px 0 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.eyebrow {
  padding: 7px 12px;
  font-size: 13px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
}

.hero-search {
  display: flex;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(18px);
}

.hero-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
  padding: 12px 14px;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.hero-search button,
.gradient-button,
.primary-action,
.ghost-button,
.watch-link {
  border: 0;
  cursor: pointer;
  font-weight: 900;
  border-radius: 999px;
  transition: 0.22s ease;
}

.hero-search button,
.primary-action {
  padding: 12px 20px;
  color: var(--blue);
  background: var(--white);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18);
}

.hero-search button:hover,
.primary-action:hover {
  transform: translateY(-2px);
}

.hero-track {
  position: relative;
  z-index: 2;
  min-height: 400px;
  margin-top: 40px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  opacity: 0;
  transform: translateX(28px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.hero-copy h1 {
  margin: 14px 0 18px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.hero-copy p {
  max-width: 720px;
  margin: 0;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

.hero-tags,
.hero-actions,
.centered-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-tags {
  margin: 24px 0;
}

.hero-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.14);
}

.secondary-action {
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 900;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.secondary-action:hover {
  background: rgba(255, 255, 255, 0.25);
}

.secondary-action.light {
  color: var(--white);
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  max-height: 460px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.35);
  transform: rotate(2deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(15, 23, 42, 0.55));
}

.hero-poster img,
.movie-poster,
.detail-poster img,
.ranking-cover img,
.player-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-control-row {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.slider-button,
.hero-dot {
  border: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.18);
}

.slider-button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--white);
  font-size: 28px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 28px;
  height: 9px;
  border-radius: 999px;
  transition: 0.22s ease;
}

.hero-dot.is-active {
  width: 52px;
  background: var(--white);
}

.hero-category-links {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-category-links a {
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.content-section,
.filter-panel,
.breadcrumb,
.detail-hero,
.player-section,
.detail-content-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 44px auto 0;
}

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

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.section-kicker {
  padding: 6px 10px;
  font-size: 12px;
  color: var(--blue);
  background: #dbeafe;
}

.section-link {
  flex: 0 0 auto;
  color: var(--blue);
  font-weight: 900;
}

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

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

.movie-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 55px rgba(15, 23, 42, 0.16);
}

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

.poster-link img {
  transition: transform 0.35s ease;
}

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

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

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

.movie-card h3 {
  margin: 0 0 8px;
  min-height: 48px;
  color: var(--slate-900);
  font-size: 18px;
  line-height: 1.3;
}

.movie-card h3 a:hover {
  color: var(--blue);
}

.movie-card p {
  margin: 0 0 12px;
  min-height: 58px;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.55;
}

.movie-meta {
  color: var(--slate-500);
  font-size: 13px;
  line-height: 1.5;
}

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

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
  background: #ccfbf1;
}

.category-preview-grid,
.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.category-preview-card,
.category-overview-card,
.filter-panel,
.text-panel {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
}

.category-preview-card,
.category-overview-card {
  padding: 24px;
}

.category-preview-head,
.category-overview-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.category-preview-head span,
.category-overview-title span {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
}

.category-preview-head h3,
.category-overview-title h2 {
  margin: 4px 0 0;
  font-size: 26px;
}

.category-preview-head a,
.ghost-button {
  color: var(--blue);
  font-weight: 900;
}

.category-preview-card p,
.category-overview-card p {
  color: var(--slate-600);
  line-height: 1.7;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.mini-grid .movie-card-body,
.mini-related-grid .movie-card-body {
  padding: 12px;
}

.mini-grid .movie-card p,
.mini-grid .tag-row,
.mini-related-grid .tag-row {
  display: none;
}

.mini-grid .movie-card h3,
.mini-related-grid .movie-card h3 {
  min-height: auto;
  font-size: 15px;
}

.filter-panel {
  padding: 24px;
}

.filter-panel h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.filter-form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 160px 160px auto;
  gap: 14px;
  align-items: end;
}

.filter-form label {
  display: grid;
  gap: 8px;
  color: var(--slate-700);
  font-weight: 800;
}

.filter-form input,
.filter-form select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  outline: none;
  padding: 12px 14px;
  color: var(--slate-800);
  background: var(--white);
}

.filter-form input:focus,
.filter-form select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.14);
}

.gradient-button {
  min-height: 48px;
  padding: 0 22px;
  color: var(--white);
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.filter-empty {
  display: none;
  margin: 16px 0 0;
  color: var(--slate-600);
}

.filter-empty.is-visible {
  display: block;
}

.page-hero {
  padding: clamp(36px, 6vw, 72px);
  text-align: center;
}

.page-hero p {
  max-width: 780px;
  margin: 16px auto 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

.centered-actions {
  justify-content: center;
  margin-top: 24px;
}

.category-overview-links {
  display: grid;
  gap: 8px;
  margin: 16px 0 20px;
}

.category-overview-links a {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--slate-700);
  background: #f8fafc;
}

.category-overview-links a:hover {
  color: var(--blue);
}

.ranking-list {
  display: grid;
  gap: 16px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 90px 96px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.ranking-cover {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: #dbeafe;
}

.ranking-rank {
  color: var(--blue);
  font-weight: 1000;
  font-size: 22px;
}

.ranking-info h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.ranking-info p {
  margin: 0 0 8px;
  color: var(--slate-600);
  line-height: 1.65;
}

.watch-link {
  padding: 11px 18px;
  color: var(--white);
  background: linear-gradient(90deg, var(--cyan), var(--teal));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--slate-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--blue);
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 52px);
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  border-radius: var(--radius-xl);
  color: var(--white);
  background: linear-gradient(130deg, #1e40af, #0891b2, #0f766e);
  box-shadow: var(--shadow);
}

.detail-poster {
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 26px 50px rgba(15, 23, 42, 0.28);
}

.detail-copy h1 {
  margin: 16px 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.detail-copy p {
  margin: 0;
  max-width: 760px;
  color: #e0f2fe;
  font-size: 19px;
  line-height: 1.8;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.detail-meta-grid span {
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
}

.large-tags span {
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.16);
}

.player-section {
  scroll-margin-top: 110px;
}

.video-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

.video-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  color: var(--white);
  cursor: pointer;
  background: #000;
  overflow: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.player-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.25), rgba(15, 23, 42, 0.68));
}

.player-overlay img {
  opacity: 0.78;
  filter: saturate(1.1);
}

.player-overlay strong,
.play-trigger {
  position: absolute;
  z-index: 2;
  left: 50%;
  transform: translateX(-50%);
}

.play-trigger {
  top: 45%;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--blue);
  font-size: 34px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.32);
}

.player-overlay strong {
  top: calc(45% + 108px);
  width: min(80%, 720px);
  font-size: clamp(22px, 3vw, 36px);
}

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

.detail-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.text-panel {
  padding: 28px;
}

.text-panel h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.text-panel p {
  margin: 0;
  color: var(--slate-700);
  line-height: 1.9;
}

.accent-panel {
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.site-footer {
  margin-top: 72px;
  color: var(--white);
  background: linear-gradient(180deg, var(--slate-800), var(--slate-950));
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: #67e8f9;
  font-size: 18px;
}

.footer-grid p,
.footer-links a,
.footer-bottom {
  color: #cbd5e1;
}

.footer-grid p {
  line-height: 1.8;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  text-align: center;
  font-size: 14px;
}

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

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

  .hero-poster {
    max-height: none;
    width: min(360px, 100%);
    margin: 0 auto;
  }

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

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

  .nav-toggle {
    display: block;
  }

  .hero-slider {
    min-height: auto;
  }

  .hero-track {
    min-height: 0;
  }

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

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

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

  .section-heading,
  .category-preview-head,
  .category-overview-title,
  .ranking-item {
    align-items: stretch;
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .ranking-rank,
  .watch-link {
    grid-column: 1 / -1;
  }

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

  .detail-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .movie-grid,
  .dense-grid,
  .mini-grid,
  .category-preview-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .hero-search {
    border-radius: 20px;
    flex-direction: column;
  }

  .content-section,
  .filter-panel,
  .breadcrumb,
  .detail-hero,
  .player-section,
  .detail-content-grid,
  .hero-slider,
  .page-hero {
    width: min(100% - 20px, 1180px);
  }
}
