:root {
  color-scheme: light;
  --brand: #f97316;
  --brand-dark: #ea580c;
  --brand-soft: #fff7ed;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

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

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

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.35rem;
  font-weight: 900;
  color: #111827;
  white-space: nowrap;
}

.logo-mark {
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  color: #fff;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 1rem;
}

.nav-links a,
.mobile-nav a {
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  color: #374151;
  font-weight: 650;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.mobile-nav a:hover {
  background: #fff7ed;
  color: var(--brand-dark);
  transform: translateY(-1px);
}

.header-search {
  margin-left: auto;
  display: flex;
  min-width: 260px;
  max-width: 360px;
  width: 28%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}

.header-search input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.9rem;
  outline: none;
  color: #111827;
}

.header-search button {
  padding: 0.65rem 1rem;
  background: var(--brand);
  color: #fff;
  font-weight: 750;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  background: #fff7ed;
  color: var(--brand-dark);
  font-size: 1.4rem;
  font-weight: 900;
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem 1rem;
}

.mobile-nav.open {
  display: grid;
  gap: 0.45rem;
}

.hero-section {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(251, 146, 60, 0.45), transparent 32%), linear-gradient(135deg, #111827 0%, #7c2d12 48%, #f97316 100%);
  color: #fff;
}

.hero-slide {
  display: none;
  min-height: 620px;
  align-items: center;
}

.hero-slide.active {
  display: flex;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: blur(2px) saturate(1.1);
  transform: scale(1.04);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.62), rgba(124, 45, 18, 0.25));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 1rem 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.68fr);
  gap: 3rem;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fed7aa;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.hero-title {
  margin-top: 1rem;
  font-size: clamp(2.5rem, 7vw, 5.25rem);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-desc {
  max-width: 760px;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.12rem;
  line-height: 1.9;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.hero-meta span {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: #fff7ed;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.btn-primary,
.btn-secondary,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.78rem 1.2rem;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #f97316, #f59e0b);
  color: #fff;
  box-shadow: 0 14px 26px rgba(249, 115, 22, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-light {
  background: #fff;
  color: #111827;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-light:hover {
  transform: translateY(-2px);
}

.hero-poster-card {
  position: relative;
  min-height: 430px;
  border-radius: 2rem;
  overflow: hidden;
  background: linear-gradient(135deg, #431407, #f97316);
  box-shadow: 0 30px 75px rgba(0, 0, 0, 0.42);
}

.hero-poster-card img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-poster-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent);
}

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 1.5rem;
  display: flex;
  gap: 0.55rem;
  transform: translateX(-50%);
}

.hero-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dot.active {
  width: 2.4rem;
  background: #fff;
}

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.section-tight {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.section-heading h1,
.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-heading p {
  color: var(--muted);
  margin-top: 0.35rem;
}

.page-hero {
  color: #fff;
  background: linear-gradient(135deg, #ea580c, #d97706 50%, #f59e0b);
  padding: 4rem 1rem;
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 950;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 820px;
  margin-top: 0.8rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.85;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--card);
  box-shadow: 0 10px 26px 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-bg {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #431407, #f97316 55%, #facc15);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.02));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.card-play {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #fff;
  font-weight: 850;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
  transform: translateY(0);
}

.card-badge,
.rank-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  border-radius: 999px;
  padding: 0.28rem 0.58rem;
  background: rgba(249, 115, 22, 0.94);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 850;
}

.rank-badge {
  left: 0.75rem;
  right: auto;
  background: rgba(37, 99, 235, 0.92);
}

.card-body {
  padding: 1rem;
}

.card-title {
  display: block;
  min-height: 3rem;
  color: #111827;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.45;
}

.card-title:hover {
  color: var(--brand-dark);
}

.card-desc {
  min-height: 2.7rem;
  margin-top: 0.5rem;
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.8rem;
  color: #6b7280;
  font-size: 0.82rem;
}

.card-meta span {
  border-radius: 999px;
  background: #f3f4f6;
  padding: 0.25rem 0.5rem;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  border-radius: 1.15rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, #fff7ed, #ffffff);
  border: 1px solid rgba(251, 146, 60, 0.26);
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile h3 {
  position: relative;
  z-index: 1;
  font-size: 1.35rem;
  font-weight: 950;
}

.category-tile p {
  position: relative;
  z-index: 1;
  margin-top: 0.6rem;
  color: #6b7280;
  line-height: 1.65;
}

.category-count {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-top: 1rem;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  background: #ffedd5;
  color: #c2410c;
  font-weight: 850;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
  padding: 1rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.75rem 0.85rem;
  outline: none;
  background: #fff;
}

.counter-line {
  margin-bottom: 1rem;
  color: var(--muted);
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 2rem;
  align-items: start;
}

.detail-poster {
  position: sticky;
  top: 5.8rem;
  border-radius: 1.4rem;
  overflow: hidden;
  background: linear-gradient(135deg, #431407, #f97316 55%, #facc15);
  box-shadow: var(--shadow);
}

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

.detail-card {
  border-radius: 1.4rem;
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: #6b7280;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.breadcrumb a:hover {
  color: var(--brand-dark);
}

.detail-title {
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.detail-one-line {
  margin-top: 1rem;
  color: #4b5563;
  font-size: 1.12rem;
  line-height: 1.9;
}

.info-pills,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.info-pills span,
.tag-list span {
  border-radius: 999px;
  padding: 0.38rem 0.7rem;
  background: #fff7ed;
  color: #c2410c;
  font-weight: 750;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #030712;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.26), rgba(3, 7, 18, 0.68));
  color: #fff;
  font-size: 1.25rem;
  font-weight: 950;
}

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

.play-orb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  margin-right: 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: 0 16px 40px rgba(249, 115, 22, 0.38);
}

.content-block {
  margin-top: 1.4rem;
  border-radius: 1.25rem;
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.content-block h2 {
  font-size: 1.45rem;
  font-weight: 950;
  margin-bottom: 0.75rem;
}

.content-block p {
  color: #374151;
  line-height: 1.95;
  font-size: 1.03rem;
}

.rank-list {
  display: grid;
  gap: 0.85rem;
}

.rank-row {
  display: grid;
  grid-template-columns: 54px 96px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  border-radius: 1rem;
  background: #fff;
  padding: 0.8rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.rank-num {
  color: var(--brand-dark);
  font-size: 1.4rem;
  font-weight: 950;
  text-align: center;
}

.rank-thumb {
  overflow: hidden;
  border-radius: 0.8rem;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #431407, #f97316);
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: #111827;
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.empty-state {
  display: none;
  border-radius: 1rem;
  background: #fff;
  padding: 2rem;
  color: #6b7280;
  text-align: center;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.empty-state.show {
  display: block;
}

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

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-poster-card {
    max-width: 520px;
  }
}

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

  .filter-bar {
    grid-template-columns: 1fr;
  }

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

  .detail-poster {
    position: relative;
    top: auto;
  }

  .rank-row {
    grid-template-columns: 42px 82px minmax(0, 1fr);
  }

  .rank-row .btn-primary {
    grid-column: 2 / -1;
  }
}

@media (max-width: 560px) {
  .hero-section,
  .hero-slide {
    min-height: 690px;
  }

  .hero-content {
    padding-top: 3.5rem;
    gap: 1.5rem;
  }

  .hero-poster-card {
    min-height: 300px;
  }

  .hero-poster-card img {
    min-height: 300px;
  }

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

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