:root {
  --bg: #fff7ed;
  --surface: #ffffff;
  --surface-soft: #fff1f2;
  --text: #111827;
  --muted: #6b7280;
  --line: #f3d7d9;
  --rose: #e11d48;
  --rose-dark: #9f1239;
  --amber: #f59e0b;
  --amber-soft: #fffbeb;
  --shadow: 0 20px 60px rgba(159, 18, 57, 0.15);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(244, 63, 94, 0.14), transparent 30rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 46%, #fff7ed 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  box-shadow: 0 14px 30px rgba(225, 29, 72, 0.28);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.95rem;
  color: #374151;
  font-weight: 650;
}

.main-nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  color: var(--rose);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 0;
  color: var(--text);
  background: var(--surface-soft);
  border-radius: 12px;
  padding: 10px 12px;
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 16px;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  padding: 10px;
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #374151;
  font-weight: 650;
}

.mobile-nav a:hover {
  background: var(--surface-soft);
  color: var(--rose);
}

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

.hero {
  position: relative;
  min-height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: linear-gradient(120deg, #881337 0%, #7f1d1d 48%, #92400e 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(180deg, transparent, rgba(255, 247, 237, 0.96));
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 44px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  padding: 76px 0 92px;
}

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

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

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: blur(1px) saturate(1.12);
  transform: scale(1.05);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.08)),
    radial-gradient(circle at 72% 28%, rgba(245, 158, 11, 0.26), transparent 22rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
  font-weight: 750;
  color: #ffe4e6;
}

.hero h1 {
  margin: 24px 0 18px;
  max-width: 780px;
  font-size: clamp(2.5rem, 6vw, 5.9rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.hero-desc {
  max-width: 700px;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 11px;
  color: #9f1239;
  background: #ffe4e6;
  font-size: 0.86rem;
  font-weight: 800;
}

.hero .pill {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.20);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(225, 29, 72, 0.16);
  font-weight: 850;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  box-shadow: 0 18px 34px rgba(225, 29, 72, 0.28);
}

.btn-soft {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.btn-light {
  color: var(--rose-dark);
  background: #ffffff;
}

.hero-poster {
  position: relative;
  z-index: 2;
  justify-self: end;
  width: min(410px, 100%);
  aspect-ratio: 3 / 4.2;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

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

.poster-fallback,
.hero-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: #ffffff;
  background:
    radial-gradient(circle at 30% 20%, rgba(245, 158, 11, 0.55), transparent 14rem),
    linear-gradient(135deg, #9f1239, #7c2d12);
  font-weight: 900;
  line-height: 1.25;
  opacity: 0;
}

.poster-wrap.is-missing .poster-fallback,
.hero-poster.is-missing .hero-fallback,
.hero-backdrop.is-missing .hero-fallback,
.rank-cover.is-missing .poster-fallback,
.detail-cover.is-missing .poster-fallback {
  opacity: 1;
}

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  width: min(1240px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hero-arrow-group,
.hero-dots {
  display: flex;
  gap: 10px;
  align-items: center;
}

.hero-arrow,
.hero-dot {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.hero-arrow {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  font-size: 1.35rem;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  padding: 0;
}

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

.section {
  padding: 72px 0;
}

.section-soft {
  background: linear-gradient(120deg, rgba(255, 241, 242, 0.85), rgba(255, 251, 235, 0.88));
}

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

.section-title {
  margin: 0;
  font-size: clamp(1.7rem, 3.4vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.section-subtitle {
  margin: 10px 0 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.75;
}

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

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

.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: 0 10px 30px rgba(159, 18, 57, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(225, 29, 72, 0.26);
}

.poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #9f1239, #92400e);
}

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

.movie-card:hover .poster-wrap img {
  transform: scale(1.055);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(225, 29, 72, 0.9);
  font-size: 0.78rem;
  font-weight: 850;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.card-rating {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  color: #78350f;
  background: rgba(254, 243, 199, 0.96);
  font-size: 0.78rem;
  font-weight: 900;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  flex: 1;
}

.card-title {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.card-meta,
.detail-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.card-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.62;
}

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

.tag {
  border-radius: 999px;
  padding: 5px 9px;
  color: #9f1239;
  background: #ffe4e6;
  font-size: 0.78rem;
  font-weight: 750;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 24px;
  min-height: 180px;
  background: #ffffff;
  border: 1px solid rgba(244, 63, 94, 0.14);
  box-shadow: 0 16px 42px rgba(159, 18, 57, 0.08);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: -40% -40% auto auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.22), transparent 70%);
}

.category-card h3 {
  position: relative;
  margin: 0 0 10px;
  font-size: 1.28rem;
}

.category-card p {
  position: relative;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.94rem;
}

.category-count {
  position: relative;
  display: inline-flex;
  margin-top: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  font-weight: 850;
}

.filter-panel,
.search-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(130px, 180px));
  gap: 12px;
  padding: 16px;
  margin: 0 0 26px;
  border: 1px solid rgba(244, 63, 94, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(159, 18, 57, 0.08);
}

.filter-panel input,
.filter-panel select,
.search-panel input,
.search-panel select {
  width: 100%;
  border: 1px solid rgba(244, 63, 94, 0.18);
  border-radius: 14px;
  padding: 12px 13px;
  color: var(--text);
  background: #ffffff;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-panel input:focus,
.search-panel select:focus {
  border-color: rgba(225, 29, 72, 0.42);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.08);
}

.result-count {
  margin: -8px 0 22px;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 68px 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: 0 12px 32px rgba(159, 18, 57, 0.08);
}

.rank-number {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  font-weight: 950;
  font-size: 1.1rem;
}

.rank-cover {
  position: relative;
  width: 92px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #9f1239, #92400e);
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-title {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #881337, #92400e);
  color: #ffffff;
}

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

.detail-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px) saturate(1.1);
  transform: scale(1.05);
}

.detail-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.24));
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  padding: 56px 0;
}

.detail-cover {
  position: relative;
  aspect-ratio: 3 / 4.1;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #9f1239, #92400e);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-content h1 {
  margin: 16px 0 18px;
  max-width: 820px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.detail-desc {
  max-width: 860px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.85;
  font-size: 1.05rem;
}

.player-section {
  padding: 64px 0 20px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #050505;
  box-shadow: 0 28px 80px rgba(17, 24, 39, 0.25);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  color: #ffffff;
  background:
    radial-gradient(circle at center, rgba(225, 29, 72, 0.18), transparent 18rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.62));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-shell.is-playing .player-overlay {
  opacity: 0;
  visibility: hidden;
}

.play-button {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  box-shadow: 0 18px 38px rgba(225, 29, 72, 0.34);
  font-size: 2.15rem;
  padding-left: 6px;
}

.player-status {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.article-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: 0 16px 42px rgba(159, 18, 57, 0.08);
}

.article-card h2 {
  margin: 0 0 16px;
  font-size: 1.55rem;
  letter-spacing: -0.025em;
}

.article-card p {
  margin: 0;
  color: #374151;
  line-height: 1.9;
}

.article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

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

.pagination-note {
  margin: 28px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid rgba(244, 63, 94, 0.12);
  background: linear-gradient(180deg, rgba(255, 241, 242, 0.75), rgba(255, 247, 237, 0.95));
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  color: #4b5563;
}

.footer-inner h3 {
  margin: 0 0 12px;
  color: var(--text);
}

.footer-inner p,
.footer-inner li {
  margin: 0;
  line-height: 1.75;
}

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

.footer-bottom {
  border-top: 1px solid rgba(244, 63, 94, 0.12);
  padding: 18px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.empty-state {
  display: none;
  padding: 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  border: 1px dashed rgba(244, 63, 94, 0.26);
}

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

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

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

  .rank-list {
    grid-template-columns: 1fr;
  }
}

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

  .nav-toggle {
    display: inline-flex;
  }

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

  .hero {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 24px;
    align-content: center;
    padding: 44px 0 110px;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 12vw, 4.4rem);
  }

  .hero-poster {
    justify-self: start;
    width: min(260px, 64vw);
  }

  .hero-controls {
    align-items: flex-end;
  }

  .filter-panel,
  .search-panel {
    grid-template-columns: 1fr;
  }

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

  .detail-cover {
    width: min(280px, 78vw);
  }

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

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

@media (max-width: 620px) {
  .header-inner {
    height: 64px;
  }

  .brand {
    font-size: 1rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .section {
    padding: 52px 0;
  }

  .section-head {
    display: block;
  }

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

  .card-body {
    padding: 13px;
  }

  .card-desc {
    display: none;
  }

  .rank-item {
    grid-template-columns: 44px 74px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-number {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .rank-cover {
    width: 74px;
  }
}
