:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #fff7ed;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --amber: #d97706;
  --amber-dark: #92400e;
  --orange-dark: #7c2d12;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, #78350f 0%, #9a3412 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.24);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.main-nav a {
  font-weight: 650;
  transition: color 0.18s ease;
}

.main-nav a:hover {
  color: #fde68a;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  color: #fff;
  background: transparent;
  border: 0;
  font-size: 28px;
  cursor: pointer;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.search-panel input,
.filter-box input,
.filter-box select {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  background: #fff;
  color: var(--text);
}

.header-search input {
  width: 210px;
  border-color: rgba(255, 255, 255, 0.25);
}

.header-search button,
.btn-primary,
.search-panel button,
.filter-box button {
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  color: #fff;
  background: var(--amber);
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.18s ease, background 0.18s ease;
}

.header-search button:hover,
.btn-primary:hover,
.search-panel button:hover,
.filter-box button:hover {
  background: #b45309;
  transform: translateY(-1px);
}

.hero-slider {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: linear-gradient(90deg, #111827 0%, #1f2937 100%);
}

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

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.54) 52%, rgba(0, 0, 0, 0.16) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 70vh;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(720px, 100%);
  color: #fff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(217, 119, 6, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.35);
  font-weight: 800;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: clamp(18px, 2.4vw, 26px);
  max-width: 760px;
}

.hero-meta,
.tag-row,
.info-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta {
  margin: 0 0 30px;
}

.hero-meta span,
.tag-row span,
.info-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  color: #92400e;
  background: #fef3c7;
  font-size: 13px;
  font-weight: 750;
}

.hero-meta span {
  color: #fff;
  background: rgba(217, 119, 6, 0.88);
}

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

.btn-ghost {
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  padding: 10px 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 700;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.46);
  cursor: pointer;
  font-size: 28px;
}

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

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: var(--amber);
}

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

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

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.section-heading span {
  width: 5px;
  height: 34px;
  border-radius: 999px;
  background: var(--amber);
}

.section-heading h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-subtitle,
.page-title p {
  margin: -8px 0 24px;
  color: var(--muted);
  font-size: 18px;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

.movie-grid.wide .poster-link,
.featured-card .poster-link {
  aspect-ratio: 16 / 9;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 32%, rgba(0, 0, 0, 0.78) 100%);
  opacity: 0.78;
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.86);
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(217, 119, 6, 0.92);
  opacity: 0;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .play-badge,
.featured-card:hover .play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-card-body,
.featured-body {
  padding: 16px;
}

.movie-card h3,
.featured-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 850;
}

.movie-card h3 a:hover,
.archive-list a:hover,
.category-card a:hover {
  color: var(--amber);
}

.movie-meta,
.movie-line {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.movie-line {
  min-height: 42px;
}

.band {
  background: linear-gradient(90deg, #fff7ed 0%, #ffedd5 100%);
}

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

.featured-card,
.category-card,
.info-panel,
.search-panel,
.filter-box,
.detail-card,
.player-card {
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.featured-card {
  overflow: hidden;
  cursor: pointer;
}

.category-card {
  padding: 22px;
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

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

.category-card a {
  display: inline-flex;
  margin: 5px 8px 5px 0;
  border-radius: 999px;
  padding: 7px 11px;
  color: #92400e;
  background: #fef3c7;
  font-weight: 750;
  font-size: 14px;
}

.page-title {
  padding: 56px 0 34px;
  color: #fff;
  background: linear-gradient(90deg, #78350f 0%, #7c2d12 100%);
}

.page-title .page-wrap {
  margin: 0 auto;
}

.page-title p {
  color: #fde68a;
  margin-top: 12px;
}

.layout-grid {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  padding: 46px 0 64px;
}

.filter-box {
  position: sticky;
  top: 88px;
  padding: 22px;
}

.filter-box h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

.filter-box label {
  display: block;
  margin: 14px 0 8px;
  color: var(--muted);
  font-weight: 700;
}

.filter-box input,
.filter-box select {
  width: 100%;
}

.player-hero {
  padding: 34px 0;
  background: linear-gradient(90deg, #111827 0%, #1f2937 100%);
}

.player-card {
  position: relative;
  overflow: hidden;
  background: #000;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.4);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.42));
  transition: opacity 0.2s ease;
}

.player-card.is-playing .player-overlay {
  opacity: 0;
}

.player-overlay button {
  pointer-events: auto;
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(217, 119, 6, 0.94);
  cursor: pointer;
  font-size: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.player-state {
  position: absolute;
  left: 20px;
  bottom: 18px;
  color: #fff;
  background: rgba(0, 0, 0, 0.54);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 340px;
  gap: 30px;
  padding: 46px 0 64px;
}

.detail-card {
  padding: 26px;
  margin-bottom: 22px;
}

.detail-card h1,
.detail-card h2,
.info-panel h2 {
  margin: 0 0 16px;
  font-weight: 900;
  line-height: 1.2;
}

.detail-card h1 {
  font-size: clamp(32px, 5vw, 48px);
}

.detail-card h2,
.info-panel h2 {
  font-size: 24px;
}

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

.review-card {
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
}

.info-panel {
  position: sticky;
  top: 88px;
  padding: 24px;
}

.info-panel dl {
  margin: 0;
}

.info-panel dt {
  color: var(--muted);
  font-size: 13px;
  margin-top: 16px;
}

.info-panel dd {
  margin: 4px 0 0;
  font-weight: 750;
}

.search-panel {
  padding: 26px;
  margin: 42px 0 24px;
}

.search-panel form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.search-results-count {
  color: var(--muted);
  margin: 0 0 22px;
}

.archive-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.archive-list li {
  display: grid;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.archive-list a {
  font-weight: 750;
}

.archive-list span {
  color: var(--muted);
  font-size: 13px;
}

.rank-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.07);
}

.rank-num {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--amber);
  font-weight: 900;
}

.rank-item h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.rank-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  padding: 44px 0 36px;
  color: #d1d5db;
  background: #111827;
}

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

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

.site-footer a {
  display: block;
  margin: 8px 0;
}

.site-footer a:hover {
  color: #fde68a;
}

.footer-brand {
  color: #fff;
  margin-bottom: 12px;
}

.no-results {
  padding: 50px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border-radius: var(--radius);
}

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

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

  .header-search {
    display: none;
  }
}

@media (max-width: 860px) {
  .nav-wrap {
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
  }

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

  .hero-content {
    height: 72vh;
  }

  .hero-control {
    display: none;
  }

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

  .filter-box,
  .info-panel {
    position: static;
  }

  .archive-list {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 620px) {
  .movie-grid,
  .movie-grid.wide,
  .featured-grid,
  .category-grid,
  .rank-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .movie-card-body,
  .featured-body {
    padding: 12px;
  }

  .movie-line {
    display: none;
  }

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

  .hero-copy p {
    font-size: 18px;
  }

  .search-panel form {
    grid-template-columns: 1fr;
  }

  .archive-list {
    grid-template-columns: 1fr;
  }
}
