:root {
  --red: #ef4444;
  --orange: #f97316;
  --pink: #ec4899;
  --rose-dark: #7f1d1d;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #f3d8d2;
  --paper: #ffffff;
  --soft: #fff7ed;
  --shadow: 0 20px 45px rgba(127, 29, 29, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #fff7ed 0%, #fdf2f8 42%, #fef2f2 100%);
  min-height: 100vh;
}

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

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

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

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  color: var(--rose-dark);
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange), var(--pink));
  box-shadow: 0 14px 28px rgba(239, 68, 68, 0.28);
  font-size: 15px;
}

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

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: #374151;
  font-weight: 700;
  transition: all 0.22s ease;
}

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

.header-search {
  display: flex;
  align-items: center;
  width: 270px;
  padding: 4px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(249, 115, 22, 0.24);
  box-shadow: 0 10px 26px rgba(249, 115, 22, 0.08);
}

.header-search input,
.search-large input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 14px;
}

.header-search button,
.search-large button,
.hero-button,
.primary-button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 18px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--pink));
  box-shadow: 0 12px 26px rgba(239, 68, 68, 0.28);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  white-space: nowrap;
}

.header-search button:hover,
.search-large button:hover,
.hero-button:hover,
.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(236, 72, 153, 0.3);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff3f0;
  align-items: center;
  justify-content: center;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: var(--rose-dark);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.mobile-panel a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 800;
  color: var(--rose-dark);
}

.mobile-panel a:hover {
  background: #fff1ed;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  background-size: cover;
  background-position: center;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.86) 0%, rgba(127, 29, 29, 0.66) 46%, rgba(236, 72, 153, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  color: #fff;
}

.hero-copy {
  width: min(680px, 100%);
  animation: fadeUp 0.8s ease both;
}

.hero-kicker,
.section-kicker,
.breadcrumbs a,
.breadcrumbs span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.7;
}

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

.hero-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 22px;
  color: #fff;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
}

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

.hero-dots button {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: #fff;
}

.main-section,
.page-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

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

.section-title h2,
.page-title h1 {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-title p,
.page-title p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
  max-width: 760px;
}

.section-kicker {
  color: #b91c1c;
  background: linear-gradient(90deg, #fee2e2, #ffedd5);
}

.more-link {
  color: var(--red);
  font-weight: 900;
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(127, 29, 29, 0.1);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 55px rgba(127, 29, 29, 0.18);
}

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

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(0, 0, 0, 0.38);
  transition: opacity 0.28s ease;
}

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

.poster-year,
.poster-region {
  position: absolute;
  z-index: 2;
  top: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
}

.poster-year {
  left: 14px;
}

.poster-region {
  right: 14px;
  background: linear-gradient(90deg, var(--red), var(--orange));
}

.play-badge {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%) scale(0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--red);
  background: #fff;
  opacity: 0;
  transition: all 0.28s ease;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
}

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

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

.movie-card-body h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

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

.tag-row span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  color: #9f1239;
  background: linear-gradient(90deg, #ffedd5, #fce7f3);
  font-size: 12px;
  font-weight: 800;
}

.category-strip {
  background: linear-gradient(135deg, #fff7ed, #fdf2f8);
  border-top: 1px solid rgba(249, 115, 22, 0.12);
  border-bottom: 1px solid rgba(249, 115, 22, 0.12);
}

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

.category-card {
  min-height: 150px;
  padding: 24px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 15px 36px rgba(127, 29, 29, 0.1);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 46px rgba(127, 29, 29, 0.16);
}

.category-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--rose-dark);
  font-size: 22px;
}

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

.cta-panel {
  padding: 52px;
  border-radius: 34px;
  text-align: center;
  color: #fff;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--pink));
  box-shadow: 0 28px 65px rgba(239, 68, 68, 0.26);
}

.cta-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
}

.cta-panel p {
  margin: 0 auto 24px;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
}

.page-hero {
  padding: 64px 0 42px;
  background: linear-gradient(135deg, #fff7ed 0%, #fce7f3 45%, #fee2e2 100%);
}

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

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.breadcrumbs a,
.breadcrumbs span {
  color: #9f1239;
  background: rgba(255, 255, 255, 0.7);
}

.filter-panel,
.search-large {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin-bottom: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(249, 115, 22, 0.16);
  box-shadow: 0 12px 30px rgba(127, 29, 29, 0.08);
}

.search-large {
  max-width: 760px;
}

.filter-panel input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  font-size: 16px;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 70px 92px 1fr;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(127, 29, 29, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ranking-item:hover {
  transform: translateX(6px);
  box-shadow: 0 18px 40px rgba(127, 29, 29, 0.14);
}

.rank-num {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.ranking-item img {
  width: 92px;
  height: 122px;
  object-fit: cover;
  border-radius: 16px;
  background: linear-gradient(135deg, #fee2e2, #ffedd5);
}

.rank-info h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.rank-info p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

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

.rank-meta span {
  border-radius: 999px;
  padding: 5px 10px;
  background: #fff1ed;
  color: #9f1239;
  font-weight: 800;
  font-size: 12px;
}

.detail-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 80px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 30px;
}

.player-card,
.info-card,
.review-card {
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.player {
  position: relative;
  overflow: hidden;
  background: #0b1020;
}

.player video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  transition: opacity 0.22s ease;
}

.player-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.24));
}

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

.big-play {
  position: relative;
  width: 78px;
  height: 78px;
  border: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--red);
  background: #fff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  font-size: 25px;
}

.player-caption {
  padding: 24px;
}

.player-caption h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.player-caption p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.info-card,
.review-card {
  padding: 26px;
}

.info-card h1 {
  margin: 14px 0 12px;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.15;
}

.info-card .one-line {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

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

.meta-cell {
  padding: 14px;
  border-radius: 18px;
  background: #fff7ed;
}

.meta-cell strong {
  display: block;
  margin-bottom: 5px;
  color: #9f1239;
  font-size: 13px;
}

.meta-cell span {
  color: var(--ink);
  font-weight: 800;
}

.summary-block {
  padding: 26px;
}

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

.summary-block p,
.review-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
}

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

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  justify-content: center;
  color: #fff;
}

.footer-inner p {
  margin: 14px auto;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin: 18px 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

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

.empty-state {
  display: none;
  padding: 36px;
  border-radius: 24px;
  background: #fff;
  text-align: center;
  color: var(--muted);
  box-shadow: var(--shadow);
}

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .header-search {
    display: none;
  }

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

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

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

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

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

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

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

  .section-head {
    display: block;
  }

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

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

  .ranking-item {
    grid-template-columns: 46px 72px 1fr;
    gap: 12px;
  }

  .rank-num {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .ranking-item img {
    width: 72px;
    height: 98px;
  }

  .rank-info h3 {
    font-size: 18px;
  }

  .rank-info p {
    display: none;
  }

  .cta-panel {
    padding: 34px 22px;
  }
}

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

  .site-logo {
    font-size: 18px;
  }

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

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

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

  .movie-card-body p {
    font-size: 13px;
  }

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

  .filter-panel,
  .search-large {
    flex-direction: column;
    align-items: stretch;
  }
}
