:root {
  --rose: #f43f5e;
  --pink: #ec4899;
  --orange: #fb923c;
  --purple: #9333ea;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fff7ed;
  --paper: #ffffff;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
  --radius: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(135deg, #fff1f2 0%, #fff7ed 45%, #fdf2f8 100%);
  min-height: 100vh;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--rose), var(--pink), var(--orange));
  color: #ffffff;
  box-shadow: 0 12px 32px rgba(244, 63, 94, 0.28);
}

.nav-wrap {
  max-width: 1180px;
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rose);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(255, 255, 255, 0.22);
}

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

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

.nav-link {
  padding: 9px 13px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.header-search,
.mobile-search,
.wide-search,
.search-page-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input {
  width: 190px;
  padding: 9px 14px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  outline: none;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.header-search button,
.mobile-search button,
.wide-search button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  color: var(--rose);
  background: #ffffff;
  padding: 9px 16px;
  font-weight: 700;
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 18px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 10px;
}

.site-main {
  overflow: hidden;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  color: #ffffff;
  background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.16), transparent 30%), linear-gradient(135deg, #881337 0%, #be185d 42%, #fb923c 100%);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  right: -120px;
  top: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  filter: blur(10px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  min-height: 620px;
  margin: 0 auto;
  padding: 82px 20px 72px;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 48px;
  align-items: center;
}

.hero-copy {
  max-width: 660px;
}

.hero-eyebrow,
.section-kicker {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
}

.hero-copy h1 {
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-copy h2 {
  margin-top: 14px;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.12;
}

.hero-summary {
  margin: 22px 0;
  max-width: 620px;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}

.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;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span,
.detail-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  padding: 7px 10px;
}

.tag-row span {
  color: #be123c;
  background: #ffe4e6;
  padding: 5px 8px;
}

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

.button-primary,
.button-secondary,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
  color: var(--rose);
  background: #ffffff;
  padding: 13px 24px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.button-secondary {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.14);
  padding: 13px 22px;
}

.button-primary:hover,
.button-secondary:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  height: 460px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 34px 80px rgba(17, 24, 39, 0.36);
  transform: rotate(1.5deg);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.22), transparent 52%);
}

.hero-control {
  position: absolute;
  z-index: 4;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

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

.hero-dot.is-active {
  width: 30px;
  border-radius: 999px;
  background: #ffffff;
}

.section {
  padding: 62px 0;
}

.section-overlap {
  margin-top: -52px;
  position: relative;
  z-index: 10;
  padding-top: 0;
}

.tint-section {
  background: linear-gradient(135deg, rgba(255, 228, 230, 0.78), rgba(255, 237, 213, 0.78));
}

.quick-search-panel {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 0.72fr);
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search-panel h2,
.section-head h2,
.page-hero h1,
.detail-copy h1,
.content-panel h2 {
  margin: 0;
  letter-spacing: -0.03em;
}

.quick-search-panel h2,
.section-head h2 {
  font-size: clamp(26px, 4vw, 38px);
}

.quick-search-panel p,
.page-hero p {
  color: var(--muted);
  line-height: 1.8;
}

.wide-search input,
.search-page-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 13px 18px;
  outline: none;
  background: #ffffff;
}

.wide-search button,
.search-page-form button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--orange));
  padding: 13px 22px;
}

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

.section-head a,
.text-link,
.detail-nav-links a {
  color: #e11d48;
  font-weight: 800;
}

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

.category-card,
.category-overview-card,
.content-panel,
.movie-card,
.quick-search-panel,
.filter-bar {
  border: 1px solid rgba(244, 63, 94, 0.08);
}

.category-card a {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card a:hover,
.movie-card:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 46px rgba(17, 24, 39, 0.14);
}

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

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

.category-samples {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #e11d48;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe4e6, #fed7aa);
}

.movie-card-small .poster-frame {
  aspect-ratio: 16 / 10;
}

.poster-frame img {
  transition: transform 0.35s ease;
}

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

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  color: #ffffff;
  background: rgba(244, 63, 94, 0.92);
  padding: 7px 10px;
}

.rank-badge {
  left: 12px;
  top: 12px;
  color: #e11d48;
  background: #ffffff;
  padding: 7px 10px;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.18);
}

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

.movie-meta-line {
  color: #f43f5e;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}

.movie-card h3 {
  margin: 0 0 9px;
  font-size: 18px;
  line-height: 1.3;
}

.movie-card h3 a:hover {
  color: #e11d48;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 190px 160px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  outline: none;
  padding: 12px 14px;
}

.page-hero,
.detail-hero {
  padding: 86px 0 66px;
  background: linear-gradient(135deg, rgba(255, 228, 230, 0.9), rgba(255, 247, 237, 0.9));
}

.compact-hero,
.ranking-hero,
.search-hero {
  background: radial-gradient(circle at 80% 18%, rgba(244, 63, 94, 0.18), transparent 34%), linear-gradient(135deg, #fff1f2, #fff7ed);
}

.page-hero h1 {
  font-size: clamp(38px, 6vw, 64px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #9f1239;
  font-size: 14px;
  margin-bottom: 20px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 24px;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.detail-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #ffe4e6, #fed7aa);
}

.detail-copy h1 {
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.05;
}

.detail-one-line {
  color: #4b5563;
  font-size: 19px;
  line-height: 1.8;
  max-width: 760px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: 0 26px 70px rgba(17, 24, 39, 0.26);
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(244, 63, 94, 0.26), rgba(17, 24, 39, 0.7));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-icon-large {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rose);
  background: #ffffff;
  font-size: 34px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.26);
}

.detail-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.content-panel {
  border-radius: var(--radius);
  background: #ffffff;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
}

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

.detail-nav-links {
  display: flex;
  gap: 16px;
}

.empty-state {
  margin: 32px 0;
  padding: 30px;
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
}

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

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 900;
}

.site-footer p {
  max-width: 620px;
  margin: 0;
  color: #d1d5db;
  line-height: 1.8;
}

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

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

.footer-bottom {
  max-width: 1180px;
  margin: 28px auto 0;
  padding: 22px 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9ca3af;
  font-size: 14px;
}

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

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-inner,
  .quick-search-panel,
  .category-overview-card,
  .detail-layout,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding-top: 70px;
    gap: 28px;
  }

  .hero-visual {
    height: 360px;
    transform: none;
  }

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

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

@media (max-width: 720px) {
  .nav-wrap {
    height: 62px;
  }

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

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

  .hero-copy h1 {
    font-size: 40px;
  }

  .hero-summary,
  .detail-one-line {
    font-size: 16px;
  }

  .hero-control {
    display: none;
  }

  .hero-visual {
    height: 330px;
  }

  .section {
    padding: 44px 0;
  }

  .quick-search-panel,
  .category-card a,
  .content-panel,
  .category-overview-card {
    padding: 20px;
  }

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

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

  .section-head,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-poster {
    max-width: 260px;
  }
}
