:root {
  --amber-950: #451a03;
  --amber-900: #78350f;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-100: #fef3c7;
  --orange-900: #7c2d12;
  --orange-100: #ffedd5;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f3d7aa;
  --page: #fffbeb;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.16);
  --soft-shadow: 0 10px 30px rgba(120, 53, 15, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff7ed;
  background: linear-gradient(90deg, var(--amber-900), var(--orange-900), var(--amber-900));
  box-shadow: 0 12px 30px rgba(69, 26, 3, 0.24);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--amber-900);
  background: linear-gradient(135deg, #fef3c7, #f59e0b);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.brand-copy strong,
.footer-brand {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-copy small {
  display: block;
  color: rgba(254, 243, 199, 0.82);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link,
.nav-drop-button {
  color: #fef3c7;
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-drop-button:hover {
  color: #ffffff;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.nav-drop-button {
  border: 0;
  padding: 0;
  background: transparent;
}

.nav-drop-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  display: grid;
  min-width: 210px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .nav-drop-panel,
.nav-dropdown:focus-within .nav-drop-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-drop-panel a {
  padding: 10px 12px;
  color: #713f12;
  border-radius: 10px;
}

.nav-drop-panel a:hover {
  color: var(--amber-900);
  background: #fef3c7;
}

.mobile-menu-button {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: 0;
  background: transparent;
}

.mobile-menu-button span {
  width: 26px;
  height: 2px;
  background: #fef3c7;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 8px 20px 18px;
  background: rgba(120, 53, 15, 0.95);
  backdrop-filter: blur(12px);
}

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

.mobile-link {
  padding: 10px 14px;
  color: #fef3c7;
  border-radius: 10px;
}

.mobile-link:hover,
.mobile-link.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.hero {
  position: relative;
  height: 74vh;
  min-height: 540px;
  overflow: hidden;
  background: #000000;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1s ease, transform 1s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: radial-gradient(circle at center, #f59e0b, #78350f 70%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.54) 45%, rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 76px;
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 700;
  background: var(--amber-600);
  border-radius: 999px;
}

.hero h1,
.hero h2 {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 780px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2.2vw, 23px);
}

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

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  font-weight: 800;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
  color: #ffffff;
  background: var(--amber-600);
  box-shadow: 0 14px 25px rgba(217, 119, 6, 0.34);
}

.button-primary:hover {
  background: var(--amber-700);
  transform: translateY(-2px);
}

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

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.44);
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.7);
}

.hero-control.prev {
  left: 22px;
}

.hero-control.next {
  right: 22px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--amber-600);
}

.main-shell,
.footer-shell {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}

.main-shell {
  padding: 56px 0;
}

.section {
  margin-bottom: 68px;
}

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

.section-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section h2,
.filter-panel h2,
.category-hero h1,
.detail-title h1 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.18;
  font-weight: 900;
}

.section-desc {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
}

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

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

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

.movie-card,
.horizontal-card,
.category-card,
.info-card,
.player-card {
  background: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: var(--soft-shadow);
}

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: radial-gradient(circle at top, #f59e0b, #78350f 70%);
}

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

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0));
  opacity: 0;
  transition: opacity 0.24s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.heat-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
}

.heat-pill {
  top: 10px;
  right: 10px;
  padding: 6px 9px;
}

.rank-badge {
  top: 10px;
  left: 10px;
  padding: 6px 10px;
  background: var(--amber-600);
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 9px;
  color: var(--amber-900);
  font-size: 12px;
  font-weight: 800;
}

.card-meta span {
  padding: 4px 8px;
  background: var(--amber-100);
  border-radius: 999px;
}

.movie-card h3,
.horizontal-card h3 {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span,
.detail-tags span {
  padding: 5px 8px;
  color: #7c2d12;
  background: #ffedd5;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.horizontal-list {
  display: grid;
  gap: 18px;
}

.horizontal-card {
  position: relative;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 18px;
  align-items: stretch;
  padding: 12px;
  overflow: hidden;
  border-radius: 18px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.horizontal-thumb {
  overflow: hidden;
  min-height: 118px;
  border-radius: 14px;
  background: radial-gradient(circle at top, #f59e0b, #78350f 70%);
}

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

.horizontal-body {
  padding: 8px 0;
}

.horizontal-heat,
.list-rank {
  display: grid;
  align-self: center;
  place-items: center;
  font-weight: 900;
}

.horizontal-heat {
  width: 58px;
  height: 58px;
  color: var(--amber-900);
  background: var(--amber-100);
  border-radius: 18px;
}

.list-rank {
  width: 38px;
  height: 38px;
  color: #ffffff;
  background: var(--amber-600);
  border-radius: 14px;
}

.feature-band {
  padding: 34px;
  background: linear-gradient(90deg, #ffedd5, #fffbeb, #fed7aa);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 26px;
  box-shadow: var(--soft-shadow);
}

.dark-band {
  padding: 34px;
  color: #ffffff;
  background: linear-gradient(135deg, #78350f, #9a3412);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.dark-band h2,
.dark-band .section-eyebrow,
.dark-band .section-desc {
  color: #ffffff;
}

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

.category-card {
  display: grid;
  min-height: 170px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(140deg, #ffffff, #fff7ed);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.category-count {
  align-self: end;
  color: var(--amber-700);
  font-weight: 900;
}

.category-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #451a03, #9a3412 55%, #f59e0b);
}

.category-hero::after,
.detail-hero::after {
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 420px;
  height: 420px;
  content: "";
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.category-hero-inner,
.detail-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0;
}

.category-hero h1,
.category-hero p,
.detail-hero h1,
.detail-hero p {
  color: #ffffff;
}

.category-hero p,
.detail-hero p {
  max-width: 780px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

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

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

.filter-panel {
  display: grid;
  gap: 22px;
  padding: 26px;
  margin-bottom: 34px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
}

.filter-controls {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr) auto;
  gap: 12px;
}

.filter-controls input,
.filter-controls select,
.filter-controls button {
  min-height: 46px;
  padding: 0 14px;
  color: #374151;
  background: #ffffff;
  border: 1px solid #f0d2a3;
  border-radius: 12px;
  outline: none;
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--amber-600);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.filter-controls button {
  color: #ffffff;
  font-weight: 800;
  background: var(--amber-700);
  border-color: var(--amber-700);
}

.filter-count {
  margin: 0;
  color: var(--muted);
}

.hidden-by-filter {
  display: none !important;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 28px;
  align-items: start;
}

.player-card,
.info-card {
  overflow: hidden;
  border-radius: 24px;
}

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

.player-box video {
  width: 100%;
  height: 100%;
  background: #000000;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  border: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.78));
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-overlay span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  padding-left: 6px;
  font-size: 34px;
  background: var(--amber-600);
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

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

.player-caption,
.detail-copy,
.side-content {
  padding: 24px;
}

.player-caption h2,
.info-card h2,
.related-section h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 900;
}

.player-caption p,
.detail-copy p,
.side-content p {
  margin: 0 0 16px;
  color: var(--muted);
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta-grid div {
  padding: 12px;
  background: #fff7ed;
  border-radius: 14px;
}

.detail-meta-grid small {
  display: block;
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
}

.detail-meta-grid span {
  display: block;
  margin-top: 2px;
  font-weight: 800;
}

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

.related-section {
  margin-top: 34px;
}

.site-footer {
  color: #ffffff;
  background: linear-gradient(90deg, var(--amber-900), var(--orange-900), var(--amber-900));
}

.footer-shell {
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-grid h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: rgba(254, 243, 199, 0.84);
}

.footer-grid ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

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

.footer-bottom {
  padding-top: 24px;
  margin-top: 32px;
  text-align: center;
  border-top: 1px solid rgba(254, 243, 199, 0.2);
}

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

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

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

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

  .mobile-menu-button {
    display: flex;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content {
    padding-bottom: 72px;
  }

  .hero-control {
    display: none;
  }

  .section-header {
    display: block;
  }

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

  .horizontal-card {
    grid-template-columns: 110px 1fr;
  }

  .horizontal-heat {
    display: none;
  }

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

@media (max-width: 560px) {
  .nav-shell,
  .main-shell,
  .footer-shell,
  .category-hero-inner,
  .detail-hero-inner {
    width: min(100% - 28px, 1280px);
    padding-right: 0;
    padding-left: 0;
  }

  .brand-copy strong {
    font-size: 19px;
  }

  .hero {
    height: 82vh;
    min-height: 610px;
  }

  .movie-grid,
  .movie-grid.large,
  .movie-grid.compact,
  .category-grid,
  .filter-controls {
    grid-template-columns: 1fr;
  }

  .horizontal-card {
    grid-template-columns: 92px 1fr;
    gap: 12px;
  }

  .feature-band,
  .dark-band,
  .filter-panel {
    padding: 22px;
  }
}
