:root {
  --brand: #ea580c;
  --brand-dark: #c2410c;
  --brand-soft: #fff7ed;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --paper: #ffffff;
  --night: #111827;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.logo-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(234, 88, 12, 0.25);
}

.nav-pill {
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
}

.nav-pill:hover,
.nav-pill.is-active {
  color: var(--brand);
  background: var(--brand-soft);
}

.mobile-menu {
  display: none;
}

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

.hero-wrap {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 15% 15%, rgba(251, 146, 60, 0.32), transparent 28%),
    linear-gradient(135deg, #111827 0%, #1f2937 48%, #431407 100%);
}

.hero-slide {
  display: none;
  min-height: 560px;
}

.hero-slide.is-active {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-image-card {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  min-height: 430px;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.35), rgba(17, 24, 39, 0.85));
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.38);
}

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

.hero-image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.04));
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.12);
  color: #fed7aa;
  backdrop-filter: blur(8px);
}

.hero-title {
  margin: 1rem 0;
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.7rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-copy {
  color: #ffedd5;
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 780px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

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

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 14px 28px rgba(234, 88, 12, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--brand-dark);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
}

.btn-soft {
  color: var(--brand);
  background: var(--brand-soft);
}

.btn-soft:hover {
  transform: translateY(-2px);
  background: #fed7aa;
}

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

.hero-dot {
  width: 0.72rem;
  height: 0.72rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

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

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

.section-title h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 900;
}

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

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

.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--paper);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: #fed7aa;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}

.poster-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #fff7ed, #fed7aa 42%, #111827 100%);
}

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

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

.poster-box img.is-missing-image {
  opacity: 0;
}

.poster-ribbon {
  position: absolute;
  left: 0.7rem;
  top: 0.7rem;
  border-radius: 999px;
  padding: 0.22rem 0.58rem;
  background: rgba(17, 24, 39, 0.75);
  color: #fff;
  font-size: 0.72rem;
  backdrop-filter: blur(8px);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0.95rem;
}

.card-title {
  margin: 0;
  color: #111827;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
}

.card-meta {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.card-copy {
  margin: 0.65rem 0 0;
  color: #4b5563;
  font-size: 0.88rem;
  line-height: 1.6;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.chip {
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 0.74rem;
}

.card-link {
  margin-top: auto;
  padding-top: 0.9rem;
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 800;
}

.category-card,
.panel-card,
.rank-row,
.info-block {
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.category-card {
  padding: 1.2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.1);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 3.2rem 86px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  padding: 0.75rem;
}

.rank-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.85rem;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 900;
}

.rank-poster {
  overflow: hidden;
  width: 86px;
  aspect-ratio: 2 / 3;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #fff7ed, #fed7aa);
}

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(3, minmax(120px, 0.24fr));
  gap: 0.75rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.05);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.85rem;
  padding: 0.78rem 0.9rem;
  color: #111827;
  background: #fff;
  outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.14);
}

.detail-hero {
  background: radial-gradient(circle at 25% 15%, rgba(251, 146, 60, 0.24), transparent 28%),
    linear-gradient(135deg, #111827, #1f2937 45%, #431407);
  color: #fff;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 1.5rem;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #fff7ed, #fed7aa 44%, #111827);
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.34);
}

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

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 1.35rem;
  background: #000;
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.16);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(234, 88, 12, 0.18), rgba(0, 0, 0, 0.68));
}

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

.play-button {
  border: 0;
  border-radius: 999px;
  padding: 1rem 1.35rem;
  color: #fff;
  background: var(--brand);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(234, 88, 12, 0.32);
}

.play-message {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  border-radius: 0.85rem;
  padding: 0.75rem 1rem;
  color: #fff;
  background: rgba(17, 24, 39, 0.82);
  font-size: 0.9rem;
}

.prose-box {
  color: #374151;
  line-height: 1.9;
}

.prose-box h2,
.prose-box h3 {
  color: #111827;
}

.breadcrumb {
  color: #fed7aa;
  font-size: 0.92rem;
}

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

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.5rem;
}

.static-page {
  max-width: 900px;
  margin: 0 auto;
}

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

@media (min-width: 1024px) {
  .movie-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .movie-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero-slide.is-active,
  .detail-layout,
  .two-column {
    grid-template-columns: 1fr;
  }

  .hero-slide {
    min-height: auto;
    padding-bottom: 3rem;
  }

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

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

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

  .rank-row {
    grid-template-columns: 2.7rem 72px minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .movie-grid {
    grid-template-columns: 1fr;
  }

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