:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --cyan: #06b6d4;
  --orange: #f97316;
  --green: #16a34a;
  --yellow: #f59e0b;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --round: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #f9fafb;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.32);
}

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

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

.nav-link:hover,
.nav-link.active {
  color: var(--blue);
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input {
  width: 210px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 10px 14px;
  outline: none;
  background: #ffffff;
}

.header-search input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.header-search button,
.primary-btn,
.white-btn,
.outline-btn,
.ghost-btn {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  padding: 11px 20px;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
}

.header-search button:hover,
.primary-btn:hover,
.white-btn:hover,
.outline-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: #eff6ff;
  color: var(--blue);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 22px;
}

.mobile-panel {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.mobile-links {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  gap: 12px;
  padding: 16px 0 22px;
}

.mobile-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--blue);
  font-weight: 700;
}

.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.32), transparent 26%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.58) 45%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 1180px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.92);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.28);
}

.hero-content h1 {
  max-width: 760px;
  margin: 18px 0 16px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2vw, 23px);
}

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

.ghost-btn {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.42);
  padding: 11px 22px;
}

.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.46);
  cursor: pointer;
  font-size: 38px;
  line-height: 1;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
}

.hero-dot.active {
  width: 30px;
  border-radius: 999px;
  background: #ffffff;
}

.section {
  padding: 58px 0;
}

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

.section-title h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.18;
  font-weight: 900;
}

.section-title p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-title a {
  color: var(--blue);
  font-weight: 800;
  white-space: nowrap;
}

.center-title {
  justify-content: center;
  text-align: center;
}

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

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

.compact-grid {
  margin-top: 24px;
}

.movie-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--round);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111827;
}

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

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

.play-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  font-size: 38px;
  transition: opacity 0.25s ease, background 0.25s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
  background: rgba(0, 0, 0, 0.25);
}

.duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 900;
}

.movie-info {
  padding: 16px;
}

.movie-title {
  display: -webkit-box;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-title:hover {
  color: var(--blue);
}

.movie-info p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 46px;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.meta-row span {
  color: #64748b;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
}

.tag-row {
  margin-top: 10px;
}

.tag-row span {
  color: var(--blue);
  background: #eff6ff;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

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

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 280px;
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 12px;
}

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

.large-card .poster {
  aspect-ratio: 16 / 9;
}

.large-card .movie-title {
  font-size: 24px;
}

.category-section {
  background: #ffffff;
}

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

.category-tile,
.category-overview-card a {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 22px;
  padding: 22px;
  color: #ffffff;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.category-tile span,
.category-overview-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
}

.category-tile small,
.category-overview-card p {
  color: rgba(255, 255, 255, 0.9);
}

.color-0 {
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.color-1 {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.color-2 {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

.color-3 {
  background: linear-gradient(135deg, #7c3aed, #db2777);
}

.color-4 {
  background: linear-gradient(135deg, #0f172a, #475569);
}

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

.rank-list {
  grid-template-columns: 1fr;
}

.horizontal-card {
  display: flex;
  gap: 16px;
  align-items: center;
  min-width: 0;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

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

.rank-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border-radius: 50%;
  font-size: 19px;
  font-weight: 900;
}

.horizontal-poster {
  width: 150px;
  height: 92px;
  overflow: hidden;
  flex: 0 0 auto;
  border-radius: 14px;
  background: #111827;
}

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

.horizontal-info {
  min-width: 0;
}

.horizontal-info a {
  display: block;
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.horizontal-info a:hover {
  color: var(--blue);
}

.horizontal-info p {
  display: -webkit-box;
  overflow: hidden;
  margin: 6px 0 8px;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.blue-band {
  color: #ffffff;
  background: linear-gradient(120deg, var(--blue), var(--cyan));
  padding: 70px 0;
}

.blue-band-inner {
  text-align: center;
}

.blue-band h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
}

.blue-band p {
  margin: 0 auto 28px;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.white-btn,
.outline-btn {
  display: inline-flex;
  margin: 6px;
  padding: 12px 24px;
}

.white-btn {
  color: var(--blue);
  background: #ffffff;
}

.outline-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.12);
}

.page-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 85% 12%, rgba(6, 182, 212, 0.35), transparent 28%),
    linear-gradient(135deg, #111827, #1d4ed8 55%, #06b6d4);
  padding: 82px 0;
}

.slim-hero {
  padding: 70px 0;
}

.category-hero {
  padding: 76px 0;
}

.page-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 900;
}

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

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.crumb a:hover {
  color: #ffffff;
}

.filter-panel {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 26px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.filter-input {
  flex: 1;
  min-width: 220px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 12px 16px;
  outline: none;
}

.filter-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-select {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 12px 14px;
  background: #ffffff;
  outline: none;
}

.filter-input:focus,
.filter-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.category-overview-card {
  overflow: hidden;
  border-radius: 24px;
}

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

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 18px;
}

.category-cover-stack img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.detail-head {
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.3), transparent 30%),
    linear-gradient(135deg, #0f172a, #111827 48%, #1d4ed8);
  padding: 42px 0 70px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.32);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.1;
  font-weight: 900;
}

.lead-text {
  max-width: 820px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

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

.detail-meta span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
}

.detail-tags {
  margin-bottom: 24px;
}

.player-card {
  overflow: hidden;
  background: #020617;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

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

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.12));
  cursor: pointer;
  z-index: 2;
}

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

.big-play {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 50%;
  font-size: 42px;
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.42);
}

.detail-content {
  max-width: 920px;
}

.detail-content h2 {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 900;
}

.detail-content p {
  margin: 0 0 28px;
  color: #334155;
  font-size: 17px;
}

.site-footer {
  color: #d1d5db;
  background: #111827;
  padding-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
}

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

.site-footer p {
  color: #9ca3af;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 18px;
}

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

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

.footer-bottom {
  margin-top: 36px;
  padding: 20px;
  color: #9ca3af;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.is-hidden {
  display: none !important;
}

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

  .desktop-nav {
    display: none;
  }

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

@media (max-width: 820px) {
  .nav-wrap {
    gap: 12px;
  }

  .header-search {
    display: none;
  }

  .hero-carousel {
    height: 520px;
  }

  .hero-control {
    display: none;
  }

  .section-title,
  .filter-panel,
  .detail-grid {
    display: grid;
  }

  .movie-grid,
  .full-grid,
  .feature-grid,
  .horizontal-grid,
  .rank-grid,
  .category-grid,
  .category-overview-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .detail-poster {
    max-width: 320px;
  }
}

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

  .logo {
    font-size: 18px;
  }

  .logo-mark {
    width: 32px;
    height: 32px;
  }

  .hero-carousel {
    height: 500px;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-content p,
  .lead-text {
    font-size: 17px;
  }

  .movie-grid,
  .full-grid,
  .feature-grid,
  .horizontal-grid,
  .rank-grid,
  .category-grid,
  .category-overview-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .horizontal-card {
    align-items: flex-start;
  }

  .horizontal-poster {
    width: 118px;
    height: 82px;
  }

  .scroll-row {
    grid-auto-columns: 245px;
  }

  .big-play {
    width: 74px;
    height: 74px;
    font-size: 34px;
  }
}
