*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #1f2937;
  background: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: #0e7490;
  letter-spacing: -0.03em;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #ffffff;
  background: linear-gradient(135deg, #0891b2, #0d9488, #059669);
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(8, 145, 178, 0.24);
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  color: #334155;
  border-radius: 12px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
  color: #0e7490;
  background: #ecfeff;
  transform: translateY(-1px);
}

.nav-link.active {
  color: #ffffff;
  background: #0891b2;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: #f1f5f9;
  border: 0;
  border-radius: 14px;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #0f172a;
  border-radius: 2px;
}

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

.mobile-nav .nav-link {
  display: flex;
  margin: 4px 0;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.22), transparent 32%),
    linear-gradient(135deg, #0891b2 0%, #0d9488 48%, #059669 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% 35%;
  height: 380px;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(90px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 48px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 76px 20px 82px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  color: #cffafe;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  max-width: 740px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.hero h1 span {
  display: block;
  margin-top: 10px;
  color: #a5f3fc;
}

.hero-lead {
  max-width: 650px;
  margin: 24px 0 32px;
  color: #ecfeff;
  font-size: 19px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

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

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

.btn-primary {
  color: #0e7490;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(6, 78, 59, 0.18);
}

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

.btn-outline {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.78);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 620px;
}

.hero-stat {
  padding: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.hero-stat strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.hero-stat span {
  display: block;
  margin-top: 8px;
  color: #cffafe;
  font-size: 14px;
  font-weight: 700;
}

.hero-carousel {
  position: relative;
  min-height: 560px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  background: #0f172a;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s ease;
}

.hero-slide.active {
  position: relative;
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
}

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

.hero-slide-content {
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.32), rgba(15, 23, 42, 0.96)),
    #0f172a;
}

.hero-slide-content h2 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.2;
}

.hero-slide-content p {
  margin: 0 0 18px;
  color: #d1fae5;
}

.hero-slide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.hero-slide-meta span {
  padding: 5px 10px;
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.carousel-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  border: 0;
  border-radius: 999px;
  transition: width 0.2s ease, background 0.2s ease;
}

.carousel-dot.active {
  width: 34px;
  background: #ffffff;
}

.page-hero {
  color: #ffffff;
  background: linear-gradient(135deg, #0891b2, #0d9488, #059669);
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 58px 20px;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: #ecfeff;
  font-size: 18px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 20px;
}

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

.section-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

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

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

.more-link:hover {
  color: #0e7490;
}

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

.category-card {
  display: block;
  min-height: 156px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  border-color: #67e8f9;
  box-shadow: 0 22px 48px rgba(8, 145, 178, 0.15);
  transform: translateY(-4px);
}

.category-card strong {
  display: block;
  margin-bottom: 10px;
  color: #0f172a;
  font-size: 20px;
}

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

.category-card span {
  color: #0891b2;
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 160px;
  gap: 12px;
  margin: 0 0 26px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.search-box input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-box input:focus,
.filter-panel select:focus {
  background: #ffffff;
  border-color: #06b6d4;
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15);
}

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

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  border-color: #99f6e4;
  box-shadow: 0 24px 52px rgba(15, 118, 110, 0.16);
  transform: translateY(-5px);
}

.poster-link {
  position: relative;
  display: block;
  height: 235px;
  overflow: hidden;
  background: linear-gradient(135deg, #cffafe, #ccfbf1);
}

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

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

.year-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #ffffff;
  background: #0891b2;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(8, 145, 178, 0.28);
}

.year-badge {
  right: 12px;
}

.rank-badge {
  left: 12px;
  background: #0f172a;
}

.card-body {
  padding: 18px;
}

.card-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 52px;
  color: #0f172a;
  font-size: 19px;
  font-weight: 850;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-title:hover {
  color: #0e7490;
}

.card-meta {
  margin: 9px 0 10px;
  color: #64748b;
  font-size: 13px;
}

.card-line {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  margin: 0 0 14px;
  color: #475569;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

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

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

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 20px 0;
  color: #64748b;
  font-size: 14px;
}

.breadcrumbs a {
  color: #0891b2;
  font-weight: 800;
}

.detail-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 20px 58px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
  margin-bottom: 34px;
}

.detail-poster {
  overflow: hidden;
  min-height: 480px;
  background: #dbeafe;
  border-radius: 28px;
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.16);
}

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

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #0891b2 55%, #0f172a);
  border-radius: 28px;
  box-shadow: 0 24px 58px rgba(8, 145, 178, 0.18);
}

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

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

.detail-meta span {
  padding: 7px 12px;
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-weight: 800;
}

.detail-one-line {
  margin: 0 0 24px;
  color: #ecfeff;
  font-size: 18px;
  line-height: 1.8;
}

.player-section {
  margin: 30px 0 34px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  background: #020617;
  border-radius: 28px;
  box-shadow: 0 28px 72px rgba(2, 6, 23, 0.24);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #ffffff;
  background:
    radial-gradient(circle at center, rgba(8, 145, 178, 0.2), transparent 36%),
    rgba(2, 6, 23, 0.52);
  border: 0;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  padding-left: 6px;
  color: #0e7490;
  background: #ffffff;
  border-radius: 999px;
  font-size: 34px;
  box-shadow: 0 18px 45px rgba(255, 255, 255, 0.22);
}

.player-overlay strong {
  font-size: 20px;
}

.content-panel {
  margin-bottom: 34px;
  padding: 32px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
}

.content-panel h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 26px;
}

.content-panel p {
  margin: 0 0 20px;
  color: #334155;
  font-size: 16px;
  line-height: 1.9;
}

.content-panel p:last-child {
  margin-bottom: 0;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 72px 120px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.rank-index {
  color: #0891b2;
  font-size: 26px;
  font-weight: 900;
  text-align: center;
}

.rank-cover {
  overflow: hidden;
  height: 78px;
  border-radius: 15px;
}

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

.rank-title {
  display: block;
  color: #0f172a;
  font-size: 19px;
  font-weight: 850;
}

.rank-title:hover {
  color: #0e7490;
}

.rank-desc {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 14px;
}

.rank-action {
  color: #0891b2;
  font-weight: 900;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 42px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 20px;
}

.footer-logo {
  color: #ffffff;
  margin-bottom: 14px;
}

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

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

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

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: #22d3ee;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 20px;
  color: #94a3b8;
  border-top: 1px solid #1e293b;
  text-align: center;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: none;
  width: 48px;
  height: 48px;
  color: #ffffff;
  background: #0891b2;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(8, 145, 178, 0.3);
}

.back-top.show {
  display: block;
}

@media (max-width: 1024px) {
  .hero-inner,
  .detail-hero {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

  .menu-button {
    display: block;
  }

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

  .brand {
    font-size: 18px;
  }

  .brand-icon {
    width: 32px;
    height: 32px;
  }

  .hero-inner {
    padding: 48px 16px 54px;
  }

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

  .btn {
    width: 100%;
  }

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

  .hero-slide img {
    height: 300px;
  }

  .container {
    padding: 38px 16px;
  }

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

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

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

  .poster-link {
    height: 260px;
  }

  .detail-layout {
    padding: 22px 16px 42px;
  }

  .detail-poster {
    min-height: 380px;
  }

  .detail-info,
  .content-panel {
    padding: 24px;
  }

  .rank-row {
    grid-template-columns: 54px 86px 1fr;
  }

  .rank-action {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}