* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #111827;
  background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.24);
}

.nav-wrap {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  background: linear-gradient(90deg, #fbbf24, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.35);
  font-size: 13px;
}

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

.nav-link {
  color: #e5e7eb;
  font-weight: 650;
  transition: color 0.2s ease;
}

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

.header-search {
  width: min(320px, 30vw);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(10px);
}

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

.header-search input {
  color: #f8fafc;
  background: transparent;
  padding: 7px 8px 7px 12px;
}

.header-search input::placeholder {
  color: #9ca3af;
}

.header-search button,
.mobile-search button,
.hero-search button,
.local-filter button {
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: #f59e0b;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  transition: background-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.header-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.local-filter button:hover,
.primary-button:hover {
  background: #d97706;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 9px 12px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #1e293b;
  padding: 16px 24px 20px;
}

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

.mobile-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.mobile-links a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
}

.mobile-search,
.hero-search,
.local-filter {
  display: flex;
  gap: 10px;
}

.mobile-search input,
.hero-search input,
.local-filter input {
  border-radius: 999px;
  padding: 12px 16px;
}

.hero-carousel {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #000000;
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.52) 48%, rgba(0, 0, 0, 0.2));
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 96px;
  width: min(1180px, calc(100% - 48px));
  transform: translateX(-50%);
  color: #ffffff;
}

.hero-kicker,
.section-heading span,
.sub-hero span {
  display: inline-flex;
  align-items: center;
  width: max-content;
  color: #ffffff;
  background: #f59e0b;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 800;
}

.hero-content h1 {
  max-width: 850px;
  margin: 20px 0 16px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.55;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span,
.rank-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #fef3c7;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.22);
}

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

.primary-button,
.ghost-button,
.panel-link,
.text-link,
.rank-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: #f59e0b;
  padding: 13px 24px;
  box-shadow: 0 16px 24px rgba(245, 158, 11, 0.25);
}

.primary-button.full {
  width: 100%;
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(8px);
  padding: 12px 20px;
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 30px;
  background: #f59e0b;
}

.hero-search {
  position: absolute;
  z-index: 6;
  right: calc((100% - min(1180px, calc(100% - 48px))) / 2);
  bottom: 96px;
  width: min(430px, calc(100% - 48px));
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(12px);
}

.page-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px;
}

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

.section-heading h2,
.sub-hero h1 {
  margin: 14px 0 8px;
  color: #111827;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-heading p,
.sub-hero p {
  margin: 0;
  max-width: 760px;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.75;
}

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

.category-tile,
.category-overview-card,
.content-card,
.side-card,
.ranking-panel {
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
}

.category-tile {
  min-height: 132px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #f3f4f6;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.14);
}

.category-tile span,
.category-title {
  color: #111827;
  font-size: 20px;
  font-weight: 850;
}

.category-tile small,
.category-overview-card p {
  color: #6b7280;
  line-height: 1.6;
}

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

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

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

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0f172a;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), transparent 56%);
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 7px 11px;
  background: rgba(245, 158, 11, 0.95);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(10px);
}

.movie-info {
  padding: 16px;
}

.movie-title {
  display: block;
  color: #111827;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.35;
}

.movie-title:hover {
  color: #d97706;
}

.movie-meta {
  margin: 8px 0;
  color: #6b7280;
  font-size: 13px;
}

.movie-desc {
  min-height: 48px;
  margin: 0 0 12px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row span {
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
}

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

.ranking-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.ranking-panel h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 78px minmax(0, 1fr) 82px;
  gap: 14px;
  align-items: center;
  padding: 12px;
}

.ranking-panel .rank-row {
  grid-template-columns: 38px 58px minmax(0, 1fr);
}

.ranking-panel .rank-action {
  display: none;
}

.rank-num {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #92400e;
  background: #fffbeb;
  font-weight: 900;
}

.rank-thumb {
  display: block;
  width: 78px;
  height: 104px;
  overflow: hidden;
  border-radius: 14px;
  background: #0f172a;
}

.ranking-panel .rank-thumb {
  width: 58px;
  height: 72px;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-body p {
  margin: 7px 0 10px;
  color: #6b7280;
  line-height: 1.55;
}

.rank-action {
  color: #ffffff;
  background: #111827;
  padding: 10px 14px;
}

.rank-action:hover,
.panel-link:hover,
.text-link:hover {
  color: #ffffff;
  background: #d97706;
}

.panel-link,
.text-link {
  margin-top: 18px;
  color: #d97706;
  background: #fffbeb;
  padding: 11px 16px;
}

.sub-page {
  background: linear-gradient(180deg, #f9fafb, #f3f4f6);
}

.sub-hero {
  padding: 72px 24px 54px;
  background: linear-gradient(135deg, #f8fafc, #fff7ed);
}

.sub-hero > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.local-filter {
  max-width: 620px;
  margin-top: 26px;
  padding: 8px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

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

.category-overview-card {
  padding: 26px;
  border: 1px solid #f3f4f6;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-samples a {
  display: inline-flex;
  max-width: 100%;
  padding: 7px 11px;
  border-radius: 999px;
  color: #4b5563;
  background: #f3f4f6;
  font-size: 13px;
}

.detail-page {
  background: #f3f4f6;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 24px 34px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  background: #0f172a;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

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

.detail-summary {
  align-self: center;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 18px;
}

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

.detail-summary h1 {
  margin: 0 0 16px;
  color: #111827;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.lead-text {
  margin: 0 0 22px;
  color: #374151;
  font-size: 19px;
  line-height: 1.8;
}

.detail-tags span {
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 0;
}

.meta-list div {
  padding: 14px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.meta-list dt {
  color: #9ca3af;
  font-size: 12px;
  font-weight: 800;
}

.meta-list dd {
  margin: 6px 0 0;
  color: #111827;
  font-weight: 850;
}

.player-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px 40px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.25);
  aspect-ratio: 16 / 9;
}

.site-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.24));
  cursor: pointer;
  z-index: 3;
}

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

.overlay-play {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: #f59e0b;
  box-shadow: 0 18px 34px rgba(245, 158, 11, 0.3);
  font-size: 28px;
  padding-left: 4px;
}

.video-overlay strong {
  max-width: min(720px, 88%);
  font-size: clamp(20px, 4vw, 40px);
  line-height: 1.18;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  align-items: start;
}

.content-card,
.side-card {
  padding: 28px;
}

.content-card h2,
.side-card h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 26px;
}

.content-card p,
.side-card p {
  margin: 0 0 24px;
  color: #374151;
  line-height: 1.9;
  font-size: 16px;
  white-space: pre-line;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 32px;
}

.footer-inner p {
  margin: 16px 0 0;
  color: #94a3b8;
  line-height: 1.7;
}

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

.footer-links a {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #e5e7eb;
}

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

.footer-bottom {
  padding: 18px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: #64748b;
}

.is-filtered-out {
  display: none !important;
}

@media (max-width: 1100px) {
  .category-grid,
  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .ranking-panel {
    position: static;
  }

  .hero-search {
    left: 24px;
    right: auto;
    bottom: 28px;
  }

  .hero-content {
    bottom: 126px;
  }
}

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

  .nav-wrap {
    justify-content: space-between;
  }

  .menu-toggle {
    display: inline-flex;
  }

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

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

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

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

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

  .rank-action {
    display: none;
  }

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

@media (max-width: 600px) {
  .nav-wrap,
  .page-section,
  .detail-hero,
  .player-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-carousel {
    min-height: 78vh;
  }

  .hero-content {
    width: calc(100% - 32px);
    bottom: 140px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-search {
    left: 16px;
    width: calc(100% - 32px);
  }

  .hero-nav {
    display: none;
  }

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

  .local-filter,
  .hero-search,
  .mobile-search {
    border-radius: 24px;
    flex-direction: column;
  }

  .local-filter input,
  .hero-search input,
  .mobile-search input,
  .local-filter button,
  .hero-search button,
  .mobile-search button {
    border-radius: 16px;
  }

  .meta-list {
    grid-template-columns: 1fr;
  }

  .video-shell {
    border-radius: 18px;
  }
}
