:root {
  --amber: #d97706;
  --amber-dark: #b45309;
  --orange: #f97316;
  --rose: #fb7185;
  --red: #ef4444;
  --green: #10b981;
  --blue: #38bdf8;
  --violet: #8b5cf6;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #f1d8b4;
  --paper: #ffffff;
  --soft: #fff7ed;
  --shadow: 0 18px 42px rgba(146, 64, 14, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f9fafb;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #92400e;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.28);
  font-size: 15px;
}

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

.nav-link {
  transition: color 0.2s ease;
}

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

.nav-toggle {
  display: none;
  border: 0;
  color: #374151;
  background: transparent;
  font-size: 27px;
}

.mobile-menu {
  display: none;
  border-top: 1px solid #f3e3cf;
  background: #fff;
}

.mobile-menu.open {
  display: block;
}

.mobile-link {
  display: block;
  padding: 12px 24px;
  color: #374151;
}

.mobile-link:hover,
.mobile-link.active {
  color: var(--amber);
  background: #fff7ed;
}

.hero-section {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  background: linear-gradient(110deg, #f59e0b 0%, #fb923c 48%, #f97316 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.34), transparent 26%),
    radial-gradient(circle at 20% 80%, rgba(255, 237, 213, 0.45), transparent 28%),
    linear-gradient(90deg, rgba(120, 53, 15, 0.16), rgba(255, 255, 255, 0.08));
}

.hero-container {
  position: relative;
  min-height: 540px;
}

.hero-slider {
  position: relative;
  min-height: 540px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: 56px;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-copy {
  color: #fff;
  max-width: 690px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid rgba(217, 119, 6, 0.14);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-copy .eyebrow {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.hero-copy h1 {
  margin: 20px 0 8px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-copy h2 {
  margin: 0 0 18px;
  color: #fff7ed;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.15;
}

.hero-copy p {
  margin: 0 0 24px;
  color: #ffedd5;
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags span,
.tag-list span {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  color: #92400e;
  background: #fff7ed;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 14px 24px rgba(217, 119, 6, 0.3);
}

.hero-actions .btn.primary {
  color: var(--amber);
  background: #fff;
}

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

.btn.text {
  min-height: auto;
  padding: 0;
  color: var(--amber);
}

.hero-art {
  position: relative;
  display: block;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.25);
  border-radius: 30px;
  box-shadow: 0 24px 56px rgba(120, 53, 15, 0.28);
  aspect-ratio: 4 / 5;
  background: rgba(255, 255, 255, 0.12);
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-art:hover img {
  transform: scale(1.06);
}

.hero-art span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff;
  background: rgba(17, 24, 39, 0.58);
  backdrop-filter: blur(14px);
  font-weight: 800;
}

.hero-controls {
  position: absolute;
  left: 0;
  bottom: 34px;
  display: flex;
  gap: 10px;
}

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

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

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: -34px;
  position: relative;
  z-index: 2;
}

.feature-strip a {
  display: grid;
  place-items: center;
  min-height: 76px;
  border-radius: 24px;
  color: #92400e;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  font-weight: 800;
  transition: transform 0.2s ease, color 0.2s ease;
}

.feature-strip a:hover {
  color: var(--orange);
  transform: translateY(-4px);
}

.section-block {
  padding: 70px 0;
}

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

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

.section-head h2,
.center-head h2 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

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

.section-more {
  color: var(--amber);
  font-weight: 800;
}

.center-head {
  margin-bottom: 30px;
  text-align: center;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  background: #fff;
  border: 1px solid #f5e5cd;
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(120, 53, 15, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
  border-color: #fbbf24;
  box-shadow: 0 24px 45px rgba(120, 53, 15, 0.16);
  transform: translateY(-8px);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #f59e0b, #fb923c);
}

.compact-card .poster-wrap {
  aspect-ratio: 3 / 4;
}

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

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

.poster-year {
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--amber);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.12);
  font-size: 13px;
  font-weight: 900;
}

.rank-badge {
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #f97316);
  border-radius: 999px;
  padding: 4px 8px;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 19px;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.compact-card .card-body h3 {
  font-size: 15px;
}

.movie-card:hover h3 {
  color: var(--amber);
}

.card-body p {
  flex: 1;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.compact-card .card-body p {
  display: none;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #92400e;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
}

.compact-card .card-meta {
  font-size: 12px;
}

.compact-card .tag-list {
  display: none;
}

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

.category-tile {
  position: relative;
  display: flex;
  min-height: 132px;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border-radius: 24px;
  padding: 22px;
  color: #fff;
  box-shadow: 0 16px 30px rgba(120, 53, 15, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  box-shadow: 0 22px 44px rgba(120, 53, 15, 0.22);
  transform: translateY(-6px) scale(1.02);
}

.category-tile strong {
  font-size: 20px;
  line-height: 1.2;
}

.category-tile span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
}

.sunset { background: linear-gradient(135deg, #f59e0b, #f97316); }
.rose { background: linear-gradient(135deg, #fb7185, #e11d48); }
.emerald { background: linear-gradient(135deg, #10b981, #059669); }
.sky { background: linear-gradient(135deg, #38bdf8, #0284c7); }
.gold { background: linear-gradient(135deg, #fbbf24, #d97706); }
.violet { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.lime { background: linear-gradient(135deg, #84cc16, #16a34a); }
.blue { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.red { background: linear-gradient(135deg, #f87171, #dc2626); }
.cyan { background: linear-gradient(135deg, #22d3ee, #0891b2); }
.orange { background: linear-gradient(135deg, #fb923c, #ea580c); }
.slate { background: linear-gradient(135deg, #64748b, #334155); }

.sub-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0;
  color: #fff;
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.28), transparent 24%),
    linear-gradient(110deg, #f59e0b, #f97316);
}

.sub-hero h1 {
  max-width: 840px;
  margin: 18px 0 12px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.sub-hero p {
  max-width: 740px;
  margin: 0;
  color: #ffedd5;
  font-size: 19px;
}

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

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

.category-panels {
  display: grid;
  gap: 24px;
  padding: 58px 0;
}

.category-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1fr);
  gap: 28px;
  padding: 26px;
  border: 1px solid #f5e5cd;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.08);
}

.category-panel h2 {
  margin: 0 0 10px;
  color: #92400e;
  font-size: 28px;
}

.category-panel p {
  margin: 0 0 18px;
  color: var(--muted);
}

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

.mini-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff7ed;
  border: 1px solid #fde7bd;
}

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

.mini-card span {
  display: block;
  padding: 9px 10px;
  color: #78350f;
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.quick-links a {
  border-radius: 999px;
  padding: 7px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.filter-bar,
.search-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px auto;
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid #f5e5cd;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(120, 53, 15, 0.07);
}

.search-panel {
  grid-template-columns: minmax(220px, 1fr) 180px 160px auto;
}

.filter-bar input,
.filter-bar select,
.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #f1d8b4;
  border-radius: 16px;
  padding: 0 14px;
  color: #374151;
  background: #fffaf3;
  outline: none;
}

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

.filter-note,
.search-panel button {
  display: inline-grid;
  place-items: center;
  min-height: 46px;
  border: 0;
  border-radius: 16px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-weight: 800;
}

.search-status {
  margin: -8px 0 24px;
  color: var(--muted);
}

.detail-shell {
  padding: 38px 0 42px;
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.detail-shell .breadcrumb {
  color: #92400e;
}

.detail-card {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 34px;
  align-items: center;
  padding: 28px;
  border: 1px solid #f5e5cd;
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-cover {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(120, 53, 15, 0.16);
}

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

.detail-info h1 {
  margin: 18px 0 12px;
  color: #1f2937;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.lead {
  margin: 0 0 22px;
  color: #4b5563;
  font-size: 19px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  color: #92400e;
  background: #fff7ed;
  font-weight: 800;
}

.detail-tags {
  margin-bottom: 28px;
}

.player-section {
  padding: 58px 0 36px;
}

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

.player-head h2 {
  margin: 14px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.player-head a {
  color: var(--amber);
  font-weight: 900;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #050505;
  box-shadow: 0 26px 58px rgba(17, 24, 39, 0.28);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050505;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.38));
  cursor: pointer;
}

.play-overlay.hidden {
  display: none;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
  font-size: 34px;
  transform: translateX(3px);
}

.prose-section {
  padding: 34px;
  border: 1px solid #f5e5cd;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.07);
}

.prose-section h2 {
  margin: 0 0 10px;
  color: #92400e;
  font-size: 26px;
}

.prose-section p {
  margin: 0 0 26px;
  color: #374151;
  font-size: 17px;
}

.prose-section p:last-child {
  margin-bottom: 0;
}

.site-footer {
  margin-top: 40px;
  background: linear-gradient(180deg, #fff7ed, #ffedd5);
  border-top: 1px solid #fde7bd;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
  padding: 46px 0;
}

.footer-brand {
  margin-bottom: 14px;
  font-size: 21px;
}

.site-footer p {
  color: #6b7280;
  margin: 0;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #78350f;
  font-size: 18px;
}

.site-footer a:not(.brand) {
  display: block;
  margin-bottom: 9px;
  color: #6b7280;
  font-size: 14px;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--amber);
}

.footer-bottom {
  border-top: 1px solid #f1d8b4;
  padding: 18px;
  color: #78716c;
  text-align: center;
  font-size: 14px;
}

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

@media (max-width: 1024px) {
  .large-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero-slide,
  .detail-card,
  .category-panel {
    grid-template-columns: 1fr;
  }

  .hero-art {
    max-width: 360px;
  }

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

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .nav-menu {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .brand {
    font-size: 20px;
  }

  .hero-section,
  .hero-container,
  .hero-slider {
    min-height: 760px;
  }

  .hero-slide {
    align-content: center;
    gap: 24px;
  }

  .hero-copy h1 {
    margin-top: 14px;
  }

  .hero-art {
    width: 100%;
    max-width: none;
    aspect-ratio: 16 / 10;
    border-radius: 24px;
  }

  .hero-controls {
    bottom: 18px;
  }

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

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

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

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

  .detail-card {
    padding: 18px;
  }

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

  .prose-section {
    padding: 24px;
  }
}
