:root {
  --bg: #f8fafc;
  --paper: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fff7ed;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --amber: #f59e0b;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 45%, #ffffff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

.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.9);
  backdrop-filter: blur(18px);
}

.site-bar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.28);
}

.brand-copy {
  display: grid;
  gap: 0;
}

.brand-copy strong {
  font-size: 20px;
  line-height: 1.1;
  background: linear-gradient(90deg, var(--orange-dark), var(--amber));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #374151;
  font-weight: 650;
}

.nav-link {
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--orange-dark);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  background: #fff7ed;
  color: var(--orange-dark);
  font-size: 22px;
  padding: 8px 12px;
}

.mobile-nav {
  display: none;
  padding: 8px 20px 18px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

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

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  color: #374151;
}

.mobile-nav a:hover {
  background: var(--soft);
  color: var(--orange-dark);
}

.mobile-subnav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 8px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.52) 48%, rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  color: #ffffff;
}

.hero-text {
  max-width: 680px;
  padding: 90px 0;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.92);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.eyebrow {
  color: var(--orange-dark);
  background: #ffedd5;
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 620px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags span,
.detail-meta-line span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

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

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  box-shadow: 0 14px 32px rgba(249, 115, 22, 0.32);
}

.primary-button:hover,
.section-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.28);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.hero-panel {
  position: absolute;
  z-index: 3;
  right: max(20px, calc((100% - 1180px) / 2));
  bottom: 44px;
  width: min(390px, calc(100% - 40px));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  padding: 20px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.58);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  margin: 0 0 14px;
}

.hero-list,
.rank-list {
  display: grid;
  gap: 12px;
}

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

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

.hero-dot.active {
  width: 32px;
  background: #ffffff;
}

.content-section,
.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.content-section {
  padding: 64px 0;
}

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

.section-head h2,
.page-hero h1,
.detail-title-block h1 {
  margin: 12px 0 8px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-head p,
.page-hero p,
.detail-title-block p {
  margin: 0;
  color: var(--muted);
  max-width: 720px;
}

.section-more {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.85);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: 0 24px 52px rgba(249, 115, 22, 0.16);
}

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

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

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

.poster-gradient {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.66));
}

.card-type,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(249, 115, 22, 0.95);
}

.card-type {
  left: 12px;
}

.rank-badge {
  right: 12px;
  background: rgba(17, 24, 39, 0.82);
}

.card-body {
  padding: 16px;
}

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

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

.card-body p {
  min-height: 48px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  color: #6b7280;
  font-size: 12px;
}

.card-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 10px;
  color: #d1d5db;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-row span,
.detail-tags span {
  border-radius: 999px;
  padding: 4px 9px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 700;
}

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

.category-card,
.category-overview-card,
.prose-card,
.filter-panel,
.site-search-box {
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

.category-card {
  min-height: 210px;
  padding: 22px;
  background: linear-gradient(145deg, #ffffff, #fff7ed);
}

.category-card span,
.category-overview-head span {
  display: block;
  color: var(--orange-dark);
  font-size: 22px;
  font-weight: 900;
}

.category-card p,
.category-overview-card p {
  color: var(--muted);
}

.category-card div,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-card div a,
.footer-links a {
  border-radius: 999px;
  padding: 6px 10px;
  color: #7c2d12;
  background: #ffedd5;
  font-size: 13px;
}

.compact-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.25s ease, transform 0.25s ease;
}

.rank-list .compact-card,
.overview-samples .compact-card {
  background: #ffffff;
  border: 1px solid var(--line);
}

.compact-card:hover {
  transform: translateX(4px);
  background: rgba(249, 115, 22, 0.12);
}

.compact-card img {
  width: 48px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  background: #111827;
}

.compact-card strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.hero-panel .compact-card small,
.hero-panel .compact-card strong {
  color: #ffffff;
}

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

.page-hero {
  color: #ffffff;
  background: radial-gradient(circle at 15% 15%, rgba(249, 115, 22, 0.45), transparent 30%), linear-gradient(135deg, #111827, #3f220d 65%, #111827);
}

.slim-hero {
  padding: 72px 0 58px;
}

.slim-hero .breadcrumb {
  margin-bottom: 20px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

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

.filter-panel,
.site-search-box {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
  padding: 18px;
  margin-bottom: 28px;
}

.filter-panel label,
.site-search-box label,
.search-field {
  display: grid;
  gap: 6px;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--text);
  background: #ffffff;
  font: inherit;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

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

.category-overview-head a {
  color: var(--orange-dark);
  font-weight: 800;
}

.overview-samples {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.detail-hero {
  padding: 42px 0 50px;
  color: #ffffff;
  background: radial-gradient(circle at 20% 5%, rgba(249, 115, 22, 0.45), transparent 32%), linear-gradient(135deg, #0f172a, #1f2937 55%, #431407);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 26px;
  align-items: stretch;
  margin-top: 24px;
}

.player-panel {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow);
}

.video-player {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 480px;
  background: #000000;
  object-fit: contain;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.35), rgba(0, 0, 0, 0.5) 44%, rgba(0, 0, 0, 0.62));
  cursor: pointer;
}

.play-cover span {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  padding-left: 4px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.38);
  font-size: 28px;
}

.player-panel.is-playing .play-cover {
  display: none;
}

.detail-side {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.detail-side img {
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  object-fit: cover;
  background: #111827;
}

.detail-content {
  padding-top: 54px;
}

.detail-title-block {
  margin-bottom: 24px;
}

.detail-title-block .detail-meta-line span {
  color: #7c2d12;
  border-color: #fed7aa;
  background: #fff7ed;
}

.prose-card {
  padding: 30px;
}

.prose-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

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

.prose-card p {
  margin: 0;
  color: #374151;
  font-size: 16px;
}

.site-search-box {
  grid-template-columns: 1fr 180px;
}

.site-footer {
  margin-top: 40px;
  padding: 44px 20px 24px;
  background: #111827;
  color: #e5e7eb;
}

.footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
}

.footer-brand {
  color: #ffffff;
  font-size: 22px;
}

.footer-inner p {
  max-width: 620px;
  color: #9ca3af;
}

.footer-bottom {
  width: min(1180px, 100%);
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  font-size: 14px;
}

.hidden-card {
  display: none;
}

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

  .hero-panel {
    display: none;
  }

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

  .detail-side {
    display: none;
  }
}

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

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

  .brand-copy small {
    display: none;
  }

  .hero {
    min-height: 620px;
  }

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

  .hero-text {
    padding: 74px 0 96px;
  }

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

  .filter-panel,
  .site-search-box {
    grid-template-columns: 1fr;
  }

  .section-head,
  .category-overview-head,
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr;
  }

  .player-panel,
  .video-player {
    min-height: 300px;
  }
}

@media (max-width: 520px) {
  .site-bar,
  .content-section,
  .page-shell {
    width: calc(100% - 28px);
    padding-left: 0;
    padding-right: 0;
  }

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

  .content-section {
    padding: 44px 0;
  }

  .hero h1 {
    font-size: 38px;
  }

  .card-body p {
    min-height: auto;
  }
}
