:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #fff7ed;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #f59e0b;
  --brand-dark: #d97706;
  --brand-strong: #ea580c;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.74), rgba(15, 23, 42, 0));
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.top-nav.nav-solid,
.top-nav.menu-open {
  color: var(--text);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px);
}

.nav-shell {
  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-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.34);
}

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

.desktop-nav a,
.mobile-nav a,
.footer-links a {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--brand-dark);
  background: rgba(245, 158, 11, 0.13);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.17);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.1);
}

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

main {
  min-height: 70vh;
}

.hero-section {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background: #111827;
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 35%, rgba(245, 158, 11, 0.38), transparent 34%), linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.55) 48%, rgba(15, 23, 42, 0.16));
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.65fr);
  align-items: center;
  gap: 54px;
  padding-top: 76px;
  color: #ffffff;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  font-weight: 700;
}

.hero-content h1 {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 950;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.72;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-light {
  color: var(--brand-dark);
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
}

.btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-feature-card {
  border-radius: 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
}

.hero-feature-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.hero-feature-body {
  padding: 20px;
}

.hero-feature-body h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.hero-feature-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

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

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

.hero-dots button.is-active {
  background: #ffffff;
}

.page-hero {
  padding: 142px 0 72px;
  color: #ffffff;
  background: radial-gradient(circle at 75% 15%, rgba(255, 255, 255, 0.18), transparent 26%), linear-gradient(135deg, #f59e0b, #ea580c 54%, #b45309);
}

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

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.12;
  font-weight: 950;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.75;
}

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

.section-soft {
  margin: 0;
  width: 100%;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
}

.section-soft .section {
  padding: 64px 0;
}

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

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  font-weight: 950;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-more {
  white-space: nowrap;
  color: var(--brand-dark);
  font-weight: 850;
}

.stats-grid,
.category-grid,
.movie-grid,
.zone-grid,
.rank-grid,
.related-grid {
  display: grid;
  gap: 22px;
}

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

.stat-card,
.category-card,
.search-panel,
.article-panel,
.rank-card {
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.stat-card {
  padding: 26px;
  text-align: center;
}

.stat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--brand-dark);
  background: #ffedd5;
  font-weight: 950;
}

.stat-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 28px;
}

.stat-card span,
.movie-meta-row,
.category-card p,
.rank-info p,
.detail-meta,
.breadcrumb {
  color: var(--muted);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #1f2937, #0f172a);
}

.movie-poster img {
  width: 100%;
  aspect-ratio: 3 / 4.15;
  object-fit: cover;
  transition: transform 0.55s ease;
}

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

.movie-year {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
  font-weight: 850;
  backdrop-filter: blur(10px);
}

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

.movie-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13px;
}

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.34;
  font-weight: 900;
}

.movie-card p {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 12px;
  color: var(--muted);
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.55;
}

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

.tag-list span,
.detail-tags span,
.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #b45309;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

.feature-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: stretch;
}

.feature-large .movie-poster img {
  aspect-ratio: 16 / 9;
}

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

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 142px 1fr;
}

.movie-card-horizontal .movie-poster img {
  height: 100%;
  aspect-ratio: auto;
}

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

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

.category-card {
  display: block;
  padding: 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  background: #fff7ed;
  box-shadow: var(--shadow);
}

.category-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 21px;
}

.category-card p {
  margin: 0;
  line-height: 1.6;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1.4fr 0.75fr 0.75fr;
  gap: 14px;
  margin-bottom: 26px;
  padding: 16px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

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

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

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

.rank-card {
  display: grid;
  grid-template-columns: 64px 110px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
}

.rank-num {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  font-size: 20px;
  font-weight: 950;
}

.rank-card img {
  width: 110px;
  height: 142px;
  object-fit: cover;
  border-radius: 16px;
  background: #111827;
}

.rank-info h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.rank-info p {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.6;
}

.detail-hero {
  padding: 132px 0 54px;
  color: #ffffff;
  background: radial-gradient(circle at 75% 20%, rgba(245, 158, 11, 0.35), transparent 30%), linear-gradient(135deg, #0f172a, #1e293b 55%, #431407);
}

.detail-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 36px;
  align-items: end;
}

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
  background: #111827;
}

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

.breadcrumb {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.detail-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.08;
  font-weight: 950;
}

.detail-intro {
  max-width: 760px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
}

.detail-meta span {
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

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

.player-wrap video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  outline: none;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 48%, rgba(245, 158, 11, 0.32), transparent 28%), rgba(2, 6, 23, 0.42);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-button {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  box-shadow: 0 20px 45px rgba(234, 88, 12, 0.35);
  cursor: pointer;
  font-size: 32px;
  transform: translateZ(0);
}

.player-status {
  min-height: 24px;
  margin-top: 12px;
  color: var(--muted);
}

.article-panel {
  padding: 28px;
}

.article-panel h2 {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 950;
}

.article-panel p {
  margin: 0 0 18px;
  color: #334155;
  line-height: 1.9;
}

.search-panel {
  padding: 24px;
  margin-bottom: 26px;
}

.search-controls {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr;
  gap: 14px;
}

.empty-note {
  padding: 36px;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  padding: 46px 0;
}

.footer-shell p {
  max-width: 620px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.58);
  text-align: center;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  display: none;
  border: 0;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  box-shadow: 0 16px 30px rgba(234, 88, 12, 0.28);
  cursor: pointer;
  z-index: 55;
}

.back-top.is-visible {
  display: block;
}

@media (max-width: 1024px) {
  .hero-content,
  .feature-layout,
  .detail-shell {
    grid-template-columns: 1fr;
  }

  .hero-feature-card {
    display: none;
  }

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

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

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

  .mobile-toggle {
    display: block;
  }

  .hero-section,
  .hero-content {
    min-height: 690px;
  }

  .hero-content {
    padding-top: 98px;
  }

  .section-heading,
  .footer-shell {
    align-items: start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .stats-grid,
  .movie-grid,
  .movie-grid.compact,
  .category-grid,
  .zone-grid,
  .filter-bar,
  .search-controls {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal,
  .rank-card {
    grid-template-columns: 1fr;
  }

  .rank-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .detail-shell {
    gap: 22px;
  }

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

  .play-button {
    width: 70px;
    height: 70px;
  }
}
