* {
  box-sizing: border-box;
}

:root {
  --blue: #2563eb;
  --cyan: #06b6d4;
  --slate: #0f172a;
  --muted: #64748b;
  --soft: #f8fafc;
  --card: #ffffff;
  --line: #e2e8f0;
  --orange: #f97316;
  --green: #22c55e;
  --red: #ef4444;
  --purple: #8b5cf6;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-strong: 0 24px 70px rgba(15, 23, 42, 0.22);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #1f2937;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 55%, #ecfeff 100%);
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.header-inner {
  max-width: 1800px;
  height: 80px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.26);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(3deg);
}

.brand-copy strong,
.footer-logo strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: transparent;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  background-clip: text;
  -webkit-background-clip: text;
}

.brand-copy small,
.footer-logo small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}

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

.nav-link,
.mobile-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  color: #334155;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-link:hover,
.mobile-nav a:hover {
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 25px rgba(14, 165, 233, 0.22);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #334155;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 12px 24px 24px;
  border-top: 1px solid var(--line);
}

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

.hero-section {
  position: relative;
  min-height: 85vh;
  padding: 16px;
  overflow: hidden;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(248, 250, 252, 0), rgba(248, 250, 252, 1));
}

.hero-grid {
  position: relative;
  z-index: 1;
  height: calc(85vh - 32px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hero-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--shadow-strong);
  isolation: isolate;
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
  transition: transform 0.75s ease;
}

.hero-card:hover img {
  transform: scale(1.1);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.42), rgba(2, 6, 23, 0.04));
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px;
  color: #ffffff;
}

.hero-label,
.highlight-label,
.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 800;
}

.hero-content h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.hero-content p {
  margin: 0 0 20px;
  color: #e2e8f0;
  line-height: 1.75;
}

.hero-meta,
.detail-meta,
.meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-meta span,
.detail-meta span,
.meta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 700;
}

.hero-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 78px;
  height: 78px;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  font-size: 30px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.hero-card:hover .hero-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(255, 255, 255, 0.34);
}

.content-section {
  max-width: 1600px;
  margin: 0 auto;
  padding: 70px 32px;
}

.category-strip {
  padding-top: 34px;
  padding-bottom: 34px;
}

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

.category-tile,
.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile {
  min-height: 150px;
  padding: 24px;
  display: grid;
  align-content: end;
  background: linear-gradient(135deg, #ffffff, #eff6ff);
}

.category-tile::before,
.category-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(6, 182, 212, 0.18));
}

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

.category-tile span,
.category-card-main span {
  position: relative;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-tile strong,
.category-card-main h2 {
  position: relative;
  display: block;
  margin: 10px 0 8px;
  font-size: 24px;
  color: var(--slate);
}

.category-tile em,
.category-card-main p {
  position: relative;
  color: var(--muted);
  font-style: normal;
  line-height: 1.7;
}

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

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
  font-size: 22px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
  color: var(--slate);
  letter-spacing: -0.04em;
}

.section-more,
.primary-action,
.highlight-copy strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(14, 165, 233, 0.24);
}

.search-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding: 14px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.search-box {
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-radius: 16px;
  background: #f8fafc;
}

.search-box span {
  color: var(--blue);
  font-weight: 900;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0f172a;
  font-size: 15px;
}

.filter-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-buttons button {
  min-height: 40px;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  font-weight: 800;
  cursor: pointer;
}

.filter-buttons button.active,
.filter-buttons button:hover {
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card.hidden {
  display: none;
}

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

.wide-grid .poster-link,
.compact-card .poster-link {
  aspect-ratio: 16 / 10;
}

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

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0));
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(239, 68, 68, 0.25);
}

.card-body {
  padding: 18px;
}

.card-body .meta-row span {
  color: var(--blue);
  background: #eff6ff;
}

.card-body h3 {
  margin: 12px 0 8px;
  color: var(--slate);
  font-size: 18px;
  line-height: 1.35;
}

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

.card-body p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

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

.tag-row span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  color: #0e7490;
  background: #ecfeff;
  font-size: 12px;
  font-weight: 800;
}

.highlight-section {
  padding: 76px 32px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.highlight-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 42px;
  align-items: center;
}

.highlight-poster {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-strong);
  background: rgba(255, 255, 255, 0.18);
}

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

.highlight-inner:hover .highlight-poster img {
  transform: scale(1.05);
}

.highlight-poster span {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 92px;
  height: 92px;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  font-size: 34px;
}

.highlight-copy {
  color: #ffffff;
}

.highlight-copy h2 {
  margin: 0 0 20px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.highlight-copy p {
  margin: 0 0 26px;
  color: #e0f2fe;
  font-size: 18px;
  line-height: 1.85;
}

.highlight-tags {
  margin-bottom: 26px;
}

.highlight-tags span {
  display: inline-flex;
  margin: 0 8px 8px 0;
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 800;
}

.soft-panel {
  max-width: none;
  background: rgba(241, 245, 249, 0.85);
}

.soft-panel > * {
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}

.scroll-row {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 8px 0 26px;
  scroll-snap-type: x mandatory;
}

.scroll-row .movie-card {
  width: 320px;
  min-width: 320px;
  scroll-snap-align: start;
}

.inner-page {
  min-height: 70vh;
}

.page-title-block {
  position: relative;
  overflow: hidden;
  padding: 76px 32px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #1d4ed8 56%, #06b6d4);
}

.page-title-block::after {
  content: "";
  position: absolute;
  right: 6%;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(2px);
}

.page-title-block > div {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}

.page-title-block h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.page-title-block p {
  margin: 0;
  max-width: 780px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.85;
}

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

.category-card-main {
  display: block;
  padding: 30px 30px 18px;
}

.category-samples {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  padding: 0 30px 30px;
}

.category-samples a {
  padding: 12px 14px;
  border-radius: 14px;
  color: #334155;
  background: #f8fafc;
  font-weight: 700;
}

.category-samples a:hover {
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

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

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.36;
  filter: blur(18px);
  transform: scale(1.08);
}

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

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 64, 175, 0.72), rgba(8, 145, 178, 0.58));
}

.detail-inner {
  position: relative;
  z-index: 1;
  max-width: 1500px;
  margin: 0 auto;
  padding: 44px 32px 76px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
  color: #dbeafe;
  font-size: 14px;
}

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

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

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow-strong);
  background: rgba(255, 255, 255, 0.18);
}

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

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

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

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

.primary-action {
  margin-top: 28px;
  background: #ffffff;
  color: var(--blue);
}

.player-section {
  max-width: 1400px;
  margin: -40px auto 0;
  padding: 0 32px 54px;
  position: relative;
  z-index: 2;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-strong);
}

.movie-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.66));
  display: grid;
  place-content: center;
  gap: 14px;
  cursor: pointer;
  transition: opacity 0.22s ease;
}

.play-overlay span {
  width: 92px;
  height: 92px;
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
  font-size: 34px;
  box-shadow: 0 20px 45px rgba(2, 6, 23, 0.28);
}

.play-overlay strong {
  font-size: 18px;
}

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

.detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  padding-top: 16px;
}

.story-panel {
  padding: 30px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.story-panel h2 {
  margin: 0 0 16px;
  color: var(--slate);
  font-size: 28px;
}

.story-panel p {
  margin: 0;
  color: #475569;
  line-height: 2;
  font-size: 16px;
}

.site-footer {
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
}

.footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 60px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.75fr) minmax(220px, 0.75fr);
  gap: 40px;
}

.footer-brand p {
  margin: 20px 0 0;
  max-width: 620px;
  color: #bfdbfe;
  line-height: 1.8;
}

.footer-logo .brand-mark {
  background: linear-gradient(135deg, #60a5fa, #22d3ee);
}

.footer-logo strong {
  color: #ffffff;
  background: none;
}

.footer-logo small {
  color: #bfdbfe;
}

.footer-inner h3 {
  margin: 0 0 18px;
  font-size: 20px;
}

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

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

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

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

  .mobile-toggle {
    display: inline-block;
  }

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

  .hero-grid {
    height: auto;
  }

  .hero-card {
    min-height: 420px;
  }

  .highlight-inner,
  .detail-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .header-inner {
    height: 72px;
    padding: 0 18px;
  }

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

  .hero-section {
    min-height: auto;
    padding: 12px;
  }

  .hero-grid,
  .category-strip-inner,
  .movie-grid,
  .wide-grid,
  .category-grid,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: 460px;
  }

  .hero-content {
    padding: 26px;
  }

  .content-section,
  .highlight-section,
  .page-title-block,
  .detail-inner,
  .player-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .search-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box {
    min-width: 0;
  }

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

  .scroll-row .movie-card {
    width: 280px;
    min-width: 280px;
  }

  .detail-copy h1,
  .page-title-block h1 {
    letter-spacing: -0.04em;
  }
}
