:root {
  color-scheme: light;
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-500: #ec4899;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --ink-900: #25101b;
  --ink-700: #4b2738;
  --ink-500: #7a5265;
  --line: rgba(244, 63, 94, 0.16);
  --panel: rgba(255, 255, 255, 0.86);
  --shadow: 0 22px 70px rgba(190, 18, 60, 0.18);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink-900);
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, 0.18), transparent 34rem),
    radial-gradient(circle at 90% 16%, rgba(236, 72, 153, 0.18), transparent 28rem),
    linear-gradient(180deg, #fff7fb 0%, #ffffff 44%, #fff8f1 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.navbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--ink-900);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500), var(--orange-500));
  box-shadow: 0 14px 34px rgba(244, 63, 94, 0.32);
}

.brand-text {
  font-size: 24px;
  line-height: 1;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-600), var(--orange-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--ink-700);
  font-weight: 700;
}

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

.nav-links a:hover {
  color: var(--rose-600);
  transform: translateY(-1px);
}

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 10px 28px rgba(244, 63, 94, 0.08);
}

.search-form input {
  width: 220px;
  border: 0;
  outline: none;
  padding: 9px 8px 9px 16px;
  background: transparent;
  color: var(--ink-900);
}

.search-form button,
.primary-button,
.secondary-button,
.ghost-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-form button,
.primary-button {
  color: #ffffff;
  padding: 11px 18px;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500), var(--orange-500));
  box-shadow: 0 14px 30px rgba(244, 63, 94, 0.28);
}

.secondary-button {
  color: var(--rose-600);
  padding: 11px 18px;
  background: #ffffff;
  border: 1px solid rgba(244, 63, 94, 0.22);
}

.ghost-button {
  color: var(--ink-700);
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.search-form button:hover {
  transform: translateY(-2px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--rose-600);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 0 0 18px;
}

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

.mobile-panel .nav-links,
.mobile-panel .search-form {
  width: 100%;
}

.mobile-panel .nav-links {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding-top: 14px;
}

.mobile-panel .nav-links a {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 241, 242, 0.78);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  margin-bottom: 48px;
  background: #2b0715;
}

.hero-slide {
  display: none;
  position: relative;
  min-height: 640px;
  color: #ffffff;
  background-image:
    linear-gradient(90deg, rgba(37, 16, 27, 0.95) 0%, rgba(37, 16, 27, 0.76) 42%, rgba(37, 16, 27, 0.24) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero-slide.is-active {
  display: block;
  animation: heroFade 0.7s ease both;
}

@keyframes heroFade {
  from {
    opacity: 0.4;
    transform: scale(1.01);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(0deg, rgba(255, 247, 251, 1), transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 370px;
  gap: 46px;
  align-items: center;
  padding: 72px 0 88px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffe4e6;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
}

.hero h1,
.hero h2 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.08em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.9;
}

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

.hero-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.hero-meta span,
.badge,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-meta span {
  padding: 8px 12px;
  color: #ffe4e6;
  background: rgba(255, 255, 255, 0.15);
}

.hero-poster {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  aspect-ratio: 3 / 4.2;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(0, 0, 0, 0.48));
}

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

.hero-dot {
  width: 46px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

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

.section {
  padding: 36px 0;
}

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

.section-kicker {
  display: inline-flex;
  color: var(--rose-600);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section h2,
.page-title,
.detail-title {
  margin: 0;
  color: var(--ink-900);
  letter-spacing: -0.06em;
}

.section h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.section-desc {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--ink-500);
  line-height: 1.9;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.65), transparent 46%),
    linear-gradient(135deg, rgba(236, 72, 153, 0.98), rgba(244, 63, 94, 0.94), rgba(249, 115, 22, 0.86));
  color: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 80px rgba(225, 29, 72, 0.25);
}

.category-tile strong {
  display: block;
  font-size: 24px;
  margin-bottom: 10px;
}

.category-tile span {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: 0 14px 40px rgba(190, 18, 60, 0.09);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(244, 63, 94, 0.32);
  box-shadow: var(--shadow);
}

.poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4.15;
  background: linear-gradient(135deg, #fee2e2, #fff7ed);
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-label,
.score-label {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(37, 16, 27, 0.68);
  backdrop-filter: blur(12px);
}

.poster-label {
  left: 12px;
}

.score-label {
  right: 12px;
  background: linear-gradient(135deg, var(--pink-500), var(--orange-500));
}

.movie-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.movie-title {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.movie-line {
  margin: 0;
  color: var(--ink-500);
  font-size: 14px;
  line-height: 1.75;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink-500);
  font-size: 13px;
}

.badge,
.tag {
  padding: 7px 10px;
  color: var(--rose-600);
  background: var(--rose-50);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 82px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 32px rgba(190, 18, 60, 0.08);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink-500), var(--orange-500));
}

.rank-thumb {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 3 / 4;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-info strong {
  display: block;
  margin-bottom: 6px;
}

.rank-info span {
  color: var(--ink-500);
  font-size: 13px;
}

.page-hero {
  padding: 66px 0 38px;
}

.page-panel {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.page-title {
  font-size: clamp(36px, 5vw, 62px);
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 170px 170px;
  gap: 12px;
  margin: 24px 0 30px;
}

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

.detail-hero {
  padding: 54px 0 34px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 34px;
  align-items: start;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  background: #fff1f2;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4.1;
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-title {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  color: var(--ink-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--rose-600);
  font-weight: 800;
}

.detail-summary {
  margin: 18px 0 22px;
  color: var(--ink-700);
  font-size: 18px;
  line-height: 1.95;
}

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

.meta-box {
  padding: 14px;
  border-radius: 18px;
  color: var(--ink-700);
  background: rgba(255, 241, 242, 0.9);
}

.meta-box span {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 800;
}

.player-section {
  padding: 28px 0 42px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #160812;
  box-shadow: 0 26px 84px rgba(37, 16, 27, 0.3);
  aspect-ratio: 16 / 9;
}

.player-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background:
    radial-gradient(circle at center, rgba(236, 72, 153, 0.26), rgba(0, 0, 0, 0.42)),
    rgba(0, 0, 0, 0.2);
}

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

.play-overlay span {
  display: inline-grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  padding-left: 7px;
  font-size: 34px;
  background: linear-gradient(135deg, var(--pink-500), var(--orange-500));
  box-shadow: 0 22px 48px rgba(244, 63, 94, 0.4);
}

.article-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 14px 40px rgba(190, 18, 60, 0.08);
}

.article-panel h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.article-panel p {
  margin: 0 0 16px;
  color: var(--ink-700);
  line-height: 2;
}

.site-footer {
  margin-top: 56px;
  color: #ffffff;
  background: linear-gradient(135deg, #881337, #9f1239, #c2410c);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  padding: 48px 0;
}

.site-footer p,
.site-footer a,
.site-footer li {
  color: rgba(255, 255, 255, 0.78);
}

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

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.empty-state {
  display: none;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--ink-500);
  background: rgba(255, 255, 255, 0.76);
}

.empty-state.is-visible {
  display: block;
}

@media (max-width: 1024px) {
  .nav-links,
  .navbar > .search-form {
    display: none;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .mobile-panel .search-form {
    display: flex;
  }

  .mobile-panel .search-form input {
    width: 100%;
  }

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

  .hero-poster {
    max-width: 340px;
    transform: none;
  }

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

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

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .navbar {
    min-height: 66px;
  }

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

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

  .hero-inner {
    padding: 52px 0 82px;
  }

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

  .section-head {
    display: block;
  }

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

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

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

  .article-panel,
  .page-panel {
    padding: 22px;
  }
}
