:root {
  --bg: #fffaf1;
  --panel: #ffffff;
  --panel-soft: #fffbeb;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f3e8d1;
  --primary: #f59e0b;
  --primary-dark: #d97706;
  --accent: #ea580c;
  --dark: #111827;
  --radius: 22px;
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 34rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fffaf1 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.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.86);
  border-bottom: 1px solid rgba(245, 158, 11, 0.16);
  backdrop-filter: blur(18px);
}

.nav-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 900;
  color: var(--dark);
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.36);
}

.brand-text {
  font-size: 22px;
  letter-spacing: -0.04em;
}

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

.nav-link {
  padding: 10px 14px;
  color: #4b5563;
  border-radius: 999px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #92400e;
  background: #fef3c7;
}

.top-search {
  display: flex;
  align-items: center;
  width: min(310px, 34vw);
  padding: 4px;
  border: 1px solid #fde68a;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.08);
}

.top-search input {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  color: var(--text);
  border: 0;
  outline: 0;
  background: transparent;
}

.top-search button,
.primary-button,
.secondary-button,
.filter-button {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search button,
.primary-button,
.filter-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.top-search button {
  padding: 9px 15px;
}

.primary-button,
.secondary-button,
.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
}

.secondary-button {
  color: #92400e;
  border: 1px solid #fcd34d;
  background: rgba(255, 255, 255, 0.9);
}

.top-search button:hover,
.primary-button:hover,
.filter-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(217, 119, 6, 0.24);
}

.secondary-button:hover {
  color: #ffffff;
  background: var(--primary);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 14px;
  background: #fef3c7;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: #92400e;
}

.hero {
  position: relative;
  padding: 38px 0 54px;
  overflow: hidden;
}

.hero-shell {
  position: relative;
  min-height: 530px;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 36px;
  background: #111827;
  box-shadow: 0 30px 70px rgba(124, 45, 18, 0.25);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.7fr);
  align-items: center;
  gap: 34px;
  padding: clamp(28px, 6vw, 72px);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.72) 50%, rgba(17, 24, 39, 0.2)),
    radial-gradient(circle at 24% 20%, rgba(245, 158, 11, 0.5), transparent 26rem);
}

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

.hero-content,
.hero-poster-wrap {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  max-width: 760px;
  margin: 18px 0 16px;
  color: #ffffff;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 24px;
  color: #f3f4f6;
  font-size: 18px;
  line-height: 1.8;
}

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

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

.hero-meta span,
.chip-row span,
.detail-meta span,
.breadcrumb a,
.breadcrumb span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-meta span {
  color: #fef3c7;
  background: rgba(255, 255, 255, 0.13);
}

.hero-poster-wrap {
  justify-self: center;
  width: min(330px, 100%);
}

.hero-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  background: #1f2937;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
  transform: rotate(2deg);
}

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

.hero-controls {
  position: absolute;
  left: clamp(28px, 6vw, 72px);
  bottom: 28px;
  z-index: 2;
  display: flex;
  gap: 10px;
  align-items: center;
}

.hero-control {
  width: 42px;
  height: 42px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-dots {
  display: flex;
  gap: 8px;
  margin-left: 8px;
}

.hero-dot {
  width: 28px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.hero-dot.active {
  background: var(--primary);
}

.section {
  padding: 46px 0;
}

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

.section-eyebrow {
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section h1,
.section h2,
.page-title,
.detail-title {
  margin: 0;
  color: var(--dark);
  letter-spacing: -0.04em;
}

.section h2,
.page-title {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}

.section-intro,
.page-intro {
  max-width: 780px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.category-strip {
  display: flex;
  gap: 12px;
  padding: 4px 0 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-strip::-webkit-scrollbar {
  display: none;
}

.category-strip a {
  flex: 0 0 auto;
  padding: 12px 16px;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 999px;
  background: #ffffff;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.08);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(120, 53, 15, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

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

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

.poster-link img,
.rank-thumb img,
.related-thumb img,
.detail-cover img,
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-size: 12px;
  font-weight: 900;
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(12px);
}

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

.movie-card h2,
.rank-card h2,
.related-card h2,
.category-card h2 {
  margin: 8px 0;
  color: var(--dark);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-card p,
.rank-card p,
.related-card p,
.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.movie-meta-line {
  color: #9a3412;
  font-size: 13px;
  font-weight: 800;
}

.movie-meta-line span + span::before {
  content: "·";
  margin-right: 8px;
  color: #f59e0b;
}

.chip-row {
  margin-top: 14px;
}

.chip-row span,
.detail-meta span {
  color: #92400e;
  background: #fef3c7;
}

.feature-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.feature-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 30px;
  background: #111827;
  box-shadow: var(--shadow);
}

.feature-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.feature-card-content {
  position: absolute;
  inset: auto 0 0;
  padding: 28px;
  color: #ffffff;
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.94));
}

.feature-card h2 {
  margin: 10px 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.05;
}

.filter-panel,
.page-hero,
.detail-hero,
.player-section,
.content-panel {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 40px rgba(120, 53, 15, 0.08);
}

.page-hero,
.detail-hero {
  margin-top: 30px;
  padding: clamp(24px, 5vw, 46px);
}

.filter-panel {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 26px;
  padding: 14px;
}

.filter-panel input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 13px 16px;
  color: var(--text);
  border: 1px solid #fde68a;
  border-radius: 18px;
  outline: 0;
  background: #ffffff;
}

.filter-button {
  flex: 0 0 auto;
}

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

.category-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(120, 53, 15, 0.08);
}

.category-card-image {
  height: 210px;
  overflow: hidden;
  background: #111827;
}

.category-card-body {
  padding: 22px;
}

.category-card h2 {
  font-size: 24px;
}

.category-count {
  display: inline-flex;
  margin-top: 18px;
  padding: 8px 12px;
  color: #92400e;
  border-radius: 999px;
  background: #fef3c7;
  font-size: 13px;
  font-weight: 900;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 62px 110px 1fr;
  gap: 18px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(120, 53, 15, 0.07);
}

.rank-number {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: #ffffff;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-size: 18px;
  font-weight: 900;
}

.rank-thumb {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
  background: #111827;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 46px);
  align-items: center;
}

.detail-cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: var(--shadow);
}

.breadcrumb {
  margin-bottom: 18px;
}

.breadcrumb a,
.breadcrumb span {
  color: #92400e;
  background: #fef3c7;
}

.detail-title {
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.04;
}

.detail-summary {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.player-section {
  margin-top: 30px;
  padding: clamp(18px, 4vw, 32px);
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #080c14;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.18);
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.68));
}

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

.play-button-core {
  display: grid;
  width: clamp(72px, 10vw, 104px);
  height: clamp(72px, 10vw, 104px);
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.38);
  font-size: clamp(28px, 4vw, 42px);
}

.content-panel {
  margin-top: 30px;
  padding: clamp(22px, 4vw, 36px);
}

.content-panel h2 {
  margin: 0 0 14px;
  color: var(--dark);
  font-size: 28px;
}

.content-panel p {
  margin: 0 0 18px;
  color: #374151;
  font-size: 17px;
  line-height: 1.95;
}

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

.related-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
}

.related-thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: #111827;
}

.search-results-note {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 700;
}

.site-footer {
  margin-top: 52px;
  padding: 44px 0 24px;
  color: #f9fafb;
  background: #111827;
}

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

.footer-brand {
  color: #ffffff;
}

.site-footer p {
  max-width: 520px;
  margin: 16px 0 0;
  color: #d1d5db;
  line-height: 1.8;
}

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

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

.footer-links a {
  display: inline-flex;
  padding: 8px 10px;
  color: #fef3c7;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.15);
  font-size: 14px;
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding-top: 22px;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

.no-results {
  padding: 28px;
  color: var(--muted);
  border: 1px dashed #fcd34d;
  border-radius: 24px;
  background: #fffbeb;
  text-align: center;
  font-weight: 800;
}

@media (max-width: 1024px) {
  .top-search {
    display: none;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
  }

  .hero-poster-wrap {
    display: none;
  }

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

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

  .nav-bar {
    min-height: 66px;
  }

  .brand-text {
    font-size: 20px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .main-nav {
    position: absolute;
    top: 66px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid #fde68a;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

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

  .nav-link {
    padding: 13px 16px;
  }

  .hero {
    padding-top: 22px;
  }

  .hero-shell {
    min-height: 560px;
    border-radius: 26px;
  }

  .hero-slide {
    padding: 28px;
  }

  .hero h1 {
    font-size: clamp(36px, 12vw, 52px);
  }

  .hero-controls {
    left: 28px;
    bottom: 24px;
  }

  .section-head,
  .filter-panel,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .rank-card {
    grid-template-columns: 48px 82px 1fr;
    gap: 12px;
  }

  .rank-number {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 15px;
  }

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

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

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

@media (max-width: 520px) {
  .movie-grid,
  .category-grid,
  .feature-band,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .filter-button {
    width: 100%;
  }

  .rank-card,
  .related-card {
    grid-template-columns: 78px 1fr;
  }

  .rank-number {
    grid-column: 1 / -1;
    width: 100%;
  }
}
