* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #111827;
  background: #f9fafb;
  line-height: 1.6;
}

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

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

button,
input {
  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.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.86);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #111827;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.28);
}

.brand-text {
  font-size: 20px;
  letter-spacing: -0.02em;
}

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

.nav-link,
.mobile-link {
  color: #4b5563;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #e11d48;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: #f3f4f6;
}

.header-search input,
.mobile-search input,
.local-filter,
.search-page-form input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #111827;
  background: #ffffff;
}

.header-search input {
  width: 220px;
  padding: 9px 12px;
  border-radius: 999px;
  background: transparent;
}

.header-search button,
.mobile-search button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: #f43f5e;
  padding: 9px 16px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(244, 63, 94, 0.24);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #374151;
  background: #f3f4f6;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  border-top: 1px solid #e5e7eb;
}

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

.mobile-search {
  display: flex;
  gap: 8px;
}

.mobile-search input {
  padding: 12px 14px;
  border-radius: 14px;
}

.hero-carousel {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.hero-slides {
  position: relative;
  min-height: 72vh;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.8s ease;
}

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

.hero-backdrop,
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(244, 63, 94, 0.58), transparent 30%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.64) 46%, rgba(17, 24, 39, 0.3)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.72));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  align-items: center;
  gap: 56px;
  padding: 96px 0 112px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: #fb7185;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 6vw, 74px);
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.18;
}

.hero-desc {
  width: min(680px, 100%);
  margin: 0 0 22px;
  color: #e5e7eb;
  font-size: 18px;
}

.hero-tags,
.tag-row,
.detail-tags,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-row span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 8px 13px;
  backdrop-filter: blur(10px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  box-shadow: 0 18px 34px rgba(244, 63, 94, 0.3);
}

.btn-glass {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
}

.btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.32);
}

.btn-wide {
  width: 100%;
}

.hero-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.hero-poster span,
.card-play,
.play-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-poster span {
  position: absolute;
  inset: auto 24px 24px auto;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: #ffffff;
  background: #f43f5e;
  box-shadow: 0 18px 36px rgba(244, 63, 94, 0.36);
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 30px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #f43f5e;
}

.section {
  padding: 72px 0;
}

.section-light {
  background: linear-gradient(180deg, #fff7f9, #ffffff 38%, #f9fafb);
}

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

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

.section-heading.slim {
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0;
  color: #6b7280;
}

.section-more {
  flex: 0 0 auto;
  color: #e11d48;
  font-weight: 800;
}

.filter-panel {
  margin: 0 0 26px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.local-filter {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  color: #4b5563;
  background: #f3f4f6;
  padding: 9px 14px;
  font-weight: 750;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: #ffffff;
  background: #f43f5e;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 56px rgba(15, 23, 42, 0.15);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #e5e7eb;
}

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

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.72));
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.16);
}

.badge-primary {
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  background: #f43f5e;
}

.badge-secondary {
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  background: #3b82f6;
}

.rank-badge {
  left: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #f59e0b, #f43f5e);
}

.card-play {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #ffffff;
  background: #f43f5e;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  padding: 18px;
}

.card-body h2 {
  display: -webkit-box;
  min-height: 3.1em;
  margin: 0 0 8px;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 850;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-body h2 a:hover {
  color: #e11d48;
}

.card-meta,
.card-desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.card-meta {
  margin: 0 0 8px;
  color: #6b7280;
  font-size: 14px;
  -webkit-line-clamp: 1;
}

.card-desc {
  min-height: 3.3em;
  margin: 0 0 14px;
  color: #374151;
  font-size: 14px;
  -webkit-line-clamp: 2;
}

.tag-row span {
  color: #be123c;
  background: #fff1f2;
  padding: 6px 10px;
}

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

.category-card,
.overview-link {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 220px;
  border-radius: 24px;
  color: #ffffff;
  background: #111827;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
}

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

.category-card:hover img {
  opacity: 0.88;
  transform: scale(1.07);
}

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

.category-card span {
  position: absolute;
  z-index: 2;
  inset: auto 18px 18px;
}

.category-card strong,
.overview-copy strong {
  display: block;
  font-size: 22px;
  line-height: 1.25;
}

.category-card em,
.overview-copy em {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: #f3f4f6;
  font-style: normal;
  font-size: 13px;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

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

.ranking-panel,
.poster-panel,
.detail-card,
.player-card {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.1);
}

.ranking-panel {
  padding: 24px;
}

.ranking-panel h2 {
  margin: 0 0 18px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.sticky-panel {
  position: sticky;
  top: 90px;
}

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

.mini-card {
  display: grid;
  grid-template-columns: auto 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: #f9fafb;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mini-card:hover {
  background: #fff1f2;
  transform: translateX(4px);
}

.mini-card img {
  width: 58px;
  height: 78px;
  border-radius: 12px;
  object-fit: cover;
}

.mini-card strong,
.mini-card em {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.mini-card strong {
  color: #111827;
  font-size: 14px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
}

.mini-card em {
  margin-top: 5px;
  color: #6b7280;
  font-size: 12px;
  font-style: normal;
  -webkit-line-clamp: 1;
}

.list-rank {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: #f43f5e;
  font-size: 12px;
  font-weight: 800;
}

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

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: grid;
  align-items: center;
  color: #ffffff;
  background-color: #111827;
  background-size: cover;
  background-position: center;
}

.compact-hero {
  min-height: 300px;
  background:
    radial-gradient(circle at 15% 20%, rgba(244, 63, 94, 0.52), transparent 32%),
    linear-gradient(135deg, #111827, #4c1d95 52%, #be123c);
}

.page-hero-inner,
.compact-hero .container {
  position: relative;
  z-index: 2;
  padding: 76px 0;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: #e5e7eb;
  font-size: 18px;
}

.overview-card {
  min-width: 0;
}

.overview-link {
  min-height: 280px;
  padding: 0;
}

.overview-images {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.overview-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.overview-copy {
  position: absolute;
  z-index: 2;
  inset: auto 18px 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 24px 0 0;
  color: #6b7280;
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
  padding: 24px 0 72px;
}

.detail-main {
  display: grid;
  gap: 24px;
}

.player-card {
  overflow: hidden;
  background: #000000;
}

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

.movie-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.55));
}

.play-overlay.is-hidden {
  display: none;
}

.play-circle {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: #f43f5e;
  box-shadow: 0 18px 46px rgba(244, 63, 94, 0.42);
  font-size: 34px;
}

.detail-card {
  padding: 30px;
}

.detail-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.detail-heading h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

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

.detail-meta span {
  border-radius: 999px;
  color: #be123c;
  background: #fff1f2;
  padding: 8px 12px;
  font-weight: 750;
  font-size: 13px;
}

.lead-text {
  margin: 0 0 22px;
  color: #374151;
  font-size: 18px;
  font-weight: 650;
}

.detail-card h2 {
  margin: 28px 0 12px;
  color: #111827;
  font-size: 23px;
}

.detail-card p {
  margin: 0;
  color: #374151;
}

.detail-card blockquote {
  margin: 0;
  padding: 20px;
  border-left: 4px solid #f43f5e;
  border-radius: 18px;
  color: #374151;
  background: #fff1f2;
}

.detail-tags a {
  color: #be123c;
  background: #fff1f2;
  padding: 9px 13px;
}

.detail-tags a:hover {
  color: #ffffff;
  background: #f43f5e;
}

.detail-side {
  display: grid;
  gap: 22px;
}

.poster-panel {
  overflow: hidden;
  padding: 18px;
}

.poster-panel img {
  width: 100%;
  aspect-ratio: 2 / 3;
  margin-bottom: 16px;
  border-radius: 18px;
  object-fit: cover;
}

.search-page-form {
  display: flex;
  gap: 10px;
  width: min(640px, 100%);
  margin-top: 26px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.search-page-form input {
  padding: 13px 16px;
  border-radius: 999px;
}

.no-results {
  padding: 36px;
  border-radius: 24px;
  text-align: center;
  color: #6b7280;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.site-footer {
  color: #d1d5db;
  background: #111827;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(180px, 0.6fr));
  gap: 42px;
}

.brand-footer {
  color: #ffffff;
  margin-bottom: 14px;
}

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

.footer-links {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-links h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 18px;
}

.footer-links a {
  color: #9ca3af;
}

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

.footer-bottom {
  padding: 22px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
}

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

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

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

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

  .sticky-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 80px 0 116px;
  }

  .hero-poster {
    width: min(300px, 72vw);
    margin: 0 auto;
    transform: none;
  }

  .section-heading,
  .detail-heading {
    display: grid;
    align-items: start;
  }

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

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

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

@media (max-width: 560px) {
  .header-inner {
    gap: 12px;
  }

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

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

  .hero-desc,
  .page-hero p:not(.eyebrow) {
    font-size: 16px;
  }

  .hero-actions,
  .search-page-form,
  .mobile-search {
    display: grid;
  }

  .btn,
  .search-page-form button,
  .mobile-search button {
    width: 100%;
  }

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

  .detail-card {
    padding: 22px;
  }

  .play-circle {
    width: 72px;
    height: 72px;
  }
}
