:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --amber: #f59e0b;
  --yellow: #facc15;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f9fafb;
  --warm: #fff7ed;
  --radius: 1rem;
  --shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.narrow {
  width: min(900px, calc(100% - 32px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--amber), var(--yellow));
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.25);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  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-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--orange);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.brand-text {
  font-size: clamp(1.15rem, 2vw, 1.6rem);
}

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

.nav-link {
  position: relative;
  padding: 8px 0;
  opacity: 0.94;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 14px;
}

.mobile-link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
}

.mobile-link:hover,
.mobile-link.active {
  background: rgba(255, 255, 255, 0.16);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.58) 52%, rgba(0, 0, 0, 0.78));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
  padding: 60px 0;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
}

.eyebrow.dark {
  color: var(--orange-dark);
}

.hero-content h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5.2rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-desc {
  width: min(760px, 100%);
  margin: 22px auto 0;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

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

.hero-tags {
  justify-content: center;
  margin-top: 22px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.tag-row span {
  color: #c2410c;
  background: #ffedd5;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  box-shadow: 0 16px 35px rgba(249, 115, 22, 0.35);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.03);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

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

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

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

.section {
  padding: 72px 0;
}

.pt-0 {
  padding-top: 0;
}

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

.section-soft {
  background: #f3f4f6;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.15;
  font-weight: 900;
  color: #1f2937;
}

.section-head a {
  color: var(--orange-dark);
  font-weight: 900;
  white-space: nowrap;
}

.light-head h2,
.light-head a {
  color: #ffffff;
}

.card-grid {
  display: grid;
  gap: 24px;
}

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

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

.six-col {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111827;
}

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

.poster-wrap img,
.compact-poster img,
.rank-thumb img,
.poster-panel img,
.category-covers img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-wrap img,
.compact-card:hover .compact-poster img,
.rank-list-item:hover .rank-thumb img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.75));
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 6px 12px;
  font-size: 0.78rem;
  background: linear-gradient(90deg, var(--orange), var(--amber));
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
}

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

.movie-card-body h2,
.compact-card h2,
.rank-copy h2 {
  margin: 0;
  font-weight: 900;
  line-height: 1.35;
  color: #1f2937;
}

.movie-card-body h2 {
  display: -webkit-box;
  min-height: 46px;
  overflow: hidden;
  font-size: 1rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card:hover h2,
.compact-card:hover h2,
.rank-list-item:hover h2 {
  color: var(--orange-dark);
}

.movie-meta,
.movie-line {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.movie-line {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card-body .tag-row {
  margin-top: 12px;
}

.category-grid,
.category-overview-grid {
  display: grid;
  gap: 22px;
}

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

.category-tile,
.category-overview-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile {
  padding: 26px;
  min-height: 170px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
}

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

.category-tile span,
.category-overview-copy h2 {
  display: block;
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--orange-dark);
}

.category-tile p,
.category-overview-copy p {
  margin: 0;
  color: var(--muted);
}

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

.compact-card {
  display: block;
}

.compact-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: #111827;
  box-shadow: var(--shadow);
}

.compact-rank {
  position: absolute;
  top: 10px;
  left: 10px;
  min-width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  font-weight: 900;
}

.compact-card h2 {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 10px;
  font-size: 0.95rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.compact-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

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

.rank-list-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-list-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.rank-thumb {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  background: #111827;
}

.list-rank {
  position: absolute;
  top: 14px;
  left: 14px;
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  font-weight: 900;
}

.rank-copy {
  padding: 22px 22px 22px 0;
}

.rank-copy h2 {
  font-size: 1.35rem;
}

.rank-copy p {
  display: -webkit-box;
  margin: 8px 0 12px;
  overflow: hidden;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rank-meta {
  margin-bottom: 12px;
  color: #4b5563;
  font-size: 0.9rem;
  font-weight: 700;
}

.ranking-band,
.ranking-hero {
  background: linear-gradient(90deg, var(--orange), var(--amber), var(--yellow));
}

.ranking-band .movie-card {
  background: rgba(255, 255, 255, 0.96);
}

.page-hero {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.page-hero p:not(.eyebrow) {
  margin: 18px auto 0;
  width: min(780px, 100%);
  color: #4b5563;
  font-size: 1.08rem;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 190px;
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  background: #111827;
}

.category-overview-copy {
  padding: 26px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
  gap: 16px;
  margin-bottom: 30px;
  padding: 18px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.wide-filter {
  grid-template-columns: minmax(240px, 1fr) 170px 170px 170px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #374151;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #111827;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.filter-card.is-hidden {
  display: none;
}

.player-section {
  padding: 28px 0 34px;
  background: #020617;
}

.player-container {
  max-width: 1180px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #000000;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.26), rgba(0, 0, 0, 0.46) 48%, rgba(0, 0, 0, 0.76));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-play-icon {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 18px 45px rgba(249, 115, 22, 0.38);
}

.player-play-text {
  font-size: 1rem;
  font-weight: 900;
}

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

.detail-card,
.side-card {
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-card {
  padding: clamp(24px, 4vw, 40px);
}

.detail-card h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
  color: #4b5563;
  font-weight: 800;
}

.detail-meta span {
  padding: 6px 12px;
  border-radius: 999px;
  background: #f3f4f6;
}

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

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

.lead-text {
  margin: 0 0 16px;
  color: var(--orange-dark);
  font-size: 1.15rem;
  font-weight: 900;
}

.summary-text p,
.review-text {
  margin: 0 0 14px;
  color: #374151;
  font-size: 1.02rem;
}

.review-text {
  padding: 18px;
  border-radius: 14px;
  background: #f9fafb;
  font-style: italic;
}

.poster-panel {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: #111827;
  box-shadow: var(--shadow);
}

.poster-panel img {
  aspect-ratio: 3 / 4;
}

.side-card {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 20px;
}

.side-card h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 900;
}

.side-card a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--orange-dark);
  background: #fff7ed;
  font-weight: 900;
}

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

.site-footer {
  margin-top: 40px;
  color: #d1d5db;
  background: #111827;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
}

.footer-brand {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 1.4rem;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 1rem;
}

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

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

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  text-align: center;
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .hero-slider {
    height: 600px;
  }
}

@media (min-width: 1100px) {
  .hero-slider {
    height: 700px;
  }
}

@media (max-width: 1100px) {
  .four-col,
  .five-col,
  .six-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

  .detail-aside {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 18px;
  }

  .side-card {
    margin-top: 0;
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero-slider {
    height: 580px;
  }

  .section {
    padding: 54px 0;
  }

  .featured-grid,
  .four-col,
  .five-col,
  .six-col,
  .category-grid,
  .category-overview-grid,
  .compact-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .category-covers {
    min-height: 190px;
  }

  .rank-list-item {
    grid-template-columns: 130px 1fr;
    gap: 14px;
  }

  .rank-copy {
    padding: 16px 16px 16px 0;
  }

  .rank-copy h2 {
    font-size: 1rem;
  }

  .rank-copy p {
    -webkit-line-clamp: 2;
  }

  .filter-panel,
  .wide-filter {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .container,
  .header-inner,
  .mobile-nav,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .hero-slider {
    height: 560px;
  }

  .hero-content {
    align-items: flex-start;
    text-align: left;
  }

  .hero-tags,
  .hero-actions {
    justify-content: flex-start;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .featured-grid,
  .four-col,
  .five-col,
  .six-col,
  .category-grid,
  .category-overview-grid,
  .compact-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-body h2 {
    min-height: auto;
  }

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

  .rank-thumb {
    min-height: 210px;
  }

  .rank-copy {
    padding: 18px;
  }

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

  .player-play-icon {
    width: 66px;
    height: 66px;
  }
}
