* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #1f2937;
  background: #f8fafc;
  line-height: 1.6;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.96), rgba(59, 130, 246, 0.96), rgba(20, 184, 166, 0.96));
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(10px);
}

.nav-bar {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.16);
}

.brand-text {
  font-size: 1.32rem;
  letter-spacing: 0.04em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(255, 255, 255, 0.94);
  font-weight: 650;
}

.desktop-nav a {
  position: relative;
  padding: 8px 0;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: #fef08a;
  border-radius: 99px;
  transition: width 0.2s ease;
}

.desktop-nav a:hover::after {
  width: 100%;
}

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

.menu-toggle span {
  width: 21px;
  height: 2px;
  border-radius: 4px;
  background: #ffffff;
}

.mobile-nav {
  display: none;
  padding: 0 24px 22px;
}

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

.mobile-nav a {
  color: #ffffff;
  font-weight: 650;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #ffffff;
  background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 48%, #9333ea 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.16) 25%, transparent 25%);
  background-size: 52px 52px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.28), transparent 32%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.5));
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.85fr);
  gap: 44px;
  align-items: center;
  padding: 76px 0;
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-lead {
  max-width: 660px;
  margin: 0 0 26px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.9);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #2563eb;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  background: #fef08a;
}

.btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
}

.hero-panel {
  position: relative;
  min-height: 480px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  border-radius: 30px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.32);
}

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 18%, rgba(2, 6, 23, 0.88));
}

.hero-slide-content {
  position: relative;
  z-index: 1;
  padding: 30px;
}

.hero-slide-content h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.hero-slide-content p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-dots {
  position: absolute;
  right: 20px;
  bottom: -34px;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 30px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: #ffffff;
}

.section {
  padding: 70px 0;
}

.section-soft {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.section-white {
  background: #ffffff;
}

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

.section-title h2,
.list-toolbar h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  line-height: 1.15;
  color: #111827;
}

.section-title p,
.list-toolbar p {
  margin: 8px 0 0;
  color: #64748b;
}

.section-link {
  color: #0891b2;
  font-weight: 800;
}

.grid {
  display: grid;
  gap: 24px;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

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

.score-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.score-pill {
  right: 12px;
  top: 12px;
  padding: 5px 10px;
  font-size: 0.82rem;
  background: linear-gradient(90deg, #f97316, #ef4444);
}

.rank-badge {
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  font-size: 0.8rem;
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
}

.card-body {
  padding: 18px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 0.86rem;
}

.card-meta span,
.detail-meta span {
  padding: 3px 9px;
  border-radius: 999px;
  background: #f1f5f9;
}

.card-body h2 {
  min-height: 3.1em;
  margin: 12px 0 8px;
  font-size: 1.08rem;
  line-height: 1.38;
  color: #111827;
}

.card-body h2 a:hover {
  color: #0891b2;
}

.card-body p {
  min-height: 3.2em;
  margin: 0 0 14px;
  color: #64748b;
  font-size: 0.94rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-list span {
  padding: 4px 9px;
  border-radius: 999px;
  color: #0e7490;
  background: #ecfeff;
  font-size: 0.78rem;
  font-weight: 700;
}

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

.category-card {
  min-height: 190px;
  padding: 28px;
  border-radius: 26px;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #6366f1, #9333ea);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #10b981, #14b8a6);
}

.category-card:nth-child(4n) {
  background: linear-gradient(135deg, #f97316, #ec4899);
}

.category-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 28px 54px rgba(15, 23, 42, 0.2);
}

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

.category-card p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.88);
}

.page-hero {
  padding: 70px 0 56px;
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.28), transparent 34%),
    linear-gradient(135deg, #0891b2, #2563eb 52%, #7c3aed);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.08;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
}

.list-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
}

.toolbar-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: end;
}

.toolbar-controls input,
.toolbar-controls select,
.search-box input {
  min-height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  padding: 0 18px;
  outline: none;
  color: #0f172a;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.toolbar-controls input:focus,
.toolbar-controls select:focus,
.search-box input:focus {
  border-color: #06b6d4;
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
}

.detail-wrap {
  background: #ffffff;
}

.breadcrumb {
  padding: 26px 0 0;
  color: #64748b;
  font-size: 0.94rem;
}

.breadcrumb a:hover {
  color: #0891b2;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.55fr);
  gap: 34px;
  align-items: start;
  padding: 34px 0 46px;
}

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  z-index: 4;
}

.play-overlay.is-hidden {
  display: none;
}

.play-button {
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 50%;
  color: #2563eb;
  background: #ffffff;
  font-size: 2.2rem;
  line-height: 1;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.34);
  transition: transform 0.2s ease, background 0.2s ease;
}

.play-button:hover {
  transform: scale(1.06);
  background: #fef08a;
}

.detail-side {
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, #f8fafc, #ffffff);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.detail-side img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  margin-bottom: 20px;
}

.detail-side h1 {
  margin: 0 0 14px;
  color: #111827;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.16;
}

.detail-score {
  display: inline-flex;
  margin-top: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, #f97316, #ef4444);
  font-weight: 850;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 34px;
  padding-bottom: 70px;
}

.article-box {
  padding: 32px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.article-box h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 1.55rem;
}

.article-box p {
  margin: 0 0 24px;
  color: #475569;
  font-size: 1.03rem;
}

.related-panel {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 22px;
  border-radius: 26px;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px #e2e8f0;
}

.related-panel h2 {
  margin: 0 0 18px;
  font-size: 1.35rem;
  color: #111827;
}

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

.related-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
  transform: translateX(4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.related-card img {
  width: 74px;
  height: 94px;
  object-fit: cover;
  border-radius: 12px;
}

.related-card span {
  color: #111827;
  font-weight: 800;
  line-height: 1.35;
}

.search-box {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin: 30px 0 0;
}

.search-box input {
  width: 100%;
  min-height: 56px;
  font-size: 1rem;
}

.search-results {
  min-height: 200px;
}

.empty-state {
  padding: 48px;
  border-radius: 26px;
  background: #ffffff;
  color: #64748b;
  text-align: center;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, #1e293b, #1e3a8a 52%, #164e63);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 34px;
  padding: 54px 0 34px;
}

.footer-brand {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 850;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #67e8f9;
  font-size: 1rem;
}

.site-footer p {
  max-width: 540px;
  margin: 0;
}

.site-footer a {
  display: block;
  margin: 8px 0;
}

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

.footer-bottom {
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  color: #94a3b8;
}

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

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

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

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

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

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

  .related-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .nav-bar {
    height: 66px;
  }

  .brand-text {
    font-size: 1.06rem;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 54px 0 78px;
  }

  .hero-panel {
    min-height: 380px;
  }

  .section {
    padding: 48px 0;
  }

  .section-title,
  .list-toolbar {
    align-items: start;
    flex-direction: column;
  }

  .toolbar-controls {
    width: 100%;
    justify-content: stretch;
  }

  .toolbar-controls input,
  .toolbar-controls select {
    width: 100%;
  }

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

  .card-body {
    padding: 14px;
  }

  .card-body h2 {
    font-size: 1rem;
  }

  .detail-side,
  .article-box {
    padding: 22px;
    border-radius: 22px;
  }

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

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

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

  .btn {
    width: 100%;
  }
}
