:root {
  --red-950: #3f0708;
  --red-900: #7f1d1d;
  --red-800: #991b1b;
  --red-700: #b91c1c;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-300: #fcd34d;
  --cream: #fff7ed;
  --paper: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(127, 29, 29, 0.14);
  --shadow: 0 18px 48px rgba(69, 10, 10, 0.16);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 44%, #fff1f2 100%);
  min-height: 100vh;
}

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: 80;
  color: #ffffff;
  background: linear-gradient(90deg, var(--red-900), var(--red-700), #92400e);
  box-shadow: 0 10px 30px rgba(69, 10, 10, 0.22);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 78px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #7f1d1d;
  font-size: 26px;
  font-weight: 900;
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #fde68a);
  box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.5), 0 10px 22px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-3deg);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 23px;
  letter-spacing: 0.08em;
}

.brand-text small {
  color: #fde68a;
  font-size: 12px;
}

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

.nav-link {
  position: relative;
  font-weight: 700;
  opacity: 0.92;
  padding: 8px 0;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: #fcd34d;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fef3c7;
  opacity: 1;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.header-search input,
.mobile-search input {
  width: 220px;
  padding: 11px 14px;
  color: #ffffff;
  border: 0;
  outline: 0;
  background: transparent;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.header-search button,
.mobile-search button {
  border: 0;
  color: #7f1d1d;
  font-weight: 900;
  padding: 11px 16px;
  cursor: pointer;
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 18px 22px 22px;
  background: rgba(69, 10, 10, 0.34);
}

.mobile-panel.open {
  display: grid;
  gap: 18px;
}

.mobile-panel nav,
.quick-links {
  display: grid;
  gap: 12px;
}

.quick-link {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  color: #fde68a;
}

.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 22px 0;
}

.hero {
  position: relative;
  min-height: 520px;
  color: #ffffff;
  overflow: hidden;
  background: linear-gradient(110deg, #450a0a, #7f1d1d, #92400e);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
  filter: saturate(1.08) contrast(1.08);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 18%, rgba(245, 158, 11, 0.38), transparent 28%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.8)),
    linear-gradient(90deg, rgba(69, 10, 10, 0.88), rgba(69, 10, 10, 0.22));
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 22px;
  display: grid;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
  display: grid;
  gap: 20px;
}

.hero-kicker,
.section-kicker,
.detail-kicker {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #7f1d1d;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.hero p {
  margin: 0;
  max-width: 700px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2.4vw, 24px);
}

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

.btn-primary,
.btn-secondary,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #dc2626, #d97706);
  box-shadow: 0 16px 36px rgba(185, 28, 28, 0.35);
}

.btn-secondary {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.btn-soft {
  color: #7f1d1d;
  background: #fff7ed;
  border: 1px solid var(--line);
}

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

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 28px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

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

.hero-dot.active {
  width: 34px;
  background: #fcd34d;
}

.section {
  margin-top: 52px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-title {
  display: grid;
  gap: 8px;
}

.section-title h1,
.section-title h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
}

.section-title p {
  margin: 0;
  color: var(--muted);
  max-width: 780px;
}

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

.movie-card,
.search-movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 26px rgba(69, 10, 10, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover,
.search-movie-card:hover,
.compact-card:hover,
.category-card:hover,
.rank-row:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(217, 119, 6, 0.32);
}

.poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: block;
  background: linear-gradient(135deg, #7f1d1d, #f59e0b);
}

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

.movie-card:hover .poster img,
.search-movie-card:hover .poster img,
.compact-card:hover img {
  transform: scale(1.06);
}

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

.poster-play {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #7f1d1d;
  border-radius: 999px;
  background: #fcd34d;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.card-body {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.card-body h2,
.card-body h3 {
  margin: 0;
  color: #111827;
  font-size: 20px;
  line-height: 1.25;
}

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

.card-meta,
.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #7f1d1d;
  font-size: 13px;
  font-weight: 800;
}

.card-meta span,
.card-category,
.tag-row span,
.meta-line span,
.detail-tags span {
  border-radius: 999px;
  padding: 5px 10px;
  background: #fff7ed;
  border: 1px solid var(--line);
}

.card-category {
  color: #92400e;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span,
.detail-tags span {
  color: #92400e;
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  position: relative;
  min-height: 168px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: var(--radius);
  padding: 22px;
  color: #ffffff;
  background:
    radial-gradient(circle at right top, rgba(252, 211, 77, 0.36), transparent 42%),
    linear-gradient(135deg, #7f1d1d, #b91c1c, #b45309);
  box-shadow: 0 12px 30px rgba(69, 10, 10, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
}

.category-card span {
  color: #fef3c7;
  font-weight: 900;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 78px 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-num {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #7f1d1d;
  border-radius: 18px;
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
}

.rank-row img {
  width: 92px;
  height: 122px;
  object-fit: cover;
  border-radius: 16px;
}

.rank-info {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.rank-info h2,
.rank-info h3 {
  margin: 0;
  font-size: 22px;
}

.rank-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.search-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 28px rgba(69, 10, 10, 0.08);
}

.search-tools input,
.search-tools select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  outline: 0;
  background: #ffffff;
}

.search-status {
  margin: 0 0 18px;
  color: #92400e;
  font-weight: 800;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  color: #ffffff;
  background: linear-gradient(110deg, #450a0a, #7f1d1d, #92400e);
}

.detail-hero img.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.32), transparent 28%),
    linear-gradient(90deg, rgba(69, 10, 10, 0.92), rgba(69, 10, 10, 0.48)),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.68));
}

.detail-wrap {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 58px 22px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

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

.breadcrumb {
  margin-bottom: 18px;
  color: #fde68a;
  font-weight: 800;
}

.detail-copy {
  display: grid;
  gap: 18px;
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.08;
}

.detail-copy p {
  margin: 0;
  max-width: 850px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.82;
}

.player-section {
  max-width: 1120px;
  margin: 52px auto 0;
  padding: 0 22px;
}

.player-card {
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.28);
}

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

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.42));
}

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

.play-overlay span {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #7f1d1d;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}

.play-overlay span::before {
  content: "▶";
  margin-left: 7px;
  font-size: 38px;
}

.player-caption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 18px 22px;
  color: #ffffff;
  background: linear-gradient(90deg, #111827, #3f0708);
}

.player-caption strong {
  font-size: 20px;
}

.detail-content {
  max-width: 1120px;
  margin: 36px auto 0;
  padding: 0 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.article-box,
.side-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(69, 10, 10, 0.07);
}

.article-box h2,
.side-box h2 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 26px;
}

.article-box p {
  margin: 0 0 18px;
  color: #374151;
  line-height: 1.9;
  font-size: 16px;
}

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

.compact-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-card a {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
}

.compact-card img {
  width: 74px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
}

.compact-card span {
  color: #111827;
  font-weight: 900;
  line-height: 1.4;
}

.compact-card small {
  display: block;
  padding: 0 10px 12px 96px;
  color: var(--muted);
}

.site-footer {
  margin-top: 70px;
  color: #d1d5db;
  background: linear-gradient(180deg, #111827, #000000);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 22px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

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

.site-footer p {
  margin: 0;
  line-height: 1.8;
  color: #d1d5db;
}

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

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

.copyright {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
}

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

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

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

  .header-search {
    display: none;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .header-inner {
    min-height: 70px;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content {
    padding-top: 84px;
  }

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

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

  .detail-wrap {
    grid-template-columns: 1fr;
    padding-top: 34px;
  }

  .detail-poster {
    max-width: 230px;
  }

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

  .search-tools {
    grid-template-columns: 1fr;
  }

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

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

  .rank-row img {
    width: 76px;
    height: 100px;
  }

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

@media (max-width: 560px) {
  .page-main {
    padding-inline: 16px;
  }

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

  .hero {
    min-height: 590px;
  }

  .hero-actions,
  .section-actions,
  .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary,
  .btn-soft {
    width: 100%;
  }

  .player-section,
  .detail-content {
    padding-inline: 16px;
  }

  .player-caption {
    align-items: start;
    flex-direction: column;
  }
}
