
:root {
  --red: #dc2626;
  --red-dark: #991b1b;
  --red-soft: #fee2e2;
  --sand: #faf8f3;
  --sand-strong: #f3ede2;
  --earth: #1f1b18;
  --earth-soft: #302923;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
  --soft-shadow: 0 8px 22px rgba(17, 24, 39, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--earth);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), #ef8b38);
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.22);
}

.brand-name {
  font-size: 20px;
  letter-spacing: -0.03em;
}

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

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

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--red-soft);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--red-dark);
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 12px 16px 18px;
}

.mobile-drawer a {
  display: block;
  padding: 11px 6px;
  color: #374151;
  font-weight: 700;
  border-bottom: 1px solid #f3f4f6;
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  background: #120f0d;
}

.hero-slider {
  position: relative;
  min-height: 660px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  min-height: 660px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

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

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

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(220, 38, 38, 0.38), transparent 28%),
    linear-gradient(90deg, rgba(18, 15, 13, 0.98), rgba(18, 15, 13, 0.78) 42%, rgba(18, 15, 13, 0.38));
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 390px;
  gap: 56px;
  align-items: center;
  padding: 84px 0 110px;
}

.hero-copy {
  color: var(--white);
}

.eyebrow,
.section-kicker {
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 900;
  margin: 0 0 12px;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(36px, 6vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  margin: 22px 0;
}

.hero-tags,
.tag-cloud,
.meta-pills,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-cloud span,
.meta-pills span,
.card-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.small-actions {
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 19px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.25s ease;
}

.btn.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--red), #ef8b38);
  box-shadow: 0 14px 28px rgba(220, 38, 38, 0.26);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(220, 38, 38, 0.32);
}

.btn.ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

.btn.ghost.dark {
  color: var(--red-dark);
  border-color: #fecaca;
  background: #fff5f5;
}

.btn.text {
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
}

.btn.wide {
  width: 100%;
  margin-top: 18px;
}

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

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

.hero-poster span {
  position: absolute;
  left: 22px;
  bottom: 22px;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--red);
  background: rgba(255, 255, 255, 0.93);
  font-weight: 900;
  box-shadow: var(--shadow);
}

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

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

.hero-dots button.active {
  width: 34px;
  background: var(--white);
}

.section-block {
  padding: 64px 0;
}

.intro-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 30px;
  align-items: center;
}

.intro-search h2,
.section-title h2,
.ranking-card h2,
.content-card h2,
.category-panel h2,
.page-hero h1 {
  margin: 0;
  color: var(--earth);
  letter-spacing: -0.04em;
}

.intro-search h2,
.section-title h2,
.ranking-card h2 {
  font-size: clamp(28px, 3.4vw, 40px);
}

.intro-search p,
.page-hero p,
.category-panel p,
.content-card p,
.detail-line {
  color: #4b5563;
}

.home-search {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.home-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 12px;
  background: transparent;
}

.home-search button,
.filter-panel button {
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  color: var(--white);
  background: var(--red);
  font-weight: 900;
  cursor: pointer;
}

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

.compact-title {
  align-items: start;
}

.section-title > a {
  color: var(--red);
  font-weight: 900;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--earth);
  box-shadow: var(--soft-shadow);
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  opacity: 0.58;
  transition: 0.45s ease;
}

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

.category-tile span,
.category-tile em {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 2;
  color: var(--white);
}

.category-tile span {
  bottom: 62px;
  font-size: 23px;
  font-weight: 900;
}

.category-tile em {
  bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-style: normal;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: 0.28s ease;
}

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

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--earth);
}

.card-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: 0.45s ease;
}

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

.year-badge,
.play-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 900;
}

.year-badge {
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--red);
  font-size: 12px;
}

.play-badge {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.92);
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  transition: 0.28s ease;
}

.movie-card:hover .play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--red);
}

.card-body p {
  display: -webkit-box;
  min-height: 46px;
  margin: 8px 0 12px;
  overflow: hidden;
  color: #4b5563;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-tags span {
  color: #6b7280;
  background: #f3f4f6;
}

.rail-section {
  background: var(--white);
}

.movie-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.rail-item {
  width: 250px;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

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

.list-stack {
  display: grid;
  gap: 14px;
}

.list-stack.tight {
  gap: 10px;
}

.list-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: 0.25s ease;
}

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

.list-cover {
  overflow: hidden;
  border-radius: 12px;
  background: var(--earth);
}

.list-cover img {
  width: 86px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.list-main strong,
.list-main em,
.list-main span {
  display: block;
}

.list-main strong {
  line-height: 1.35;
  font-size: 16px;
}

.list-main em {
  display: -webkit-box;
  overflow: hidden;
  margin: 4px 0;
  color: #4b5563;
  font-style: normal;
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.list-main span {
  color: #6b7280;
  font-size: 12px;
}

.rank-num {
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), #ef8b38);
  font-size: 12px;
  font-weight: 900;
}

.ranking-card {
  position: sticky;
  top: 94px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--white), #fff7ed);
  box-shadow: var(--shadow);
}

.page-hero {
  padding: 74px 0;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 22%, rgba(239, 139, 56, 0.44), transparent 28%),
    linear-gradient(135deg, #1f1b18, #3f1818 58%, #7f1d1d);
}

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

.page-hero h1 {
  max-width: 800px;
  color: var(--white);
  font-size: clamp(34px, 5vw, 58px);
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: 38px;
  align-items: start;
}

.spotlight-list .list-card {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  color: var(--white);
  backdrop-filter: blur(16px);
}

.spotlight-list .list-main em,
.spotlight-list .list-main span {
  color: rgba(255, 255, 255, 0.72);
}

.category-panels {
  display: grid;
  gap: 22px;
}

.category-panel {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  padding: 22px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

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

.category-collage img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
}

.category-panel p {
  margin: 8px 0 16px;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.mini-links a {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--red-dark);
  background: #fff1f2;
  font-size: 13px;
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(140px, 0.65fr)) auto;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.filter-panel label {
  display: grid;
  gap: 6px;
}

.filter-panel span {
  color: #6b7280;
  font-size: 12px;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  padding: 0 12px;
  background: #fff;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

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

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

.top-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.top-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.top-card div {
  padding: 20px;
}

.top-card span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.top-card h2 {
  margin: 6px 0 8px;
}

.top-card p {
  margin: 0;
  color: #4b5563;
}

.rank-list .list-card {
  grid-template-columns: 72px minmax(0, 1fr) auto;
}

.rank-list .list-cover img {
  width: 72px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 26px 0 72px;
  background: #171210;
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  filter: blur(2px);
}

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

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(23, 18, 16, 0.98), rgba(23, 18, 16, 0.82), rgba(127, 29, 29, 0.56));
}

.breadcrumbs,
.detail-grid {
  position: relative;
  z-index: 2;
}

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

.breadcrumbs a:hover {
  color: var(--white);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.75fr);
  gap: 34px;
  align-items: center;
}

.player-shell {
  border-radius: 26px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 88px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
}

.movie-player {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #000;
  aspect-ratio: 16 / 9;
}

.movie-player video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 8px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.68));
  cursor: pointer;
  font-weight: 900;
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.25s ease;
}

.player-icon {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--red);
  background: rgba(255, 255, 255, 0.94);
  font-size: 34px;
  box-shadow: var(--shadow);
}

.detail-info {
  color: var(--white);
}

.detail-info h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.detail-line {
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.detail-info .meta-pills span,
.detail-info .tag-cloud span {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.14);
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: 24px;
  padding-top: 48px;
}

.content-card {
  padding: 26px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.content-card p {
  margin-bottom: 0;
  font-size: 16px;
}

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

.related-grid .card-body p,
.related-grid .card-tags {
  display: none;
}

.site-footer {
  margin-top: 44px;
  padding: 54px 0 0;
  color: rgba(255, 255, 255, 0.78);
  background: var(--earth);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 36px;
}

.footer-brand {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 24px;
  font-weight: 900;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fca5a5;
  font-size: 16px;
}

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

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  margin-top: 34px;
  padding: 18px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.52);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1080px) {
  .hero-grid,
  .detail-grid,
  .page-hero-grid,
  .intro-search,
  .two-column,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    max-width: 360px;
  }

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

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

  .ranking-card {
    position: static;
  }

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

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

  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero,
  .hero-slider,
  .hero-slide {
    min-height: 720px;
  }

  .hero-grid {
    gap: 28px;
    padding: 48px 0 94px;
  }

  .hero-copy p,
  .detail-line {
    font-size: 16px;
  }

  .hero-poster {
    transform: none;
  }

  .section-block {
    padding: 42px 0;
  }

  .section-title {
    align-items: start;
    flex-direction: column;
  }

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

  .category-panel {
    grid-template-columns: 1fr;
  }

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

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

  .list-card {
    grid-template-columns: 70px minmax(0, 1fr) auto;
  }

  .list-cover img {
    width: 70px;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 17px;
  }

  .home-search {
    flex-direction: column;
  }

  .home-search input {
    min-height: 44px;
  }

  .category-grid,
  .movie-grid,
  .top-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .rail-item {
    width: 225px;
  }

  .player-icon {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }
}
