*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --brand: #ea580c;
  --brand-deep: #dc2626;
  --brand-dark: #9a3412;
  --gold: #facc15;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --paper: #ffffff;
  --soft: #f8fafc;
  --dark: #111827;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 20px;
  --max: 1180px;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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(18px);
}

.nav-shell {
  max-width: var(--max);
  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: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.28);
}

.brand-text {
  font-size: 20px;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

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

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff7ed;
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  padding: 0 20px 16px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

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

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  color: #ffffff;
  background: linear-gradient(120deg, var(--brand), var(--brand-deep));
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(234, 88, 12, 0.82), rgba(220, 38, 38, 0.62)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero-slide.is-active {
  display: flex;
  animation: fadeIn 0.6s ease both;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(250, 204, 21, 0.26), transparent 30%),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.16), transparent 24%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 86px 20px 104px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 54px;
  align-items: center;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-carousel .eyebrow,
.on-dark .eyebrow,
.section-dark .eyebrow {
  color: var(--gold);
}

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

.hero-line {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2.2vw, 24px);
}

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

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.primary-button,
.ghost-button,
.text-button,
.filter-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  padding: 0 24px;
  color: var(--brand);
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.2);
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover,
.filter-reset:hover {
  transform: translateY(-2px);
}

.ghost-button {
  padding: 0 22px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
}

.ghost-button.dark {
  color: var(--brand-dark);
  border-color: #fed7aa;
  background: #fff7ed;
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.42);
  transform: rotate(2deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(15, 23, 42, 0.32));
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
}

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(14px);
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.hero-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
}

.hero-dot.is-active {
  width: 26px;
  border-radius: 999px;
  background: var(--gold);
}

.stats-strip {
  max-width: var(--max);
  margin: -42px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stats-strip div {
  padding: 22px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.stats-strip strong {
  display: block;
  color: var(--brand);
  font-size: 30px;
  line-height: 1;
}

.stats-strip span {
  color: var(--muted);
  font-weight: 700;
}

.section-shell,
.detail-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 20px;
}

.section-tinted {
  max-width: none;
  padding-left: max(20px, calc((100vw - var(--max)) / 2 + 20px));
  padding-right: max(20px, calc((100vw - var(--max)) / 2 + 20px));
  background: linear-gradient(180deg, #fff7ed, #ffffff);
}

.section-dark {
  max-width: none;
  padding-left: max(20px, calc((100vw - var(--max)) / 2 + 20px));
  padding-right: max(20px, calc((100vw - var(--max)) / 2 + 20px));
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #7f1d1d 60%, #9a3412);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-heading-row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2,
.page-hero h1,
.detail-info h1,
.content-card h2,
.side-card h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

.section-heading h2,
.page-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
}

.section-heading p,
.page-hero p,
.content-card p,
.side-card p {
  color: var(--muted);
}

.on-dark p,
.section-dark p {
  color: rgba(255, 255, 255, 0.74);
}

.text-button {
  min-height: 42px;
  padding: 0 18px;
  color: var(--brand);
  background: #fff7ed;
}

.text-button.light {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: #fdba74;
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--brand);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.24);
}

.rank-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #111827;
  background: var(--gold);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.2);
}

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

.movie-meta-line {
  gap: 6px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.movie-meta-line span + span::before {
  content: "·";
  margin-right: 6px;
  color: #fdba74;
}

.movie-card h3 {
  margin: 8px 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.movie-card h3 a:hover {
  color: var(--brand);
}

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row span,
.detail-tags span {
  color: var(--brand-dark);
  background: #ffedd5;
}

.movie-card-compact .movie-card-body {
  padding: 13px;
}

.movie-card-compact h3 {
  font-size: 16px;
}

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

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

.category-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 160px;
  padding: 18px;
  border: 1px solid #fed7aa;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 30px rgba(154, 52, 18, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card.large {
  grid-template-columns: 180px 1fr;
}

.category-card span {
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.category-card h2,
.category-card h3 {
  margin: 6px 0 8px;
}

.category-card p {
  margin: 0;
  color: var(--muted);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

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

.category-thumbs img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
}

.page-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at top left, rgba(250, 204, 21, 0.28), transparent 28%),
    linear-gradient(135deg, var(--brand), var(--brand-deep));
}

.compact-hero {
  padding: 86px 20px;
}

.compact-hero > div {
  max-width: var(--max);
  margin: 0 auto;
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid #fed7aa;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(130px, 0.6fr)) auto;
  gap: 12px;
  align-items: end;
}

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

.filter-grid input,
.filter-grid select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: #fffaf5;
  outline: none;
}

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

.filter-reset {
  border: 0;
  padding: 0 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  cursor: pointer;
}

.filter-count {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

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

.detail-page {
  padding-top: 34px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 34px;
  align-items: center;
  padding: 34px;
  border-radius: 30px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 237, 0.94)),
    var(--detail-bg);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
}

.detail-info h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.detail-line {
  max-width: 760px;
  color: #4b5563;
  font-size: 19px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.detail-meta-grid div {
  padding: 14px;
  border: 1px solid #fed7aa;
  border-radius: 18px;
  background: #ffffff;
}

.detail-meta-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.detail-meta-grid strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
}

.player-section {
  padding-top: 54px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(234, 88, 12, 0.36), rgba(2, 6, 23, 0.68));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--brand);
  background: #ffffff;
  font-size: 34px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26);
}

.play-overlay strong {
  font-size: 18px;
}

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

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  margin-top: 30px;
}

.content-card,
.side-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.content-card h2 + p,
.side-card h2 + p {
  margin-top: 10px;
}

.content-card p {
  font-size: 17px;
}

.score-text {
  color: var(--brand) !important;
  font-size: 28px;
  font-weight: 900;
}

.related-shell {
  padding-left: 0;
  padding-right: 0;
}

.site-footer {
  color: rgba(255, 255, 255, 0.76);
  background: #111827;
}

.footer-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 42px 20px;
  text-align: center;
}

.footer-brand {
  justify-content: center;
  color: #ffffff;
}

.footer-shell p {
  max-width: 620px;
  margin: 16px auto 0;
}

.footer-meta {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.is-hidden-by-filter {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 1024px) {
  .hero-content,
  .detail-hero,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .detail-poster {
    max-width: 320px;
  }

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

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

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

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

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

  .hero-carousel {
    min-height: 760px;
  }

  .hero-content {
    padding-top: 54px;
    gap: 32px;
  }

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

  .section-heading-row {
    display: block;
  }

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

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

  .movie-card h3 {
    font-size: 16px;
  }

  .movie-card p {
    font-size: 13px;
  }

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

  .detail-hero {
    padding: 20px;
  }

  .detail-meta-grid,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .compact-hero {
    padding: 58px 20px;
  }
}

@media (max-width: 480px) {
  .brand-text {
    font-size: 18px;
  }

  .hero-copy h1 {
    font-size: 36px;
  }

  .stats-strip,
  .movie-grid,
  .movie-grid-featured {
    grid-template-columns: 1fr;
  }

  .hero-controls {
    bottom: 14px;
  }
}
