:root {
  color-scheme: light;
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-500: #ec4899;
  --amber-50: #fffbeb;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --orange-500: #f97316;
  --green-500: #22c55e;
  --emerald-600: #059669;
  --blue-50: #eff6ff;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow-soft: 0 20px 50px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 18px 40px rgba(244, 63, 94, 0.13);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--slate-900);
  background: linear-gradient(135deg, var(--rose-50), var(--white) 45%, var(--amber-50));
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.nav-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--rose-600);
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.28);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--slate-700);
  font-weight: 700;
  font-size: 14px;
  transition: all 0.22s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--rose-600);
  background: var(--rose-50);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--rose-50);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--rose-600);
  margin: 4px auto;
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.94), rgba(236, 72, 153, 0.92) 45%, rgba(245, 158, 11, 0.9));
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  background: linear-gradient(0deg, var(--rose-50), rgba(255, 241, 242, 0));
  z-index: 4;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  opacity: 0.28;
}

.hero-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.32), transparent 30%),
    linear-gradient(90deg, rgba(136, 19, 55, 0.76), rgba(219, 39, 119, 0.6), rgba(245, 158, 11, 0.35));
}

.hero-inner {
  position: relative;
  z-index: 5;
  max-width: var(--container);
  margin: 0 auto;
  padding: 100px 20px 120px;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.7fr);
  align-items: center;
  gap: 50px;
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.hero h1 {
  margin: 24px 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero h1 span {
  color: var(--amber-200);
}

.hero p {
  font-size: 19px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  max-width: 780px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: all 0.22s ease;
}

.btn-primary {
  color: var(--rose-600);
  background: var(--white);
  box-shadow: 0 18px 32px rgba(136, 19, 55, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--rose-50);
}

.btn-ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-card {
  align-self: center;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 30px 70px rgba(136, 19, 55, 0.3);
  backdrop-filter: blur(18px);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

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

.hero-card-body strong {
  display: block;
  font-size: 22px;
  margin-bottom: 8px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.22s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--white);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 72px 0;
}

.section-soft {
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.86), rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.86));
}

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

.section-title h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
}

.section-title p {
  margin: 5px 0 0;
  color: var(--slate-500);
}

.section-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: var(--shadow-card);
  font-size: 24px;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

.movie-card,
.category-card,
.rank-card,
.related-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(244, 63, 94, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover,
.category-card:hover,
.rank-card:hover,
.related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 58px rgba(244, 63, 94, 0.18);
  border-color: rgba(244, 63, 94, 0.25);
}

.poster-link {
  position: relative;
  display: block;
  background: linear-gradient(135deg, var(--rose-100), var(--amber-50));
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.52));
}

.poster-year {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(244, 63, 94, 0.9);
  font-size: 13px;
  font-weight: 900;
}

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

.movie-card-body h2 {
  margin: 10px 0 9px;
  font-size: 20px;
  line-height: 1.3;
}

.movie-card-body h2 a:hover {
  color: var(--rose-600);
}

.movie-card-body p {
  margin: 0;
  color: var(--slate-500);
  line-height: 1.7;
  font-size: 14px;
}

.card-meta,
.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 800;
}

.card-meta span,
.card-meta a,
.detail-meta span,
.breadcrumb a,
.breadcrumb span {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--rose-50);
  color: var(--rose-600);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.tag-list span {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--slate-700);
  font-size: 12px;
  font-weight: 800;
}

.movie-card-large {
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: 320px;
}

.movie-card-large .poster-link img {
  height: 100%;
  aspect-ratio: auto;
}

.movie-card-large .movie-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.movie-card-large h2 {
  font-size: 26px;
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 165px 1fr;
}

.movie-card-horizontal .poster-link img {
  height: 100%;
  min-height: 210px;
  aspect-ratio: auto;
}

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

.category-card {
  padding: 24px;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 241, 242, 0.82));
}

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

.category-card p {
  color: var(--slate-500);
  line-height: 1.7;
  margin: 0 0 18px;
}

.category-card span {
  color: var(--rose-600);
  font-weight: 900;
}

.page-hero {
  padding: 78px 0 46px;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.95), rgba(236, 72, 153, 0.92), rgba(245, 158, 11, 0.86));
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -40% 45% 10% -20%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.26), transparent 55%);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.breadcrumb a,
.breadcrumb span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px 150px auto;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(244, 63, 94, 0.13);
  box-shadow: var(--shadow-card);
  margin-bottom: 28px;
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  padding: 0 16px;
  background: var(--white);
  color: var(--slate-700);
  outline: none;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.1);
}

.match-count {
  align-self: center;
  color: var(--rose-600);
  font-weight: 900;
  white-space: nowrap;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 78px 120px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
}

.rank-number {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 900;
  font-size: 22px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.24);
}

.rank-card img {
  width: 120px;
  height: 150px;
  object-fit: cover;
  border-radius: 18px;
}

.rank-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.rank-card p {
  color: var(--slate-500);
  line-height: 1.6;
  margin: 0;
}

.rank-score {
  min-width: 96px;
  text-align: right;
  color: var(--rose-600);
  font-weight: 900;
}

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

.player-card,
.detail-card,
.side-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.player-shell {
  position: relative;
  background: var(--slate-900);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--slate-900);
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-size: cover;
  background-position: center;
}

.player-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.58), rgba(136, 19, 55, 0.48));
}

.player-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.play-button {
  position: relative;
  z-index: 2;
  width: 88px;
  height: 88px;
  border: 0;
  border-radius: 999px;
  color: var(--rose-600);
  background: var(--white);
  font-size: 32px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.26);
  cursor: pointer;
}

.player-title {
  padding: 22px 24px 24px;
}

.player-title h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.18;
}

.detail-card {
  padding: 26px;
  margin-top: 24px;
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-card p {
  color: var(--slate-700);
  line-height: 1.9;
  margin: 0 0 18px;
}

.side-card {
  padding: 18px;
}

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

.related-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 10px;
  box-shadow: none;
}

.related-card img {
  width: 88px;
  height: 112px;
  border-radius: 14px;
  object-fit: cover;
}

.related-card h3 {
  margin: 4px 0 7px;
  font-size: 16px;
  line-height: 1.35;
}

.related-card p {
  color: var(--slate-500);
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.site-footer {
  margin-top: 80px;
  padding: 48px 20px 34px;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), #2f1020 55%, #713f12);
}

.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 28px;
}

.footer-brand {
  color: var(--white);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.8;
}

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

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
}

.copyright {
  max-width: var(--container);
  margin: 30px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
}

.hidden-card {
  display: none !important;
}

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

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

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 70px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 74px 18px 120px;
  }

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

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

  .grid-4,
  .grid-3,
  .grid-2,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .movie-card-horizontal .poster-link img,
  .movie-card-large .poster-link img {
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .rank-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .rank-score {
    text-align: left;
  }

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

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