:root {
  --red: #dc2626;
  --red-dark: #b91c1c;
  --orange: #ea580c;
  --text: #111827;
  --muted: #6b7280;
  --line: #fee2e2;
  --soft: #fff7ed;
  --card: #ffffff;
  --shadow: 0 20px 50px rgba(127, 29, 29, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(127, 29, 29, 0.08);
}

.site-header__inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #991b1b;
  white-space: nowrap;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.28);
}

.brand__text {
  font-size: 20px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #374151;
  font-weight: 700;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--red);
  background: #fff1f2;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 260px;
  padding: 6px;
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: #fff;
}

.header-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  padding: 8px 10px;
  color: #111827;
  background: transparent;
}

.header-search button,
.search-panel button,
.hero-button,
.section-link,
.player-button {
  border: 0;
  cursor: pointer;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button {
  padding: 8px 16px;
  border-radius: 999px;
}

.header-search button:hover,
.search-panel button:hover,
.hero-button:hover,
.section-link:hover,
.player-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.24);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff1f2;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: #991b1b;
}

.mobile-panel {
  display: none;
  padding: 0 16px 16px;
  background: #fff;
  border-top: 1px solid #fee2e2;
}

.mobile-panel a {
  display: block;
  padding: 12px 4px;
  color: #374151;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 112px 0 56px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #fff1f2 0%, #fffbeb 48%, #fff1f2 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.18;
}

.hero::before {
  top: 110px;
  left: -90px;
  background: var(--red);
}

.hero::after {
  right: -120px;
  bottom: 60px;
  background: var(--orange);
}

.hero-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 42px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  margin-bottom: 24px;
  border-radius: 999px;
  color: #7f1d1d;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 40px rgba(127, 29, 29, 0.09);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 950;
  color: transparent;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--red-dark));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lead {
  max-width: 680px;
  margin: 0 0 30px;
  font-size: clamp(18px, 2.4vw, 25px);
  color: #374151;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-button,
.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
}

.hero-link {
  color: #991b1b;
  font-weight: 900;
  border: 2px solid #fecaca;
  background: #fff;
  transition: all 0.2s ease;
}

.hero-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(127, 29, 29, 0.12);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
}

.hero-stat {
  padding: 16px;
  border: 1px solid rgba(254, 202, 202, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 40px rgba(127, 29, 29, 0.07);
}

.hero-stat strong {
  display: block;
  color: #991b1b;
  font-size: 20px;
  line-height: 1.2;
}

.hero-stat span {
  color: var(--muted);
  font-size: 13px;
}

.hero-stage {
  position: relative;
  min-height: 548px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.hero-feature-card {
  height: 100%;
  display: grid;
  grid-template-rows: minmax(280px, 1fr) auto;
  overflow: hidden;
  border-radius: 34px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-feature-card__poster {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background: linear-gradient(135deg, #fee2e2, #ffedd5);
}

.hero-feature-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.hero-feature-card:hover img {
  transform: scale(1.06);
}

.hero-feature-card__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(17, 24, 39, 0.72));
}

.hero-feature-card__label {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: rgba(220, 38, 38, 0.92);
}

.hero-feature-card__body {
  padding: 24px;
}

.hero-feature-card__body h2 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.15;
}

.hero-feature-card__body p {
  margin: 0 0 18px;
  color: #4b5563;
}

.hero-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #991b1b;
  font-size: 12px;
  font-weight: 800;
  background: #fff1f2;
}

.hero-dots {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  background: #fecaca;
  transition: all 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--red);
}

.section {
  padding: 84px 0;
}

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

.section--red {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.section-heading {
  margin-bottom: 34px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--red);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section--red .section-kicker,
.section--red .section-heading p {
  color: #ffe4e6;
}

.section-heading h2,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-heading h2 {
  font-size: clamp(30px, 4.8vw, 52px);
}

.section-heading p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
}

.section-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 12px 32px rgba(127, 29, 29, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 54px rgba(127, 29, 29, 0.16);
}

.movie-card__poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fee2e2, #ffedd5);
}

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

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

.movie-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(17, 24, 39, 0.72));
}

.movie-card__region,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.movie-card__region {
  left: 10px;
  top: 10px;
  max-width: calc(100% - 20px);
  padding: 0 9px;
  background: rgba(220, 38, 38, 0.92);
}

.rank-badge {
  right: 10px;
  top: 10px;
  width: 30px;
  background: rgba(17, 24, 39, 0.78);
}

.movie-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 13px;
}

.movie-card__body strong {
  min-height: 2.6em;
  color: #111827;
  font-size: 15px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card:hover strong {
  color: var(--red);
}

.movie-card__meta,
.movie-card__line {
  color: var(--muted);
  font-size: 12px;
}

.movie-card__line {
  min-height: 3.2em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-card {
  min-height: 210px;
  padding: 28px;
  border-radius: 28px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  transition: transform 0.22s ease, background 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px) scale(1.01);
  background: rgba(255, 255, 255, 0.2);
}

.category-card__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 22px;
  font-size: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08));
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: #ffe4e6;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
}

.compact-list {
  display: grid;
  gap: 12px;
}

.compact-card {
  position: relative;
  min-height: 94px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(127, 29, 29, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-card:hover {
  transform: translateX(4px);
  box-shadow: 0 18px 42px rgba(127, 29, 29, 0.12);
}

.compact-card img {
  width: 68px;
  height: 86px;
  border-radius: 14px;
  object-fit: cover;
  background: #fee2e2;
}

.compact-card__index {
  position: absolute;
  left: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  background: var(--red);
}

.compact-card strong,
.compact-card em {
  display: block;
  min-width: 0;
}

.compact-card strong {
  overflow: hidden;
  color: #111827;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.compact-card em {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.page-hero {
  padding: 128px 0 54px;
  background: linear-gradient(135deg, #fff1f2, #fff7ed);
}

.page-hero h1 {
  font-size: clamp(38px, 5vw, 64px);
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: #4b5563;
  font-size: 18px;
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.category-nav a,
.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  color: #7f1d1d;
  font-weight: 800;
  background: #fff;
  border: 1px solid #fecaca;
  transition: all 0.2s ease;
}

.category-nav a:hover,
.filter-chip:hover,
.filter-chip.is-active {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin: 30px 0;
  padding: 12px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.search-panel input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 14px 16px;
  font-size: 16px;
  background: transparent;
}

.search-panel button {
  min-width: 120px;
  border-radius: 20px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.detail-main {
  padding: 104px 0 72px;
  background: linear-gradient(135deg, #f9fafb, #fff7ed);
}

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

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

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

.player-card,
.detail-card,
.side-card {
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 24px;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.72));
}

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

.player-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 18px;
}

.player-error {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: none;
  width: min(420px, calc(100% - 32px));
  padding: 18px;
  border-radius: 18px;
  color: #fff;
  text-align: center;
  background: rgba(127, 29, 29, 0.9);
  transform: translate(-50%, -50%);
}

.player-error.is-visible {
  display: block;
}

.detail-card {
  padding: 28px;
  margin-top: 24px;
}

.detail-title h1 {
  font-size: clamp(30px, 4vw, 48px);
}

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

.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: #7f1d1d;
  font-weight: 800;
  background: #fff1f2;
}

.detail-card h2,
.side-card h2 {
  margin: 28px 0 12px;
  color: #111827;
  font-size: 24px;
  line-height: 1.25;
}

.detail-card p {
  color: #374151;
  font-size: 17px;
}

.side-card {
  padding: 18px;
  margin-bottom: 20px;
}

.side-card h2 {
  margin-top: 0;
  font-size: 21px;
}

.side-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 22px;
  object-fit: cover;
  background: #fee2e2;
}

.info-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.info-list div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #fee2e2;
}

.info-list dt {
  color: var(--muted);
}

.info-list dd {
  margin: 0;
  color: #111827;
  font-weight: 800;
}

.site-footer {
  color: #fff;
  background: linear-gradient(135deg, #14532d, #166534);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 32px;
  padding: 54px 0 38px;
}

.brand--footer {
  color: #fff;
}

.site-footer p {
  max-width: 480px;
  color: #dcfce7;
}

.site-footer h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.footer-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.footer-bottom {
  padding: 18px 16px;
  color: #bbf7d0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.empty-state {
  display: none;
  padding: 54px;
  border-radius: 28px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  box-shadow: var(--shadow);
}

.empty-state.is-visible {
  display: block;
}

@media (max-width: 1080px) {
  .header-search {
    display: none;
  }

  .hero-shell,
  .rank-layout,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 620px;
  }

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

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

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

  .mobile-toggle {
    display: block;
    margin-left: auto;
  }

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

  .site-header__inner {
    min-height: 64px;
  }

  .hero {
    padding-top: 92px;
  }

  .hero-stage {
    min-height: 560px;
  }

  .hero-feature-card__poster {
    min-height: 320px;
  }

  .hero-stats,
  .footer-grid,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .section-link {
    margin-top: 16px;
  }

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

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

  .page-hero {
    padding-top: 102px;
  }

  .detail-main {
    padding-top: 88px;
  }
}

@media (max-width: 420px) {
  .container,
  .site-header__inner {
    width: min(100% - 22px, 1180px);
  }

  .brand__text {
    font-size: 18px;
  }

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

  .movie-card__body {
    padding: 10px;
  }
}
