:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f3f4f6;
  --line: #e5e7eb;
  --red: #dc2626;
  --red-dark: #7f1d1d;
  --red-soft: #fee2e2;
  --orange: #f97316;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
}

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

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

.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.85);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  border-radius: 13px;
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.28);
}

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

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

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

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--soft);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(120deg, #450a0a, #991b1b 52%, #f97316);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.22), transparent 25%),
    radial-gradient(circle at 80% 30%, rgba(248, 113, 113, 0.35), transparent 26%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.34));
}

.hero-layout {
  position: relative;
  max-width: 1240px;
  min-height: 620px;
  margin: 0 auto;
  padding: 72px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
  gap: 22px;
}

.hero-stage {
  position: relative;
  min-height: 520px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
  background: rgba(0, 0, 0, 0.25);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 1.2s ease;
}

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

.hero-slide img {
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.28) 55%, rgba(0, 0, 0, 0.08));
}

.hero-copy {
  position: absolute;
  left: 42px;
  right: 42px;
  bottom: 46px;
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy .eyebrow,
.page-hero .eyebrow {
  color: #fecaca;
}

.hero-copy h1 {
  margin: 12px 0 14px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 640px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.hero-actions,
.category-chips,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn,
.category-chips a,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.22s ease;
}

.btn {
  padding: 12px 20px;
}

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.28);
}

.btn.ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.12);
}

.btn.small {
  width: max-content;
  margin-top: 8px;
  padding: 9px 15px;
  color: #ffffff;
  background: var(--red);
}

.btn:hover,
.category-chips a:hover,
.chip:hover {
  transform: translateY(-2px);
}

.hero-dots {
  position: absolute;
  left: 42px;
  bottom: 20px;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 30px;
  height: 5px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.36);
}

.hero-dots button.active {
  background: #ffffff;
}

.hero-side {
  display: grid;
  gap: 16px;
}

.hot-entry,
.hero-tile {
  position: relative;
  overflow: hidden;
  min-height: 120px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(18px);
}

.hot-entry {
  padding: 24px;
}

.hot-entry span {
  color: #fecaca;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.hot-entry h2 {
  margin: 10px 0 6px;
  font-size: 28px;
}

.hot-entry p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.82);
}

.hot-entry a {
  color: #ffffff;
  font-weight: 900;
}

.hero-tile img {
  height: 138px;
  object-fit: cover;
  opacity: 0.78;
  transition: 0.25s ease;
}

.hero-tile span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-tile:hover img {
  transform: scale(1.08);
  opacity: 0.95;
}

.search-strip,
.content-wrap,
.detail-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 20px;
}

.search-strip {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 18px;
  align-items: center;
}

.search-box input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 22px;
  font-size: 16px;
  outline: none;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.search-box input:focus {
  border-color: #f87171;
  box-shadow: 0 0 0 5px rgba(248, 113, 113, 0.16);
}

.search-box.narrow {
  max-width: 520px;
  margin-top: 22px;
}

.category-chips a,
.chip {
  padding: 10px 14px;
  color: #7f1d1d;
  background: #fff1f2;
  border: 1px solid #fecaca;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  align-items: start;
}

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

.section-head h2 {
  margin: 5px 0 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}

.section-head a,
.more-link {
  color: var(--red);
  font-weight: 900;
}

.section-head.small h2 {
  font-size: 22px;
}

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

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

.movie-card,
.article-card,
.category-panel,
.category-overview {
  background: var(--card);
  border: 1px solid rgba(229, 231, 235, 0.82);
  border-radius: var(--radius);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.movie-card {
  overflow: hidden;
  transition: 0.24s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 2.8;
  background: #111827;
}

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

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

.play-dot {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  min-width: 38px;
  height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(127, 29, 29, 0.92);
  border-radius: 999px;
}

.card-body {
  padding: 16px;
}

.card-title {
  display: block;
  min-height: 48px;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
}

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

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
}

.card-tags {
  margin-top: 12px;
}

.card-tags span {
  padding: 5px 8px;
  color: #991b1b;
  background: #fef2f2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.side-column {
  position: sticky;
  top: 88px;
}

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

.mini-link {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: 0.2s ease;
}

.mini-link:hover {
  border-color: #fecaca;
  transform: translateX(3px);
}

.mini-link img {
  height: 62px;
  border-radius: 12px;
  object-fit: cover;
}

.mini-link strong,
.mini-link em {
  display: block;
}

.mini-link strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.mini-link em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

.category-panel,
.category-overview {
  padding: 20px;
}

.page-top {
  padding-top: 48px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
  padding: 44px;
  color: #ffffff;
  border-radius: 30px;
  background: linear-gradient(135deg, #7f1d1d, #dc2626 58%, #f97316);
  box-shadow: var(--shadow);
}

.page-hero.compact {
  min-height: 220px;
}

.page-hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

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

.category-overview {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  align-items: start;
}

.category-overview h2 {
  margin: 8px 0;
  font-size: 28px;
}

.category-overview p {
  color: var(--muted);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 700;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 30px;
  align-items: stretch;
  margin-bottom: 30px;
}

.detail-poster,
.detail-intro {
  background: #ffffff;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
}

.detail-poster img {
  height: 100%;
  min-height: 470px;
  object-fit: cover;
}

.detail-intro {
  padding: 38px;
}

.detail-intro h1 {
  margin: 8px 0 14px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
}

.lead {
  color: #374151;
  font-size: 18px;
}

.meta-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.meta-table span {
  padding: 12px 14px;
  color: #374151;
  background: var(--soft);
  border-radius: 14px;
  font-weight: 700;
}

.detail-tags {
  margin-bottom: 24px;
}

.player-section {
  margin: 30px 0;
  padding: 24px;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.video-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #020617;
  border-radius: 22px;
}

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

.play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: 0;
  background: radial-gradient(circle at center, rgba(220, 38, 38, 0.32), rgba(2, 6, 23, 0.74));
  cursor: pointer;
  transition: 0.24s ease;
}

.play-cover span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--red), var(--orange));
  border-radius: 50%;
  font-size: 30px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
}

.play-cover strong {
  font-size: 20px;
}

.play-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
}

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

.article-card {
  padding: 28px;
}

.article-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.article-card p {
  margin: 0 0 22px;
  color: #374151;
}

.related-card .more-link {
  display: block;
  margin-top: 16px;
}

.site-footer {
  margin-top: 44px;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 42px 20px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
}

.footer-logo {
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 18px;
}

.site-footer p {
  margin: 10px 0 0;
  max-width: 440px;
}

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

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

.copyright {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.is-hidden-card {
  display: none;
}

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

  .hero-layout,
  .two-col,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .side-column {
    position: static;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 70px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .hero-layout {
    padding-top: 34px;
    padding-bottom: 34px;
  }

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

  .hero-copy {
    left: 24px;
    right: 24px;
    bottom: 44px;
  }

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

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

  .detail-poster img {
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  .nav-wrap,
  .search-strip,
  .content-wrap,
  .detail-wrap {
    padding-left: 14px;
    padding-right: 14px;
  }

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

  .hero-stage {
    min-height: 430px;
    border-radius: 22px;
  }

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

  .hero-copy p {
    font-size: 15px;
  }

  .movie-grid,
  .movie-grid.wide,
  .category-grid,
  .overview-grid,
  .meta-table {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .detail-intro,
  .article-card,
  .player-section {
    padding: 22px;
    border-radius: 22px;
  }

  .detail-intro h1,
  .page-hero h1 {
    font-size: 32px;
  }
}
