:root {
  --bg: #fff8ed;
  --bg-soft: #fffbf2;
  --panel: #ffffff;
  --text: #2d2115;
  --muted: #746555;
  --line: #f2dec1;
  --amber: #d97706;
  --amber-dark: #92400e;
  --orange: #ea580c;
  --red: #dc2626;
  --shadow: 0 24px 60px rgba(146, 64, 14, 0.18);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(242, 222, 193, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.28);
}

.brand-text {
  font-size: 24px;
  letter-spacing: -0.03em;
}

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

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: #5f5041;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-dark);
  background: #fff1d6;
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 9px;
  border: 0;
  border-radius: 14px;
  background: #fff1d6;
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--amber-dark);
  border-radius: 999px;
}

.nav-mobile {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.nav-mobile a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #5f5041;
  font-weight: 700;
}

.nav-mobile a:hover {
  color: var(--amber-dark);
  background: #fff7ed;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  background: radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.32), transparent 34%), radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.22), transparent 28%), linear-gradient(135deg, #fff7ed 0%, #ffedd5 45%, #fff 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.8;
}

.hero::before {
  width: 320px;
  height: 320px;
  right: -90px;
  top: 80px;
  background: rgba(251, 146, 60, 0.22);
}

.hero::after {
  width: 260px;
  height: 260px;
  left: -120px;
  bottom: 80px;
  background: rgba(245, 158, 11, 0.20);
}

.hero-inner,
.section,
.page-hero-inner,
.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 54px;
  padding: 68px 0 86px;
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--amber-dark);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.06em;
  color: #2a1a0b;
}

.hero h1 span {
  color: var(--amber);
}

.hero-subtitle {
  margin: 22px 0 0;
  max-width: 620px;
  color: #6c5945;
  font-size: 19px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 16px 34px rgba(217, 119, 6, 0.28);
}

.btn-soft {
  color: var(--amber-dark);
  background: #fff;
  border: 1px solid var(--line);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(146, 64, 14, 0.16);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.hero-stat {
  padding: 18px;
  border: 1px solid rgba(242, 222, 193, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 40px rgba(146, 64, 14, 0.08);
}

.hero-stat strong {
  display: block;
  color: var(--amber-dark);
  font-size: 28px;
  line-height: 1.1;
}

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

.hero-showcase {
  position: relative;
  min-height: 520px;
}

.hero-slider {
  position: relative;
  height: 520px;
  border-radius: 34px;
  overflow: hidden;
  background: #2a1a0b;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1s ease;
}

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.72));
}

.hero-slide-content {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  color: #fff;
}

.hero-slide-content h2 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.15;
}

.hero-slide-content p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-dots {
  position: absolute;
  right: 22px;
  top: 22px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 26px;
  background: #fff;
}

.floating-list {
  position: absolute;
  left: -34px;
  bottom: 28px;
  z-index: 4;
  width: 230px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(146, 64, 14, 0.22);
}

.floating-list h2 {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--amber-dark);
}

.floating-list a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  color: #4b3a2a;
  font-weight: 700;
  border-bottom: 1px solid rgba(242, 222, 193, 0.7);
}

.floating-list a:last-child {
  border-bottom: 0;
}

.section {
  padding: 64px 0;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 8px 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 var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #fff9ef);
  box-shadow: 0 16px 38px rgba(146, 64, 14, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: #f6c47d;
  box-shadow: 0 24px 54px rgba(146, 64, 14, 0.16);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #f59e0b, #c2410c);
}

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

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

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

.poster-play {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: rgba(217, 119, 6, 0.92);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  min-width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 12px 26px rgba(220, 38, 38, 0.28);
}

.card-body {
  padding: 18px;
}

.card-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 900;
  color: #2d2115;
}

.card-title:hover {
  color: var(--amber-dark);
}

.card-meta {
  margin: 6px 0;
  color: var(--amber-dark);
  font-size: 13px;
  font-weight: 800;
}

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

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--amber-dark);
  background: #fff1d6;
  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: 155px;
  padding: 22px;
  overflow: hidden;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 18px 44px rgba(217, 119, 6, 0.22);
}

.category-tile:nth-child(2n) {
  background: linear-gradient(135deg, #fb923c, #b45309);
}

.category-tile:nth-child(3n) {
  background: linear-gradient(135deg, #fbbf24, #c2410c);
}

.category-tile h2,
.category-tile h3 {
  position: relative;
  z-index: 2;
  margin: 0 0 10px;
  font-size: 22px;
}

.category-tile p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.category-tile::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -50px;
  bottom: -50px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.page-hero {
  padding: 58px 0;
  background: radial-gradient(circle at 20% 0%, rgba(251, 191, 36, 0.28), transparent 30%), linear-gradient(135deg, #fff7ed, #ffedd5);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(34px, 5vw, 58px);
}

.page-hero p:last-child {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px;
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 44px rgba(146, 64, 14, 0.08);
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  background: #fff;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #f6c47d;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.16);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 62px 86px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(146, 64, 14, 0.08);
}

.rank-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.rank-thumb {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #f59e0b, #c2410c);
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-row h2,
.rank-row h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.rank-row p {
  margin: 0;
  color: var(--muted);
}

.movie-detail {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

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

.breadcrumb a {
  color: var(--amber-dark);
  font-weight: 800;
}

.detail-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--shadow);
}

.player-shell {
  position: relative;
  background: #050505;
}

.player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050505;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.45));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
  position: relative;
}

.play-overlay span::after {
  content: "";
  position: absolute;
  left: 34px;
  top: 25px;
  width: 0;
  height: 0;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 25px solid var(--orange);
}

.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-body {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  padding: 32px;
}

.detail-cover {
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #f59e0b, #c2410c);
  box-shadow: 0 18px 44px rgba(146, 64, 14, 0.18);
}

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

.detail-content h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--amber-dark);
  background: #fff1d6;
  font-weight: 800;
}

.prose-block {
  margin-top: 24px;
}

.prose-block h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.prose-block p {
  margin: 0;
  color: #594838;
}

.related-section {
  margin-top: 42px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #fff7ed, #ffedd5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 34px;
  padding: 48px 0;
}

.footer-grid p,
.footer-grid a {
  color: #6c5945;
}

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

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
}

.footer-grid li {
  margin-bottom: 8px;
}

.empty-state {
  display: none;
  padding: 26px;
  border: 1px dashed #f6c47d;
  border-radius: 22px;
  color: var(--muted);
  background: #fff9ef;
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

@media (max-width: 1040px) {
  .hero-inner,
  .detail-body {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    min-height: auto;
  }

  .floating-list {
    left: 18px;
  }

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

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

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

  .menu-button {
    display: block;
  }

  .nav-mobile.is-open {
    display: block;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 42px 0 58px;
    gap: 34px;
  }

  .hero-stats,
  .filter-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    height: 430px;
    border-radius: 26px;
  }

  .floating-list {
    position: relative;
    left: auto;
    bottom: auto;
    width: auto;
    margin-top: 16px;
  }

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

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

  .rank-row {
    grid-template-columns: 46px 68px minmax(0, 1fr);
  }

  .rank-row .btn {
    grid-column: 1 / -1;
  }

  .detail-body {
    padding: 20px;
  }

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

@media (max-width: 520px) {
  .brand-text {
    font-size: 20px;
  }

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

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

  .section {
    padding: 44px 0;
  }
}
