:root {
  color-scheme: light;
  --rose: #f43f5e;
  --rose-dark: #be123c;
  --pink: #db2777;
  --blue: #2563eb;
  --gray-950: #0f172a;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.14);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  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", "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,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(229, 231, 235, 0.95);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose), var(--pink));
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(244, 63, 94, 0.32);
  font-size: 14px;
}

.brand-text {
  font-size: 21px;
  color: transparent;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.main-nav a,
.mobile-panel a {
  color: var(--gray-700);
  font-size: 15px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active,
.mobile-panel a:hover {
  color: var(--rose);
}

.nav-divider {
  width: 1px;
  height: 18px;
  background: var(--gray-200);
}

.nav-search {
  display: flex;
  align-items: center;
  width: 260px;
  padding: 4px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: var(--gray-50);
}

.nav-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 8px 10px 8px 14px;
  color: var(--gray-800);
}

.nav-search button,
.search-large button,
.quick-search-panel button {
  border: 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose), var(--pink));
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow: 0 10px 20px rgba(244, 63, 94, 0.25);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: var(--white);
  color: var(--gray-800);
}

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

.mobile-panel.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: var(--gray-950);
}

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: radial-gradient(circle at 30% 30%, rgba(244, 63, 94, 0.5), transparent 32%), linear-gradient(135deg, #111827, #3f0f2f 55%, #111827);
}

.hero-slide > img.is-missing {
  opacity: 0;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  color: var(--white);
}

.hero-copy > * {
  max-width: 700px;
}

.hero-labels,
.card-tags,
.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-labels span {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(244, 63, 94, 0.78);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 700;
}

.hero-labels span:nth-child(2) {
  background: rgba(37, 99, 235, 0.78);
}

.hero-labels span:nth-child(3) {
  background: rgba(255, 255, 255, 0.18);
}

.hero-copy h1,
.hero-copy h2 {
  margin: 18px 0 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-movie-title {
  margin-top: 14px !important;
  font-size: clamp(24px, 3.5vw, 42px) !important;
  color: #ffe4e6;
}

.hero-copy p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

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

.primary-button,
.ghost-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 16px 30px rgba(244, 63, 94, 0.34);
}

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

.ghost-button.dark {
  color: var(--gray-800);
  border-color: var(--gray-200);
  background: var(--white);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover {
  transform: translateY(-2px);
}

.wide {
  width: 100%;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  font-size: 36px;
  line-height: 1;
}

.hero-control.prev {
  left: 24px;
}

.hero-control.next {
  right: 24px;
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
}

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

.quick-search-panel,
.content-section,
.category-strip,
.ranking-panel,
.ranking-table-section,
.search-workspace,
.detail-text-section,
.detail-top {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.quick-search-panel {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 24px;
  align-items: center;
  margin-top: -50px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
}

.quick-search-panel h2,
.section-heading h2,
.page-hero h1,
.detail-info-card h1,
.detail-text-section h2 {
  margin: 0;
  color: var(--gray-900);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.quick-search-panel h2,
.section-heading h2,
.detail-text-section h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.quick-search-panel p,
.section-heading p,
.page-hero p,
.category-overview-head p,
.detail-one-line,
.detail-text-section p {
  margin: 8px 0 0;
  color: var(--gray-600);
}

.quick-search-panel form,
.search-large {
  display: flex;
  gap: 10px;
  padding: 6px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: var(--gray-50);
}

.quick-search-panel input,
.search-large input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 11px 14px;
}

.content-section,
.category-strip,
.ranking-panel,
.ranking-table-section,
.search-workspace,
.detail-text-section {
  padding: 56px 0 0;
}

.section-heading,
.category-overview-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.compact-heading {
  align-items: center;
}

.section-kicker {
  margin: 0 0 7px !important;
  color: var(--rose) !important;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-link {
  flex: 0 0 auto;
  min-height: 40px;
  color: var(--rose-dark);
  background: #ffe4e6;
}

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

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

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

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

.poster-frame,
.detail-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(244, 63, 94, 0.45), transparent 30%), linear-gradient(135deg, #111827, #3f0f2f 60%, #111827);
}

.poster-frame {
  aspect-ratio: 2 / 3;
}

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

.poster-frame img.is-missing,
.detail-poster img.is-missing {
  opacity: 0;
}

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

.poster-year,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.poster-year {
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
}

.rank-badge {
  left: 10px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 8px 20px rgba(244, 63, 94, 0.32);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

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

.card-body p {
  margin: 8px 0 12px;
  color: var(--gray-600);
  font-size: 14px;
}

.card-tags span {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-size: 12px;
}

.card-tags span:first-child {
  color: var(--rose-dark);
  background: #ffe4e6;
}

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

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

.category-tile {
  padding: 18px;
}

.category-tile > a {
  display: grid;
  gap: 9px;
}

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

.category-tile strong {
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 500;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.mini-links a {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--gray-600);
  background: var(--gray-100);
  font-size: 12px;
}

.ranking-list,
.ranking-table {
  display: grid;
  gap: 12px;
}

.ranking-row,
.ranking-table-row {
  display: grid;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-row {
  grid-template-columns: 54px minmax(0, 1fr) auto;
  padding: 14px 18px;
}

.ranking-table-row {
  grid-template-columns: 72px minmax(0, 1fr) 80px minmax(160px, auto);
  padding: 15px 18px;
}

.ranking-row:hover,
.ranking-table-row:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 63, 94, 0.34);
}

.ranking-row span,
.ranking-index {
  color: var(--rose);
  font-weight: 900;
}

.ranking-row strong,
.ranking-table-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-row em,
.ranking-table-row em,
.ranking-table-row small {
  color: var(--gray-500);
  font-style: normal;
}

.page-hero {
  background: linear-gradient(135deg, var(--rose), var(--pink));
  color: var(--white);
}

.page-hero > div {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(34px, 5vw, 54px);
}

.page-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
}

.page-hero .section-kicker {
  color: rgba(255, 255, 255, 0.82) !important;
}

.overview-list {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 0;
  display: grid;
  gap: 26px;
}

.category-overview-card {
  padding: 24px;
}

.filter-bar {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 240px) minmax(180px, 240px);
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--gray-200);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.filter-field {
  display: grid;
  gap: 7px;
}

.filter-field label {
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 800;
}

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

.filter-field input:focus,
.filter-field select:focus,
.search-large input:focus,
.nav-search input:focus {
  border-color: var(--rose);
}

.search-large {
  margin-bottom: 18px;
}

.search-status {
  margin: 20px 0;
  color: var(--gray-600);
  font-weight: 800;
}

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

.detail-top {
  padding: 32px 0 0;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--gray-600);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--rose-dark);
  font-weight: 800;
}

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

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 22px;
  background: #000000;
  box-shadow: var(--shadow-md);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.58));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 16px 35px rgba(244, 63, 94, 0.34);
  font-size: 28px;
  transform: translateX(2px);
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-message {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 4;
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.68);
}

.detail-info-card,
.detail-side-card,
.detail-text-section article {
  border: 1px solid var(--gray-200);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

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

.detail-info-card h1 {
  font-size: clamp(28px, 4vw, 42px);
}

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

.detail-meta span,
.large-tags span {
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-size: 13px;
  font-weight: 800;
}

.detail-meta span:first-child,
.large-tags span:first-child {
  color: var(--rose-dark);
  background: #ffe4e6;
}

.detail-side-card {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  border-radius: 18px;
}

.detail-text-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.detail-text-section article {
  padding: 26px;
}

.related-section {
  padding-bottom: 60px;
}

.site-footer {
  margin-top: 64px;
  color: var(--gray-300);
  background: var(--gray-950);
}

.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 38px;
  padding: 42px 0;
}

.footer-brand strong {
  display: inline-block;
  margin-left: 8px;
  color: var(--white);
  font-size: 20px;
}

.footer-brand p {
  max-width: 560px;
  color: var(--gray-300);
}

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

.footer-links div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

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

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--gray-500);
}

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

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

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

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

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

  .detail-side-card {
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: center;
  }
}

@media (max-width: 760px) {
  .nav-shell {
    min-height: 64px;
  }

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

  .hero-slider {
    height: 560px;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.86));
  }

  .hero-copy {
    align-self: end;
    padding-bottom: 90px;
  }

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

  .hero-control {
    display: none;
  }

  .quick-search-panel,
  .footer-shell,
  .detail-text-section {
    grid-template-columns: 1fr;
  }

  .quick-search-panel {
    margin-top: -32px;
    padding: 20px;
  }

  .quick-search-panel form,
  .search-large {
    border-radius: 20px;
    flex-direction: column;
  }

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

  .category-grid,
  .filter-bar,
  .search-filters {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .category-overview-head {
    align-items: start;
    flex-direction: column;
  }

  .ranking-row,
  .ranking-table-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .ranking-row em,
  .ranking-table-row em,
  .ranking-table-row small {
    grid-column: 2;
  }

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

  .detail-poster {
    max-width: 260px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .small-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .primary-button,
  .ghost-button,
  .section-link {
    width: 100%;
  }
}
