:root {
  --rose: #f43f5e;
  --pink: #db2777;
  --amber: #f59e0b;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fff1f2;
  --paper: #ffffff;
  --bg: #f9fafb;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

.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.85);
}

.header-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 14px;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 10px 26px rgba(244, 63, 94, 0.28);
}

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

.site-nav a {
  position: relative;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--rose);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff1f2;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--rose);
  border-radius: 2px;
}

.hero-slider {
  position: relative;
  max-width: 1220px;
  min-height: 620px;
  margin: 28px auto 0;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff1f2 0%, #fdf2f8 52%, #fffbeb 100%);
  box-shadow: var(--shadow);
}

.hero-bg-glow {
  position: absolute;
  inset: -30% -10% auto auto;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.24), rgba(219, 39, 119, 0));
  pointer-events: none;
}

.hero-track {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 42px;
  padding: 64px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rose);
  font-weight: 900;
  letter-spacing: 0.04em;
  font-size: 13px;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 16px 0 18px;
  max-width: 760px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.07em;
  color: var(--ink);
}

.hero-copy p {
  max-width: 680px;
  color: #4b5563;
  font-size: 20px;
  margin: 0 0 24px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(244, 63, 94, 0.14);
  color: #be123c;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
}

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

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

.primary-button,
.rank-watch {
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.25);
}

.secondary-button {
  color: #374151;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(229, 231, 235, 0.9);
}

.primary-button:hover,
.secondary-button:hover,
.rank-watch:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(244, 63, 94, 0.22);
}

.hero-poster {
  position: relative;
  height: 470px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.22);
  background: linear-gradient(135deg, #fb7185, #f9a8d4);
}

.hero-poster::after,
.poster-link::after,
.detail-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0) 42%, rgba(17, 24, 39, 0.45));
  pointer-events: none;
}

.hero-dots {
  position: absolute;
  left: 64px;
  bottom: 36px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.22);
  cursor: pointer;
}

.hero-dot.is-active {
  background: linear-gradient(90deg, var(--rose), var(--pink));
}

.section-block {
  max-width: 1220px;
  margin: 0 auto;
  padding: 58px 20px 0;
}

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

.section-heading.compact {
  align-items: center;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.content-card h2 {
  margin: 6px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.05em;
}

.text-link {
  color: var(--rose);
  background: #fff1f2;
}

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

.category-card {
  position: relative;
  min-height: 172px;
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 10px 25px rgba(17, 24, 39, 0.06);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -45% auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.18), rgba(244, 63, 94, 0));
}

.category-card:hover,
.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(17, 24, 39, 0.12);
}

.category-icon {
  font-size: 30px;
}

.category-card h3 {
  margin: 16px 0 8px;
  font-size: 20px;
}

.category-card p,
.movie-card p,
.rank-info p,
.side-panel p,
.page-hero p,
.content-card p {
  color: var(--muted);
  margin: 0;
}

.filter-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding: 14px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.05);
}

.filter-search-wrap {
  flex: 1;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #e5e7eb;
  border-radius: 15px;
  padding: 0 15px;
  outline: 0;
  background: #f9fafb;
  color: #111827;
  font: inherit;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(244, 63, 94, 0.45);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.08);
}

.filter-selects {
  display: grid;
  grid-template-columns: 150px 150px;
  gap: 12px;
}

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

.movie-card {
  min-width: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.68);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 900;
}

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

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

.movie-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.movie-card h3 {
  margin: 0 0 8px;
  min-height: 50px;
  font-size: 17px;
  line-height: 1.45;
}

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

.movie-card p {
  min-height: 67px;
  font-size: 14px;
}

.movie-card .tag-row {
  margin-top: 14px;
}

.movie-card .tag-row span {
  padding: 4px 8px;
  font-size: 12px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  align-items: start;
}

.side-panel {
  position: sticky;
  top: 92px;
  border-radius: 26px;
  padding: 28px;
  color: #ffffff;
  background: linear-gradient(145deg, #111827, #312e81 48%, #be123c);
  box-shadow: var(--shadow);
}

.side-panel h2 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.2;
}

.side-panel p {
  color: rgba(255, 255, 255, 0.76);
}

.side-links,
.footer-links {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.side-links a {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.rank-list {
  display: grid;
  gap: 12px;
}

.rank-row {
  display: grid;
  grid-template-columns: 54px 86px minmax(0, 1fr) 86px;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.05);
}

.rank-index {
  color: transparent;
  background: linear-gradient(180deg, var(--rose), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 28px;
  font-weight: 1000;
  text-align: center;
}

.rank-thumb {
  height: 102px;
  border-radius: 16px;
  overflow: hidden;
  background: #ffe4e6;
}

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

.rank-watch {
  min-height: 38px;
  padding: 0 16px;
}

.page-hero,
.detail-hero {
  max-width: 1220px;
  margin: 28px auto 0;
  padding: 56px;
  border-radius: 32px;
  background: linear-gradient(135deg, #fff1f2, #fdf2f8 55%, #fffbeb);
  box-shadow: var(--shadow);
}

.small-hero {
  min-height: 260px;
  display: flex;
  align-items: center;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #9f1239;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 22px;
}

.detail-poster {
  position: relative;
  height: 430px;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(135deg, #fb7185, #f9a8d4);
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.18);
}

.detail-copy h1 {
  font-size: clamp(36px, 5vw, 58px);
}

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

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

.detail-meta span {
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  color: #374151;
  font-weight: 800;
}

.large-tags {
  margin-bottom: 26px;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  overflow: hidden;
  background: #020617;
  box-shadow: 0 25px 80px rgba(2, 6, 23, 0.35);
}

.movie-video {
  display: block;
  width: 100%;
  height: 100%;
  background: #020617;
}

.player-mask {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.62));
  cursor: pointer;
}

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

.play-ring {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 20px 50px rgba(244, 63, 94, 0.36);
  font-size: 28px;
  padding-left: 5px;
}

.player-mask strong {
  font-size: 20px;
}

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

.content-card {
  padding: 28px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
}

.content-card h2 {
  margin-bottom: 14px;
  font-size: 26px;
}

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

.footer-grid {
  max-width: 1220px;
  margin: 0 auto;
  padding: 46px 20px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

.site-footer p {
  max-width: 520px;
  color: #9ca3af;
}

.footer-links a {
  color: #d1d5db;
}

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

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

.empty-state {
  margin: 20px 0;
  padding: 24px;
  border-radius: 20px;
  background: #ffffff;
  color: #6b7280;
  text-align: center;
  font-weight: 800;
}

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

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

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 42px;
  }

  .hero-poster {
    display: none;
  }

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

  .side-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner {
    padding: 12px 16px;
  }

  .menu-toggle {
    display: block;
  }

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

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

  body.nav-open .site-nav {
    display: flex;
  }

  .hero-slider,
  .page-hero,
  .detail-hero {
    margin: 16px 14px 0;
    border-radius: 24px;
  }

  .hero-slider,
  .hero-track {
    min-height: 570px;
  }

  .hero-slide {
    padding: 32px 24px;
  }

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

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

  .hero-dots {
    left: 24px;
    bottom: 24px;
  }

  .section-block {
    padding: 42px 14px 0;
  }

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

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

  .poster-link {
    height: 210px;
  }

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

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

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

  .filter-panel,
  .filter-selects {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .rank-row {
    grid-template-columns: 42px 64px minmax(0, 1fr);
  }

  .rank-watch {
    grid-column: 3;
    width: fit-content;
  }

  .rank-thumb {
    height: 82px;
  }

  .rank-info p {
    display: none;
  }

  .page-hero,
  .detail-hero {
    padding: 30px 22px;
  }

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

  .detail-poster {
    height: 380px;
  }

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

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

@media (max-width: 430px) {
  .movie-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .poster-link {
    height: 290px;
  }
}
