:root {
  --blue: #2563eb;
  --blue-deep: #1d4ed8;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --slate: #0f172a;
  --slate-soft: #1e293b;
  --gray: #475569;
  --line: rgba(15, 23, 42, 0.1);
  --panel: rgba(255, 255, 255, 0.86);
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
  --shadow-soft: 0 14px 40px rgba(15, 23, 42, 0.1);
  --radius: 28px;
  --radius-card: 22px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate);
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 46%, #ecfeff 100%);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.navbar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.navbar-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.28);
}

.brand-text {
  font-size: 21px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #334155;
  font-size: 15px;
  font-weight: 700;
}

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

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

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

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  color: var(--slate);
  background: #f1f5f9;
  border-radius: 14px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 99px;
}

.mobile-menu {
  display: none;
  border-top: 1px solid #e2e8f0;
  padding: 12px 0 18px;
}

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

.mobile-menu a:hover {
  color: var(--blue);
  background: #eff6ff;
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 12% 14%, rgba(125, 211, 252, 0.55), transparent 32%),
    radial-gradient(circle at 78% 12%, rgba(45, 212, 191, 0.42), transparent 30%),
    linear-gradient(135deg, #1d4ed8 0%, #0891b2 50%, #0f766e 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(120deg, rgba(15, 23, 42, 0.32), rgba(15, 23, 42, 0.06));
  background-size: 34px 34px, 100% 100%;
  opacity: 0.95;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
  filter: saturate(1.12) contrast(1.02);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: var(--max);
  min-height: 640px;
  margin: 0 auto;
  padding: 84px 20px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 44px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  color: #e0f2fe;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(43px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2.1vw, 24px);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--blue);
  background: #fff;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
}

.btn-primary:hover {
  background: #eff6ff;
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.44);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.24);
}

.btn-blue {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.24);
}

.hero-feature {
  position: relative;
  border-radius: 34px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(18px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  min-height: 420px;
  background: rgba(15, 23, 42, 0.32);
}

.hero-poster img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.12) 58%, transparent);
}

.hero-card-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 24px;
}

.hero-card-copy h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.hero-card-copy p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.84);
}

.hero-tabs {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 22px;
  z-index: 4;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 44px;
  height: 4px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #fff;
}

main {
  overflow: hidden;
}

.section {
  padding: 76px 20px;
}

.section-soft {
  background: rgba(255, 255, 255, 0.58);
}

.section-deep {
  color: #fff;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.64), transparent 35%),
    linear-gradient(135deg, #0f172a 0%, #1e3a8a 54%, #155e75 100%);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
}

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

.section-heading h2,
.section-heading h1 {
  margin: 0 0 8px;
  color: var(--slate);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-deep .section-heading h2,
.section-deep .section-heading p {
  color: #fff;
}

.section-heading p {
  margin: 0;
  max-width: 680px;
  color: #64748b;
}

.filter-panel {
  margin: 18px 0 30px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.search-input {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #0f172a;
  background: #fff;
  outline: none;
}

.search-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.16);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.filter-button {
  min-height: 42px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  color: #334155;
  background: #e2e8f0;
  font-weight: 800;
  cursor: pointer;
}

.filter-button.is-active,
.filter-button:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.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));
  gap: 18px;
}

.movie-card {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(226, 232, 240, 0.88);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

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

.poster.wide {
  aspect-ratio: 4 / 3;
}

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

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.08) 55%, transparent);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.movie-card:hover .poster-gradient {
  opacity: 1;
}

.play-badge {
  position: absolute;
  right: 14px;
  top: 14px;
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 17px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.card-title {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  color: #0e7490;
  border-radius: 999px;
  background: #ecfeff;
  font-size: 12px;
  font-weight: 900;
}

.pill.gray {
  color: #475569;
  background: #f1f5f9;
}

.pill.gold {
  color: #854d0e;
  background: #fef3c7;
}

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

.category-card {
  min-height: 210px;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(135deg, #fff, #eff6ff);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
  color: var(--slate);
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 86px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform 0.22s ease, background 0.22s ease;
}

.rank-item:hover {
  transform: translateX(6px);
  background: rgba(255, 255, 255, 0.18);
}

.rank-num {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: #0f172a;
  background: #fff;
  font-weight: 900;
}

.rank-thumb {
  overflow: hidden;
  width: 86px;
  height: 62px;
  border-radius: 16px;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-title {
  margin: 0 0 4px;
  font-size: 18px;
}

.rank-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.rank-score {
  color: #fde68a;
  font-weight: 900;
}

.page-hero {
  padding: 72px 20px 54px;
  color: #fff;
  background: radial-gradient(circle at 18% 10%, rgba(34, 211, 238, 0.45), transparent 32%),
    linear-gradient(135deg, #0f172a 0%, #1d4ed8 55%, #0891b2 100%);
}

.page-hero .container {
  display: grid;
  gap: 18px;
}

.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 800;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.38fr);
  gap: 30px;
  align-items: start;
}

.player-card,
.detail-card,
.side-card {
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-soft);
}

.player-card {
  overflow: hidden;
}

.player-shell {
  position: relative;
  background: #020617;
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.18));
}

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

.player-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  object-fit: cover;
  opacity: 0.45;
}

.player-button {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  box-shadow: 0 24px 48px rgba(2, 6, 23, 0.34);
  transition: transform 0.22s ease, background 0.22s ease;
}

.player-button:hover {
  transform: scale(1.06);
  background: #fff;
}

.player-button svg {
  width: 34px;
  height: 34px;
  margin-left: 5px;
}

.player-caption {
  padding: 20px 24px 24px;
}

.player-caption h2 {
  margin: 0 0 8px;
  font-size: 25px;
}

.player-caption p {
  margin: 0;
  color: #64748b;
}

.detail-card {
  padding: 28px;
  margin-top: 24px;
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.detail-card p {
  margin: 0 0 16px;
  color: #475569;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 20px 0 0;
}

.side-card {
  overflow: hidden;
}

.side-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

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

.side-content {
  padding: 22px;
}

.side-content h2 {
  margin-bottom: 8px;
}

.side-content p {
  margin: 0 0 14px;
  color: #64748b;
}

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

.empty-state {
  display: none;
  padding: 28px;
  border-radius: 24px;
  color: #64748b;
  background: #fff;
  border: 1px solid #e2e8f0;
  text-align: center;
}

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

.site-footer {
  padding: 58px 20px 34px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 56%, #0f172a 100%);
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.75fr 0.75fr;
  gap: 32px;
}

.footer-grid h3 {
  margin: 0 0 14px;
  color: #fff;
}

.footer-grid p {
  margin: 0;
}

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

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

.footer-bottom {
  max-width: var(--max);
  margin: 34px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
}

.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

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

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

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

  .hero-feature {
    max-width: 520px;
  }
}

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

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

  .mobile-menu.is-open {
    display: block;
  }

  .hero,
  .hero-content {
    min-height: 760px;
  }

  .hero-content {
    padding-top: 56px;
    padding-bottom: 90px;
  }

  .hero-poster,
  .hero-poster img {
    min-height: 340px;
    height: 340px;
  }

  .section {
    padding: 56px 16px;
  }

  .section-heading {
    display: grid;
  }

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

  .filter-buttons {
    justify-content: flex-start;
  }

  .movie-grid,
  .movie-grid.compact,
  .related-grid,
  .category-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .rank-item {
    grid-template-columns: 40px 70px 1fr;
  }

  .rank-score {
    grid-column: 3;
  }

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

@media (max-width: 480px) {
  .navbar {
    padding: 0 14px;
  }

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

  .hero h1,
  .page-hero h1 {
    font-size: 40px;
  }

  .hero-actions,
  .section-actions {
    display: grid;
  }

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

  .card-body {
    padding: 15px;
  }
}
