:root {
  --red: #ef4444;
  --red-dark: #dc2626;
  --pink: #ec4899;
  --ink: #111827;
  --muted: #6b7280;
  --paper: #ffffff;
  --soft: #fff1f2;
  --line: #fee2e2;
  --shadow: 0 20px 60px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7f7 0%, #ffffff 42%, #fff1f2 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(254, 202, 202, 0.75);
  box-shadow: 0 8px 28px rgba(185, 28, 28, 0.08);
}

.nav-wrap {
  max-width: 1240px;
  margin: 0 auto;
  height: 68px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

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

.brand-text {
  font-size: 22px;
  background: linear-gradient(90deg, var(--red-dark), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-links a,
.mobile-menu a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active,
.mobile-menu a:hover,
.mobile-menu a.is-active {
  color: var(--red-dark);
}

.mobile-toggle {
  display: none;
  border: 0;
  background: #fff1f2;
  color: var(--red-dark);
  font-size: 24px;
  border-radius: 12px;
  width: 44px;
  height: 44px;
}

.mobile-menu {
  display: none;
  padding: 14px 24px 20px;
  border-top: 1px solid var(--line);
}

.mobile-menu a {
  display: block;
  padding: 10px 0;
  font-weight: 700;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  background-size: cover;
  background-position: center;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.68) 45%, rgba(17, 24, 39, 0.2)), radial-gradient(circle at 82% 20%, rgba(236, 72, 153, 0.48), transparent 32%);
}

.hero-slide::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 110px;
  background: linear-gradient(0deg, #fff7f7, transparent);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 96px 24px 140px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  gap: 42px;
  align-items: center;
}

.hero-kicker,
.section-kicker,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  margin: 24px 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.hero h1 span {
  color: #fca5a5;
}

.hero p {
  max-width: 760px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2.2vw, 25px);
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn-primary,
.btn-secondary,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--red), var(--pink));
  box-shadow: 0 16px 36px rgba(239, 68, 68, 0.34);
}

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

.btn-light {
  color: var(--red-dark);
  background: #fff;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-light:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-panel {
  border-radius: 34px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(16px);
}

.hero-panel img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 26px;
  background: linear-gradient(135deg, #fecaca, #fee2e2);
}

.hero-panel-meta {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
}

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

.hero-dot {
  width: 42px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

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

.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 24px;
}

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

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-desc {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.section-kicker {
  color: var(--red-dark);
  background: #fff;
  border-color: var(--line);
}

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

.movie-card {
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(254, 202, 202, 0.9);
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fee2e2, #fff1f2);
}

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

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

.play-chip,
.rank-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
}

.play-chip {
  left: 14px;
  bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.54);
  backdrop-filter: blur(8px);
}

.rank-badge {
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red), var(--pink));
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.38);
}

.movie-info {
  padding: 18px;
}

.movie-title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-title:hover {
  color: var(--red-dark);
}

.movie-desc {
  min-height: 48px;
  margin: 10px 0 14px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #7f1d1d;
  font-size: 13px;
  font-weight: 800;
}

.meta-line span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff1f2;
}

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

.tag-row span {
  padding: 5px 10px;
  border-radius: 999px;
  background: #f9fafb;
  color: #4b5563;
  font-size: 12px;
  font-weight: 700;
}

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

.category-tile {
  overflow: hidden;
  min-height: 280px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 10px;
  background: linear-gradient(135deg, #fee2e2, #fce7f3);
}

.category-covers img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 18px;
}

.category-copy {
  padding: 20px;
}

.category-copy h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 950;
}

.category-copy p {
  margin: 0 0 16px;
  color: var(--muted);
}

.category-copy span {
  color: var(--red-dark);
  font-weight: 900;
}

.callout {
  overflow: hidden;
  border-radius: 36px;
  padding: 42px;
  background: linear-gradient(135deg, var(--red), var(--pink));
  color: #fff;
  box-shadow: 0 24px 70px rgba(239, 68, 68, 0.28);
}

.callout h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 950;
}

.callout p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.page-hero {
  padding: 82px 24px 58px;
  color: #fff;
  background: radial-gradient(circle at top right, rgba(236, 72, 153, 0.65), transparent 36%), linear-gradient(135deg, #7f1d1d, #111827 70%);
}

.page-hero-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.breadcrumb a:hover {
  color: #fff;
}

.page-hero h1,
.detail-hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.page-hero p,
.detail-hero p {
  max-width: 780px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(4, minmax(130px, 180px));
  gap: 12px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.06);
}

.search-box {
  position: relative;
}

.search-box span {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--red-dark);
  font-weight: 900;
}

.search-box input,
.filter-select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff7f7;
  color: var(--ink);
  outline: none;
  font-size: 15px;
  font-weight: 700;
}

.search-box input {
  padding: 0 16px 0 62px;
}

.filter-select {
  padding: 0 14px;
}

.search-box input:focus,
.filter-select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.empty-state {
  display: none;
  padding: 32px;
  text-align: center;
  color: var(--muted);
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
}

.detail-hero {
  position: relative;
  padding: 72px 24px 64px;
  color: #fff;
  background-size: cover;
  background-position: center;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.28));
}

.detail-hero-inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
  background: linear-gradient(135deg, #fee2e2, #fff1f2);
}

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

.detail-kicker {
  background: rgba(239, 68, 68, 0.24);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 26px;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
}

.watch-shell {
  overflow: hidden;
  border-radius: 34px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.video-box {
  position: relative;
  background: #020617;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
  border: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 950;
}

.play-overlay span {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--pink));
  box-shadow: 0 18px 44px rgba(239, 68, 68, 0.45);
}

.play-overlay.is-hidden {
  display: none;
}

.watch-caption {
  padding: 18px 22px;
  color: #e5e7eb;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-weight: 800;
}

.content-card,
.side-card {
  border-radius: 30px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.06);
}

.content-card h2,
.side-card h2 {
  margin: 0 0 18px;
  font-size: 26px;
  font-weight: 950;
}

.content-card p {
  margin: 0 0 16px;
  color: #374151;
  font-size: 17px;
}

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

.side-link {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #fff7f7;
  border: 1px solid #fee2e2;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.side-link:hover {
  transform: translateX(4px);
  border-color: #fca5a5;
}

.side-link img {
  width: 74px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: #fee2e2;
}

.side-link b {
  display: block;
  margin-bottom: 4px;
}

.side-link span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 50px 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
}

.footer-brand {
  margin-bottom: 14px;
  font-size: 22px;
}

.site-footer p {
  max-width: 420px;
  color: #d1d5db;
}

.site-footer h3 {
  margin: 0 0 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
}

.footer-links a:hover {
  background: rgba(239, 68, 68, 0.82);
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 24px 28px;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

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

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

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

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

  .hero {
    min-height: 760px;
  }

  .hero-inner,
  .detail-hero-inner {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

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

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

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

  .callout,
  .content-card,
  .side-card {
    padding: 24px;
  }

  .watch-caption {
    flex-direction: column;
  }
}

.plain-list { columns: 4; padding-left: 18px; }
.plain-list li { break-inside: avoid; margin: 6px 0; color: #374151; }
.plain-list a:hover { color: var(--red-dark); }
@media (max-width: 820px) { .plain-list { columns: 2; } }
@media (max-width: 560px) { .plain-list { columns: 1; } }
