:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --orange-50: #fff7ed;
  --orange-500: #f97316;
  --amber-100: #fef3c7;
  --cyan-50: #ecfeff;
  --blue-50: #eff6ff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 10px 24px rgba(17, 24, 39, 0.08);
  --shadow-md: 0 18px 45px rgba(17, 24, 39, 0.14);
  --shadow-lg: 0 28px 70px rgba(17, 24, 39, 0.22);
  --radius-xl: 22px;
  --radius-2xl: 32px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--gray-50), var(--white));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-900);
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: 22px;
}

.logo-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--rose-500), var(--orange-500));
  box-shadow: 0 14px 28px rgba(244, 63, 94, 0.3);
}

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

.desktop-nav a,
.mobile-nav a {
  color: var(--gray-700);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

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

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: var(--gray-900);
  background: var(--gray-100);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.mobile-nav.open {
  display: grid;
  gap: 6px;
}

.hero-section {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(110deg, var(--rose-100), var(--orange-50) 52%, var(--amber-100));
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image: radial-gradient(circle at 20px 20px, rgba(225, 29, 72, 0.18) 0 2px, transparent 3px);
  background-size: 42px 42px;
}

.hero-inner {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
}

.hero-slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 56px;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--rose-600);
  background: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 18px;
  color: var(--gray-900);
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.hero-copy h1 {
  background: linear-gradient(90deg, var(--rose-600), var(--orange-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  max-width: 700px;
  margin: 0 0 30px;
  color: var(--gray-700);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-actions,
.detail-copy .primary-button {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
  color: var(--white);
  background: linear-gradient(90deg, var(--rose-500), var(--orange-500));
  box-shadow: 0 18px 34px rgba(244, 63, 94, 0.28);
}

.secondary-button {
  color: var(--gray-800);
  background: var(--white);
  border: 2px solid var(--gray-200);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 52%, rgba(17, 24, 39, 0.72));
}

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

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

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  color: var(--white);
  font-weight: 900;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.9);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.22);
  transition: width 0.25s ease, background 0.25s ease;
}

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

.section {
  padding: 76px 0;
}

.warm-section {
  background: linear-gradient(90deg, #fffbeb, var(--orange-50));
}

.cool-section {
  background: linear-gradient(90deg, var(--blue-50), var(--cyan-50));
}

.dark-section {
  color: var(--white);
  background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
}

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

.section-head h2,
.page-hero h1,
.detail-copy h1,
.article-wrap h2,
.player-section h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-head p,
.page-hero p {
  margin: 8px 0 0;
  color: var(--gray-600);
  font-size: 17px;
}

.section-head a {
  flex: none;
  color: var(--rose-600);
  font-weight: 900;
}

.section-head.light h2,
.section-head.light p,
.section-head.light a {
  color: var(--white);
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
}

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

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  max-width: calc(100% - 24px);
  color: var(--white);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.88);
  font-size: 12px;
  font-weight: 800;
}

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

.movie-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 700;
}

.movie-card h2 {
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: 19px;
  line-height: 1.25;
}

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

.movie-card p {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--rose-600);
  background: var(--rose-50);
  font-size: 12px;
  font-weight: 800;
}

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

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius-xl);
  color: var(--white);
  background: var(--gray-900);
  box-shadow: var(--shadow-sm);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.category-card:hover img {
  opacity: 0.55;
  transform: scale(1.08);
}

.category-card span,
.category-card p {
  position: relative;
  z-index: 1;
}

.category-card span {
  display: block;
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

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

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

.compact-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.compact-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  object-fit: cover;
  background: var(--gray-100);
}

.compact-card span {
  overflow: hidden;
  color: var(--gray-900);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-card small {
  color: var(--gray-500);
  font-weight: 700;
}

.rank-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-preview a {
  display: grid;
  grid-template-columns: 54px 74px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.25s ease, transform 0.25s ease;
}

.rank-preview a:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.12);
}

.rank-preview strong {
  color: #fbbf24;
  font-size: 24px;
}

.rank-preview img {
  width: 74px;
  height: 74px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-preview span {
  font-size: 17px;
  font-weight: 900;
}

.rank-preview small {
  color: rgba(255, 255, 255, 0.72);
}

.page-hero,
.detail-hero {
  padding: 72px 0;
  background: linear-gradient(120deg, var(--rose-100), var(--orange-50), var(--amber-100));
}

.page-hero span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--rose-600);
  font-weight: 900;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--gray-600);
  font-size: 14px;
}

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

.breadcrumb em {
  font-style: normal;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px 220px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid var(--gray-200);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  color: var(--gray-800);
  background: var(--gray-50);
  padding: 0 16px;
  outline: none;
}

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

.category-overview-list {
  display: grid;
  gap: 24px;
}

.category-overview-card {
  padding: 24px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.category-overview-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
}

.category-overview-head h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.category-overview-head p {
  margin: 0;
  color: var(--gray-600);
}

.category-overview-head a {
  flex: none;
  color: var(--white);
  background: linear-gradient(90deg, var(--rose-500), var(--orange-500));
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 900;
}

.ranking-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-row a {
  display: grid;
  grid-template-columns: 64px 94px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ranking-row a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.ranking-row strong {
  color: var(--rose-600);
  font-size: 26px;
}

.ranking-row img {
  width: 94px;
  height: 94px;
  border-radius: 16px;
  object-fit: cover;
}

.ranking-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ranking-main b {
  color: var(--gray-900);
  font-size: 20px;
}

.ranking-main small {
  color: var(--gray-500);
  font-weight: 800;
}

.ranking-main em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--gray-600);
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  background: var(--gray-100);
}

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

.detail-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(34px, 5vw, 58px);
}

.detail-one {
  max-width: 780px;
  margin: 0 0 20px;
  color: var(--gray-700);
  font-size: 20px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--gray-800);
  background: rgba(255, 255, 255, 0.78);
  font-weight: 900;
}

.detail-tags {
  margin-bottom: 24px;
}

.player-section {
  background: var(--gray-900);
}

.player-section h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: #000000;
  box-shadow: var(--shadow-lg);
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(17, 24, 39, 0.24), rgba(17, 24, 39, 0.68));
}

.player-start span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  padding-left: 6px;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--orange-500));
  box-shadow: 0 20px 44px rgba(244, 63, 94, 0.38);
  font-size: 34px;
}

.video-shell.is-playing .player-start {
  display: none;
}

.article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 36px;
}

.article-wrap article,
.article-wrap aside {
  padding: 28px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.article-wrap h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.article-wrap p {
  margin: 0 0 18px;
  color: var(--gray-700);
  font-size: 17px;
}

.article-wrap dl {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px 16px;
  margin: 0;
}

.article-wrap dt {
  color: var(--gray-500);
  font-weight: 800;
}

.article-wrap dd {
  margin: 0;
  color: var(--gray-900);
  font-weight: 800;
}

.article-wrap dd a {
  color: var(--rose-600);
}

.site-footer {
  color: rgba(255, 255, 255, 0.84);
  background: var(--gray-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.2fr;
  gap: 34px;
  padding: 48px 0;
}

.footer-logo {
  color: var(--white);
  margin-bottom: 14px;
}

.site-footer p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  padding: 18px 0;
  color: rgba(255, 255, 255, 0.58);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

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

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

  .hero-slide,
  .detail-grid,
  .article-wrap {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .detail-poster {
    max-width: 420px;
  }

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

  .search-panel input {
    grid-column: span 2;
  }
}

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-logo {
    font-size: 19px;
  }

  .hero-section,
  .hero-inner {
    min-height: 720px;
  }

  .hero-slide {
    gap: 26px;
    padding: 38px 0 78px;
  }

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

  .hero-dots {
    bottom: 28px;
  }

  .section {
    padding: 52px 0;
  }

  .section-head,
  .category-overview-head {
    display: grid;
  }

  .movie-grid,
  .small-grid,
  .feature-grid,
  .category-grid,
  .compact-grid,
  .compact-grid.mini,
  .rank-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-panel,
  .search-panel input {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .rank-preview a,
  .ranking-row a {
    grid-template-columns: 48px 72px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-preview small {
    display: none;
  }

  .ranking-row img {
    width: 72px;
    height: 72px;
  }

  .ranking-main em {
    display: none;
  }

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

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

  .movie-grid,
  .small-grid,
  .feature-grid,
  .category-grid,
  .compact-grid,
  .compact-grid.mini {
    grid-template-columns: 1fr;
  }

  .rank-preview {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .hero-poster,
  .detail-poster {
    max-width: 100%;
  }

  .article-wrap dl {
    grid-template-columns: 1fr;
  }
}
