:root {
  color-scheme: light;
  --bg: #fff7ed;
  --bg-soft: #fffbeb;
  --surface: #ffffff;
  --surface-strong: #fffaf0;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(251, 146, 60, 0.22);
  --brand: #f97316;
  --brand-2: #f59e0b;
  --brand-dark: #9a3412;
  --shadow: 0 20px 45px rgba(124, 45, 18, 0.15);
  --shadow-soft: 0 12px 30px rgba(124, 45, 18, 0.10);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, 0.22), transparent 34rem),
    linear-gradient(135deg, var(--bg), var(--bg-soft));
  color: var(--text);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(249, 115, 22, 0.14);
  backdrop-filter: blur(18px);
}

.site-nav {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 25px rgba(249, 115, 22, 0.35);
}

.brand-text {
  white-space: nowrap;
  font-size: 1.1rem;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff3e0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--brand-dark);
}

.nav-panel {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.nav-links {
  display: flex;
  gap: 6px;
}

.nav-link {
  padding: 10px 15px;
  border-radius: 12px;
  color: #374151;
  font-weight: 700;
  transition: 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 22px rgba(249, 115, 22, 0.23);
}

.nav-search {
  display: flex;
  align-items: center;
  padding: 4px;
  border: 1px solid rgba(249, 115, 22, 0.18);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(124, 45, 18, 0.06);
}

.nav-search input {
  width: 220px;
  border: 0;
  outline: 0;
  padding: 9px 14px;
  background: transparent;
}

.nav-search button,
.primary-button,
.ghost-button,
.section-more,
.rank-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.nav-search button,
.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.25);
}

.nav-search button {
  padding: 9px 17px;
}

.primary-button,
.ghost-button {
  min-height: 48px;
  padding: 0 24px;
}

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

.primary-button:hover,
.ghost-button:hover,
.nav-search button:hover,
.section-more:hover,
.rank-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 35px rgba(249, 115, 22, 0.3);
}

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

.hero-stage,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #1f2937, #7c2d12);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.53) 44%, rgba(0, 0, 0, 0.05) 100%),
    radial-gradient(circle at 28% 40%, rgba(249, 115, 22, 0.32), transparent 28rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, var(--container));
  height: 100%;
  margin: 0 auto;
  padding: 70px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #ffffff;
}

.hero-kicker,
.section-kicker,
.category-accent {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #fbbf24;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 0.95;
  font-weight: 950;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.hero-content p {
  max-width: 650px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
}

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

.hero-tags span,
.detail-tags span,
.card-tags span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 8px 13px;
  font-size: 0.86rem;
  backdrop-filter: blur(12px);
}

.card-tags span {
  color: var(--brand-dark);
  background: #fff7ed;
}

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

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: width 220ms ease, background 220ms ease;
}

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

.stats-strip {
  width: min(calc(100% - 40px), var(--container));
  margin: -44px auto 42px;
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stats-strip div {
  min-height: 92px;
  padding: 20px;
  border: 1px solid rgba(249, 115, 22, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.stats-strip strong {
  display: block;
  color: var(--brand);
  font-size: 2rem;
  line-height: 1;
}

.stats-strip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.content-section {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  padding: 28px 0 56px;
}

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

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.05;
  font-weight: 950;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.section-more,
.rank-more {
  padding: 12px 18px;
  color: var(--brand-dark);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(249, 115, 22, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

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

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

.movie-card.compact .poster-link {
  aspect-ratio: 3 / 2;
}

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

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

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

.type-badge,
.score-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  border-radius: 999px;
  padding: 7px 10px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.type-badge {
  left: 12px;
  background: rgba(249, 115, 22, 0.92);
}

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

.card-body {
  padding: 17px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 900;
}

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

.card-line {
  display: -webkit-box;
  min-height: 3.1em;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: #9a3412;
  font-size: 0.86rem;
  font-weight: 800;
}

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

.rank-panel,
.detail-side-card,
.detail-main-card,
.filter-panel {
  border: 1px solid rgba(249, 115, 22, 0.16);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

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

.rank-panel-head span {
  color: var(--brand);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rank-panel-head h2 {
  margin: 4px 0 16px;
  font-size: 2rem;
  font-weight: 950;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 42px 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  transition: background 180ms ease, transform 180ms ease;
}

.rank-row:hover {
  transform: translateX(4px);
  background: #fff7ed;
}

.rank-number {
  color: var(--brand);
  font-size: 1.05rem;
  font-weight: 950;
}

.rank-row img {
  width: 64px;
  height: 46px;
  object-fit: cover;
  border-radius: 12px;
  background: #1f2937;
}

.rank-info strong,
.rank-info small {
  display: block;
}

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

.rank-info small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

.rank-score {
  color: #ffffff;
  border-radius: 999px;
  padding: 5px 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  font-weight: 900;
}

.rank-more {
  width: 100%;
  margin-top: 18px;
}

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

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

.category-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(249, 115, 22, 0.16);
}

.category-main {
  display: block;
  min-height: 220px;
  padding: 24px;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 11rem),
    linear-gradient(135deg, #fb923c, #f59e0b 55%, #b45309);
}

.category-main h3 {
  margin: 0 0 12px;
  font-size: 1.7rem;
  font-weight: 950;
}

.category-main p {
  min-height: 3.2em;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.6;
}

.category-main strong {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.category-samples {
  display: grid;
  gap: 8px;
  padding: 16px 20px 20px;
}

.category-samples a {
  color: #7c2d12;
  font-weight: 700;
}

.category-samples a:hover {
  color: var(--brand);
}

.page-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 22% 28%, rgba(251, 191, 36, 0.35), transparent 18rem),
    linear-gradient(135deg, #111827 0%, #7c2d12 58%, #f97316 100%);
}

.compact-hero,
.category-hero {
  padding: 70px 20px;
}

.page-hero > div {
  width: min(100%, var(--container));
  margin: 0 auto;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  line-height: 1;
  font-weight: 950;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.1rem;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
}

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

.filter-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
  padding: 20px;
}

.filter-panel.large-search {
  align-items: center;
}

.filter-panel label {
  flex: 1;
  display: grid;
  gap: 8px;
  color: var(--brand-dark);
  font-weight: 900;
}

.filter-panel input {
  width: 100%;
  border: 1px solid rgba(249, 115, 22, 0.22);
  border-radius: 16px;
  outline: 0;
  padding: 14px 16px;
  background: #fffaf0;
}

.filter-panel input:focus {
  border-color: rgba(249, 115, 22, 0.65);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 480px;
}

.filter-chips button {
  border: 0;
  border-radius: 999px;
  padding: 10px 13px;
  color: var(--brand-dark);
  background: #fff7ed;
  cursor: pointer;
  font-weight: 800;
}

.filter-chips button:hover,
.filter-chips button.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.result-count {
  margin: 0;
  color: var(--muted);
  white-space: nowrap;
  font-weight: 800;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background-image: var(--detail-poster);
  background-position: center;
  background-size: cover;
}

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.38)),
    radial-gradient(circle at 20% 35%, rgba(249, 115, 22, 0.35), transparent 28rem);
  backdrop-filter: blur(6px);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(100%, var(--container));
  min-height: 520px;
  margin: 0 auto;
  padding: 70px 20px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.detail-poster-card {
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.38);
  background: #111827;
}

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

.detail-copy h1 {
  margin: 12px 0 18px;
  font-size: clamp(2.3rem, 6vw, 5rem);
  line-height: 0.95;
  font-weight: 950;
}

.detail-copy p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
  line-height: 1.8;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #050505;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.28);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at center, rgba(249, 115, 22, 0.28), transparent 15rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.68));
  cursor: pointer;
}

.player-shell.is-playing .play-overlay {
  display: none;
}

.play-circle {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.42);
  font-size: 2rem;
}

.play-overlay strong {
  font-size: 1.4rem;
}

.play-overlay small {
  color: rgba(255, 255, 255, 0.75);
}

.source-link {
  margin-top: 12px;
  text-align: right;
}

.source-link a {
  color: var(--brand-dark);
  font-weight: 800;
}

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

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

.detail-main-card h2,
.detail-side-card h2 {
  margin: 0 0 16px;
  font-size: 1.55rem;
  font-weight: 950;
}

.detail-main-card p {
  margin: 0 0 24px;
  color: #4b5563;
  line-height: 1.9;
}

.detail-side-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px 14px;
}

.detail-side-card dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-side-card dd {
  margin: 0;
  color: #111827;
  font-weight: 800;
}

.site-footer {
  margin-top: 30px;
  color: #e5e7eb;
  background: linear-gradient(135deg, #111827, #1f2937 55%, #111827);
}

.footer-grid {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-grid h3 {
  margin: 0 0 12px;
  color: #fb923c;
  font-size: 1rem;
}

.footer-grid p {
  margin: 10px 0 0;
  color: #9ca3af;
  line-height: 1.7;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  color: #d1d5db;
}

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

.footer-bottom {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  padding: 18px 0 26px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  font-size: 0.92rem;
}

.is-hidden,
[data-card].is-hidden {
  display: none !important;
}

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

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

  .rank-panel {
    position: static;
  }

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

@media (max-width: 820px) {
  .site-nav {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
  }

  .nav-panel {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-panel.is-open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
  }

  .nav-search input {
    width: 100%;
  }

  .hero-slider {
    height: 560px;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-head,
  .filter-panel {
    flex-direction: column;
    align-items: stretch;
  }

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

  .detail-hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .detail-poster-card {
    max-width: 320px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .brand-text {
    font-size: 1rem;
  }

  .hero-slider {
    height: 620px;
  }

  .hero-content {
    padding-top: 42px;
  }

  .hero-actions,
  .detail-actions {
    width: 100%;
    flex-direction: column;
  }

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

  .stats-strip,
  .movie-grid,
  .small-grid,
  .category-grid,
  .category-grid.wide,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-score {
    grid-column: 2 / -1;
    width: fit-content;
  }

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