:root {
  --site-bg: #fffaf0;
  --surface: #ffffff;
  --surface-soft: #fffbeb;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f3d8a2;
  --brand: #d97706;
  --brand-deep: #92400e;
  --brand-light: #fbbf24;
  --dark: #111827;
  --shadow: 0 18px 50px rgba(146, 64, 14, 0.15);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.26), transparent 32rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fffbeb 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(245, 158, 11, 0.22);
  background: rgba(255, 251, 235, 0.88);
  backdrop-filter: blur(18px);
}

.nav-shell {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.25);
}

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

.nav-link,
.mobile-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: #4b5563;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
  color: #92400e;
  background: rgba(251, 191, 36, 0.22);
}

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

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: var(--brand-deep);
}

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(245, 158, 11, 0.18);
}

.mobile-menu-inner {
  padding: 12px 0 18px;
  display: grid;
  gap: 8px;
}

.hero {
  position: relative;
  padding: 34px 0 44px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -140px -80px auto auto;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.28);
  filter: blur(20px);
}

.hero-stage {
  position: relative;
  min-height: 560px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.78fr);
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 5vw, 68px);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.78) 46%, rgba(17, 24, 39, 0.48)),
    var(--hero-bg);
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  filter: saturate(1.08);
}

.hero-copy,
.hero-poster-wrap {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(146, 64, 14, 0.35);
  border: 1px solid rgba(251, 191, 36, 0.32);
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  max-width: 720px;
  margin: 22px 0 16px;
  color: #ffffff;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 950;
}

.hero h1 span {
  color: #fbbf24;
}

.hero p {
  max-width: 680px;
  color: #fef3c7;
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

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

.hero-poster {
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
  background: linear-gradient(135deg, #fbbf24, #92400e);
}

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

.hero-dots {
  position: absolute;
  left: clamp(28px, 5vw, 68px);
  bottom: 34px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

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

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

.button,
.hero-button,
.rank-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(180, 83, 9, 0.24);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
.hero-button:hover,
.rank-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(180, 83, 9, 0.32);
}

.button-secondary {
  color: #fde68a;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(253, 230, 138, 0.32);
}

.quick-search {
  margin-top: -18px;
  position: relative;
  z-index: 5;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-panel input,
.filter-input {
  width: 100%;
  height: 52px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 18px;
  padding: 0 18px;
  color: var(--text);
  background: #ffffff;
  font-size: 16px;
  outline: none;
}

.search-panel input:focus,
.filter-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.section {
  padding: 42px 0;
}

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

.section-heading h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 950;
  letter-spacing: -0.035em;
}

.section-heading p {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.movie-card {
  position: relative;
  min-width: 0;
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 12px 35px rgba(146, 64, 14, 0.11);
  border: 1px solid rgba(245, 158, 11, 0.14);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(146, 64, 14, 0.18);
}

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

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.72), transparent);
}

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

.card-meta,
.detail-meta,
.rank-info {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #92400e;
  font-size: 12px;
  font-weight: 800;
}

.card-meta span,
.detail-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fffbeb;
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 900;
  color: #111827;
}

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

.movie-card-compact .card-body {
  min-height: 136px;
}

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

.category-card {
  display: block;
  padding: 22px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(255, 255, 255, 0.9)),
    #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.16);
  box-shadow: 0 12px 35px rgba(146, 64, 14, 0.1);
  transition: transform 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
}

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

.category-card span {
  color: #92400e;
  font-size: 14px;
  font-weight: 800;
}

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

.rank-row {
  display: grid;
  grid-template-columns: auto 82px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.14);
  box-shadow: 0 10px 28px rgba(146, 64, 14, 0.08);
}

.rank-number {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  font-weight: 950;
}

.rank-thumb {
  width: 82px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: #fef3c7;
}

.rank-content h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 950;
}

.rank-content p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.page-hero {
  padding: 54px 0 30px;
}

.page-hero-card {
  padding: clamp(26px, 4vw, 46px);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.94), rgba(146, 64, 14, 0.9)),
    #111827;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.page-hero-card h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.page-hero-card p {
  max-width: 720px;
  margin: 0;
  color: #fef3c7;
  line-height: 1.8;
}

.filter-bar {
  margin: 22px 0 0;
  max-width: 680px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 34px 0 0;
}

.pagination a,
.pagination strong,
.pagination span {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.18);
  color: #92400e;
  font-weight: 900;
}

.pagination strong {
  color: #ffffff;
  background: #d97706;
}

.detail-hero {
  padding: 40px 0 30px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.78)),
    var(--detail-bg);
  background-size: cover;
  background-position: center;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, #fbbf24, #92400e);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
}

.detail-copy h1 {
  margin: 18px 0 12px;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.detail-copy p {
  max-width: 800px;
  color: #fef3c7;
  font-size: 18px;
  line-height: 1.8;
}

.detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.content-panel,
.side-panel {
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.14);
  box-shadow: 0 12px 36px rgba(146, 64, 14, 0.1);
}

.content-panel {
  padding: clamp(22px, 3vw, 34px);
}

.content-panel h2,
.side-panel h2 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 26px;
  font-weight: 950;
}

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

.side-panel {
  padding: 20px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: #92400e;
  background: #fffbeb;
  font-size: 13px;
  font-weight: 800;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #030712;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.54));
  transition: opacity 0.2s ease;
}

.player-shell.is-playing .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.play-button {
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  font-size: 18px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}

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

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

.related-item img {
  width: 58px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  background: #fef3c7;
}

.related-item strong {
  display: block;
  color: #111827;
  line-height: 1.35;
}

.related-item span {
  display: block;
  margin-top: 4px;
  color: #92400e;
  font-size: 12px;
  font-weight: 800;
}

.site-footer {
  margin-top: 46px;
  padding: 42px 0 24px;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
}

.footer-brand {
  color: #ffffff;
}

.footer-grid p {
  max-width: 560px;
  color: #9ca3af;
  line-height: 1.8;
}

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

.footer-links a:hover {
  color: #fbbf24;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 26px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

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

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

  .menu-button {
    display: block;
  }

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

  .hero-stage {
    min-height: 660px;
  }

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

  .hero-poster-wrap {
    justify-self: start;
    width: 180px;
  }

  .hero-poster {
    border-radius: 20px;
  }

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

  .section-heading {
    display: block;
  }

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

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

  .rank-row {
    grid-template-columns: auto 72px 1fr;
  }

  .rank-action {
    grid-column: 2 / -1;
    width: fit-content;
  }

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

  .detail-poster {
    width: min(260px, 100%);
  }

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

@media (max-width: 560px) {
  .layout {
    width: min(100% - 22px, 1180px);
  }

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

  .hero {
    padding-top: 18px;
  }

  .hero-stage {
    min-height: 620px;
    border-radius: 24px;
  }

  .hero-slide {
    padding: 24px;
  }

  .hero-dots {
    left: 24px;
    bottom: 22px;
  }

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

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

  .rank-row {
    grid-template-columns: 48px 64px 1fr;
    gap: 10px;
  }

  .rank-thumb {
    width: 64px;
  }

  .content-panel,
  .side-panel {
    border-radius: 22px;
  }
}
