:root {
  --bg: #fff7ed;
  --panel: #ffffff;
  --panel-soft: #fffbeb;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f1e0c7;
  --brand: #d97706;
  --brand-dark: #92400e;
  --brand-soft: #fef3c7;
  --accent: #ea580c;
  --shadow: 0 24px 60px rgba(120, 53, 15, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at top left, #fff7ed 0, #fef3c7 28%, #ffffff 64%);
  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 {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: #fff;
  background: linear-gradient(90deg, #78350f, #c2410c, #78350f);
  box-shadow: 0 16px 42px rgba(120, 53, 15, 0.22);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.brand-text strong {
  display: block;
  font-size: 22px;
  letter-spacing: 0.03em;
}

.brand-text em {
  display: block;
  font-size: 12px;
  color: #fde68a;
  font-style: normal;
  margin-top: -2px;
}

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

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: #ffedd5;
  font-size: 15px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 22px;
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.015);
  pointer-events: none;
  transition: opacity 0.65s ease, transform 0.65s ease;
  background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.7) 46%, rgba(17, 24, 39, 0.18)), var(--bg-img);
  background-size: cover;
  background-position: center;
}

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

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 48px;
  min-height: 640px;
  padding: 80px 0 110px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  margin-bottom: 20px;
  padding: 8px 14px;
  border: 1px solid rgba(253, 230, 138, 0.36);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  font-size: 14px;
}

.hero h1,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(42px, 7vw, 78px);
}

.hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: #fef3c7;
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.button-primary {
  border: 0;
  color: #78350f;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
}

.hero-poster {
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.35);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #f59e0b, #78350f);
}

.hero-poster-meta {
  padding: 18px;
  background: rgba(17, 24, 39, 0.92);
}

.hero-poster-meta strong,
.hero-poster-meta span {
  display: block;
}

.hero-poster-meta strong {
  font-size: 18px;
}

.hero-poster-meta span {
  color: #fde68a;
  font-size: 13px;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 34px;
  background: #f59e0b;
}

.search-panel {
  position: relative;
  z-index: 8;
  margin-top: -46px;
}

.search-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.search-input,
.select-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #fde68a;
  border-radius: 16px;
  padding: 0 16px;
  color: var(--text);
  background: #fff;
  outline: none;
  font-size: 16px;
}

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

.section {
  padding: 76px 0;
}

.section-header,
.page-hero,
.detail-block {
  margin-bottom: 28px;
}

.section-label {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-weight: 700;
  font-size: 13px;
}

.section-header h2,
.page-hero h1,
.detail-block h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.section-header p,
.page-hero p,
.detail-block p {
  margin: 10px 0 0;
  color: var(--muted);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(120, 53, 15, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(120, 53, 15, 0.18);
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #f59e0b, #78350f);
}

.poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-badge,
.poster-type {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 24, 39, 0.76);
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.poster-badge {
  left: 12px;
}

.poster-type {
  right: 12px;
}

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

.movie-title {
  display: block;
  overflow: hidden;
  color: #111827;
  font-weight: 800;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

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

.card-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.card-tags span,
.tag-row span,
.tag-row a {
  padding: 5px 10px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 24px;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(135deg, #92400e, #ea580c);
  box-shadow: var(--shadow);
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #111827, #92400e);
}

.category-card h2 {
  margin: 0;
  font-size: 28px;
}

.category-card p {
  margin: 12px 0 22px;
  color: #ffedd5;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  margin-bottom: 26px;
}

.rank-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.rank-list {
  display: grid;
  gap: 12px;
}

.rank-item {
  display: grid;
  grid-template-columns: 48px 84px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(120, 53, 15, 0.08);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #78350f;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  font-weight: 900;
}

.rank-item img {
  width: 84px;
  height: 110px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, #f59e0b, #78350f);
}

.rank-item strong,
.rank-item span,
.rank-item em {
  display: block;
}

.rank-item strong {
  font-size: 16px;
}

.rank-item span,
.rank-item em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.page-hero {
  padding: 70px 0 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--brand-dark);
  font-weight: 700;
}

.detail-hero {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 34px;
  align-items: end;
  padding: 42px;
  border-radius: 30px;
  color: #fff;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(120, 53, 15, 0.9)), var(--detail-bg);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.detail-cover {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #f59e0b, #78350f);
}

.detail-title p {
  color: #fef3c7;
  font-size: 18px;
}

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

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffedd5;
  font-weight: 700;
}

.player-section {
  padding: 42px 0 0;
}

.player-shell {
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: 0 32px 80px rgba(17, 24, 39, 0.24);
}

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

.movie-video {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.7));
  cursor: pointer;
}

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

.play-badge {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  color: #78350f;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  font-size: 32px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding: 42px 0 70px;
}

.detail-block {
  padding: 28px;
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(120, 53, 15, 0.08);
}

.detail-block + .detail-block {
  margin-top: 18px;
}

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

.related-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(217, 119, 6, 0.1);
  border-radius: 16px;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(120, 53, 15, 0.12);
}

.related-card img {
  width: 76px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, #f59e0b, #78350f);
}

.related-card span,
.related-card em {
  display: block;
}

.related-card span {
  color: #111827;
  font-weight: 800;
}

.related-card em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.no-result {
  display: none;
  padding: 24px;
  border-radius: 18px;
  color: #92400e;
  background: #fef3c7;
  font-weight: 700;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(90deg, #111827, #1f2937, #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  padding: 52px 0;
}

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

.footer-grid p {
  margin: 10px 0 0;
  color: #9ca3af;
}

.footer-brand {
  color: #fff;
  font-size: 22px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: #fde68a;
  font-size: 14px;
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  text-align: center;
  font-size: 14px;
}

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

  .hero-poster {
    max-width: 300px;
    transform: rotate(0);
  }

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

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

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

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

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 18px;
    background: #78350f;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
  }

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

  .hero,
  .hero-content {
    min-height: 610px;
  }

  .hero-content {
    padding: 54px 0 96px;
  }

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

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

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

  .rank-item {
    grid-template-columns: 42px 70px 1fr;
  }

  .rank-item .button {
    grid-column: 2 / -1;
  }

  .detail-hero {
    padding: 24px;
  }

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