* {
  box-sizing: border-box;
}

:root {
  --blue-950: #0b1638;
  --blue-900: #10245b;
  --blue-800: #173678;
  --blue-700: #1d4ed8;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --red-600: #dc2626;
  --green-50: #ecfdf5;
  --blue-50: #eff6ff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  --radius: 18px;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: var(--gray-50);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, #1d4ed8, #1e3a8a);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
}

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

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--orange-500);
  color: var(--white);
  font-size: 22px;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.35);
}

.brand-text {
  display: grid;
}

.brand-text strong {
  font-size: 20px;
  line-height: 1.1;
}

.brand-text small {
  color: #bfdbfe;
  font-size: 12px;
}

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

.nav-link {
  color: #dbeafe;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fdba74;
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.mobile-menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.mobile-nav {
  display: none;
  padding: 10px 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

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

.mobile-link {
  padding: 12px 8px;
  color: #dbeafe;
  font-weight: 700;
}

.mobile-link.active {
  color: #fdba74;
}

.hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  color: var(--white);
  background: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.28), transparent 32%), linear-gradient(135deg, #0b1638, #1d4ed8 52%, #10245b);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.2));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 520px;
  padding: 56px 0;
}

.hero-text {
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #fde68a;
  font-weight: 800;
}

.hero h1,
.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero p {
  max-width: 620px;
  margin: 0 0 26px;
  color: #e5e7eb;
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: var(--orange-500);
  color: var(--white);
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.28);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  background: var(--orange-600);
  transform: translateY(-2px);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.24);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-chips a,
.tag-list span,
.meta-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 34px;
  background: var(--orange-500);
}

main {
  min-height: 60vh;
}

.page-section {
  padding: 54px 0;
}

.page-section.tight {
  padding-top: 30px;
}

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

.section-header h1,
.section-header h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.2;
}

.section-header p,
.page-title p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--gray-500);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

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

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

.poster-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.95);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 14px;
}

.card-body h2 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 16px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--gray-500);
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-500);
  font-size: 12px;
}

.card-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--gray-100);
}

.category-panel {
  border-radius: 28px;
  background: linear-gradient(90deg, var(--green-50), var(--blue-50));
  padding: 30px;
}

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

.category-card {
  min-height: 150px;
  padding: 22px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-700), var(--orange-500));
  color: var(--white);
  font-weight: 900;
}

.category-card h2,
.category-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.category-card p {
  margin: 0;
  color: var(--gray-500);
  font-size: 14px;
}

.promo-panel {
  border-radius: 28px;
  background: linear-gradient(135deg, var(--orange-500), var(--red-600));
  color: var(--white);
  padding: 42px;
  text-align: center;
}

.promo-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
}

.promo-panel p {
  margin: 0 auto 24px;
  max-width: 760px;
  color: #ffedd5;
}

.ranking-list {
  display: grid;
  gap: 12px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 58px 88px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.rank-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: #eff6ff;
  color: var(--blue-700);
  font-weight: 900;
}

.ranking-item:nth-child(-n + 3) .rank-number {
  background: #fff7ed;
  color: var(--orange-600);
}

.ranking-item img {
  width: 88px;
  height: 112px;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(135deg, #dbeafe, #fed7aa);
}

.ranking-title h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.ranking-title p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--gray-500);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.heat {
  color: var(--orange-600);
  font-weight: 900;
}

.search-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.search-panel input {
  width: min(520px, 100%);
  height: 48px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  background: var(--white);
  padding: 0 16px;
  font-size: 15px;
  outline: none;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.search-panel input:focus {
  border-color: var(--blue-700);
}

.search-panel span {
  color: var(--orange-600);
  font-weight: 700;
}

.page-title {
  padding: 46px 0 22px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--gray-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--blue-700);
  font-weight: 700;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 34px;
  align-items: center;
  padding: 34px;
  border-radius: 30px;
  background: linear-gradient(135deg, #10245b, #1d4ed8 55%, #0b1638);
  color: var(--white);
  box-shadow: var(--shadow);
}

.detail-cover {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.28);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #dbeafe, #fed7aa);
}

.detail-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
}

.detail-copy p {
  margin: 0 0 20px;
  color: #e5e7eb;
  font-size: 18px;
}

.meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(2, 6, 23, 0.46);
  color: var(--white);
  cursor: pointer;
}

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

.play-circle {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  background: var(--orange-500);
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.42);
  font-size: 30px;
  font-weight: 900;
}

.content-card {
  padding: 30px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.content-card p {
  margin: 0 0 16px;
  color: var(--gray-700);
}

.detail-layout {
  display: grid;
  gap: 26px;
}

.site-footer {
  margin-top: 60px;
  color: #cbd5e1;
  background: #0f172a;
}

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

.footer-brand {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 22px;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 18px;
}

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

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

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

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

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

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

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

  .mobile-menu-button {
    display: block;
  }

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

  .section-header {
    display: block;
  }

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

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

  .ranking-item {
    grid-template-columns: 46px 74px 1fr;
  }

  .ranking-item .heat {
    grid-column: 3;
  }

  .ranking-item img {
    width: 74px;
    height: 96px;
  }

  .detail-hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .detail-cover {
    max-width: 260px;
  }

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

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

  .brand-text small {
    display: none;
  }

  .hero h1,
  .hero h2 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }

  .category-panel,
  .promo-panel,
  .content-card {
    padding: 22px;
  }

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

  .ranking-item {
    grid-template-columns: 42px 1fr;
  }

  .ranking-item img {
    display: none;
  }

  .ranking-item .heat {
    grid-column: 2;
  }
}
