:root {
  --bg: #f8fafc;
  --text: #111827;
  --muted: #64748b;
  --dark: #0f172a;
  --dark-soft: #1e293b;
  --rose: #f43f5e;
  --rose-dark: #e11d48;
  --orange: #fb923c;
  --line: #e2e8f0;
  --card: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.96);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.24);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark,
.footer-brand span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  color: #ffffff;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.38);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 20px;
  background: linear-gradient(90deg, #fb7185, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  margin-top: 4px;
  color: #94a3b8;
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
  color: #e2e8f0;
}

.desktop-nav a,
.mobile-links a,
.site-footer a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-links a:hover,
.site-footer a:hover {
  color: #fb7185;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 260px;
}

.nav-search input,
.mobile-menu input,
.filter-bar input,
.search-page-form input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.88);
  color: #ffffff;
  outline: none;
  padding: 10px 14px;
}

.nav-search input:focus,
.mobile-menu input:focus,
.filter-bar input:focus,
.search-page-form input:focus {
  border-color: #fb7185;
  box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.18);
}

.nav-search button,
.mobile-menu button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  background: var(--rose);
  color: #ffffff;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 26px;
}

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 14px 16px 18px;
  background: #0f172a;
}

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

.mobile-menu form {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.mobile-links {
  display: grid;
  gap: 10px;
  color: #e2e8f0;
}

.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: linear-gradient(120deg, #0f172a, #334155);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slide > img {
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transform: scale(1.02);
}

.hero-shade,
.detail-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(15, 23, 42, 0.46), rgba(15, 23, 42, 0.18));
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #ffffff;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  background: var(--rose);
  color: #ffffff;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.section-kicker {
  background: rgba(244, 63, 94, 0.10);
  color: var(--rose-dark);
}

.hero-content h1,
.hero-content h2,
.page-hero h1,
.detail-info h1 {
  margin: 18px 0 14px;
  max-width: 760px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-content p,
.page-hero p,
.detail-info .lead {
  max-width: 700px;
  color: #e2e8f0;
  font-size: 20px;
  line-height: 1.8;
}

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

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

.primary-btn {
  background: var(--rose);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(244, 63, 94, 0.36);
}

.primary-btn:hover,
.nav-search button:hover,
.mobile-menu button:hover,
.search-page-form button:hover {
  background: var(--rose-dark);
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #ffffff;
  background: rgba(15, 23, 42, 0.34);
}

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

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.25s ease, background 0.25s ease;
}

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

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

.gradient-section {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(90deg, #fff1f2, #fff7ed);
}

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

.section-head.compact {
  align-items: center;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 10px 0 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-head a,
.filter-bar a,
.related-block a {
  color: var(--rose-dark);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}

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

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

.card-region,
.card-year {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.card-region {
  left: 12px;
  background: var(--rose);
}

.card-year {
  right: 12px;
  background: rgba(2, 6, 23, 0.68);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 18px;
  font-weight: 900;
}

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

.card-body p {
  min-height: 44px;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

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

.card-tags span,
.detail-meta span,
.detail-tags a {
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
}

.rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
}

.wide-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-width: 430px;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  scroll-snap-align: start;
}

.wide-card img {
  height: 100%;
  min-height: 126px;
  object-fit: cover;
}

.wide-card div {
  padding: 16px;
}

.wide-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 18px;
  font-weight: 900;
}

.wide-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--rose-dark);
  font-size: 13px;
  font-weight: 800;
}

.wide-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 32px;
  align-items: start;
}

.wide-list {
  display: grid;
  gap: 16px;
}

.wide-list .wide-card {
  width: 100%;
  min-width: 0;
}

.rank-panel {
  border-radius: 22px;
  background: #ffffff;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.sticky-rank {
  position: sticky;
  top: 92px;
}

.rank-item {
  display: grid;
  grid-template-columns: 34px 74px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.rank-item:last-child {
  border-bottom: 0;
}

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

.rank-item img {
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
}

.rank-info strong,
.rank-info em {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-info strong {
  font-weight: 900;
}

.rank-info em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

.category-tile,
.category-overview-card a {
  display: block;
  min-height: 150px;
  border-radius: 22px;
  padding: 24px;
  background: linear-gradient(135deg, #ffffff, #fff1f2);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-tile strong,
.category-overview-card span {
  display: block;
  margin-bottom: 12px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 900;
}

.category-tile span,
.category-overview-card p {
  color: var(--muted);
  line-height: 1.65;
}

.page-hero {
  min-height: 360px;
  padding: 88px max(16px, calc((100% - 1180px) / 2));
  display: flex;
  align-items: center;
  background: radial-gradient(circle at top right, rgba(244, 63, 94, 0.36), transparent 36%), linear-gradient(135deg, #0f172a, #1e293b 70%, #7f1d1d);
  color: #ffffff;
}

.small-hero {
  min-height: 300px;
}

.category-hero {
  min-height: 430px;
}

.hero-mini-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
  max-width: 1040px;
}

.hero-mini-list .wide-card {
  min-width: 0;
  grid-template-columns: 120px 1fr;
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
  backdrop-filter: blur(14px);
}

.hero-mini-list .wide-card span,
.hero-mini-list .wide-card p {
  color: #e2e8f0;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.filter-bar input,
.search-page-form input {
  flex: 1;
  background: #ffffff;
  color: var(--text);
  border-color: var(--line);
  padding: 13px 18px;
}

.search-page-form {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: blur(2px);
}

.detail-shell {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 56px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  color: #cbd5e1;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fb7185;
}

.detail-grid {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 32px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

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

.detail-info .lead {
  color: #e2e8f0;
}

.detail-meta {
  margin-top: 22px;
}

.detail-tags {
  margin-top: 14px;
}

.detail-meta span,
.detail-tags a {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.detail-section {
  display: grid;
  gap: 28px;
}

.player-card,
.content-card,
.related-block {
  border-radius: 24px;
  background: #ffffff;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.video-box {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.video-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.45), rgba(2, 6, 23, 0.12));
  cursor: pointer;
}

.play-cover span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: var(--rose);
  color: #ffffff;
  font-size: 34px;
  box-shadow: 0 16px 35px rgba(244, 63, 94, 0.42);
  transition: transform 0.2s ease, background 0.2s ease;
}

.play-cover:hover span {
  background: var(--rose-dark);
  transform: scale(1.06);
}

.video-box.is-playing .play-cover {
  display: none;
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 900;
}

.content-card h2:not(:first-child) {
  margin-top: 28px;
}

.content-card p {
  margin: 0;
  color: #334155;
  line-height: 1.9;
  font-size: 16px;
}

.site-footer {
  margin-top: 40px;
  background: #0f172a;
  color: #cbd5e1;
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 20px;
}

.footer-about p,
.site-footer li {
  color: #94a3b8;
  line-height: 1.7;
}

.footer-badge {
  color: #fb7185 !important;
  font-weight: 800;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding: 18px 16px;
  text-align: center;
  color: #94a3b8;
}

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

  .mobile-toggle {
    display: block;
  }

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

  .split-section,
  .footer-grid,
  .hero-mini-list {
    grid-template-columns: 1fr;
  }

  .sticky-rank {
    position: static;
  }
}

@media (max-width: 760px) {
  .hero-slider {
    height: 560px;
  }

  .hero-content p,
  .page-hero p,
  .detail-info .lead {
    font-size: 16px;
  }

  .section {
    padding: 42px 0;
  }

  .section-head,
  .filter-bar,
  .search-page-form {
    align-items: stretch;
    flex-direction: column;
  }

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

  .wide-card {
    min-width: 310px;
    grid-template-columns: 118px 1fr;
  }

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

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

  .play-cover span {
    width: 68px;
    height: 68px;
    font-size: 26px;
  }
}

@media (max-width: 520px) {
  .movie-grid,
  .large-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .hero-content h1,
  .hero-content h2,
  .page-hero h1,
  .detail-info h1 {
    font-size: 36px;
  }

  .hero-actions {
    width: 100%;
  }

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