:root {
  --blue: #2563eb;
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --orange: #f97316;
  --red: #ef4444;
  --yellow: #eab308;
  --green: #16a34a;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 24px 60px rgba(15, 23, 42, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-800);
  background: var(--gray-50);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #fff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.25);
}

.header-inner {
  width: min(1280px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: var(--cyan);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
}

.desktop-nav a,
.desktop-nav button {
  color: #fff;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav button:hover {
  color: #cffafe;
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  width: 210px;
  padding: 8px;
  color: var(--gray-800);
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  color: var(--gray-700);
  border-radius: 10px;
}

.dropdown-panel a:hover {
  color: var(--cyan-dark);
  background: #eff6ff;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 0;
}

.header-search input,
.mobile-search input {
  width: 230px;
  padding: 10px 14px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px 0 0 999px;
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.header-search button,
.mobile-search button {
  padding: 10px 16px;
  color: var(--blue);
  border: 0;
  border-radius: 0 999px 999px 0;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  color: #fff;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 14px 20px 20px;
  background: #1d4ed8;
}

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

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

.mobile-search input {
  width: 100%;
}

.hero-slider {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
  background: #000;
}

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

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

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  color: #fff;
}

.hero-copy {
  width: min(680px, 100%);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--red));
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.28);
  font-size: 14px;
  font-weight: 800;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 660px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}

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

.primary-btn {
  color: #fff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.3);
}

.secondary-btn {
  color: var(--cyan-dark);
  background: #fff;
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.25);
}

.hero-dots {
  position: absolute;
  right: min(48px, 5vw);
  bottom: 36px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 9px;
}

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

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

main {
  min-height: 60vh;
}

.section-block {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
}

.section-block.full-bleed {
  width: 100%;
  padding: 58px max(16px, calc((100% - 1280px) / 2));
}

.section-blue {
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.section-orange {
  background: linear-gradient(135deg, #fff7ed, #fefce8);
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  font-weight: 900;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--gray-600);
}

.section-link {
  color: var(--cyan-dark);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--gray-900);
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.25s ease;
}

.movie-card:hover .card-cover img {
  transform: scale(1.07);
  opacity: 0.88;
}

.play-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: auto;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
  opacity: 0;
  transform: scale(0.92);
  transition: all 0.25s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
  transform: scale(1);
}

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.74);
}

.year-badge {
  right: 10px;
  bottom: 10px;
}

.rank-badge {
  left: 10px;
  top: 10px;
  background: linear-gradient(90deg, var(--orange), var(--red));
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
}

.card-body h3 a:hover {
  color: var(--cyan-dark);
}

.card-body p {
  min-height: 46px;
  margin: 0 0 14px;
  color: var(--gray-600);
  font-size: 14px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  color: var(--gray-500);
  font-size: 13px;
}

.card-meta a,
.card-meta span {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--blue);
  background: #eff6ff;
}

.card-large .card-body h3 {
  font-size: 20px;
}

.category-group {
  padding: 28px 0 10px;
}

.category-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.category-title-row h3 {
  margin: 0;
  color: var(--gray-700);
  font-size: 26px;
}

.page-hero {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.page-hero-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.1;
  font-weight: 900;
}

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

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

.category-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card img {
  height: 170px;
  object-fit: cover;
}

.category-card div {
  padding: 20px;
}

.category-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

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

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 26px;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.filter-bar input,
.filter-bar select {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  outline: none;
  background: #fff;
}

.filter-bar input {
  flex: 1 1 280px;
}

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

.no-results {
  display: none;
  padding: 30px;
  border-radius: 18px;
  color: var(--gray-600);
  background: #fff;
  text-align: center;
}

.no-results.is-visible {
  display: block;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 32px;
}

.breadcrumb {
  margin-bottom: 18px;
  color: var(--gray-600);
  font-size: 14px;
}

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

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.overlay-play {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.45);
  font-size: 36px;
}

.detail-card {
  margin-top: 24px;
  padding: 26px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.18;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.detail-meta span,
.detail-meta a {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--blue);
  background: #eff6ff;
  font-weight: 700;
  font-size: 14px;
}

.detail-card h2,
.review-card h2,
.sidebar h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-card p,
.review-card p {
  margin: 0 0 14px;
  color: var(--gray-700);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
}

.tag-list span {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--cyan-dark);
  background: #ecfeff;
  font-weight: 700;
  font-size: 13px;
}

.review-card {
  margin-top: 24px;
  padding: 26px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.sidebar {
  position: sticky;
  top: 88px;
  align-self: start;
}

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

.related-card {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
}

.related-cover {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 10;
  background: #000;
}

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

.related-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.35;
}

.related-card p {
  margin: 0 0 6px;
  color: var(--gray-600);
  font-size: 13px;
}

.related-card span {
  color: var(--cyan-dark);
  font-size: 12px;
  font-weight: 800;
}

.site-footer {
  color: var(--gray-300);
  background: linear-gradient(180deg, var(--gray-800), var(--gray-900));
}

.footer-grid {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 34px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 32px;
}

.footer-grid p {
  margin: 14px 0 0;
  color: var(--gray-300);
}

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

.footer-grid a {
  display: block;
  margin: 8px 0;
  color: var(--gray-300);
}

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

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray-500);
  text-align: center;
  font-size: 14px;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--cyan);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all 0.25s ease;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

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

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

  .sidebar {
    position: static;
  }
}

@media (max-width: 700px) {
  .header-inner {
    width: min(100% - 24px, 1280px);
  }

  .brand {
    font-size: 18px;
  }

  .brand-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .hero-slider {
    min-height: 520px;
    height: 78vh;
  }

  .hero-slide::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.86));
  }

  .hero-content {
    align-self: end;
    padding-bottom: 78px;
  }

  .hero-dots {
    right: auto;
    left: 20px;
    bottom: 28px;
  }

  .section-head {
    display: block;
  }

  .card-grid,
  .card-grid.three,
  .category-overview,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-block {
    padding: 40px 0;
  }

  .section-block.full-bleed {
    padding: 42px 16px;
  }

  .related-card {
    grid-template-columns: 112px 1fr;
  }

  .detail-card,
  .review-card {
    padding: 20px;
  }
}
