:root {
  --brand: #facc15;
  --brand-strong: #f59e0b;
  --brand-soft: #fef3c7;
  --ink: #111827;
  --muted: #6b7280;
  --line: rgba(17, 24, 39, 0.10);
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(250, 204, 21, 0.20), transparent 34rem),
    linear-gradient(135deg, #fffbeb 0%, #ffffff 42%, #fef3c7 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, #facc15 0%, #fde047 48%, #f59e0b 100%);
  box-shadow: 0 12px 35px rgba(146, 64, 14, 0.20);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 12px 28px rgba(120, 53, 15, 0.22);
}

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

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

.nav-link,
.mobile-nav-link {
  padding: 10px 15px;
  border-radius: 999px;
  font-weight: 800;
  color: rgba(17, 24, 39, 0.78);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #111827;
  background: rgba(255, 255, 255, 0.58);
  transform: translateY(-1px);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  padding: 0 16px 18px;
}

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

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-position: center;
  background-size: cover;
  transition: opacity 700ms ease;
}

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

.hero-content {
  position: relative;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: center;
  color: #ffffff;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #fde68a;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: #b45309;
}

.hero h1,
.page-hero h1,
.detail-hero h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero-summary,
.hero-copy p,
.page-hero p,
.detail-copy p {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
}

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

.hero-tags span,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #78350f;
  background: #fef3c7;
  font-size: 13px;
  font-weight: 800;
}

.tag.large {
  min-height: 34px;
  padding: 8px 14px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.btn-primary {
  color: #111827;
  background: linear-gradient(135deg, #facc15, #f59e0b);
  box-shadow: 0 16px 35px rgba(245, 158, 11, 0.32);
}

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

.hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
  transform: rotate(2deg);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-card span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.72);
  color: #ffffff;
  font-weight: 800;
  backdrop-filter: blur(14px);
}

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

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

.hero-dot.active {
  width: 36px;
  background: var(--brand);
}

.section {
  padding: 76px 0;
}

.lift-section {
  margin-top: -72px;
  position: relative;
  z-index: 5;
  padding-top: 0;
}

.quick-search-card,
.content-card,
.aside-card,
.player-card,
.category-overview-card,
.filter-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.quick-search-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: 24px;
  align-items: center;
  padding: 28px;
}

.quick-search-card h2,
.section-heading h2,
.content-card h2,
.aside-card h2,
.category-card h2,
.category-overview-card h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: -0.04em;
}

.quick-search {
  display: flex;
  gap: 10px;
}

.quick-search input,
.filter-search input,
.filter-selects select {
  width: 100%;
  min-height: 48px;
  border: 2px solid rgba(250, 204, 21, 0.26);
  border-radius: 16px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
}

.quick-search input {
  padding: 0 16px;
}

.quick-search button {
  min-width: 100px;
  border: 0;
  border-radius: 16px;
  color: #111827;
  background: var(--brand);
  font-weight: 900;
  cursor: pointer;
}

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

.section-link,
.text-link {
  display: inline-flex;
  align-items: center;
  color: #92400e;
  font-weight: 900;
}

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

.category-card,
.category-overview-main {
  display: block;
  height: 100%;
}

.category-card {
  padding: 22px;
  border: 1px solid rgba(250, 204, 21, 0.25);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(254, 243, 199, 0.88));
  box-shadow: 0 20px 50px rgba(120, 53, 15, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.category-card:hover,
.movie-card:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 70px rgba(120, 53, 15, 0.16);
}

.category-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 16px;
  background: #111827;
  color: var(--brand);
}

.category-card p,
.category-overview-card p,
.movie-card p,
.footer-grid p,
.filter-hint {
  color: var(--muted);
  line-height: 1.7;
}

.category-samples,
.category-overview-links {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 800;
  color: #92400e;
}

.soft-panel {
  background: rgba(255, 255, 255, 0.42);
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.movie-card.is-hidden-by-filter {
  display: none;
}

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: #fef3c7;
}

.movie-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 220ms ease;
}

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

.poster-shine {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.68));
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  background: var(--brand);
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.movie-body {
  padding: 14px;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  color: #92400e;
  font-size: 12px;
  font-weight: 900;
}

.movie-card h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.movie-card p {
  min-height: 72px;
  margin: 8px 0 12px;
  font-size: 13px;
}

.movie-card.compact p {
  min-height: auto;
}

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

.page-shell {
  min-height: 70vh;
}

.page-hero,
.detail-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.32), transparent 26rem),
    linear-gradient(135deg, #111827 0%, #1f2937 58%, #92400e 100%);
}

.small-hero,
.category-hero,
.ranking-hero {
  padding: 88px 0;
}

.page-hero h1 {
  margin-bottom: 18px;
}

.page-hero p {
  max-width: 720px;
}

.filter-panel {
  margin: -34px 0 34px;
  padding: 22px;
  position: relative;
  z-index: 4;
}

.filter-search {
  position: relative;
  margin-bottom: 16px;
}

.filter-search span {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #92400e;
  font-weight: 900;
}

.filter-search input {
  padding: 0 18px 0 44px;
}

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

.filter-selects label {
  display: grid;
  gap: 7px;
  color: #374151;
  font-size: 13px;
  font-weight: 900;
}

.filter-selects select {
  padding: 0 12px;
}

.filter-hint {
  margin: 14px 0 0;
  font-size: 13px;
}

.catalog-grid {
  padding-bottom: 72px;
}

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

.category-overview-links a {
  padding: 8px 0;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.detail-hero {
  min-height: 560px;
  background-position: center;
  background-size: cover;
}

.detail-hero-grid {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: center;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 800;
}

.detail-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
}

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

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

.player-card {
  padding: 14px;
}

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.22), rgba(17, 24, 39, 0.72));
  cursor: pointer;
}

.play-overlay.is-hidden {
  display: none;
}

.play-button {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  background: var(--brand);
  font-size: 32px;
  box-shadow: 0 20px 60px rgba(250, 204, 21, 0.34);
}

.play-overlay strong {
  padding: 0 18px;
  text-align: center;
  font-size: 20px;
}

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

.content-card p,
.aside-card dd {
  color: #4b5563;
  line-height: 1.9;
}

.wrap-tags {
  margin-top: 16px;
}

.aside-card dl {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
}

.aside-card dl div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.aside-card dt {
  color: #92400e;
  font-weight: 900;
}

.aside-card dd {
  margin: 0;
}

.detail-switch {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.highlight-card {
  background: linear-gradient(145deg, #111827, #78350f);
  color: #ffffff;
}

.highlight-card a {
  display: block;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 900;
}

.related-section {
  padding-top: 22px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.80);
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
  padding: 50px 0;
}

.footer-brand {
  color: #ffffff;
  font-size: 24px;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 18px;
}

.footer-grid a {
  display: block;
  margin: 9px 0;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  text-align: center;
  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
}

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

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

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

  .menu-toggle {
    display: block;
  }

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

  .hero-content,
  .quick-search-card,
  .detail-hero-grid,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .detail-cover {
    width: min(280px, 100%);
    margin: 0 auto;
  }

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

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

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

  .header-inner {
    height: 66px;
  }

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

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

  .hero-copy p,
  .page-hero p,
  .detail-copy p {
    font-size: 16px;
  }

  .section {
    padding: 52px 0;
  }

  .quick-search,
  .section-heading,
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-selects,
  .category-grid,
  .category-overview-grid,
  .movie-grid,
  .ranking-strip {
    grid-template-columns: 1fr;
  }

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

  .movie-poster img {
    height: 100%;
    min-height: 174px;
  }

  .movie-card p {
    min-height: auto;
  }

  .play-button {
    width: 64px;
    height: 64px;
    font-size: 26px;
  }
}
