* {
  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:
    radial-gradient(circle at top left, rgba(251, 146, 60, 0.16), transparent 28rem),
    radial-gradient(circle at top right, rgba(244, 63, 94, 0.13), transparent 26rem),
    #fff7ed;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(251, 146, 60, 0.18);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 1.18rem;
}

.logo-mark,
.hero-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #e11d48, #f59e0b);
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.35);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.45rem;
  color: #374151;
  font-weight: 700;
}

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

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: #f97316;
}

.menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  border: 0;
  border-radius: 0.85rem;
  background: #fff7ed;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #374151;
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  padding: 0.5rem 1rem 1rem;
  border-top: 1px solid rgba(251, 146, 60, 0.16);
}

.mobile-nav.open {
  display: grid;
  gap: 0.35rem;
}

.mobile-nav a {
  padding: 0.75rem 1rem;
  border-radius: 0.8rem;
  color: #374151;
  font-weight: 700;
}

.mobile-nav a:hover {
  background: #ffedd5;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: opacity 0.75s ease, transform 1.2s ease;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 46%, rgba(249, 115, 22, 0.35), transparent 28rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.64) 48%, rgba(0, 0, 0, 0.2) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  height: 100%;
  min-height: 680px;
  margin: 0 auto;
  padding: 6rem 1rem 5rem;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 680px;
  color: #fff;
}

.hero-logo-line {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.35rem;
  font-size: 1.35rem;
}

.hero-icon {
  width: 3rem;
  height: 3rem;
  animation: pulseGlow 2.4s ease-in-out infinite;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 0.8rem;
  color: #fed7aa;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
  text-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.hero-summary {
  max-width: 620px;
  margin: 1.25rem 0 1.5rem;
  color: #f3f4f6;
  font-size: 1.12rem;
  line-height: 1.85;
}

.hero-tags,
.detail-tags,
.tag-row,
.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-tags span,
.detail-tags a,
.tag-row span,
.footer-tags span {
  padding: 0.36rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn,
.search-form button,
.category-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.72rem 1.25rem;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.search-form button:hover,
.category-more:hover {
  transform: translateY(-2px);
}

.btn.primary,
.search-form button,
.category-more {
  color: #fff;
  background: linear-gradient(135deg, #f97316, #e11d48, #f59e0b);
  box-shadow: 0 18px 36px rgba(225, 29, 72, 0.24);
}

.btn.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

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

.hero-dot {
  width: 0.72rem;
  height: 0.72rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 2.2rem;
  background: #fff;
}

.section-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4.5rem 1rem;
}

.search-band {
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.92), rgba(255, 255, 255, 0.96));
  border-bottom: 1px solid rgba(251, 146, 60, 0.16);
}

.search-band-inner {
  padding-top: 2rem;
  padding-bottom: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 1.5rem;
  align-items: center;
}

.search-band h2,
.section-heading h2,
.rank-panel h2,
.side-card h2,
.content-block h2,
.rank-list-card h2,
.sitemap-group h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  letter-spacing: -0.04em;
}

.search-band p,
.section-heading p,
.category-tile p,
.page-hero p,
.content-block p,
.site-footer p {
  color: #6b7280;
  line-height: 1.75;
}

.search-form {
  display: flex;
  gap: 0.75rem;
  padding: 0.4rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.search-form.large {
  max-width: 720px;
  margin-top: 1.25rem;
}

.search-form input {
  width: 100%;
  min-width: 0;
  padding: 0.82rem 1rem;
  border: 0;
  outline: none;
  color: #111827;
  background: transparent;
}

.section-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 1.6rem;
}

.section-heading.small {
  margin-bottom: 1.2rem;
}

.section-heading > span {
  width: 0.32rem;
  height: 2.6rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #f97316, #e11d48, #f59e0b);
}

.section-heading > a {
  color: #f97316;
  font-weight: 900;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(249, 115, 22, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #7f1d1d);
}

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.poster-play {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.9);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.36);
}

.movie-card-body {
  padding: 0.9rem;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
  color: #f97316;
  font-size: 0.76rem;
  font-weight: 900;
}

.movie-meta-line span:not(:last-child)::after {
  content: "·";
  margin-left: 0.35rem;
  color: #fdba74;
}

.movie-card h3 {
  margin: 0 0 0.45rem;
  color: #111827;
  font-size: 1rem;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: #f97316;
}

.movie-card p {
  margin: 0 0 0.75rem;
  color: #6b7280;
  font-size: 0.88rem;
  line-height: 1.65;
}

.tag-row span {
  color: #9f1239;
  background: #ffe4e6;
}

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

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

.category-tile {
  padding: 1.35rem;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 55px rgba(249, 115, 22, 0.16);
}

.category-title {
  display: block;
  margin-bottom: 0.7rem;
  font-size: 1.25rem;
  font-weight: 900;
  color: #111827;
}

.category-title:hover {
  color: #f97316;
}

.category-samples {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0;
}

.category-samples a {
  color: #6b7280;
  font-size: 0.92rem;
}

.category-samples a:hover {
  color: #e11d48;
}

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

.rank-panel,
.side-card,
.rank-list-card {
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.rank-panel,
.side-card {
  padding: 1.15rem;
}

.rank-list-card {
  padding: 1.25rem;
}

.rank-row {
  display: grid;
  grid-template-columns: 2.4rem 4.2rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid #ffedd5;
}

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

.rank-number {
  color: #f97316;
  font-weight: 900;
}

.rank-row img {
  width: 4.2rem;
  height: 3rem;
  object-fit: cover;
  border-radius: 0.65rem;
}

.rank-info {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.rank-info strong {
  overflow: hidden;
  color: #111827;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info em,
.mini-card em {
  overflow: hidden;
  color: #6b7280;
  font-size: 0.78rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-arrow {
  color: #fb923c;
  font-size: 1.4rem;
}

.page-hero {
  color: #fff;
  background:
    radial-gradient(circle at 18% 30%, rgba(251, 146, 60, 0.48), transparent 28rem),
    linear-gradient(135deg, #111827 0%, #7f1d1d 54%, #9a3412 100%);
}

.page-hero.slim .section-wrap {
  padding-top: 5rem;
  padding-bottom: 4rem;
}

.page-hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2.3rem, 5vw, 4.7rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  color: #ffedd5;
  font-size: 1.05rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.filter-chip {
  padding: 0.65rem 0.95rem;
  border: 0;
  border-radius: 999px;
  color: #374151;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.filter-chip:hover,
.filter-chip.active {
  color: #fff;
  background: linear-gradient(135deg, #f97316, #e11d48);
  transform: translateY(-2px);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
  color: #6b7280;
  font-weight: 700;
}

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

.detail-card {
  overflow: hidden;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.detail-hero {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.25rem;
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.18), transparent 20rem),
    #fff;
}

.detail-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.detail-intro h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.detail-line {
  color: #4b5563;
  font-size: 1.05rem;
  line-height: 1.85;
}

.detail-tags a {
  color: #9f1239;
  background: #ffe4e6;
}

.detail-tags a:hover {
  color: #fff;
  background: #e11d48;
}

.player-card {
  padding: 1.25rem;
  background: #0f172a;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: #000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.14));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 5rem;
  height: 5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #e11d48, #f59e0b);
  box-shadow: 0 18px 45px rgba(225, 29, 72, 0.36);
  font-size: 2rem;
}

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

.content-block {
  padding: 1.25rem;
  border-top: 1px solid #ffedd5;
}

.content-block p {
  margin: 0;
  color: #374151;
  font-size: 1rem;
}

.detail-side {
  min-width: 0;
}

.sticky-side {
  position: sticky;
  top: 5.25rem;
}

.mini-card {
  display: grid;
  grid-template-columns: 5.6rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.78rem 0;
  border-bottom: 1px solid #ffedd5;
}

.mini-card:last-child {
  border-bottom: 0;
}

.mini-card img {
  width: 5.6rem;
  height: 3.6rem;
  object-fit: cover;
  border-radius: 0.75rem;
}

.mini-card span {
  min-width: 0;
  display: grid;
  gap: 0.3rem;
}

.mini-card strong {
  overflow: hidden;
  color: #111827;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.35rem;
}

.sitemap-wrap {
  display: grid;
  gap: 1.25rem;
}

.sitemap-group {
  padding: 1.25rem;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.sitemap-group h2 a:hover {
  color: #f97316;
}

.sitemap-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem 1rem;
  margin-top: 1rem;
}

.sitemap-links a {
  overflow: hidden;
  color: #4b5563;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sitemap-links a:hover {
  color: #e11d48;
}

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

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 1rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 2rem;
}

.footer-logo {
  color: #fff;
  margin-bottom: 1rem;
}

.site-footer h2 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 1rem;
}

.site-footer a {
  display: block;
  margin: 0.45rem 0;
  color: #d1d5db;
}

.site-footer a:hover {
  color: #fb923c;
}

.footer-tags span {
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.14);
}

.copyright {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 1rem 2rem;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.movie-card.is-hidden {
  display: none;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.35);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 18px 42px rgba(244, 63, 94, 0.46);
  }
}

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

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

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

  .detail-side,
  .rank-page-grid .side-card {
    display: none;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero,
  .hero-inner {
    min-height: 620px;
  }

  .hero-inner {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .hero-summary {
    font-size: 1rem;
  }

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

  .search-form {
    border-radius: 1.2rem;
    flex-direction: column;
  }

  .search-form button {
    width: 100%;
  }

  .section-heading {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .section-heading > a {
    grid-column: 2;
  }

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

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

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

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

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

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

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

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

  .btn {
    width: 100%;
  }
}
