:root {
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #f8fafc;
  --line: #e5e7eb;
  --amber: #f59e0b;
  --orange: #f97316;
  --rose: #f43f5e;
  --dark: #111827;
  --shadow: 0 22px 45px rgba(15, 23, 42, 0.12);
}

body {
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 34%, #f9fafb 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
  background: linear-gradient(135deg, #fed7aa, #fecdd3);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--amber), var(--orange), var(--rose));
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.28);
}

.nav-wrap {
  max-width: 1240px;
  margin: 0 auto;
  height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 22px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

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

.nav-link,
.mobile-nav a {
  color: #ffffff;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  color: #ffffff;
  font-size: 24px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
}

.mobile-nav {
  display: none;
  padding: 8px 20px 18px;
  background: linear-gradient(180deg, #ea580c, #f97316);
}

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

.hero-carousel {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 5s ease;
}

.hero-slide.active .hero-bg {
  transform: scale(1.12);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.58), rgba(17, 24, 39, 0.18)), linear-gradient(0deg, rgba(17, 24, 39, 0.76), transparent 52%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 9vh 20px 14vh;
  margin: 0 auto;
  transform: translateX(-220px);
  color: #ffffff;
}

.eyebrow {
  color: #f59e0b;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-content h1 {
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.05em;
  margin-bottom: 20px;
  text-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
}

.hero-text {
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
  max-width: 670px;
}

.hero-tags,
.detail-meta,
.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin: 22px 0;
}

.hero-tags span,
.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.hero-actions,
.detail-tags,
.category-chips,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.primary-btn,
.ghost-btn,
.global-search button,
.filter-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.global-search button,
.filter-toolbar button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--amber), var(--orange), var(--rose));
  box-shadow: 0 16px 32px rgba(249, 115, 22, 0.28);
}

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.primary-btn:hover,
.ghost-btn:hover,
.global-search button:hover,
.filter-toolbar button:hover {
  transform: translateY(-2px);
}

.hero-control {
  position: absolute;
  z-index: 4;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.62);
  backdrop-filter: blur(12px);
}

.hero-control button {
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.hero-dot.active {
  width: 28px;
  border-radius: 999px;
  background: #ffffff;
}

main,
.page-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 20px 58px;
}

.hero-carousel + .search-panel,
.hero-carousel + .search-panel + .content-section,
.hero-carousel + .search-panel + .content-section + .split-section,
.hero-carousel + .search-panel + .content-section + .split-section + .content-section {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

.search-panel,
.page-hero,
.detail-hero,
.player-section,
.article-section,
.rank-card,
.spotlight-list,
.category-card a {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(229, 231, 235, 0.84);
  box-shadow: var(--shadow);
  border-radius: 28px;
}

.search-panel {
  margin: -64px auto 34px;
  position: relative;
  z-index: 6;
  padding: 26px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 20px;
}

.search-panel h2,
.page-hero h1,
.section-title-row h2,
.detail-copy h1,
.article-section h2 {
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.04em;
}

.search-panel h2,
.section-title-row h2,
.article-section h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.global-search,
.filter-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.global-search input,
.filter-toolbar input,
.filter-toolbar select {
  flex: 1 1 230px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  background: #ffffff;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.global-search input:focus,
.filter-toolbar input:focus,
.filter-toolbar select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.category-chips {
  grid-column: 1 / -1;
}

.category-chips a,
.detail-tags a,
.card-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-weight: 800;
  font-size: 13px;
}

.content-section {
  margin: 42px 0;
}

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

.section-title-row.compact {
  align-items: center;
}

.section-more {
  color: #ea580c;
  font-weight: 900;
}

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

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

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

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

.movie-card {
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.15);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

.poster img,
.compact-card img,
.ranking-row img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster img {
  transition: transform 0.35s ease;
}

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

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

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.92);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 14px;
}

.card-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-body h3 {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
  color: #111827;
  margin-bottom: 8px;
}

.card-body p {
  min-height: 44px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 22px;
  margin: 42px 0;
}

.rank-card,
.spotlight-list {
  padding: 24px;
}

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

.rank-list a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #fff7ed;
}

.rank-list span,
.rank-num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber), var(--rose));
}

.rank-list strong {
  font-weight: 900;
  color: #111827;
}

.rank-list em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.compact-card img {
  aspect-ratio: 2 / 3;
  border-radius: 12px;
}

.compact-card strong,
.compact-card em {
  display: block;
}

.compact-card strong {
  font-weight: 900;
  color: #111827;
}

.compact-card em {
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.page-hero {
  padding: 42px;
  margin: 12px 0 32px;
}

.subtle-hero,
.category-hero,
.ranking-hero {
  background: radial-gradient(circle at 12% 10%, rgba(251, 191, 36, 0.24), transparent 30%), radial-gradient(circle at 86% 18%, rgba(244, 63, 94, 0.18), transparent 34%), #ffffff;
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  margin-bottom: 14px;
}

.page-hero p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
  max-width: 760px;
}

.page-hero .filter-toolbar {
  margin-top: 24px;
}

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

.category-card a {
  display: block;
  padding: 26px;
  min-height: 220px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card a:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 54px rgba(15, 23, 42, 0.16);
}

.category-card h2 {
  font-size: 26px;
  font-weight: 900;
  color: #111827;
  margin-bottom: 12px;
}

.category-card p {
  color: var(--muted);
  line-height: 1.75;
}

.category-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.category-preview span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff7ed;
  color: #ea580c;
  font-size: 12px;
  font-weight: 800;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  margin: 8px 0 18px;
  font-weight: 700;
}

.breadcrumb a {
  color: #ea580c;
}

.detail-hero {
  padding: 26px;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.18);
}

.detail-copy h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  margin-bottom: 16px;
}

.lead {
  font-size: 19px;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 18px;
}

.detail-meta {
  margin-bottom: 16px;
}

.detail-meta span {
  background: #111827;
}

.detail-tags {
  margin-bottom: 22px;
}

.player-section {
  padding: 24px;
  margin-top: 30px;
}

.player-shell {
  position: relative;
  background: #000000;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.28);
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000000;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  color: #ffffff;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.26), rgba(0, 0, 0, 0.65));
  z-index: 2;
}

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

.play-overlay span {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding-left: 5px;
  font-size: 30px;
  background: linear-gradient(135deg, var(--amber), var(--rose));
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.38);
}

.play-overlay strong {
  font-size: 18px;
  font-weight: 900;
}

.player-state {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 3;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
}

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

.article-section {
  padding: 30px;
}

.article-section h2 {
  margin: 18px 0 12px;
}

.article-section h2:first-child {
  margin-top: 0;
}

.article-section p {
  color: #374151;
  line-height: 2;
  font-size: 17px;
}

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

.ranking-row a {
  display: grid;
  grid-template-columns: 50px 62px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px 14px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.ranking-row img {
  aspect-ratio: 2 / 3;
  border-radius: 12px;
}

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info strong {
  font-size: 17px;
  font-weight: 900;
}

.rank-info em {
  margin-top: 3px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.ranking-row b {
  color: #ea580c;
}

.no-result {
  margin: 28px 0;
  padding: 24px;
  text-align: center;
  border-radius: 18px;
  background: #fff7ed;
  color: #c2410c;
  font-weight: 900;
}

.site-footer {
  background: #111827;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 42px;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

@media (max-width: 1120px) {
  .hero-content {
    transform: none;
  }

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

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

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .search-panel,
  .split-section,
  .detail-hero {
    grid-template-columns: 1fr;
  }

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

  .detail-poster {
    max-width: 320px;
  }
}

@media (max-width: 620px) {
  .nav-wrap {
    padding: 0 14px;
  }

  .brand {
    font-size: 18px;
  }

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

  .hero-content {
    padding: 8vh 18px 14vh;
  }

  .hero-actions,
  .global-search,
  .filter-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  main,
  .page-main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .search-panel,
  .page-hero,
  .detail-hero,
  .player-section,
  .article-section,
  .rank-card,
  .spotlight-list {
    border-radius: 22px;
    padding: 20px;
  }

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

  .ranking-row a {
    grid-template-columns: 42px 54px minmax(0, 1fr);
  }

  .ranking-row b {
    display: none;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
