:root {
  --red: #ef4444;
  --orange: #f97316;
  --pink: #ec4899;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f1f1f3;
  --bg: #fff7ed;
  --card: #ffffff;
  --shadow: 0 20px 45px rgba(31, 41, 55, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fff7ed 0%, #fff 34%, #fff7ed 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

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

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

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

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

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

.nav-link {
  padding: 10px 16px;
  color: #4b5563;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.22);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 9px;
  border: 0;
  border-radius: 12px;
  background: #fff1e8;
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: #ea580c;
  border-radius: 4px;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #111827;
}

.hero-stage,
.hero-slide {
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.05);
  filter: saturate(1.08);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 24%, rgba(236, 72, 153, 0.32), transparent 28%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.48), rgba(17, 24, 39, 0.12)),
    linear-gradient(135deg, rgba(239, 68, 68, 0.36), rgba(249, 115, 22, 0.2));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 56px;
  color: #fff;
}

.hero-copy {
  max-width: 720px;
  animation: rise 0.7s ease both;
}

.hero-kicker,
.detail-kicker {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 8px 14px;
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-weight: 800;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-lead {
  margin: 22px 0 0;
  max-width: 660px;
  font-size: clamp(18px, 2.5vw, 25px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.hero-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.tag-cloud span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.25s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange), var(--pink));
  box-shadow: 0 18px 36px rgba(239, 68, 68, 0.28);
}

.primary-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 44px rgba(239, 68, 68, 0.34);
}

.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

.ghost-button.light {
  color: #ef4444;
  background: #fff;
  border-color: transparent;
}

.primary-button.full {
  width: 100%;
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.32);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  left: 24px;
  bottom: 24px;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.86);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: 0.25s ease;
}

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

.quick-search {
  margin-top: -46px;
  position: relative;
  z-index: 8;
}

.quick-search-inner {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.quick-search h2,
.quick-search p {
  margin: 0;
}

.quick-search p {
  margin-top: 8px;
  color: var(--muted);
}

.section {
  padding: 76px 0;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading.centered {
  text-align: center;
}

.section-heading span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 14px;
  color: #be123c;
  background: linear-gradient(135deg, #ffe4e6, #ffedd5);
  border-radius: 999px;
  font-weight: 900;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 680px;
  margin: 12px auto 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(249, 115, 22, 0.08);
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(31, 41, 55, 0.08);
  transition: 0.25s ease;
}

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

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

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

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.5));
  opacity: 0;
  transition: 0.25s ease;
}

.movie-card:hover .poster::after {
  opacity: 1;
}

.poster-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 44px;
  opacity: 0;
  transform: scale(0.8);
  transition: 0.25s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: scale(1);
}

.poster-region,
.poster-year,
.rank-badge {
  position: absolute;
  z-index: 3;
  padding: 6px 10px;
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.poster-region {
  top: 12px;
  right: 12px;
  background: rgba(239, 68, 68, 0.9);
}

.poster-year {
  top: 12px;
  left: 12px;
  background: rgba(17, 24, 39, 0.72);
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.28);
}

.movie-card:has(.rank-badge) .poster-year {
  display: none;
}

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

.movie-card-body h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.movie-meta span,
.movie-tags-text {
  display: inline-flex;
  max-width: 100%;
  padding: 5px 9px;
  color: #c2410c;
  background: #ffedd5;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-tags-text {
  margin-top: 8px;
  color: #9f1239;
  background: #ffe4e6;
}

.movie-card-small .movie-card-body h3 {
  font-size: 15px;
}

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

.warm-section {
  background: linear-gradient(135deg, #ffedd5, #fce7f3, #fee2e2);
}

.category-section {
  background: linear-gradient(135deg, #fff7ed, #fff, #fff1f2);
}

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

.category-tile,
.category-overview-card {
  background: #fff;
  border: 1px solid rgba(249, 115, 22, 0.1);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.08);
  transition: 0.25s ease;
}

.category-tile {
  padding: 22px;
}

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

.category-tile h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.category-tile p {
  min-height: 76px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.category-samples {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 18px;
}

.category-samples span {
  color: #ea580c;
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.center-action {
  margin-top: 30px;
  text-align: center;
}

.page-hero {
  color: #fff;
  background:
    radial-gradient(circle at 84% 12%, rgba(255, 255, 255, 0.28), transparent 24%),
    linear-gradient(135deg, var(--red), var(--orange), var(--pink));
}

.page-hero.compact {
  padding: 86px 0;
}

.page-hero p:last-child {
  max-width: 760px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
  line-height: 1.8;
}

.category-overview-list {
  display: grid;
  gap: 26px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  padding: 26px;
}

.category-overview-text h2 {
  margin: 0 0 12px;
  font-size: 30px;
}

.category-overview-text p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.8;
}

.text-link {
  color: #ef4444;
  font-weight: 900;
}

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

.category-preview a {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 3 / 4;
  background: #fee2e2;
}

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

.category-preview span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 8px 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-bar {
  position: sticky;
  top: 86px;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr 190px 190px;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(249, 115, 22, 0.12);
  border-radius: 24px;
  box-shadow: 0 14px 30px rgba(31, 41, 55, 0.08);
  backdrop-filter: blur(16px);
}

.filter-bar label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #9a3412;
  font-size: 13px;
  font-weight: 900;
}

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

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.18);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 60px 64px minmax(160px, 1fr) minmax(220px, 0.8fr) 72px;
  align-items: center;
  gap: 16px;
  min-height: 86px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid rgba(249, 115, 22, 0.1);
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(31, 41, 55, 0.06);
  transition: 0.25s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.rank-row img {
  width: 54px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-weight: 900;
}

.rank-title {
  font-size: 17px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-heat {
  justify-self: end;
  color: #ef4444;
  font-size: 18px;
  font-weight: 900;
}

.detail-wrap {
  padding: 34px 0 12px;
  background: linear-gradient(135deg, #fff7ed, #fff, #fff1f2);
}

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

.breadcrumb a {
  color: #ea580c;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 28px;
  align-items: start;
}

.video-shell {
  position: relative;
  overflow: hidden;
  background: #0f172a;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

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

.player-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.42));
  cursor: pointer;
  transition: 0.25s ease;
}

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

.player-layer span {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  padding-left: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
  font-size: 42px;
}

.story-card,
.info-card,
.review-card {
  margin-top: 22px;
  padding: 26px;
  background: #fff;
  border: 1px solid rgba(249, 115, 22, 0.1);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.08);
}

.info-card {
  margin-top: 0;
}

.story-card h2,
.review-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

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

.detail-info h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.detail-kicker {
  color: #be123c;
  background: #ffe4e6;
  border-color: #fecdd3;
}

.one-line {
  margin: 0 0 22px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

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

.info-list div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

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

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

.info-list a {
  color: #ea580c;
}

.detail-info .tag-cloud {
  margin: 0 0 24px;
}

.detail-info .tag-cloud span {
  color: #9f1239;
  background: #ffe4e6;
  border-color: #fecdd3;
}

.site-footer {
  padding: 42px 0;
  color: #fff;
  background: #111827;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

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

.site-footer p {
  max-width: 540px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

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

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .main-nav {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    padding: 14px;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

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

  .menu-button {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 76px 0 96px;
  }

  .hero-poster {
    display: none;
  }

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

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

  .category-overview-card,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .search-box {
    grid-column: 1 / -1;
  }

  .rank-row {
    grid-template-columns: 48px 54px 1fr 58px;
  }

  .rank-info {
    display: none;
  }
}

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

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

  .hero,
  .hero-stage,
  .hero-slide,
  .hero-content {
    min-height: 560px;
  }

  .quick-search-inner,
  .footer-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .section {
    padding: 54px 0;
  }

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

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

  .movie-card-body h3 {
    font-size: 15px;
  }

  .movie-meta span:nth-child(2),
  .movie-tags-text {
    display: none;
  }

  .category-grid,
  .category-preview,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .page-hero.compact {
    padding: 62px 0;
  }

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

  .rank-row {
    grid-template-columns: 38px 48px 1fr 48px;
    gap: 10px;
    padding: 10px;
  }

  .rank-number {
    width: 34px;
    height: 34px;
  }

  .rank-title {
    font-size: 14px;
  }

  .rank-heat {
    font-size: 14px;
  }

  .story-card,
  .info-card,
  .review-card {
    padding: 20px;
    border-radius: 20px;
  }
}
