:root {
  --bg: #fff7f4;
  --paper: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(17, 24, 39, 0.10);
  --rose: #e11d48;
  --orange: #f97316;
  --gold: #f59e0b;
  --dark: #111827;
  --shadow: 0 22px 60px rgba(88, 28, 25, 0.14);
  --soft-shadow: 0 14px 34px rgba(88, 28, 25, 0.10);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(251, 113, 133, 0.20), transparent 34rem),
    radial-gradient(circle at top right, rgba(251, 146, 60, 0.18), transparent 30rem),
    linear-gradient(180deg, #fff7f4 0%, #fff 42%, #fff7f4 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-size: 21px;
  background: linear-gradient(135deg, #fb7185, #fb923c);
  box-shadow: 0 12px 24px rgba(225, 29, 72, 0.22);
}

.brand-text {
  font-size: clamp(21px, 3vw, 29px);
  background: linear-gradient(90deg, #e11d48, #f97316);
  -webkit-background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 700;
  color: #374151;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e11d48, #fb923c);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #e11d48;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: #111827;
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  background: #111827;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.06);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 28%, rgba(251, 146, 60, 0.28), transparent 24rem),
    linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.74) 42%, rgba(17, 24, 39, 0.24)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.82), transparent 54%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 76px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 22px 112px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 420px);
  gap: 46px;
  align-items: center;
}

.hero-copy {
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: #fb7185;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.hero h2 {
  margin: 22px 0 12px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 11px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 700;
}

.tag-row span {
  color: #9f1239;
  background: #fff1f2;
  border-color: #ffe4e6;
}

.detail-tags span {
  color: #9f1239;
  background: #fff1f2;
  border-color: #ffe4e6;
}

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

.primary-btn,
.ghost-btn,
.section-link,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, #e11d48, #f97316);
  box-shadow: 0 18px 34px rgba(225, 29, 72, 0.25);
}

.ghost-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.ghost-btn.dark {
  color: #9f1239;
  border-color: #fecdd3;
  background: #fff1f2;
}

.primary-btn:hover,
.ghost-btn:hover,
.section-link:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  display: block;
  border-radius: 34px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
  transform: rotate(2deg);
}

.hero-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 26px;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  width: min(1120px, calc(100% - 44px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-arrow,
.hero-dot {
  pointer-events: auto;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  font-size: 34px;
  line-height: 1;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 99px;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: linear-gradient(90deg, #fb7185, #fb923c);
}

.panel,
.section,
.page-hero,
.detail-top {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
}

.quick-search {
  margin-top: -52px;
  position: relative;
  z-index: 10;
  padding-top: 28px;
  padding-bottom: 30px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.quick-search h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: -0.04em;
}

.home-search,
.search-field {
  display: grid;
  gap: 8px;
  font-weight: 800;
  color: #9f1239;
}

.home-search input,
.search-field input {
  width: 100%;
  min-height: 52px;
  border-radius: 18px;
  border: 1px solid #fecdd3;
  background: #fff;
  padding: 0 18px;
  color: var(--ink);
  outline: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.home-result-grid {
  margin-top: 24px;
}

.section {
  padding-top: 76px;
  padding-bottom: 26px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.06em;
}

.section-heading p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
}

.compact-heading {
  margin-bottom: 18px;
}

.section-link,
.text-link {
  color: #9f1239;
  background: #fff1f2;
  min-height: 44px;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 196px;
  border-radius: 26px;
  padding: 18px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--soft-shadow);
  isolation: isolate;
}

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

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.10));
}

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

.category-tile span {
  font-size: 22px;
  font-weight: 900;
}

.category-tile small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(17, 24, 39, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

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

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

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  min-width: 42px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, #e11d48);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
  color: #9f1239;
  font-size: 12px;
  font-weight: 800;
}

.card-body h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.32;
  letter-spacing: -0.02em;
}

.card-body p {
  margin: 10px 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.page-hero {
  padding-top: 74px;
  padding-bottom: 42px;
}

.page-hero.slim {
  padding-bottom: 18px;
}

.page-hero p:not(.eyebrow) {
  max-width: 820px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
  color: var(--muted);
  font-weight: 700;
}

.crumbs a {
  color: #e11d48;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--soft-shadow);
}

.filter-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #fecdd3;
  border-radius: 999px;
  background: #fff;
  color: #9f1239;
  font-weight: 800;
}

.filter-pill.active {
  color: #fff;
  background: linear-gradient(135deg, #e11d48, #f97316);
  border-color: transparent;
}

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

.category-card-large {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
}

.category-cover img {
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  object-fit: cover;
}

.category-card-large h2 {
  margin: 0 0 10px;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.category-card-large p {
  color: var(--muted);
  line-height: 1.7;
}

.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.category-links a {
  color: #9f1239;
  background: #fff1f2;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 800;
}

.detail-top {
  display: grid;
  grid-template-columns: minmax(260px, 390px) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding-top: 54px;
  padding-bottom: 34px;
}

.detail-poster {
  border-radius: 34px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.detail-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 26px;
}

.detail-info h1 {
  margin: 10px 0 16px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.07em;
}

.lead {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.85;
}

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

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.18), rgba(15, 23, 42, 0.58));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-core {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  border-radius: 999px;
  color: #fff;
  font-size: 34px;
  background: linear-gradient(135deg, #e11d48, #f97316);
  box-shadow: 0 24px 54px rgba(225, 29, 72, 0.30);
}

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

.content-panel {
  padding: 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
}

.content-panel h2 {
  margin: 0 0 12px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.content-panel p {
  margin: 0;
  color: #4b5563;
  line-height: 2;
  font-size: 16px;
}

.site-footer {
  margin-top: 80px;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 54px 22px;
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 34px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
}

.site-footer p {
  color: #9ca3af;
  line-height: 1.8;
}

.site-footer a {
  display: inline-flex;
  margin: 0 12px 10px 0;
  color: #d1d5db;
}

.site-footer a:hover {
  color: #fb7185;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 18px 22px;
  text-align: center;
  color: #9ca3af;
}

[data-card].is-hidden {
  display: none;
}

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

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

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

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .hero-content,
  .detail-top,
  .detail-content,
  .category-card-large,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    min-height: auto;
    padding-top: 70px;
  }

  .hero-poster {
    max-width: 340px;
    transform: none;
  }

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

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

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

@media (max-width: 560px) {
  .nav-wrap {
    padding: 0 14px;
  }

  .brand-text {
    font-size: 21px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 48px 16px 96px;
  }

  .hero-controls {
    width: calc(100% - 26px);
  }

  .section,
  .panel,
  .page-hero,
  .detail-top {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-heading {
    display: block;
  }

  .section-link {
    margin-top: 14px;
  }

  .movie-grid,
  .movie-grid.compact,
  .category-grid,
  .category-card-grid {
    grid-template-columns: 1fr;
  }

  .quick-search {
    margin-top: 0;
    border-radius: 0;
  }

  .player-shell {
    border-radius: 22px;
  }
}
