:root {
  --autumn-50: #fff7ed;
  --autumn-100: #ffedd5;
  --autumn-200: #fed7aa;
  --autumn-500: #f97316;
  --autumn-600: #ea580c;
  --autumn-700: #c2410c;
  --leaf-50: #fefce8;
  --leaf-500: #eab308;
  --text: #1f2937;
  --muted: #6b7280;
  --panel: #ffffff;
  --shadow: 0 20px 45px rgba(124, 45, 18, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, 0.20), transparent 28rem),
    linear-gradient(135deg, var(--autumn-50), var(--leaf-50) 55%, #ffffff);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(154, 52, 18, 0.10);
}

.top-strip {
  background: linear-gradient(135deg, #f97316, #ea580c, #fb923c);
  color: #ffffff;
  padding: 8px 0;
  text-align: center;
  font-size: 14px;
}

.main-nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ea580c, #fb923c);
  border-radius: 16px;
  box-shadow: 0 14px 28px rgba(234, 88, 12, 0.24);
}

.brand-text strong {
  display: block;
  color: var(--autumn-700);
  font-size: 24px;
  line-height: 1.1;
}

.brand-text em {
  display: block;
  color: var(--autumn-500);
  font-style: normal;
  font-size: 12px;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-weight: 600;
}

.nav-links a {
  color: #374151;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--autumn-600);
}

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

.nav-search input,
.search-panel input,
.filter-panel input,
.filter-panel select,
.search-panel select {
  height: 42px;
  border: 2px solid var(--autumn-200);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--text);
  background: #ffffff;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.search-panel input:focus,
.filter-panel input:focus,
.filter-panel select:focus,
.search-panel select:focus {
  border-color: var(--autumn-500);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.nav-search button,
.filter-panel button,
.search-panel button,
.btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  cursor: pointer;
  background: #ffffff;
  color: var(--autumn-700);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--autumn-200);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button:hover,
.filter-panel button:hover,
.search-panel button:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(234, 88, 12, 0.18);
}

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ea580c, #fb923c);
  box-shadow: 0 16px 34px rgba(234, 88, 12, 0.28);
}

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

.btn.small {
  padding: 9px 16px;
  font-size: 14px;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  background: var(--autumn-100);
  color: var(--autumn-700);
  font-size: 22px;
  padding: 8px 12px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 42px;
  align-items: center;
  padding: 70px max(32px, calc((100vw - 1180px) / 2)) 84px;
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(110deg, rgba(17, 24, 39, 0.92), rgba(124, 45, 18, 0.72), rgba(17, 24, 39, 0.74)),
    var(--hero-image),
    linear-gradient(135deg, #f97316, #ea580c, #facc15);
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
  transform: scale(1.03);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.18), transparent 22rem),
    radial-gradient(circle at 78% 70%, rgba(250, 204, 21, 0.22), transparent 20rem);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--leaf-50);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  backdrop-filter: blur(14px);
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.8;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.tag-row span {
  background: var(--autumn-100);
  color: var(--autumn-700);
}

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

.hero-poster {
  align-self: center;
  aspect-ratio: 3 / 4;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg, #f97316, #ea580c, #facc15);
}

.hero-poster img,
.poster-frame img,
.mini-cover img,
.rank-cover img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

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

.page-section {
  padding: 54px 0;
}

.card-panel,
.cta-panel,
.category-overview-card,
.content-card,
.side-card,
.player-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(254, 215, 170, 0.85);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-panel,
.cta-panel {
  padding: 28px;
}

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

.section-heading h2,
.page-hero h1,
.content-card h2,
.side-card h2,
.cta-panel h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.section-heading p,
.page-hero p,
.cta-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-more {
  color: var(--autumn-600);
  font-weight: 800;
}

.movie-grid,
.featured-grid,
.category-grid,
.mini-grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

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

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(124, 45, 18, 0.12);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(124, 45, 18, 0.18);
}

.poster-frame,
.detail-poster,
.mini-cover,
.rank-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.90), rgba(234, 88, 12, 0.92), rgba(250, 204, 21, 0.88));
}

.poster-frame {
  aspect-ratio: 3 / 4;
}

.poster-frame::after,
.detail-poster::after,
.mini-cover::after,
.rank-cover::after,
.hero-poster::after {
  content: attr(data-title);
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 16px;
  color: #ffffff;
  text-align: center;
  font-weight: 900;
  line-height: 1.45;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.92), rgba(194, 65, 12, 0.90));
}

.cover-missing::after {
  display: grid;
}

.cover-missing img {
  display: none;
}

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

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

.poster-badge,
.poster-duration {
  position: absolute;
  z-index: 2;
  top: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(234, 88, 12, 0.92);
}

.poster-badge {
  left: 10px;
}

.poster-duration {
  right: 10px;
  background: rgba(17, 24, 39, 0.72);
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--autumn-600);
}

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

.movie-card-list {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
}

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

.category-tile {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--autumn-200);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
}

.tile-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  height: 96px;
  overflow: hidden;
  border-radius: 16px;
}

.tile-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #f97316, #facc15);
}

.category-tile strong {
  font-size: 20px;
  color: var(--autumn-700);
}

.category-tile em {
  color: var(--leaf-500);
  font-style: normal;
  font-weight: 800;
}

.category-tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.cta-panel {
  text-align: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ea580c, #fb923c);
}

.cta-panel h2,
.cta-panel p {
  color: #ffffff;
}

.cta-panel .btn {
  margin-top: 20px;
}

.page-hero {
  position: relative;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.18), transparent 20rem),
    linear-gradient(135deg, #9a3412, #ea580c, #fb923c);
}

.page-hero.compact {
  padding: 76px 0;
}

.page-hero h1 {
  margin-top: 18px;
  color: #ffffff;
}

.page-hero p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.overview-stack {
  display: grid;
  gap: 24px;
}

.category-overview-card {
  padding: 24px;
}

.category-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.category-overview-head h2 {
  margin: 0 0 8px;
  color: var(--autumn-700);
}

.category-overview-head p {
  margin: 0;
  color: var(--muted);
}

.mini-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: var(--autumn-50);
  transition: background 0.2s ease, transform 0.2s ease;
}

.mini-card:hover {
  background: var(--autumn-100);
  transform: translateY(-2px);
}

.mini-cover {
  width: 68px;
  height: 88px;
  border-radius: 12px;
}

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

.mini-info strong {
  color: var(--text);
  line-height: 1.35;
}

.mini-info em {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

.filter-panel,
.search-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px;
  margin-bottom: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.filter-panel input,
.search-panel input {
  min-width: 260px;
  flex: 1;
}

.result-count {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 700;
}

.rank-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.rank-row a {
  display: grid;
  grid-template-columns: 70px 78px minmax(0, 1fr) 110px;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(124, 45, 18, 0.10);
  transition: transform 0.2s ease;
}

.rank-row a:hover {
  transform: translateX(6px);
}

.rank-num {
  color: var(--autumn-600);
  font-size: 28px;
  font-weight: 900;
}

.rank-cover {
  width: 78px;
  height: 96px;
  border-radius: 14px;
}

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

.rank-main strong {
  margin-bottom: 8px;
  font-size: 18px;
}

.rank-main em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.5;
}

.rank-score {
  justify-self: end;
  color: var(--autumn-700);
  font-weight: 900;
}

.detail-hero {
  position: relative;
  min-height: 560px;
  padding: 46px 0 64px;
  color: #ffffff;
  background-image:
    linear-gradient(110deg, rgba(17, 24, 39, 0.94), rgba(154, 52, 18, 0.78), rgba(17, 24, 39, 0.90)),
    var(--detail-image),
    linear-gradient(135deg, #f97316, #ea580c, #facc15);
  background-size: cover;
  background-position: center;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.breadcrumbs a:hover {
  color: #ffffff;
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
}

.detail-info h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.05;
}

.detail-one-line {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.8;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.detail-meta-grid span {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.90);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

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

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
}

.detail-main,
.detail-side {
  display: grid;
  align-content: start;
  gap: 22px;
}

.player-card {
  padding: 16px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #111827;
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.62));
  cursor: pointer;
}

.player-card.is-playing .player-overlay {
  display: none;
}

.play-circle {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--autumn-700);
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
  font-size: 28px;
}

.player-status {
  min-height: 24px;
  padding: 10px 4px 0;
  color: var(--muted);
  font-size: 14px;
}

.content-card,
.side-card {
  padding: 24px;
}

.content-card h2,
.side-card h2 {
  font-size: 26px;
}

.content-card p {
  margin: 0;
  color: #374151;
  font-size: 17px;
  line-height: 2;
}

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

.site-footer {
  margin-top: 40px;
  padding: 38px 0;
  background: rgba(255, 255, 255, 0.82);
  border-top: 1px solid var(--autumn-200);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-grid strong {
  color: var(--autumn-700);
  font-size: 24px;
}

.footer-grid p {
  max-width: 640px;
  color: var(--muted);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--autumn-700);
  font-weight: 800;
}

.is-hidden {
  display: none !important;
}

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

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

  .nav-search {
    display: none;
  }

  .detail-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .top-strip {
    font-size: 12px;
  }

  .main-nav {
    min-height: 68px;
    flex-wrap: wrap;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding-bottom: 16px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 0;
    border-top: 1px solid var(--autumn-100);
  }

  .hero {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 42px 20px 72px;
  }

  .hero-poster {
    width: min(280px, 72vw);
    margin: 0 auto;
  }

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

  .movie-card-list {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .category-overview-head,
  .footer-grid {
    align-items: stretch;
    flex-direction: column;
  }

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

  .rank-score {
    grid-column: 3;
    justify-self: start;
  }

  .rank-cover {
    width: 58px;
    height: 76px;
  }

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

  .detail-poster {
    width: min(280px, 76vw);
  }

  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .filter-panel input,
  .search-panel input,
  .filter-panel select,
  .search-panel select,
  .filter-panel button,
  .search-panel button {
    width: 100%;
  }
}
