* {
  box-sizing: border-box;
}

:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-500: #f97316;
  --amber-100: #fef3c7;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-md: 0 4px 18px rgba(17, 24, 39, 0.08);
  --shadow-xl: 0 20px 40px rgba(17, 24, 39, 0.16);
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 18px rgba(17, 24, 39, 0.08);
}

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

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose-500), var(--orange-500));
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.28);
  transition: transform 0.2s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08);
}

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

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

.nav-link,
.mobile-nav-link {
  color: var(--gray-700);
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--rose-600);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--gray-100);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 3px;
  background: var(--gray-700);
}

.mobile-nav {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
}

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

.mobile-nav-link {
  padding: 10px 6px;
}

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

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image: linear-gradient(rgba(251, 113, 133, 0.18) 1px, transparent 1px), linear-gradient(90deg, rgba(251, 113, 133, 0.18) 1px, transparent 1px);
  background-size: 56px 56px;
}

.hero-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 600px;
  margin: 0 auto;
}

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

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--rose-600);
  background: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  background: linear-gradient(90deg, var(--rose-600), var(--orange-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 24px;
  color: var(--gray-700);
  font-size: 19px;
}

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

.hero-tags span,
.tag-list span {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--rose-600);
  background: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
}

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

.primary-btn,
.secondary-btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
  color: var(--white);
  background: linear-gradient(90deg, var(--rose-500), var(--orange-500));
  box-shadow: 0 14px 30px rgba(244, 63, 94, 0.25);
}

.secondary-btn {
  color: var(--gray-800);
  background: rgba(255, 255, 255, 0.86);
  border: 2px solid rgba(229, 231, 235, 0.95);
}

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

.hero-poster {
  position: relative;
  isolation: isolate;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 32px;
  box-shadow: 0 32px 70px rgba(17, 24, 39, 0.25);
}

.hero-poster::before {
  position: absolute;
  inset: -30px;
  z-index: -1;
  border-radius: 42px;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.35), rgba(249, 115, 22, 0.2));
  content: "";
  filter: blur(20px);
}

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

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

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(8px);
  font-weight: 800;
  text-align: center;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.25);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: linear-gradient(90deg, var(--rose-500), var(--orange-500));
}

.section {
  padding: 70px 0;
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading h2,
.sub-hero h1 {
  margin: 0 0 10px;
  color: var(--gray-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.section-heading p,
.sub-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--gray-600);
}

.center-heading {
  display: grid;
  justify-items: center;
  text-align: center;
}

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

.text-link {
  color: var(--rose-600);
  font-weight: 800;
}

.text-link:hover {
  color: var(--orange-500);
}

.light-link {
  color: #fecdd3;
}

.search-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: var(--gray-50);
}

.search-box span {
  color: var(--rose-500);
  font-size: 24px;
  line-height: 1;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--gray-900);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-100);
  cursor: pointer;
  font-weight: 800;
  transition: color 0.2s ease, background 0.2s ease;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: var(--white);
  background: linear-gradient(90deg, var(--rose-500), var(--orange-500));
}

.feature-grid,
.movie-grid,
.square-grid,
.category-grid,
.overview-grid {
  display: grid;
  gap: 24px;
}

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

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

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

.wide-grid {
  margin-top: 28px;
}

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

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

.feature-card,
.square-card,
.movie-card,
.category-card,
.overview-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.feature-card:hover,
.square-card:hover,
.movie-card:hover,
.category-card:hover,
.overview-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-xl);
}

.feature-card {
  position: relative;
  min-height: 420px;
  color: var(--white);
}

.feature-card img,
.feature-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.feature-card img {
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-card:hover img {
  transform: scale(1.08);
}

.feature-cover {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.1), rgba(17, 24, 39, 0.84));
}

.feature-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--rose-500);
  font-size: 12px;
  font-weight: 800;
}

.feature-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 26px;
}

.feature-content h3,
.square-body h3,
.movie-info h3,
.overview-body h2 {
  margin: 0;
  line-height: 1.25;
}

.feature-content h3 {
  font-size: 24px;
}

.feature-content p,
.movie-info p,
.overview-body p,
.square-body p {
  color: inherit;
}

.warm-section {
  background: linear-gradient(90deg, #fff7ed, #fff1f2);
}

.square-card img,
.movie-poster img,
.category-card img,
.overview-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.square-card:hover img,
.movie-card:hover img,
.category-card:hover img,
.overview-card:hover img {
  transform: scale(1.08);
}

.square-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--gray-100);
}

.square-body,
.movie-info,
.overview-body {
  padding: 16px;
}

.square-body h3,
.movie-info h3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  color: var(--gray-900);
  transition: color 0.2s ease;
}

.movie-card:hover h3,
.square-card:hover h3 {
  color: var(--rose-600);
}

.square-body p,
.movie-info p {
  margin: 6px 0 10px;
  color: var(--gray-600);
  font-size: 13px;
}

.movie-card {
  display: block;
}

.movie-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--gray-100);
}

.movie-score,
.detail-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 32px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(90deg, var(--rose-500), var(--orange-500));
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(244, 63, 94, 0.24);
}

.movie-score {
  position: absolute;
  top: 12px;
  right: 12px;
}

.movie-info p {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 41px;
}

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 800;
}

.category-card {
  position: relative;
  display: block;
  min-height: 250px;
  color: var(--white);
}

.category-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.76));
  content: "";
}

.category-card span,
.category-card p {
  position: absolute;
  z-index: 2;
  right: 18px;
  left: 18px;
}

.category-card span {
  bottom: 84px;
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  bottom: 16px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
}

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

.dark-heading h2,
.dark-heading p {
  color: var(--white);
}

.dark-heading p {
  opacity: 0.75;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-rank-list .rank-row {
  background: rgba(255, 255, 255, 0.96);
}

.rank-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--orange-500));
  font-weight: 900;
}

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

.rank-main {
  min-width: 0;
}

.rank-main strong,
.rank-main em {
  display: block;
}

.rank-main strong {
  color: var(--gray-900);
  font-size: 17px;
}

.rank-main em {
  overflow: hidden;
  color: var(--gray-600);
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meta {
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.sub-hero {
  padding: 68px 0;
  background: linear-gradient(120deg, var(--rose-100), var(--orange-50) 58%, var(--amber-100));
}

.category-hero,
.ranking-hero {
  padding-top: 52px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--gray-600);
  font-size: 14px;
}

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

.overview-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 210px;
}

.overview-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.overview-body {
  display: grid;
  align-content: center;
  gap: 10px;
}

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

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

.detail-page {
  background: var(--gray-50);
}

.detail-shell {
  padding: 36px 0 0;
}

.player-card {
  overflow: hidden;
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow-xl);
}

.player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-stage video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  color: var(--white);
  background: #000000;
  cursor: pointer;
  overflow: hidden;
}

.player-cover.is-hidden {
  display: none;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  transition: transform 0.45s ease, opacity 0.2s ease;
}

.player-cover:hover img {
  transform: scale(1.04);
  opacity: 0.48;
}

.play-circle {
  position: relative;
  z-index: 2;
  display: inline-flex;
  width: 86px;
  height: 86px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--orange-500));
  box-shadow: 0 24px 42px rgba(244, 63, 94, 0.35);
  font-size: 32px;
}

.player-cover strong {
  position: relative;
  z-index: 2;
  margin-top: 116px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(8px);
  font-size: 18px;
}

.detail-content {
  padding: 30px;
}

.detail-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.detail-title-row h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.detail-meta {
  margin-bottom: 18px;
}

.detail-meta span,
.movie-meta span {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--gray-100);
}

.tag-list {
  margin-bottom: 28px;
}

.tag-list span {
  background: var(--rose-50);
}

.text-block {
  margin-top: 26px;
}

.text-block h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.text-block p {
  margin: 0;
  color: var(--gray-700);
  font-size: 16px;
}

.related-section {
  padding-top: 46px;
}

.site-footer {
  color: var(--gray-300);
  background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
}

.footer-shell {
  padding: 56px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
}

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

.footer-brand-block p,
.site-footer li,
.footer-bottom {
  color: var(--gray-400);
}

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

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

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

[hidden] {
  display: none !important;
}

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

  .menu-toggle {
    display: block;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 48px 0 96px;
  }

  .hero-section,
  .hero-shell {
    min-height: 780px;
  }

  .hero-poster {
    max-width: 320px;
  }

  .feature-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .header-shell {
    min-height: 66px;
  }

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

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

  .hero-section,
  .hero-shell {
    min-height: 760px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

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

  .hero-dots {
    bottom: 20px;
  }

  .section {
    padding: 48px 0;
  }

  .between-heading,
  .detail-title-row,
  .footer-bottom {
    align-items: start;
    flex-direction: column;
  }

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

  .feature-grid,
  .square-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 360px;
  }

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

  .rank-number {
    width: 38px;
    height: 38px;
  }

  .rank-row img {
    width: 58px;
    height: 58px;
  }

  .rank-meta {
    display: none;
  }

  .overview-card {
    grid-template-columns: 1fr;
  }

  .overview-images {
    min-height: 180px;
  }

  .detail-content {
    padding: 22px;
  }

  .player-stage {
    aspect-ratio: 16 / 10;
  }

  .play-circle {
    width: 70px;
    height: 70px;
    font-size: 26px;
  }

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