:root {
  --page-bg: #f9fafb;
  --paper: #ffffff;
  --paper-soft: #fffbeb;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #fde68a;
  --brand: #d97706;
  --brand-strong: #b45309;
  --brand-soft: #f59e0b;
  --danger: #ef4444;
  --shadow-sm: 0 8px 22px rgba(146, 64, 14, 0.10);
  --shadow-md: 0 18px 45px rgba(146, 64, 14, 0.16);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--page-bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(146, 64, 14, 0.10);
}

.nav-shell {
  max-width: 1180px;
  min-height: 68px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-strong);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #fff;
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.30);
  font-size: 15px;
}

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

.nav-links a {
  color: #374151;
  font-weight: 700;
  transition: color .2s ease, transform .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--brand-strong);
  background: #fff7ed;
  font-size: 24px;
  line-height: 1;
}

.main {
  min-height: 60vh;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}

.section {
  padding: 58px 0;
}

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

.section-white {
  background: #ffffff;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-weight: 900;
  letter-spacing: .08em;
  font-size: 13px;
  text-transform: uppercase;
}

.h1,
.section-title {
  margin: 8px 0 8px;
  color: var(--text);
  font-weight: 900;
  line-height: 1.14;
}

.h1 {
  font-size: clamp(36px, 6vw, 64px);
}

.section-title {
  font-size: clamp(28px, 4vw, 38px);
}

.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 18% 18%, rgba(255, 237, 213, .72), transparent 28%),
              linear-gradient(135deg, #fbbf24 0%, #fb923c 45%, #d97706 100%);
}

.hero-track {
  position: relative;
  min-height: 560px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s ease;
}

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

.hero-inner {
  max-width: 1180px;
  min-height: 560px;
  margin: 0 auto;
  padding: 54px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr);
  align-items: center;
  gap: 44px;
}

.hero-copy {
  color: #fff;
  max-width: 700px;
  text-shadow: 0 10px 28px rgba(120, 53, 15, .20);
}

.hero-copy .h1,
.hero-copy .lead {
  color: #fff;
}

.hero-copy .lead {
  color: rgba(255, 255, 255, .92);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 30px;
}

.hero-tag,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 5px 12px;
  background: #fff7ed;
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 800;
}

.hero-tag {
  color: #fff;
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px);
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: #fff;
  color: var(--brand-strong);
}

.btn-amber {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
}

.btn-ghost {
  background: rgba(255,255,255,.18);
  color: #fff;
  box-shadow: none;
}

.btn-outline {
  color: var(--brand-strong);
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.hero-poster {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  min-height: 430px;
  background: linear-gradient(135deg, #92400e, #f59e0b);
  box-shadow: 0 30px 80px rgba(120, 53, 15, .38);
  transform: rotate(1deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  transition: transform .6s ease;
}

.hero-slide.is-active .hero-poster img {
  transform: scale(1.04);
}

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

.hero-poster-text {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  color: #fff;
}

.hero-poster-title {
  font-size: 22px;
  font-weight: 900;
}

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

.hero-dot {
  width: 34px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.45);
  transition: width .2s ease, background .2s ease;
}

.hero-dot.is-active {
  width: 54px;
  background: #fff;
}

.search-panel {
  margin-top: 24px;
  border-radius: var(--radius-lg);
  padding: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-input,
.filter-select {
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: var(--text);
  padding: 0 18px;
  outline: none;
  font-weight: 700;
}

.search-input:focus,
.filter-select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, .16);
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card {
  min-width: 0;
  background: var(--paper);
  border: 1px solid rgba(251, 191, 36, .45);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-md);
  border-color: #f59e0b;
}

.movie-card a {
  display: block;
  height: 100%;
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fdba74);
}

.card-wide .poster-wrap {
  aspect-ratio: 16 / 9;
}

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

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

.badge-year,
.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #fff;
  background: rgba(217, 119, 6, .95);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(120, 53, 15, .24);
}

.rank-badge {
  left: 12px;
  right: auto;
  background: rgba(239, 68, 68, .95);
}

.card-body {
  padding: 18px;
}

.card-title {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  transition: color .2s ease;
}

.movie-card:hover .card-title {
  color: var(--brand);
}

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

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: #92400e;
  font-size: 13px;
  font-weight: 800;
}

.category-tile {
  min-height: 142px;
  padding: 22px;
  border-radius: var(--radius-lg);
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
}

.category-tile:nth-child(2n) {
  background: linear-gradient(135deg, #fb923c, #dc2626);
}

.category-tile:nth-child(3n) {
  background: linear-gradient(135deg, #fbbf24, #d97706);
}

.category-tile:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--shadow-md);
}

.category-tile h3 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 900;
}

.category-tile p {
  margin: 0;
  color: rgba(255,255,255,.90);
  line-height: 1.6;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 110px) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid rgba(251, 191, 36, .35);
  box-shadow: var(--shadow-sm);
}

.ranking-index {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  font-weight: 900;
}

.ranking-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fdba74);
}

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

.ranking-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 900;
}

.ranking-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.score-pill {
  min-width: 60px;
  text-align: center;
  color: #fff;
  background: #ef4444;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
}

.page-hero {
  padding: 62px 0 38px;
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #92400e;
  font-weight: 800;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  gap: 32px;
  align-items: start;
}

.detail-poster {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fdba74);
  box-shadow: var(--shadow-md);
}

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

.detail-content {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(251, 191, 36, .36);
}

.info-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.info-cell {
  padding: 13px 15px;
  border-radius: 16px;
  background: #fffbeb;
  color: #78350f;
  font-weight: 800;
}

.copy-block {
  margin-top: 22px;
}

.copy-block h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 900;
}

.copy-block p {
  color: #4b5563;
  line-height: 1.95;
  margin: 0;
}

.player-card {
  margin-top: 30px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #111827;
  box-shadow: var(--shadow-md);
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(0deg, rgba(0,0,0,.52), rgba(0,0,0,.18));
  cursor: pointer;
  transition: opacity .25s ease, visibility .25s ease;
}

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

.play-button {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #fff;
  font-size: 34px;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  transition: transform .2s ease;
}

.play-button:hover {
  transform: scale(1.08);
}

.no-results {
  display: none;
  padding: 30px;
  text-align: center;
  background: #fff;
  border-radius: var(--radius-md);
  color: var(--muted);
  border: 1px solid #fde68a;
}

.no-results.is-visible {
  display: block;
}

.site-footer {
  background: linear-gradient(180deg, #fffbeb, #fef3c7);
  border-top: 1px solid #fde68a;
}

.footer-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 38px 18px;
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 28px;
}

.footer-title {
  color: var(--brand-strong);
  font-weight: 900;
  font-size: 20px;
  margin-bottom: 12px;
}

.footer-text,
.footer-link {
  color: #6b7280;
  line-height: 1.8;
  font-size: 14px;
}

.footer-link {
  display: block;
  margin: 7px 0;
}

.footer-link:hover {
  color: var(--brand);
}

.copyright {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px;
  border-top: 1px solid rgba(217, 119, 6, .18);
  color: #92400e;
  font-size: 13px;
}

@media (max-width: 980px) {
  .hero-inner,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    min-height: 360px;
  }

  .hero-poster img {
    min-height: 360px;
  }

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

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

  .ranking-item {
    grid-template-columns: 54px minmax(0, 1fr) auto;
  }

  .ranking-thumb {
    display: none;
  }

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

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

  .brand {
    font-size: 20px;
  }

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

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 0 0 14px;
  }

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

  .nav-links a {
    padding: 12px 14px;
    border-radius: 12px;
    background: #fffbeb;
  }

  .hero-track,
  .hero-inner {
    min-height: auto;
  }

  .hero-slide {
    position: relative;
    display: none;
  }

  .hero-slide.is-active {
    display: block;
  }

  .hero-inner {
    padding-top: 42px;
    padding-bottom: 74px;
    gap: 28px;
  }

  .hero-poster,
  .hero-poster img {
    min-height: 300px;
  }

  .section {
    padding: 42px 0;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-panel {
    flex-direction: column;
  }

  .grid-4,
  .grid-6,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .card-body {
    padding: 13px;
  }

  .card-title {
    font-size: 15px;
  }

  .card-summary {
    font-size: 13px;
  }

  .info-table {
    grid-template-columns: 1fr;
  }

  .detail-content {
    padding: 20px;
  }

  .ranking-item {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .score-pill {
    grid-column: 2;
    width: max-content;
  }

  .play-button {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }
}

@media (max-width: 460px) {
  .grid-4,
  .grid-6,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}
