:root {
  color-scheme: dark;
  --site-bg: #0f172a;
  --site-panel: rgba(15, 23, 42, 0.78);
  --site-panel-strong: #111827;
  --site-line: rgba(148, 163, 184, 0.18);
  --site-text: #ffffff;
  --site-muted: #cbd5e1;
  --site-soft: #94a3b8;
  --site-orange: #f97316;
  --site-red: #dc2626;
  --site-yellow: #facc15;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 10%, rgba(249, 115, 22, 0.14), transparent 28rem),
    radial-gradient(circle at 90% 0%, rgba(220, 38, 38, 0.12), transparent 24rem),
    linear-gradient(180deg, #111827 0%, #0f172a 45%, #020617 100%);
  color: var(--site-text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--site-line);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--site-orange), var(--site-red));
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.34);
}

.logo-mark svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a,
.mobile-menu a {
  border-radius: 10px;
  color: #d1d5db;
  font-weight: 700;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.nav-links a {
  padding: 10px 12px;
  font-size: 14px;
}

.nav-links a:hover,
.mobile-menu a:hover,
.nav-links a.active {
  color: #ffffff;
  background: rgba(51, 65, 85, 0.9);
}

.header-search {
  position: relative;
  width: min(320px, 32vw);
}

.header-search input,
.search-main input,
.filter-input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  outline: none;
  transition: border 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.header-search input {
  height: 42px;
  padding: 0 16px 0 42px;
}

.header-search input:focus,
.search-main input:focus,
.filter-input:focus {
  border-color: rgba(249, 115, 22, 0.72);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
  background: rgba(15, 23, 42, 0.95);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: #94a3b8;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: rgba(51, 65, 85, 0.85);
  color: #ffffff;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 999px;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--site-line);
  padding: 14px 22px 20px;
  background: rgba(15, 23, 42, 0.98);
}

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

.mobile-menu a {
  display: block;
  padding: 11px 12px;
}

.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 22px 64px;
}

.hero-slider {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(249, 115, 22, 0.18);
  border-radius: 28px;
  background: #0f172a;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.42);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  background-image:
    linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(15, 23, 42, 0.82) 43%, rgba(15, 23, 42, 0.25) 72%, rgba(2, 6, 23, 0.72) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 380px);
  align-items: center;
  gap: 38px;
  padding: 64px;
}

.hero-kicker,
.section-kicker,
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 800;
}

.hero-kicker {
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 18px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--site-orange), var(--site-red));
  box-shadow: 0 14px 26px rgba(249, 115, 22, 0.24);
}

.hero-title {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 74px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-desc {
  max-width: 720px;
  margin: 0 0 28px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.9;
}

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

.hero-meta span,
.movie-meta span,
.card-meta span,
.detail-tags span,
.category-chip,
.filter-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 700;
}

.hero-meta span {
  padding: 8px 12px;
}

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

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 14px;
  padding: 0 20px;
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--site-orange), var(--site-red));
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(249, 115, 22, 0.28);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.76);
  color: #ffffff;
}

.btn-ghost {
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.12);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover,
.movie-card:hover {
  transform: translateY(-3px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.5);
  box-shadow: 0 28px 54px rgba(0, 0, 0, 0.45);
}

.hero-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), transparent);
}

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

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

.hero-dot.active {
  background: linear-gradient(90deg, var(--site-orange), var(--site-red));
}

.section {
  margin-top: 46px;
}

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

.section-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  font-weight: 950;
}

.section-desc {
  max-width: 780px;
  margin-top: 8px;
  color: var(--site-muted);
  line-height: 1.8;
}

.section-kicker {
  padding: 6px 11px;
  margin-bottom: 10px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.22);
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.94));
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease, border 0.18s ease, box-shadow 0.18s ease;
}

.movie-card:hover {
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.32);
}

.movie-card a {
  display: block;
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  background: #1e293b;
}

.poster-wrap img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.28s ease;
}

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

.card-rating {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  color: var(--site-yellow);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.card-type {
  position: absolute;
  right: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 5px 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--site-orange), var(--site-red));
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-body {
  padding: 14px;
}

.card-title {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 900;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-desc {
  min-height: 42px;
  margin: 0 0 12px;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.card-meta span {
  padding: 5px 8px;
  font-size: 12px;
}

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

.horizontal-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 20px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.7);
  transition: transform 0.18s ease, border 0.18s ease;
}

.horizontal-card:hover {
  transform: translateY(-3px);
  border-color: rgba(249, 115, 22, 0.42);
}

.horizontal-card img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
}

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

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background-image:
    linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.92)),
    var(--category-image);
  background-size: cover;
  background-position: center;
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.28);
}

.category-card-content {
  position: absolute;
  inset: auto 0 0;
  padding: 20px;
}

.category-card h2,
.category-card h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 950;
}

.category-card p {
  margin: 0;
  color: #e2e8f0;
  line-height: 1.7;
}

.category-chip,
.filter-chip {
  padding: 8px 12px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
}

.filter-input {
  max-width: 420px;
  height: 44px;
  padding: 0 15px;
}

.filter-chip {
  border: 1px solid rgba(148, 163, 184, 0.2);
  cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
  border-color: rgba(249, 115, 22, 0.55);
  color: #ffffff;
  background: rgba(249, 115, 22, 0.18);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 92px 1fr auto;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 20px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.78);
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--site-orange), var(--site-red));
  font-weight: 950;
}

.rank-item img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
}

.page-hero {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 56px);
  background:
    linear-gradient(120deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.82)),
    var(--page-image, none);
  background-size: cover;
  background-position: center;
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.3);
}

.page-hero h1 {
  max-width: 880px;
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.page-hero p {
  max-width: 860px;
  margin: 0;
  color: #dbeafe;
  font-size: 17px;
  line-height: 1.9;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 20px;
  color: #cbd5e1;
  font-size: 14px;
}

.breadcrumb a {
  color: #fed7aa;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(240px, 330px) 1fr;
  gap: 34px;
  align-items: start;
}

.detail-poster {
  position: sticky;
  top: 92px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 26px 52px rgba(0, 0, 0, 0.35);
}

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

.detail-panel {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  padding: clamp(22px, 4vw, 34px);
  background: rgba(15, 23, 42, 0.78);
}

.detail-title {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.movie-meta,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.movie-meta span,
.detail-tags span {
  padding: 7px 10px;
}

.detail-lead {
  color: #f8fafc;
  font-size: 18px;
  line-height: 1.9;
}

.copy-block {
  margin-top: 22px;
}

.copy-block h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 950;
}

.copy-block p {
  margin: 0;
  color: #cbd5e1;
  line-height: 2;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(249, 115, 22, 0.26);
  border-radius: 26px;
  background: #000000;
  box-shadow: 0 28px 62px rgba(0, 0, 0, 0.4);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-core {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  border-radius: 999px;
  padding: 16px 24px;
  background: linear-gradient(90deg, var(--site-orange), var(--site-red));
  box-shadow: 0 20px 36px rgba(249, 115, 22, 0.36);
  font-size: 18px;
  font-weight: 950;
}

.play-triangle {
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 16px solid #ffffff;
}

.search-main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  max-width: 780px;
  margin-top: 26px;
}

.search-main input {
  height: 54px;
  padding: 0 18px;
  font-size: 16px;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.98));
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 22px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  color: #cbd5e1;
}

.footer-inner p {
  margin: 10px 0 0;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: flex-end;
  gap: 12px;
}

.footer-links a {
  color: #fed7aa;
  font-weight: 800;
}

.empty-state {
  display: none;
  border: 1px dashed rgba(148, 163, 184, 0.24);
  border-radius: 22px;
  padding: 34px;
  color: #cbd5e1;
  text-align: center;
}

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

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

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

  .menu-button {
    display: block;
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    padding: 36px 24px 72px;
  }

  .hero-poster {
    display: none;
  }

  .movie-grid,
  .movie-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .horizontal-list,
  .footer-inner,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    position: static;
    max-width: 360px;
  }

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

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

  .rank-score {
    grid-column: 3;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .header-inner {
    padding: 0 16px;
  }

  .page-main {
    padding: 18px 14px 48px;
  }

  .hero-title,
  .detail-title,
  .page-hero h1 {
    letter-spacing: -0.025em;
  }

  .hero-actions,
  .search-main {
    display: grid;
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .horizontal-card {
    grid-template-columns: 92px 1fr;
  }

  .card-body {
    padding: 12px;
  }
}
