:root {
  --bg: #fff7ed;
  --bg-soft: #fffbeb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(146, 64, 14, 0.14);
  --brand: #f59e0b;
  --brand-deep: #d97706;
  --brand-soft: rgba(245, 158, 11, 0.16);
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

img {
  display: block;
  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;
  border-bottom: 1px solid rgba(251, 191, 36, 0.18);
  background: rgba(255, 251, 235, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #78350f;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.36);
  font-size: 15px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: #92400e;
  font-weight: 700;
  transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: var(--brand);
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.26);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid var(--line);
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.55) 48%, rgba(0, 0, 0, 0.1));
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
  color: #ffffff;
  padding-top: 32px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #fbbf24;
  font-weight: 900;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 620px;
  margin: 0 0 26px;
  color: #f3f4f6;
  font-size: 19px;
  line-height: 1.8;
}

.hero-meta,
.movie-meta-line,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-meta {
  margin-bottom: 32px;
}

.hero-meta span,
.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.22s ease;
}

.btn-primary {
  color: #ffffff;
  background: var(--brand);
  box-shadow: 0 16px 30px rgba(245, 158, 11, 0.34);
}

.btn-primary:hover {
  background: var(--brand-deep);
  transform: translateY(-2px);
}

.btn-ghost {
  color: #fff7ed;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-arrows,
.hero-dots {
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

.hero-arrow,
.hero-dot {
  cursor: pointer;
  border: 0;
  transition: 0.22s ease;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-arrow:hover {
  background: var(--brand);
}

.hero-dot {
  width: 34px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

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

.main-content {
  padding: 54px 0 72px;
}

.content-section {
  margin-bottom: 58px;
}

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

.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--brand-deep);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-heading h2,
.page-title h1,
.detail-copy h1 {
  margin: 0;
  color: #78350f;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.section-heading p,
.page-title p {
  max-width: 780px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-more {
  flex: 0 0 auto;
  color: var(--brand-deep);
  font-weight: 900;
}

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

.category-tile {
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.38);
}

.category-tile strong {
  display: block;
  margin-bottom: 8px;
  color: #78350f;
  font-size: 22px;
}

.category-tile span {
  color: var(--muted);
  line-height: 1.7;
}

.category-count {
  display: inline-flex;
  margin-top: 18px;
  color: var(--brand-deep);
  font-weight: 900;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(120, 53, 15, 0.1);
  transition: 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 45px rgba(120, 53, 15, 0.16);
}

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

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

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

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 900;
}

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

.movie-meta-line {
  margin-bottom: 8px;
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 800;
}

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

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

.movie-card p {
  min-height: 48px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.movie-card.compact p {
  min-height: 44px;
}

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

.tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #92400e;
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 700;
}

.rank-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.rank-row {
  display: grid;
  grid-template-columns: 54px 62px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  transition: 0.22s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  border-color: rgba(245, 158, 11, 0.45);
}

.rank-num {
  color: var(--brand);
  font-size: 24px;
  font-weight: 1000;
}

.rank-row img {
  height: 86px;
  border-radius: 14px;
  object-fit: cover;
}

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

.rank-info strong {
  color: #78350f;
  font-size: 17px;
}

.rank-info small {
  margin-top: 6px;
  color: var(--muted);
}

.rank-go {
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.page-hero {
  padding: 64px 0 32px;
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.22), transparent 40%), linear-gradient(180deg, #fffbeb, #ffffff);
}

.page-title {
  max-width: 860px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--brand-deep);
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
  margin: 28px 0;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  color: #78350f;
  background: #fff7ed;
  border: 1px solid rgba(245, 158, 11, 0.22);
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 360px;
  gap: 30px;
  align-items: start;
}

.player-card,
.detail-side,
.text-card {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
}

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

.player-stage video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.55));
  z-index: 2;
}

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

.play-button {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
  font-size: 30px;
  transform: translateZ(0);
}

.player-caption {
  padding: 22px;
}

.player-caption h2 {
  margin: 0 0 10px;
  color: #78350f;
  font-size: 26px;
}

.player-caption p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.detail-side {
  overflow: hidden;
}

.detail-side img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-side-body {
  padding: 20px;
}

.detail-side-body h1 {
  margin: 0 0 14px;
  color: #78350f;
  font-size: 30px;
  line-height: 1.2;
}

.detail-meta span {
  color: #92400e;
  background: var(--brand-soft);
  border-color: transparent;
}

.text-card {
  margin-top: 28px;
  padding: 28px;
}

.text-card h2 {
  margin: 0 0 14px;
  color: #78350f;
  font-size: 28px;
}

.text-card p {
  margin: 0 0 18px;
  color: #374151;
  line-height: 1.95;
}

.related-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.related-item {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #fffbeb;
  border: 1px solid var(--line);
}

.related-item img {
  height: 94px;
  border-radius: 12px;
  object-fit: cover;
}

.related-item strong,
.related-item small {
  display: block;
}

.related-item strong {
  color: #78350f;
}

.related-item small {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.55;
}

.pagination-note {
  margin-top: 26px;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  padding: 46px 0 24px;
  color: #92400e;
  background: #fffbeb;
  border-top: 1px solid var(--line);
}

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

.footer-logo {
  margin-bottom: 16px;
}

.site-footer p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.footer-links {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-links strong {
  color: #78350f;
}

.footer-links a:hover {
  color: var(--brand-deep);
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding-top: 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

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

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

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

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

  .detail-side {
    display: grid;
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 64px;
  }

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

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 251, 235, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .nav-link {
    text-align: center;
  }

  .hero {
    min-height: 620px;
    height: 78vh;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.68));
  }

  .hero-controls {
    align-items: flex-end;
  }

  .hero-arrows {
    display: none;
  }

  .section-heading {
    display: block;
  }

  .section-more {
    display: inline-block;
    margin-top: 12px;
  }

  .movie-grid,
  .small-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .category-strip,
  .rank-panel,
  .footer-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 42px 54px 1fr;
  }

  .rank-go {
    display: none;
  }

  .detail-side {
    display: block;
  }

  .text-card {
    padding: 22px;
  }
}

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

  .movie-grid,
  .small-grid {
    grid-template-columns: 1fr;
  }

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

  .hero p {
    font-size: 16px;
  }
}
