:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --orange-50: #fff7ed;
  --orange-500: #f97316;
  --amber-100: #fef3c7;
  --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: 0 18px 40px rgba(17, 24, 39, 0.10);
  --shadow-soft: 0 10px 28px rgba(17, 24, 39, 0.08);
  --radius: 24px;
}

* {
  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(--gray-900);
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
  line-height: 1.6;
}

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.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
  backdrop-filter: blur(14px);
}

.header-inner {
  max-width: 1180px;
  height: 74px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

.brand-text {
  font-size: 20px;
  color: var(--gray-900);
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--rose-600);
  background: var(--rose-50);
  transform: translateY(-1px);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.tool-search input,
.tool-selects select {
  border: 1px solid var(--gray-200);
  background: var(--white);
  border-radius: 999px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 220px;
  padding: 10px 14px;
}

.header-search input:focus,
.mobile-search input:focus,
.tool-search input:focus,
.tool-selects select:focus {
  border-color: rgba(244, 63, 94, 0.55);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.10);
}

.header-search button,
.mobile-search button {
  border: none;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--orange-500));
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
}

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

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--gray-800);
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px 18px;
}

.mobile-panel.open {
  display: grid;
  gap: 10px;
}

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--gray-50);
  color: var(--gray-700);
  font-weight: 800;
}

.mobile-nav-link.active {
  color: var(--rose-600);
  background: var(--rose-50);
}

.page-main {
  min-height: 70vh;
}

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

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.30;
  background-image: linear-gradient(rgba(251, 113, 133, 0.13) 1px, transparent 1px), linear-gradient(90deg, rgba(251, 113, 133, 0.13) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-section::after {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -180px;
  top: -200px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.26), rgba(249, 115, 22, 0));
}

.hero-stage {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  min-height: 560px;
  margin: 0 auto;
  padding: 40px 22px;
}

.hero-slide {
  position: absolute;
  inset: 0 22px;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 42px;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  color: var(--rose-600);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(244, 63, 94, 0.18);
  border-radius: 999px;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}

.hero-copy h1 {
  margin: 20px 0 18px;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

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

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

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

.hero-tags span,
.tag-row span,
.meta-pill,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  color: var(--rose-600);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(244, 63, 94, 0.16);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

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

.primary-btn,
.secondary-btn,
.text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.primary-btn {
  min-height: 48px;
  padding: 0 24px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--orange-500));
  box-shadow: 0 18px 34px rgba(244, 63, 94, 0.26);
}

.secondary-btn {
  min-height: 48px;
  padding: 0 24px;
  color: var(--gray-800);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: var(--shadow-soft);
}

.primary-btn:hover,
.secondary-btn:hover,
.text-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(17, 24, 39, 0.14);
}

.hero-poster {
  position: relative;
  display: block;
  width: min(360px, 100%);
  justify-self: end;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 34px 80px rgba(17, 24, 39, 0.24);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
}

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

.hero-dots {
  position: absolute;
  z-index: 2;
  left: 22px;
  bottom: 34px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border: none;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.25);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.section,
.page-hero,
.detail-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 22px;
}

.section-header,
.page-hero-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-header h2,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-header p,
.page-hero p,
.detail-title p {
  margin: 8px 0 0;
  color: var(--gray-600);
  font-size: 16px;
}

.text-btn {
  min-height: 40px;
  padding: 0 16px;
  color: var(--rose-600);
  background: var(--rose-50);
}

.soft-band {
  background: linear-gradient(100deg, var(--orange-50), var(--rose-50));
}

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

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

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

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

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

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

.compact-card .poster-link img {
  aspect-ratio: 1 / 1;
}

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0) 40%, rgba(17, 24, 39, 0.50) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-link::after {
  opacity: 1;
}

.type-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  padding: 6px 10px;
  color: var(--white);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.16);
}

.type-badge {
  right: 12px;
  background: linear-gradient(135deg, var(--rose-500), var(--orange-500));
}

.rank-badge {
  left: 12px;
  background: rgba(17, 24, 39, 0.78);
  backdrop-filter: blur(6px);
}

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

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

.movie-card h3 {
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.35;
}

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

.movie-card p {
  min-height: 46px;
  margin: 0 0 14px;
  color: var(--gray-600);
  font-size: 14px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 26px;
  background: var(--white);
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.18), rgba(244, 63, 94, 0));
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.category-card p {
  margin: 0 0 18px;
  color: var(--gray-600);
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  background: var(--white);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

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

.rank-cover {
  overflow: hidden;
  border-radius: 16px;
  background: var(--gray-100);
}

.rank-cover img {
  width: 92px;
  height: 92px;
  object-fit: cover;
}

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

.rank-info p {
  margin: 0;
  color: var(--gray-600);
}

.rank-link {
  padding: 10px 16px;
  color: var(--rose-600);
  background: var(--rose-50);
  border-radius: 999px;
  font-weight: 900;
}

.page-hero {
  padding-bottom: 34px;
}

.page-hero-panel {
  padding: 34px;
  background: linear-gradient(110deg, var(--rose-100), var(--orange-50), var(--amber-100));
  border-radius: 32px;
  box-shadow: var(--shadow-soft);
}

.listing-tools {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 14px;
  margin-bottom: 26px;
  padding: 16px;
  background: var(--white);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.tool-search input {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
}

.tool-selects {
  display: flex;
  gap: 10px;
}

.tool-selects select {
  min-height: 46px;
  padding: 0 38px 0 14px;
  color: var(--gray-700);
}

.no-results {
  display: none;
  padding: 28px;
  text-align: center;
  color: var(--gray-600);
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

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

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.65fr);
  gap: 34px;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #000000;
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(17, 24, 39, 0.24);
}

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

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

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

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.70;
  filter: saturate(1.08);
}

.play-button {
  position: absolute;
  width: 90px;
  height: 90px;
  border: none;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--orange-500));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.34);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.play-button:hover {
  transform: scale(1.07);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.42);
}

.detail-side {
  padding: 26px;
  background: var(--white);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.detail-side img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  background: var(--gray-100);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

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

.detail-content {
  margin-top: 34px;
  display: grid;
  gap: 22px;
}

.detail-block {
  padding: 28px;
  background: var(--white);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.detail-block h2 {
  margin: 0 0 14px;
  font-size: 26px;
  letter-spacing: -0.03em;
}

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

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

.site-footer {
  margin-top: 30px;
  color: #d1d5db;
  background: var(--gray-900);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 58px 22px 34px;
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  gap: 34px;
}

.footer-logo .brand-text,
.footer-column h2 {
  color: var(--white);
}

.footer-brand p {
  max-width: 330px;
  color: #9ca3af;
}

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

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

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

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

@media (max-width: 1040px) {
  .header-search {
    display: none;
  }

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

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

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

  .detail-side {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
  }

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

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

  .mobile-toggle {
    display: block;
    margin-left: auto;
  }

  .header-inner {
    height: 66px;
  }

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

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

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
  }

  .hero-poster {
    justify-self: start;
    width: min(240px, 72vw);
  }

  .hero-dots {
    bottom: 24px;
  }

  .section,
  .page-hero,
  .detail-wrap {
    padding: 50px 18px;
  }

  .section-header,
  .page-hero-inner {
    display: block;
  }

  .section-actions {
    margin-top: 16px;
  }

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

  .listing-tools {
    grid-template-columns: 1fr;
  }

  .tool-selects {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .rank-cover img {
    width: 72px;
    height: 72px;
  }

  .rank-link {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .brand-mark {
    width: 38px;
    height: 38px;
  }

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

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

  .hero-actions {
    flex-direction: column;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }

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

  .detail-side {
    display: block;
  }

  .play-button {
    width: 72px;
    height: 72px;
    font-size: 24px;
  }

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