:root {
  --red: #dc2626;
  --orange: #ea580c;
  --amber: #f59e0b;
  --slate: #0f172a;
  --muted: #64748b;
  --line: #e5e7eb;
  --bg: #f8fafc;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  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: #111827;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 50%, #f8fafc 100%);
}

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

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 16px rgba(15, 23, 42, 0.08);
}

.nav-inner {
  max-width: 1200px;
  height: 64px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark,
.footer-logo span {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  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: 21px;
  background: linear-gradient(90deg, var(--red), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link,
.mobile-link {
  font-weight: 700;
  color: #374151;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--red);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  font-size: 22px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  border-top: 1px solid #f3f4f6;
  padding: 10px 20px 16px;
}

.mobile-menu.open {
  display: grid;
  gap: 6px;
}

.mobile-link {
  padding: 10px 12px;
  border-radius: 12px;
}

.hero {
  position: relative;
  min-height: 530px;
  overflow: hidden;
  background: linear-gradient(135deg, #991b1b 0%, #dc2626 42%, #f97316 100%);
  color: #fff;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.65) 0, transparent 20%), radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.35) 0, transparent 24%), linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px), linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 500px 500px, 420px 420px, 60px 60px, 60px 60px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
}

.hero-backdrop img {
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(1.1) contrast(1.05);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(127, 29, 29, 0.94), rgba(194, 65, 12, 0.76), rgba(15, 23, 42, 0.3));
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  min-height: 530px;
  margin: 0 auto;
  padding: 60px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 360px;
  gap: 46px;
  align-items: center;
}

.hero-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.hero h1,
.hero h2 {
  max-width: 780px;
  margin: 20px 0 18px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero h1 span,
.hero h2 span {
  color: #fde68a;
}

.hero p {
  max-width: 720px;
  margin: 0 0 30px;
  font-size: 19px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--red);
  background: #fff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.hero-card {
  position: relative;
  padding: 16px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: var(--shadow);
}

.hero-card img {
  height: 430px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 28px 55px rgba(15, 23, 42, 0.34);
}

.hero-card-caption {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(14px);
}

.hero-card-caption strong {
  display: block;
  font-size: 20px;
  margin-bottom: 4px;
}

.hero-card-caption em {
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
}

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

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

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

.search-panel {
  max-width: 1200px;
  margin: -35px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 8;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  border: 1px solid #fff;
}

.search-box input,
.filter-box input {
  width: 100%;
  height: 48px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 0 16px;
  outline: none;
  font-size: 15px;
  background: #fff;
}

.search-box input:focus,
.filter-box input:focus {
  border-color: #fb7185;
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.12);
}

.main-wrap,
.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 52px 20px;
}

.content-section {
  margin-top: 56px;
}

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

.section-head h2,
.page-head h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-head p,
.page-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-more {
  flex: 0 0 auto;
  color: var(--red);
  font-weight: 800;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.category-pill {
  min-height: 95px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid #f1f5f9;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-pill strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}

.category-pill span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

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

.poster-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, 0.78));
}

.year-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 46px;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(220, 38, 38, 0.95);
}

.rank-badge {
  left: 10px;
  right: auto;
  background: rgba(15, 23, 42, 0.82);
}

.play-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--red);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.movie-card h2 {
  min-height: 44px;
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
}

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

.meta-line {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.movie-card p {
  min-height: 44px;
  margin: 10px 0 12px;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.7;
}

.tag-row span {
  color: #9f1239;
  background: #fff1f2;
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 380px;
  gap: 24px;
  margin-top: 46px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 44px 58px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #f1f5f9;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.rank-row:hover {
  border-color: #fecaca;
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.12);
}

.rank-num {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.rank-row img {
  width: 58px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, #fee2e2, #ffedd5);
}

.rank-info strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.rank-info em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.rank-score {
  color: var(--red);
  font-weight: 900;
  font-size: 18px;
}

.filter-box {
  margin: 24px 0 28px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

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

.category-card {
  min-height: 230px;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.category-card-image {
  height: 120px;
  overflow: hidden;
  background: linear-gradient(135deg, #fee2e2, #ffedd5);
}

.category-card-image img {
  height: 100%;
  object-fit: cover;
}

.category-card-body {
  padding: 18px;
}

.category-card-body h2 {
  margin: 0 0 10px;
  font-size: 19px;
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #7f1d1d, #dc2626 48%, #f97316);
}

.detail-bg {
  position: absolute;
  inset: 0;
}

.detail-bg img {
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(127, 29, 29, 0.76));
}

.detail-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 58px 20px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  align-items: end;
}

.detail-poster {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #fee2e2, #ffedd5);
}

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

.detail-copy h1 {
  margin: 14px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

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

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 700;
  font-size: 13px;
}

.player-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 18px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: var(--shadow);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.45), rgba(127, 29, 29, 0.5));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-cover img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.player-box.is-playing .player-cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-button {
  position: relative;
  z-index: 2;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  color: var(--red);
  background: rgba(255, 255, 255, 0.95);
  font-size: 32px;
  cursor: pointer;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.25);
}

.article-block {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
}

.article-main,
.side-panel {
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  padding: 26px;
}

.article-main h2,
.side-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

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

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
}

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

.info-list dd {
  margin: 0;
  font-weight: 700;
}

.empty-tip {
  display: none;
  padding: 28px;
  border-radius: 18px;
  color: var(--muted);
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.empty-tip.show {
  display: block;
}

.site-footer {
  margin-top: 70px;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827 0%, #0f172a 58%, #111827 100%);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 46px 20px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #fff;
  font-size: 21px;
  font-weight: 900;
}

.footer-brand p {
  max-width: 360px;
  margin: 0;
  color: #9ca3af;
  line-height: 1.8;
}

.footer-column h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 16px;
}

.footer-column a {
  display: block;
  margin: 9px 0;
  color: #cbd5e1;
  font-size: 14px;
}

.footer-column a:hover {
  color: #fb7185;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  font-size: 14px;
}

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

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

  .feature-grid,
  .article-block {
    grid-template-columns: 1fr;
  }
}

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

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

  .hero-card {
    display: none;
  }

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

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

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

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

  .section-head,
  .page-head {
    display: block;
  }

  .rank-row {
    grid-template-columns: 38px 50px 1fr;
  }

  .rank-score {
    display: none;
  }
}

@media (max-width: 520px) {
  .movie-grid {
    gap: 14px;
  }

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

  .movie-card p {
    display: none;
  }

  .hero {
    min-height: 500px;
  }

  .hero-inner {
    min-height: 500px;
    padding-top: 44px;
  }
}
