:root {
  --amber: #f59e0b;
  --orange: #f97316;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --blue: #2563eb;
  --slate: #111827;
  --muted: #6b7280;
  --paper: #ffffff;
  --soft: #f8fafc;
  --line: #e5e7eb;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #1f2937;
  background: linear-gradient(180deg, #f9fafb 0%, #eef2f7 100%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #d97706 0%, #f97316 100%);
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.28);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #f97316;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.14);
}

.brand-text {
  font-size: 1.15rem;
}

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

.nav-link,
.mobile-link {
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.active,
.mobile-link.active {
  opacity: 1;
  color: #fffbeb;
  transform: translateY(-1px);
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 14px;
}

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

.mobile-link {
  display: block;
  padding: 10px 0;
}

.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: #000000;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(245, 158, 11, 0.38), transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.55) 48%, rgba(0, 0, 0, 0.22)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  height: 100%;
  padding-bottom: 78px;
}

.hero-copy {
  max-width: 780px;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 10px;
  color: #fbbf24;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 8px;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  line-height: 0.95;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.hero-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 3vw, 2.8rem);
  line-height: 1.1;
}

.hero-desc {
  max-width: 720px;
  margin: 0 0 20px;
  color: #e5e7eb;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-meta,
.hero-tags,
.detail-meta,
.detail-tags,
.tag-row,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-meta span,
.hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-meta span:first-child {
  background: var(--amber);
  font-weight: 800;
}

.hero-tags {
  margin-bottom: 24px;
}

.hero-actions,
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn,
.search-strip button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.search-strip button:hover {
  transform: translateY(-2px);
}

.btn.primary,
.search-strip button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.32);
}

.btn.ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.hero-control.prev {
  left: 18px;
}

.hero-control.next {
  right: 18px;
}

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

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

.hero-dot.active {
  width: 34px;
  background: var(--amber);
}

.quick-search-panel {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  margin-top: -34px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

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

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

.quick-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: #92400e;
  background: #fffbeb;
  font-weight: 700;
}

.section-block {
  margin-top: 56px;
}

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

.section-head h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.1;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  color: #d97706;
  font-weight: 800;
}

.grid {
  display: grid;
  gap: 18px;
}

.cards-six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.cards-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.cards-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.card-link {
  display: block;
  height: 100%;
}

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #374151);
}

.movie-card.compact .poster-wrap,
.movie-card.standard .poster-wrap {
  aspect-ratio: 3 / 4;
}

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

.movie-card:hover img,
.category-tile:hover img,
.compact-item:hover img {
  transform: scale(1.06);
}

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.68));
}

.score-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  background: rgba(245, 158, 11, 0.95);
}

.score-badge {
  right: 10px;
  top: 10px;
}

.rank-badge {
  left: 10px;
  top: 10px;
  background: rgba(17, 24, 39, 0.82);
}

.card-body {
  padding: 14px;
}

.card-body h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 1rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card.featured .card-body h3 {
  font-size: 1.2rem;
}

.card-body p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row,
.tag-row {
  gap: 8px;
  color: #6b7280;
  font-size: 0.78rem;
}

.tag-row {
  margin-top: 9px;
}

.tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #92400e;
  background: #fffbeb;
}

.warm-block {
  padding: 32px;
  border-radius: 28px;
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
  box-shadow: var(--shadow);
}

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

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

.category-tile {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: 24px;
  color: #ffffff;
  box-shadow: var(--shadow);
}

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

.tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.78));
}

.tile-title,
.tile-desc {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 2;
}

.tile-title {
  bottom: 46px;
  font-size: 1.25rem;
  font-weight: 900;
}

.tile-desc {
  bottom: 20px;
  color: #e5e7eb;
  font-size: 0.9rem;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

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

.compact-item {
  display: grid;
  grid-template-columns: auto 90px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.compact-item img {
  width: 90px;
  height: 62px;
  object-fit: cover;
  border-radius: 12px;
  background: #111827;
  transition: transform 0.35s ease;
}

.compact-info {
  min-width: 0;
}

.compact-info strong {
  display: block;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-info small {
  color: var(--muted);
}

.list-rank {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-weight: 900;
}

.page-hero {
  color: #ffffff;
  padding: 68px 0;
}

.page-hero h1 {
  max-width: 900px;
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.page-hero p:last-child {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}

.page-hero.amber {
  background: linear-gradient(120deg, #d97706, #f97316);
}

.page-hero.purple {
  background: linear-gradient(120deg, #7c3aed, #db2777);
}

.page-hero.dark {
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.34), transparent 30%), linear-gradient(120deg, #111827, #374151);
}

.page-hero.blue {
  background: linear-gradient(120deg, #2563eb, #4f46e5);
}

.filter-panel {
  margin-top: -26px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

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

.empty-state {
  margin-top: 24px;
  padding: 36px;
  border-radius: 22px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
}

.movie-card.hidden {
  display: none;
}

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

.rank-side,
.side-card,
.detail-card {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.rank-side,
.side-card {
  position: sticky;
  top: 86px;
  padding: 20px;
}

.rank-side h2,
.side-card h2 {
  margin: 0 0 16px;
  color: #111827;
}

.player-section {
  background: #050505;
  padding: 20px 0 0;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 8px 0 18px;
  color: #d1d5db;
  font-size: 0.92rem;
}

.crumbs a:hover {
  color: #fbbf24;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  background: #000000;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.36);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.28), rgba(0, 0, 0, 0.58));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 18px 42px rgba(249, 115, 22, 0.38);
  font-size: 2rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
  margin-top: 32px;
}

.detail-card {
  padding: 28px;
}

.detail-head {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  align-items: start;
}

.detail-head img {
  width: 190px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  background: #111827;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.detail-head h1 {
  margin: 0 0 12px;
  color: #111827;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
}

.detail-line {
  margin: 0 0 16px;
  color: #4b5563;
  font-size: 1.08rem;
}

.detail-meta span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.88rem;
}

.detail-meta span {
  color: #374151;
  background: #f3f4f6;
}

.detail-meta span:first-child {
  color: #92400e;
  background: #fffbeb;
  font-weight: 900;
}

.detail-tags {
  margin-top: 14px;
}

.detail-tags span {
  color: #5b21b6;
  background: #f5f3ff;
}

.content-block {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.content-block h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 1.35rem;
}

.content-block p {
  margin: 0;
  color: #374151;
  white-space: pre-line;
}

.site-footer {
  margin-top: 72px;
  color: #d1d5db;
  background: linear-gradient(120deg, #1f2937, #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  padding: 42px 0;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 1.1rem;
}

.site-footer p {
  margin: 0;
  color: #cbd5e1;
}

.footer-links {
  display: grid;
  gap: 9px;
}

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

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

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

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

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

  .rank-side,
  .side-card {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero-carousel {
    min-height: 620px;
    height: 76vh;
  }

  .hero-content {
    padding-bottom: 86px;
  }

  .quick-search-panel,
  .search-strip,
  .split-section,
  .filter-grid,
  .footer-grid,
  .detail-head {
    grid-template-columns: 1fr;
  }

  .quick-search-panel {
    margin-top: 18px;
  }

  .cards-six,
  .cards-five,
  .cards-four,
  .category-grid,
  .category-grid.large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .warm-block {
    padding: 22px;
  }

  .detail-head img {
    width: 150px;
  }
}

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

  .hero-control {
    display: none;
  }

  .hero-meta,
  .hero-tags {
    gap: 7px;
  }

  .cards-six,
  .cards-five,
  .cards-four,
  .category-grid,
  .category-grid.large {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .card-body {
    padding: 11px;
  }

  .card-body p {
    display: none;
  }

  .compact-item {
    grid-template-columns: auto 76px 1fr;
  }

  .compact-item img {
    width: 76px;
    height: 56px;
  }

  .page-hero {
    padding: 48px 0;
  }

  .detail-card {
    padding: 18px;
  }

  .player-frame {
    border-radius: 18px;
  }
}
