:root {
  --bg: #f9fafb;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #ea580c;
  --brand-dark: #c2410c;
  --brand-soft: #ffedd5;
  --amber: #f59e0b;
  --teal: #0f766e;
  --blue-soft: #eff6ff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--brand);
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--amber));
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.28);
}

.brand-name {
  font-size: clamp(18px, 2.3vw, 25px);
}

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

.nav-link {
  color: #374151;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand);
  transform: translateY(-1px);
}

.nav-cat {
  color: #64748b;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--brand-soft);
  cursor: pointer;
  padding: 10px;
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 99px;
  background: var(--brand);
}

.mobile-nav {
  display: none;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 18px;
}

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.mobile-nav-link {
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #374151;
  font-weight: 700;
}

.mobile-nav-link.active {
  color: var(--brand);
  background: var(--brand-soft);
}

main {
  min-height: 68vh;
}

.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 20px;
}

.section.narrow {
  max-width: 960px;
}

.section-kicker {
  color: var(--brand);
  font-weight: 900;
  letter-spacing: 0.1em;
  font-size: 13px;
  text-transform: uppercase;
}

.section-title {
  margin: 8px 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.section-desc {
  max-width: 760px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 17px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(120deg, #f97316, #f59e0b 48%, #fb923c);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 255, 255, 0.22), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.06), rgba(17, 24, 39, 0.24));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 600px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 74px 20px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.76fr);
  align-items: center;
  gap: 44px;
}

.hero-copy {
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.90);
  font-size: clamp(18px, 2.3vw, 24px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--brand);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 16px 32px rgba(194, 65, 12, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--brand-dark);
  box-shadow: 0 20px 38px rgba(194, 65, 12, 0.30);
}

.button.light {
  background: #ffffff;
  color: var(--brand);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: none;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 42px;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-stat strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.hero-stat span {
  display: block;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
}

.hero-frame {
  position: relative;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.16);
  padding: 12px;
  box-shadow: 0 32px 70px rgba(124, 45, 18, 0.32);
  backdrop-filter: blur(14px);
}

.hero-slide {
  display: none;
}

.hero-slide.active {
  display: block;
  animation: fadeUp 0.5s ease both;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 450px;
  background: rgba(17, 24, 39, 0.26);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.78));
}

.hero-movie-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 2;
}

.hero-movie-caption h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.18;
}

.hero-movie-caption p {
  margin: 0 0 14px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

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

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

.category-strip {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: -28px auto 0;
  padding: 0 20px 30px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.category-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 58px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #ffffff;
  color: #111827;
  font-weight: 900;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.10);
  transition: transform 0.2s ease, color 0.2s ease;
}

.category-chip:hover {
  transform: translateY(-3px);
  color: var(--brand);
}

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

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

.movie-card {
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-wrap {
  position: relative;
  height: 278px;
  overflow: hidden;
  background: #111827;
}

.compact-card .poster-wrap,
.movie-grid.six .poster-wrap {
  height: 210px;
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62));
  transition: opacity 0.24s ease;
}

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

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand);
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  font-size: 24px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.20);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.region-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.rank-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f59e0b;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(245, 158, 11, 0.32);
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card-body p {
  height: 48px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

.card-meta strong {
  color: var(--brand);
  font-size: 15px;
}

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

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

.category-panel {
  padding: 28px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.category-panel h2,
.category-panel h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-panel p {
  margin: 0 0 18px;
  color: var(--muted);
}

.category-panel ul {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.category-panel li a {
  color: #374151;
}

.category-panel li a:hover {
  color: var(--brand);
}

.filter-panel {
  margin: 28px 0;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
  gap: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

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

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 13px;
  color: #111827;
  background: #f9fafb;
  outline: none;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 14px;
  margin-bottom: 18px;
}

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

.detail-hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px 20px 22px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #030712;
  box-shadow: 0 26px 60px rgba(2, 6, 23, 0.28);
}

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

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.72));
  color: #ffffff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.play-layer.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--brand);
  font-size: 34px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

.detail-info-card {
  padding: 28px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-info-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 20px;
  background: #111827;
}

.detail-info-card h1 {
  margin: 20px 0 12px;
  font-size: 32px;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.detail-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
}

.detail-content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
}

.article-panel,
.side-panel {
  padding: 30px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.article-panel h2,
.side-panel h2 {
  margin: 0 0 16px;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.article-panel p {
  color: #374151;
  font-size: 17px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag-list span,
.tag-list a {
  padding: 7px 11px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}

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

.related-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 82px;
  height: 106px;
  border-radius: 14px;
  object-fit: cover;
  background: #111827;
}

.related-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.3;
}

.related-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.empty-result {
  display: none;
  padding: 28px;
  border-radius: 18px;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
  border: 1px solid var(--line);
}

.site-footer {
  background: #111827;
  color: #ffffff;
  margin-top: 30px;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 42px 20px 28px;
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.footer-brand p {
  max-width: 460px;
  color: #cbd5e1;
}

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #d1d5db;
  background: rgba(255, 255, 255, 0.06);
}

.footer-links a:hover {
  color: #ffffff;
  background: rgba(234, 88, 12, 0.75);
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 20px 28px;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .hero-inner,
  .detail-layout,
  .detail-content {
    grid-template-columns: 1fr;
  }

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

  .detail-info-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
  }

  .detail-info-card img {
    height: 300px;
  }
}

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

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

  .hero-inner {
    min-height: auto;
    padding-top: 48px;
  }

  .hero-poster,
  .hero-poster img {
    min-height: 350px;
    height: 350px;
  }

  .category-strip,
  .category-overview,
  .filter-panel,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

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

  .poster-wrap {
    height: 236px;
  }

  .detail-info-card {
    display: block;
  }
}

@media (max-width: 520px) {
  .header-inner {
    padding: 12px 14px;
  }

  .section,
  .detail-hero,
  .detail-content {
    padding-left: 14px;
    padding-right: 14px;
  }

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

  .hero h1 {
    font-size: 42px;
  }

  .hero-poster,
  .hero-poster img {
    height: 320px;
    min-height: 320px;
  }

  .category-chip {
    min-height: 50px;
  }

  .detail-info-card,
  .article-panel,
  .side-panel {
    padding: 20px;
    border-radius: 22px;
  }
}
