:root {
  --bg: #f9fafb;
  --paper: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --orange: #ea580c;
  --blue: #2563eb;
  --cyan: #0891b2;
  --dark: #111827;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark,
.footer-brand span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 14px 24px rgba(245, 158, 11, 0.28);
}

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

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

.nav-link,
.quick-cats a {
  color: #4b5563;
  text-decoration: none;
  border-radius: 12px;
  transition: 0.2s ease;
}

.nav-link {
  padding: 10px 14px;
  font-weight: 700;
}

.nav-link:hover,
.nav-link.active,
.quick-cats a:hover {
  color: #92400e;
  background: #fef3c7;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--amber-dark);
  background: #fffbeb;
}

.quick-cats {
  display: flex;
  gap: 10px;
  padding: 0 0 12px;
  overflow-x: auto;
}

.quick-cats a {
  flex: 0 0 auto;
  padding: 7px 12px;
  font-size: 14px;
  background: #f9fafb;
}

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

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

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

.hero-bg,
.hero-bg img,
.hero-bg span {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.05);
}

.hero-bg span {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.16));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 360px;
  align-items: center;
  gap: 52px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 14px;
  color: #fbbf24;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 20px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-desc {
  max-width: 720px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: 20px;
  line-height: 1.8;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.hero-meta span,
.detail-meta span {
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 700;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 18px 28px rgba(234, 88, 12, 0.24);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 34px rgba(234, 88, 12, 0.32);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.24);
}

.hero-poster {
  display: block;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  transform: rotate(1deg);
}

.hero-poster img {
  aspect-ratio: 3 / 4.15;
  object-fit: cover;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.hero-dot.active {
  width: 34px;
  background: #f59e0b;
}

.search-band {
  padding: 28px 0;
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

.search-shell {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 520px);
  gap: 24px;
  align-items: center;
}

.search-shell h2 {
  margin: 0 0 6px;
  font-size: 26px;
}

.search-shell p {
  margin: 0;
  color: var(--muted);
}

.search-form,
.inline-filter {
  display: flex;
  gap: 10px;
}

.search-form input,
.inline-filter input {
  flex: 1;
  min-width: 0;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 16px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.search-form button,
.inline-filter button,
.filter-tools button {
  height: 52px;
  border-radius: 16px;
  padding: 0 20px;
  color: #fff;
  background: var(--amber);
  font-weight: 800;
}

.section-block {
  padding: 72px 0;
}

.bg-white {
  background: #fff;
}

.bg-gray {
  background: #f3f4f6;
}

.bg-warm {
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

.gradient-strip {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #0891b2);
}

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

.section-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.2;
  font-weight: 900;
}

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

.gradient-strip .section-head h2,
.gradient-strip .section-head p,
.dark-head h2,
.dark-head p {
  color: #fff;
}

.section-more,
.text-link {
  color: var(--amber-dark);
  font-weight: 800;
  text-decoration: none;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  transition: 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.13);
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

.poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: 0.32s ease;
}

.movie-card:hover .poster img,
.wide-card:hover img,
.rank-row:hover img {
  transform: scale(1.06);
}

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
  font-size: 13px;
  font-weight: 800;
}

.card-body {
  padding: 18px;
}

.card-title {
  display: -webkit-box;
  min-height: 50px;
  overflow: hidden;
  color: #111827;
  text-decoration: none;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 900;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-title:hover,
.wide-title:hover,
.rank-info a:hover {
  color: var(--amber-dark);
}

.card-meta {
  margin: 9px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.card-desc {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 14px;
  overflow: hidden;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.tag-list span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 12px;
  font-weight: 800;
}

.movie-card-small .card-body {
  padding: 14px;
}

.movie-card-small .card-title {
  min-height: 44px;
  font-size: 16px;
}

.movie-card-small .card-desc {
  display: none;
}

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

.category-tile,
.category-panel {
  min-height: 150px;
  padding: 24px;
  border-radius: 24px;
  text-decoration: none;
  background: linear-gradient(135deg, #fff, #fffbeb);
  border: 1px solid #fde68a;
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.1);
  transition: 0.2s ease;
}

.category-tile:hover,
.category-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(245, 158, 11, 0.18);
}

.category-tile strong,
.category-panel span {
  display: block;
  margin-bottom: 10px;
  color: #111827;
  font-size: 21px;
  font-weight: 900;
}

.category-tile span,
.category-panel p {
  margin: 0;
  color: #6b7280;
  line-height: 1.7;
}

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

.wide-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  transition: 0.2s ease;
}

.wide-card:hover {
  background: rgba(255, 255, 255, 0.2);
}

.wide-poster {
  overflow: hidden;
}

.wide-poster img {
  height: 100%;
  min-height: 238px;
  object-fit: cover;
  transition: 0.3s ease;
}

.wide-body {
  padding: 22px;
}

.wide-title {
  display: block;
  margin-bottom: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 900;
}

.wide-body p,
.wide-meta {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0;
  color: #fff;
  background: linear-gradient(135deg, #d97706, #ea580c);
}

.page-hero:after {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.page-hero .container-wide {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 900px;
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.8;
}

.category-hero {
  background: linear-gradient(135deg, #92400e, #f59e0b);
}

.rank-hero {
  background: linear-gradient(135deg, #111827, #7c2d12);
}

.search-hero {
  background: linear-gradient(135deg, #1d4ed8, #0891b2);
}

.inline-filter {
  max-width: 620px;
  margin-top: 28px;
}

.filter-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-tools button {
  color: #374151;
  background: #fff;
  border: 1px solid var(--line);
}

.filter-tools button.active,
.filter-tools button:hover {
  color: #fff;
  background: var(--amber);
  border-color: var(--amber);
}

.empty-tip {
  display: none;
  padding: 56px 0;
  color: var(--muted);
  text-align: center;
  font-size: 18px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 76px 112px 1fr;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.rank-num {
  color: #f59e0b;
  text-align: center;
  text-decoration: none;
  font-size: 28px;
  font-weight: 900;
}

.rank-cover {
  overflow: hidden;
  border-radius: 14px;
}

.rank-cover img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: 0.3s ease;
}

.rank-info a {
  color: #111827;
  text-decoration: none;
  font-size: 22px;
  font-weight: 900;
}

.rank-info p {
  margin: 8px 0;
  color: #4b5563;
  line-height: 1.7;
}

.rank-info span {
  color: var(--muted);
}

.detail-head {
  padding: 60px 0;
  color: #fff;
  background: radial-gradient(circle at top left, #92400e, transparent 36%), linear-gradient(135deg, #111827, #1f2937);
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 44px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.38);
}

.detail-cover img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.crumb {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  color: #fde68a;
}

.crumb a {
  color: #fde68a;
  text-decoration: none;
  font-weight: 800;
}

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
  font-weight: 900;
}

.detail-one {
  max-width: 880px;
  margin: 0 0 22px;
  color: #e5e7eb;
  font-size: 19px;
  line-height: 1.8;
}

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

.bg-black-block {
  background: #020617;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

.player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  background: #000;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  transition: 0.2s ease;
}

.player-start span {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  padding-left: 6px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 22px 46px rgba(245, 158, 11, 0.35);
  font-size: 42px;
}

.player-box.is-playing .player-start {
  opacity: 0;
  pointer-events: none;
}

.article-text {
  max-width: 900px;
}

.article-text h2 {
  margin: 0 0 18px;
  color: #111827;
  font-size: 30px;
  font-weight: 900;
}

.article-text h2:not(:first-child) {
  margin-top: 38px;
}

.article-text p {
  margin: 0 0 16px;
  color: #374151;
  font-size: 17px;
  line-height: 1.95;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
  padding: 54px 0;
}

.footer-brand {
  margin-bottom: 16px;
  color: #fff;
  font-size: 24px;
}

.site-footer p {
  max-width: 460px;
  margin: 0;
  color: #9ca3af;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
}

.site-footer li {
  margin: 0 0 10px;
}

.site-footer a {
  color: #d1d5db;
  text-decoration: none;
}

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

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

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

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 72px 0 96px;
  }

  .hero-poster {
    display: none;
  }

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

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

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

@media (max-width: 760px) {
  .brand-text {
    font-size: 20px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
  }

  .nav-menu.open {
    display: flex;
  }

  .quick-cats {
    padding-bottom: 10px;
  }

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

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 40px;
  }

  .hero-desc {
    font-size: 17px;
  }

  .search-shell,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .search-form,
  .inline-filter {
    flex-direction: column;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .featured-grid,
  .listing-grid,
  .compact-grid,
  .category-grid,
  .category-overview {
    grid-template-columns: 1fr;
  }

  .movie-card {
    border-radius: 18px;
  }

  .wide-card {
    grid-template-columns: 128px 1fr;
  }

  .wide-poster img {
    min-height: 198px;
  }

  .rank-row {
    grid-template-columns: 54px 86px 1fr;
    gap: 12px;
  }

  .rank-info a {
    font-size: 17px;
  }

  .rank-info p {
    display: none;
  }

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