:root {
  --brand: #d97706;
  --brand-deep: #b45309;
  --brand-soft: #fff7ed;
  --brand-glow: rgba(245, 158, 11, 0.28);
  --ink: #111827;
  --muted: #6b7280;
  --line: #f3f4f6;
  --panel: #ffffff;
  --bg: #fffbeb;
  --shadow: 0 20px 55px rgba(120, 53, 15, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 34%, #fffaf0 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

button,
input,
select {
  font: inherit;
}

.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.18);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #92400e;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 14px 28px rgba(234, 88, 12, 0.28);
}

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

.main-nav a,
.mobile-nav a {
  color: #374151;
  text-decoration: none;
  font-weight: 700;
  border-radius: 14px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.main-nav a {
  padding: 10px 14px;
}

.main-nav a:hover,
.mobile-nav a:hover {
  color: var(--brand-deep);
  background: var(--brand-soft);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: #92400e;
  background: #fff7ed;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 10px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 16px;
}

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

.mobile-nav a {
  padding: 12px 14px;
  background: rgba(255, 247, 237, 0.7);
}

.page-main {
  min-height: calc(100vh - 82px);
}

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

.hero-carousel {
  position: relative;
  isolation: isolate;
  min-height: 610px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #92400e 0%, #f59e0b 52%, #fb923c 100%);
}

.hero-slide {
  display: none;
  min-height: 610px;
  position: relative;
}

.hero-slide.active {
  display: block;
  animation: heroFade 0.65s ease both;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.36;
  filter: saturate(1.2) contrast(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 76% 18%, rgba(255, 255, 255, 0.28), transparent 32%), linear-gradient(90deg, rgba(120, 53, 15, 0.92), rgba(146, 64, 14, 0.66) 48%, rgba(0, 0, 0, 0.25));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  min-height: 610px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr 0.72fr;
  align-items: center;
  gap: 46px;
  padding: 72px 0 86px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: #fffbeb;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.hero-title {
  max-width: 760px;
  margin: 22px 0 18px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-desc {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.82;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 30px;
}

.hero-meta span,
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  color: #92400e;
  background: rgba(255, 251, 235, 0.9);
  font-size: 13px;
  font-weight: 800;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 14px 32px rgba(234, 88, 12, 0.28);
}

.btn-light {
  color: #92400e;
  background: rgba(255, 255, 255, 0.92);
}

.btn-ghost {
  color: #92400e;
  background: #fff7ed;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(120, 53, 15, 0.18);
}

.hero-poster-card {
  position: relative;
  max-width: 370px;
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 34px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 90px rgba(69, 26, 3, 0.38);
  backdrop-filter: blur(18px);
}

.hero-poster-card img {
  height: 470px;
  object-fit: cover;
  border-radius: 26px;
}

.hero-poster-foot {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 30px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(10px);
}

.hero-poster-foot strong {
  display: block;
  font-size: 18px;
}

.hero-poster-foot span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

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

.hero-dot {
  width: 36px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 58px;
  background: #ffffff;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: scale(1.015);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.section {
  padding: 66px 0;
}

.section.compact {
  padding: 40px 0;
}

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

.section-title {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-subtitle {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.12);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 12px 32px 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(-7px);
  border-color: rgba(245, 158, 11, 0.38);
  box-shadow: var(--shadow);
}

.movie-cover-link {
  display: block;
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.movie-cover-link img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

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

.movie-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(217, 119, 6, 0.92);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(120, 53, 15, 0.18);
}

.movie-score {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #78350f;
  background: rgba(255, 251, 235, 0.92);
  font-size: 12px;
  font-weight: 950;
}

.movie-body {
  padding: 16px;
}

.movie-title {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 8px;
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  line-height: 1.42;
  font-weight: 900;
  text-decoration: none;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.movie-line {
  display: -webkit-box;
  min-height: 45px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.72;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.movie-tags span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #92400e;
  background: #fff7ed;
  font-size: 12px;
  font-weight: 800;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 26px;
  color: #ffffff;
  text-decoration: none;
  background: #92400e;
  box-shadow: 0 18px 48px rgba(120, 53, 15, 0.16);
}

.category-tile img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.46;
  transition: transform 0.25s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(69, 26, 3, 0.82));
}

.category-info {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
}

.category-info strong {
  display: block;
  margin-bottom: 6px;
  font-size: 22px;
  font-weight: 950;
}

.category-info span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  line-height: 1.7;
}

.banner-panel {
  overflow: hidden;
  border-radius: 34px;
  padding: 44px;
  color: #ffffff;
  background: radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.28), transparent 28%), linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 24px 70px rgba(234, 88, 12, 0.25);
}

.banner-panel h2 {
  max-width: 760px;
  margin: 0 0 14px;
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.banner-panel p {
  max-width: 760px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 1.8;
}

.page-hero {
  padding: 64px 0;
  color: #ffffff;
  background: radial-gradient(circle at 72% 20%, rgba(255, 255, 255, 0.22), transparent 28%), linear-gradient(135deg, #f59e0b, #ea580c);
}

.page-hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(34px, 5.5vw, 62px);
  line-height: 1.06;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 820px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 190px 150px 150px;
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(120, 53, 15, 0.08);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #f3e7d4;
  border-radius: 15px;
  padding: 0 14px;
  color: #111827;
  background: #ffffff;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px var(--brand-glow);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 74px 92px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(245, 158, 11, 0.14);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.07);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-num {
  color: #ea580c;
  font-size: 30px;
  font-weight: 950;
  text-align: center;
}

.rank-item img {
  height: 122px;
  object-fit: cover;
  border-radius: 16px;
}

.rank-content strong {
  display: block;
  margin-bottom: 8px;
  color: #111827;
  font-size: 20px;
  font-weight: 950;
}

.rank-content p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.72;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-score {
  padding: 10px 14px;
  border-radius: 16px;
  color: #92400e;
  background: #fff7ed;
  font-weight: 950;
}

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

.breadcrumb a {
  color: #92400e;
  text-decoration: none;
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 0.85fr;
  gap: 34px;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #111827;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.22);
}

.site-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.58));
  cursor: pointer;
}

.player-overlay.hidden {
  display: none;
}

.play-circle {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #92400e;
  background: #ffffff;
  font-size: 34px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.32);
}

.detail-panel {
  border: 1px solid rgba(245, 158, 11, 0.14);
  border-radius: 30px;
  padding: 26px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(120, 53, 15, 0.08);
}

.detail-title {
  margin: 0 0 14px;
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-line {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.info-row span:first-child {
  color: var(--muted);
}

.info-row span:last-child {
  color: #111827;
  font-weight: 900;
  text-align: right;
}

.prose-block {
  margin-top: 34px;
  padding: 28px;
  border: 1px solid rgba(245, 158, 11, 0.12);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(120, 53, 15, 0.06);
}

.prose-block h2 {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 950;
}

.prose-block p {
  margin: 0;
  color: #374151;
  font-size: 16px;
  line-height: 1.92;
}

.site-footer {
  margin-top: 72px;
  padding: 44px 0;
  color: #fef3c7;
  background: linear-gradient(135deg, #451a03, #78350f);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.footer-grid p {
  max-width: 720px;
  margin: 12px 0 0;
  color: rgba(255, 251, 235, 0.72);
  line-height: 1.8;
}

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

.footer-links a {
  color: #fffbeb;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

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

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

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

  .hero-poster-card {
    justify-self: start;
    max-width: 340px;
  }

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

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

  .nav-toggle {
    display: inline-block;
  }

  .hero-carousel,
  .hero-slide,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 54px 0 86px;
    gap: 28px;
  }

  .hero-poster-card {
    max-width: 100%;
  }

  .hero-poster-card img {
    height: 360px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .rank-item {
    grid-template-columns: 48px 78px 1fr;
  }

  .rank-score {
    grid-column: 3;
    width: fit-content;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .container,
  .hero-inner {
    width: min(100% - 28px, 1180px);
  }

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

  .banner-panel,
  .detail-panel,
  .prose-block {
    padding: 22px;
    border-radius: 24px;
  }

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

  .rank-content strong {
    font-size: 17px;
  }
}
