* {
  box-sizing: border-box;
}

:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --red: #dc2626;
  --orange: #f97316;
  --amber: #f59e0b;
  --dark: #111827;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: -0.02em;
}

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

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

.nav-link,
.mobile-nav-link {
  border-radius: 12px;
  color: #475569;
  font-size: 15px;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: #fff;
  background: var(--red);
  box-shadow: 0 10px 18px rgba(220, 38, 38, 0.18);
}

.header-search {
  padding: 10px 16px;
  border-radius: 12px;
  color: #475569;
  background: #f1f5f9;
  font-weight: 700;
  transition: 0.2s ease;
}

.header-search:hover {
  color: #fff;
  background: var(--orange);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: #334155;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

.mobile-nav-link {
  padding: 12px 14px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #fff;
  background: linear-gradient(135deg, #7f1d1d 0%, #c2410c 52%, #d97706 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.28), transparent 26%),
    radial-gradient(circle at 15% 78%, rgba(251, 191, 36, 0.35), transparent 30%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.05));
}

.hero-inner {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: 58px 0 74px;
}

.hero-slider {
  position: relative;
  width: 100%;
  min-height: 500px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.65fr);
  gap: 46px;
  align-items: center;
  opacity: 0;
  transform: translateX(24px);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero h1,
.page-hero h1 {
  margin: 20px 0 12px;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.hero h2 {
  margin: 0 0 18px;
  color: #fde68a;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.16;
}

.hero p,
.page-hero p {
  max-width: 710px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
}

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

.hero-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  color: #7c2d12;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 900;
  transition: 0.22s ease;
}

.btn-primary {
  color: #7f1d1d;
  background: #fff;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.18);
}

.btn-primary:hover,
.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.22);
}

.btn-ghost {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.82);
}

.btn-ghost:hover {
  color: #7f1d1d;
  background: #fff;
}

.btn-light {
  color: var(--orange);
  background: #fff;
}

.hero-poster {
  position: relative;
  min-height: 420px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  transform: rotate(1.2deg);
}

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

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-control,
.hero-dot {
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: 0.2s ease;
}

.hero-control {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}

.hero-dot {
  width: 30px;
  height: 8px;
  border-radius: 999px;
}

.hero-dot.is-active,
.hero-control:hover,
.hero-dot:hover {
  background: #fff;
  color: var(--red);
}

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

.section {
  padding: 58px 0;
}

.section-light {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head,
.strip-title,
.cta-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head h2,
.strip-title h2,
.cta-band h2,
.footer-grid h2,
.detail-article h2,
.side-card h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.2;
}

.section-head p,
.strip-title p {
  margin: 0;
  color: var(--muted);
}

.section-more,
.strip-title a,
.filter-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border-radius: 12px;
  color: var(--red);
  background: #fff1f2;
  font-weight: 900;
  transition: 0.2s ease;
}

.section-more:hover,
.strip-title a:hover,
.filter-link:hover {
  color: #fff;
  background: var(--red);
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(135deg, #991b1b, #f97316);
}

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

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-size: 12px;
  font-weight: 900;
}

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

.movie-title,
.compact-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.movie-title:hover,
.compact-title:hover {
  color: var(--red);
}

.movie-card-body p,
.compact-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 9px 0 12px;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.movie-meta span {
  display: inline-flex;
  align-items: center;
}

.movie-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #cbd5e1;
}

.tag-list {
  margin-top: 12px;
}

.tag-list.large {
  margin-top: 22px;
}

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

.category-tile,
.category-overview-card a {
  display: block;
  height: 100%;
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  transition: 0.22s ease;
}

.category-tile:hover,
.category-overview-card a:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-tile strong,
.category-overview-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 900;
}

.category-tile span,
.category-overview-card p,
.category-overview-card span {
  color: var(--muted);
}

.category-overview-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.category-overview-card span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 800;
}

.category-sections {
  display: grid;
  gap: 34px;
}

.category-strip {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.category-strip:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

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

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

.compact-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
}

.compact-poster {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #991b1b, #f97316);
}

.rank-num {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.cta-band {
  padding: 44px 0;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.cta-inner {
  margin-bottom: 0;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.page-hero {
  color: #fff;
  background: linear-gradient(135deg, #7f1d1d, #ea580c);
}

.small-hero {
  padding: 58px 0 64px;
}

.small-hero h1 {
  max-width: 860px;
  font-size: clamp(34px, 5vw, 54px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a:hover {
  color: #fde68a;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.filter-bar.expanded input {
  min-width: min(420px, 100%);
}

.filter-bar input,
.filter-bar select {
  min-height: 46px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0 14px;
  color: var(--ink);
  background: #f8fafc;
  outline: 0;
}

.filter-bar input {
  flex: 1 1 260px;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
}

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

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

.detail-top {
  padding: 28px 0 0;
  background: linear-gradient(180deg, #111827 0, #1f2937 360px, var(--bg) 360px);
}

.detail-top .breadcrumb {
  color: rgba(255, 255, 255, 0.78);
}

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

.detail-main,
.detail-side {
  display: grid;
  gap: 22px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

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

.player-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.58));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-layer span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #7f1d1d;
  background: rgba(255, 255, 255, 0.94);
  font-size: 34px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
}

.player-layer.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-article,
.side-card {
  padding: 26px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.detail-article h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

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

.detail-meta span {
  padding: 6px 11px;
  border-radius: 999px;
  color: #7c2d12;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 900;
}

.lead-text {
  margin: 0 0 22px;
  color: #334155;
  font-size: 18px;
  font-weight: 700;
}

.detail-article p {
  color: #475569;
}

.detail-cover {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.side-card dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0;
}

.side-card dt {
  color: var(--muted);
  font-weight: 800;
}

.side-card dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

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

.related-section {
  padding-top: 42px;
}

.site-footer {
  margin-top: 0;
  padding: 48px 0 24px;
  color: #cbd5e1;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr;
  gap: 32px;
}

.footer-brand {
  margin-bottom: 12px;
  color: #fff;
  font-size: 24px;
}

.footer-grid p {
  max-width: 560px;
  margin: 0;
  color: #94a3b8;
}

.footer-grid h2 {
  color: #fff;
  font-size: 18px;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  color: #cbd5e1;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 1024px) {
  .movie-grid.four,
  .category-grid,
  .category-overview-grid,
  .rank-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-side {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .main-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero,
  .hero-inner {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-poster {
    min-height: 300px;
    transform: none;
  }

  .hero-poster img {
    min-height: 300px;
  }

  .section-head,
  .strip-title,
  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .movie-grid.three,
  .movie-grid.four,
  .rank-grid,
  .category-grid,
  .category-overview-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .brand-text em {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: 820px;
  }

  .hero-inner {
    padding-top: 36px;
  }

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

  .hero p,
  .page-hero p {
    font-size: 16px;
  }

  .hero-controls {
    bottom: 20px;
  }

  .compact-card {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-bar input,
  .filter-bar select,
  .filter-link {
    width: 100%;
  }

  .detail-article,
  .side-card {
    padding: 20px;
  }
}
