:root {
  --color-bg: #fff7ed;
  --color-panel: #ffffff;
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-line: rgba(248, 113, 113, 0.18);
  --color-red: #ef4444;
  --color-orange: #f97316;
  --color-pink: #ec4899;
  --shadow-card: 0 20px 45px rgba(185, 28, 28, 0.12);
  --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--color-text);
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, 0.28), transparent 32rem),
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.22), transparent 28rem),
    linear-gradient(135deg, #fff7ed 0%, #fff1f2 42%, #fff 100%);
}

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: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 247, 237, 0.82);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(var(--container), calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.logo-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--color-red), var(--color-orange), var(--color-pink));
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.35);
}

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

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: all 0.2s ease;
}

.main-nav a:hover {
  color: #dc2626;
  background: rgba(254, 226, 226, 0.8);
}

.header-cta,
.btn,
.filter-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-cta,
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--color-red), var(--color-orange));
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.25);
}

.header-cta {
  padding: 10px 18px;
}

.btn {
  min-height: 46px;
  padding: 0 20px;
}

.btn-soft {
  color: #dc2626;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(239, 68, 68, 0.18);
}

.header-cta:hover,
.btn:hover,
.filter-reset:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  isolation: isolate;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  align-items: center;
  gap: 42px;
  padding: 96px max(24px, calc((100vw - var(--container)) / 2)) 90px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px) saturate(1.2);
  transform: scale(1.06);
  opacity: 0.62;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(127, 29, 29, 0.78), rgba(17, 24, 39, 0.48)),
    radial-gradient(circle at 72% 18%, rgba(249, 115, 22, 0.35), transparent 28rem);
}

.hero-content {
  max-width: 760px;
  color: #fff;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fb923c;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 18px 0 18px;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.08em;
}

.hero-content p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.9;
}

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

.hero-tags {
  margin-top: 24px;
}

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

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: inherit;
}

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

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

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

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

.stat-strip,
.section-block,
.split-section,
.page-hero,
.detail-wrap,
.footer-grid {
  width: min(var(--container), calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.stat-strip {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: -42px;
}

.stat-strip a {
  min-height: 112px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
}

.stat-strip strong {
  display: block;
  font-size: 28px;
  color: #dc2626;
}

.stat-strip span {
  display: block;
  margin-top: 8px;
  color: var(--color-muted);
  font-weight: 700;
}

.section-block,
.split-section {
  padding: 70px 0 0;
}

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

.section-head.compact {
  margin-bottom: 18px;
}

.section-head h2,
.page-hero h1,
.detail-info h1 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.section-head a {
  color: #dc2626;
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fee2e2, #ffedd5);
}

.movie-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.movie-year,
.movie-type {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(10px);
}

.movie-year {
  left: 12px;
}

.movie-type {
  right: 12px;
}

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

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: var(--color-muted);
  font-size: 13px;
}

.movie-card p {
  min-height: 44px;
  margin: 12px 0 0;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.7;
}

.tag-row {
  margin-top: 14px;
}

.tag-row span,
.mini-tags span {
  color: #b91c1c;
  background: #fee2e2;
}

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

.category-tile {
  position: relative;
  min-height: 140px;
  overflow: hidden;
  display: flex;
  align-items: end;
  border-radius: var(--radius-lg);
  background: #111827;
  box-shadow: var(--shadow-soft);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  transition: transform 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.18));
}

.category-tile span {
  position: relative;
  z-index: 2;
  padding: 20px;
  color: #fff;
}

.category-tile strong,
.category-tile em {
  display: block;
}

.category-tile strong {
  font-size: 20px;
  font-weight: 900;
}

.category-tile em {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.76);
  font-style: normal;
  font-size: 13px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.75fr);
  gap: 24px;
}

.section-card {
  padding: 26px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 247, 237, 0.76);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  background: #fff;
}

.rank-no {
  color: #ef4444;
  font-weight: 1000;
  font-size: 18px;
}

.rank-item img {
  width: 54px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  object-fit: cover;
}

.rank-info {
  min-width: 0;
}

.rank-info strong,
.rank-info em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info strong {
  font-weight: 900;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(140px, 0.6fr)) auto;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
}

.search-box {
  display: grid;
  gap: 6px;
}

.search-box span {
  color: #9f1239;
  font-size: 12px;
  font-weight: 900;
}

.search-box input,
.filter-select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  padding: 0 14px;
  color: var(--color-text);
  background: #fff;
  outline: none;
}

.search-box input:focus,
.filter-select:focus {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.13);
}

.filter-reset {
  align-self: end;
  min-height: 46px;
  padding: 0 16px;
  color: #fff;
  background: #111827;
}

.filter-count {
  min-height: 22px;
  margin: 0 0 18px;
  color: var(--color-muted);
  font-weight: 700;
}

.page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 300px;
  margin-top: 32px;
  padding: 52px;
  border-radius: 36px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.24), transparent 18rem),
    linear-gradient(135deg, #ef4444, #f97316 52%, #ec4899);
  box-shadow: var(--shadow-card);
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.page-hero .section-kicker {
  color: rgba(255, 255, 255, 0.72);
}

.ranking-layout {
  align-items: start;
  grid-template-columns: minmax(300px, 0.62fr) minmax(0, 1.38fr);
}

.sticky-card {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow: auto;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.38;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px) saturate(1.2);
  transform: scale(1.06);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(127, 29, 29, 0.76)),
    radial-gradient(circle at 70% 30%, rgba(249, 115, 22, 0.34), transparent 30rem);
}

.detail-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  min-height: 560px;
  padding: 76px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 34px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

.breadcrumb a {
  color: #fed7aa;
}

.breadcrumb em {
  color: rgba(255, 255, 255, 0.86);
  font-style: normal;
}

.detail-info h1 {
  margin-top: 18px;
  font-size: clamp(42px, 7vw, 78px);
  color: #fff;
}

.detail-one-line {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.9;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 900;
}

.detail-tags span {
  color: #fff;
  background: rgba(239, 68, 68, 0.42);
}

.player-section {
  padding-top: 36px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: #020617;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.18));
  cursor: pointer;
}

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

.play-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ef4444;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

.player-overlay strong {
  font-size: 22px;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
}

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

.story-card {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.story-card h2 {
  margin: 10px 0 14px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.story-card p {
  color: #4b5563;
  line-height: 1.95;
}

.info-list {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
}

.info-list dt {
  color: #9f1239;
  font-weight: 900;
}

.info-list dd {
  margin: 0;
  color: #4b5563;
}

.site-footer {
  margin-top: 80px;
  padding: 44px 0;
  color: #fff;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 30px;
}

.footer-grid strong {
  display: block;
  font-size: 24px;
}

.footer-grid p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

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

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

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .site-header.is-open .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-card);
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 76px;
  }

  .hero-poster {
    width: min(320px, 72vw);
  }

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

  .split-section,
  .ranking-layout,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .sticky-card {
    position: static;
    max-height: none;
  }

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

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

@media (max-width: 720px) {
  .header-inner {
    min-height: 66px;
  }

  .logo {
    font-size: 18px;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
  }

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

  .hero-slide {
    padding: 52px 16px 82px;
  }

  .hero-content p,
  .page-hero p,
  .detail-one-line {
    font-size: 16px;
  }

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

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

  .category-grid,
  .footer-grid,
  .filter-panel,
  .detail-wrap {
    grid-template-columns: 1fr;
  }

  .page-hero {
    display: block;
    padding: 30px;
    border-radius: 26px;
  }

  .detail-wrap {
    padding: 42px 0;
  }

  .detail-poster {
    width: min(260px, 74vw);
  }

  .story-card {
    padding: 22px;
  }
}

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

  .stat-strip {
    grid-template-columns: 1fr;
  }
}

.site-map-list {
  columns: 4 220px;
  gap: 24px;
  padding: 26px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.site-map-list li {
  break-inside: avoid;
  margin: 0 0 10px;
}

.site-map-list a {
  color: #dc2626;
  font-weight: 800;
}
