:root {
  color-scheme: light;
  --page: #fff7ed;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-solid: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --soft: #f9fafb;
  --line: #e5e7eb;
  --rose: #e11d48;
  --rose-dark: #be123c;
  --pink: #ec4899;
  --amber: #f59e0b;
  --orange: #f97316;
  --emerald: #10b981;
  --green: #22c55e;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --violet: #7c3aed;
  --shadow: 0 20px 55px rgba(190, 18, 60, 0.16);
  --shadow-soft: 0 14px 38px rgba(17, 24, 39, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(244, 63, 94, 0.14), transparent 34rem),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 28rem),
    linear-gradient(135deg, #fff1f2 0%, #ffffff 42%, #fffbeb 100%);
  min-height: 100vh;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 14px 28px rgba(225, 29, 72, 0.26);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong,
.footer-brand strong {
  font-size: 20px;
  line-height: 1;
  background: linear-gradient(90deg, var(--rose-dark), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link,
.mobile-link {
  color: #374151;
  font-weight: 700;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--rose-dark);
  background: #fff1f2;
}

.nav-link:hover {
  transform: translateY(-1px);
}

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

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

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.mobile-link {
  display: block;
  padding: 14px 16px;
  margin-top: 6px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 0.85s ease;
  background-size: cover;
  background-position: center;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(225, 29, 72, 0.92), rgba(236, 72, 153, 0.75), rgba(245, 158, 11, 0.70)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.35), rgba(17, 24, 39, 0.15));
}

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

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 46px;
}

.hero-copy {
  max-width: 760px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  margin-bottom: 24px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  font-weight: 700;
}

.hero-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.hero-copy h1 span {
  color: #fde68a;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 30px;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.90);
}

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

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

.btn:hover {
  transform: translateY(-2px) scale(1.01);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  box-shadow: 0 15px 30px rgba(225, 29, 72, 0.28);
}

.btn-light {
  color: var(--rose-dark);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 15px 35px rgba(17, 24, 39, 0.14);
}

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

.hero-side {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 16px;
}

.hero-mini-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding: 13px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.18);
}

.hero-mini-card img {
  aspect-ratio: 2 / 3;
  border-radius: 15px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.15);
}

.hero-mini-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.hero-mini-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.6;
}

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

.hero-tab {
  width: 42px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-tab.is-active {
  width: 64px;
  background: #ffffff;
}

.page-hero,
.detail-hero {
  padding: 86px 0 54px;
  background:
    radial-gradient(circle at top left, rgba(225, 29, 72, 0.15), transparent 28rem),
    linear-gradient(135deg, #fff1f2, #ffffff 50%, #fffbeb);
}

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

.page-hero h1,
.detail-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4.8vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.page-hero p,
.detail-copy p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

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

.section-block.soft {
  background: rgba(255, 255, 255, 0.50);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0 0 5px;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.section-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}

.tone-rose { background: linear-gradient(135deg, var(--rose), var(--pink)); }
.tone-amber { background: linear-gradient(135deg, var(--amber), var(--orange)); }
.tone-emerald { background: linear-gradient(135deg, var(--emerald), var(--green)); }
.tone-blue { background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.tone-pink { background: linear-gradient(135deg, var(--pink), var(--rose)); }
.tone-orange { background: linear-gradient(135deg, var(--orange), var(--amber)); }
.tone-green { background: linear-gradient(135deg, var(--green), var(--emerald)); }
.tone-violet { background: linear-gradient(135deg, var(--violet), var(--pink)); }

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

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

.movie-card,
.rank-card,
.category-tile,
.info-panel,
.filter-panel,
.player-box,
.detail-panel {
  border: 1px solid rgba(229, 231, 235, 0.86);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  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: rgba(244, 63, 94, 0.28);
}

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

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

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.72), transparent);
  pointer-events: none;
}

.poster-type,
.poster-year {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(244, 63, 94, 0.92);
}

.poster-type {
  left: 12px;
  top: 12px;
}

.poster-year {
  right: 12px;
  bottom: 12px;
  background: rgba(245, 158, 11, 0.92);
}

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

.movie-card h3,
.rank-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-card h3 a:hover {
  color: var(--rose-dark);
}

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

.movie-meta-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.movie-meta-row span,
.tag-row span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #4b5563;
  background: #f3f4f6;
  font-size: 12px;
  font-weight: 700;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span,
.meta-pill.hot {
  color: var(--rose-dark);
  background: #fff1f2;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 16px;
  padding: 14px;
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.rank-poster {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff1f2, #fef3c7);
}

.rank-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.rank-info {
  align-self: center;
}

.rank-number {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 168px;
  padding: 24px;
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -48px;
  top: -48px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.20), rgba(245, 158, 11, 0.18));
}

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

.category-tile h3 {
  position: relative;
  margin: 0 0 10px;
  font-size: 24px;
}

.category-tile p {
  position: relative;
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

.category-tile span {
  position: relative;
  color: var(--rose-dark);
  font-weight: 900;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  padding: 0 16px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(225, 29, 72, 0.45);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.10);
}

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

.detail-hero {
  padding-bottom: 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.breadcrumb a:hover {
  color: var(--rose-dark);
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.detail-poster {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #ffe4e6, #fef3c7);
}

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

.detail-copy h1 {
  max-width: 840px;
}

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

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

.player-box {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #111827;
}

.watch-player {
  position: relative;
  min-height: 420px;
  background: #111827;
}

.watch-player video {
  display: block;
  width: 100%;
  height: min(62vw, 640px);
  min-height: 420px;
  object-fit: contain;
  background: #0b1020;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  color: #ffffff;
  border: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.70), rgba(17, 24, 39, 0.18));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--rose-dark);
  background: #ffffff;
  font-size: 34px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.24);
}

.play-overlay strong {
  font-size: 22px;
}

.player-status {
  min-height: 24px;
  padding: 12px 18px 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  background: #111827;
}

.detail-panel {
  padding: 28px;
  border-radius: var(--radius-xl);
  margin-bottom: 24px;
}

.detail-panel h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.detail-panel p {
  color: #374151;
  font-size: 17px;
  line-height: 1.95;
  margin: 0;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.detail-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--rose-dark);
  background: #fff1f2;
  font-weight: 800;
  font-size: 13px;
}

.site-footer {
  border-top: 1px solid rgba(229, 231, 235, 0.86);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.footer-brand p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.footer-links a {
  padding: 9px 12px;
  border-radius: 999px;
  color: #4b5563;
  background: #f3f4f6;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--rose-dark);
  background: #fff1f2;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

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

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

  .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
  }

  .hero-side {
    display: none;
  }

  .detail-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

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

  .brand-text small {
    display: none;
  }

  .hero-shell {
    height: 620px;
  }

  .hero-content {
    padding-top: 34px;
  }

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

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

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

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

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .nav-shell,
  .container,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .hero-shell {
    height: 660px;
  }

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

  .hero-actions,
  .action-row {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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

  .rank-card {
    grid-template-columns: 96px 1fr;
  }

  .watch-player,
  .watch-player video {
    min-height: 260px;
  }

  .play-icon {
    width: 68px;
    height: 68px;
  }

  .detail-panel {
    padding: 22px;
  }
}
