* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #111827;
  background: #f6f7fb;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #111827, #1f2937, #111827);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(16px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #facc15);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #d1d5db;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover,
.mobile-panel a:hover {
  color: #fb923c;
}

.menu-button {
  display: none;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 20px;
}

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

.mobile-panel a {
  display: block;
  color: #d1d5db;
  padding: 11px 0;
  font-weight: 600;
}

.hero {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 42px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  left: 0;
  right: 0;
  padding: 80px 0 92px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s ease;
}

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

.hero-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 24% 20%, rgba(249, 115, 22, 0.34), transparent 32%), radial-gradient(circle at 78% 72%, rgba(250, 204, 21, 0.20), transparent 28%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.14);
  border: 1px solid rgba(251, 146, 60, 0.28);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 20px 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p,
.page-hero p,
.detail-one-line {
  max-width: 720px;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.85;
}

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

.primary-button,
.ghost-button,
.quick-search button,
.search-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.quick-search button,
.search-panel button {
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: 0 15px 34px rgba(249, 115, 22, 0.34);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.20);
}

.primary-button:hover,
.ghost-button:hover,
.quick-search button:hover,
.search-panel button:hover {
  transform: translateY(-2px);
}

.hero-cover {
  position: relative;
  z-index: 2;
  justify-self: end;
  width: min(390px, 100%);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.50);
  transform: rotate(2deg);
}

.hero-cover img {
  aspect-ratio: 2 / 3;
  width: 100%;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 30px;
  background: #f97316;
}

.search-band,
.content-section,
.page-hero,
.detail-layout,
.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.search-band {
  margin-top: -46px;
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 0.8fr);
  gap: 24px;
  align-items: center;
  padding: 28px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.94), rgba(124, 45, 18, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 28px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.22);
}

.search-band h2,
.search-band p {
  margin: 0;
}

.search-band p {
  margin-top: 8px;
  color: #fde68a;
}

.quick-search,
.search-panel {
  display: flex;
  gap: 12px;
}

.quick-search input,
.search-panel input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 999px;
  color: #111827;
  background: #ffffff;
  outline: none;
}

.content-section {
  padding: 62px 0;
}

.dark-section {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(180deg, #111827, #020617);
  color: #ffffff;
}

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

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 0;
  color: #6b7280;
  line-height: 1.7;
}

.dark-section .section-heading p {
  color: #cbd5e1;
}

.section-more {
  color: #ea580c;
  font-weight: 800;
}

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

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

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

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

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #1f2937, #fb923c);
}

.poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.32s ease;
}

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

.poster-year {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 5px 10px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.76);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

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

.movie-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: 44px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 800;
}

.movie-title:hover,
.rank-title:hover {
  color: #ea580c;
}

.movie-meta {
  margin-top: 8px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.5;
}

.movie-card p,
.rank-item p {
  color: #4b5563;
  font-size: 13px;
  line-height: 1.72;
}

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

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span,
.detail-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.category-card,
.category-overview-card {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 20px;
  border-radius: 26px;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease;
}

.category-overview-card {
  min-height: 220px;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
}

.category-card span,
.category-overview-card span {
  font-size: 21px;
  font-weight: 900;
}

.category-card p,
.category-overview-card p {
  margin: 9px 0 0;
  color: #f3f4f6;
  line-height: 1.65;
  font-size: 13px;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 44px 86px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.rank-num {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #facc15);
  font-weight: 900;
}

.rank-poster img {
  width: 86px;
  height: 118px;
  border-radius: 16px;
  object-fit: cover;
}

.rank-title {
  font-size: 17px;
  font-weight: 900;
}

.page-hero {
  margin-top: 28px;
  padding: 58px;
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.36), transparent 28%), linear-gradient(135deg, #111827, #1f2937 52%, #7c2d12);
  border-radius: 34px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.20);
}

.compact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  align-items: end;
  gap: 28px;
}

.detail-hero {
  color: #ffffff;
  background-size: cover;
  background-position: center;
}

.detail-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  min-height: 560px;
  padding: 74px 0;
}

.detail-poster img {
  width: 270px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.52);
}

.breadcrumb {
  display: flex;
  gap: 10px;
  color: #fed7aa;
  font-weight: 700;
}

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #ffffff;
  border: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.56));
  cursor: pointer;
}

.play-overlay span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #facc15);
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.36);
  font-size: 30px;
}

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

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

.detail-text {
  font-size: 16px;
  line-height: 1.9;
}

.detail-text h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.detail-text p {
  margin: 0 0 28px;
  color: #374151;
}

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

.info-grid div {
  padding: 18px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.info-grid span {
  display: block;
  margin-bottom: 8px;
  color: #6b7280;
  font-size: 13px;
}

.info-grid strong {
  color: #111827;
}

.search-panel {
  padding: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, #111827, #020617);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  padding: 50px 0;
}

.footer-logo {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.site-footer h3 {
  color: #ffffff;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 9px 0;
}

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

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

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

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

  .hero-slide,
  .search-band,
  .compact-hero,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 760px;
  }

  .hero-cover {
    justify-self: start;
    width: 250px;
  }

  .movie-grid,
  .large-grid,
  .category-grid,
  .category-overview-grid,
  .ranking-list,
  .rank-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-nav,
  .mobile-panel,
  .search-band,
  .content-section,
  .page-hero,
  .detail-layout,
  .footer-grid {
    width: min(100% - 22px, 1180px);
  }

  .hero {
    min-height: 800px;
  }

  .hero-slide {
    width: min(100% - 22px, 1180px);
    padding-top: 54px;
  }

  .hero h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 36px;
  }

  .hero p,
  .page-hero p,
  .detail-one-line {
    font-size: 15px;
  }

  .quick-search,
  .search-panel {
    flex-direction: column;
  }

  .movie-grid,
  .large-grid,
  .category-grid,
  .category-overview-grid,
  .ranking-list,
  .rank-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 38px 78px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-poster img {
    width: 78px;
    height: 106px;
  }

  .page-hero {
    padding: 34px 24px;
    border-radius: 26px;
  }

  .detail-layout {
    min-height: auto;
    padding: 42px 0;
  }

  .detail-poster img {
    width: 210px;
  }
}
