:root {
  --bg: #fff7ed;
  --bg-soft: #fffbeb;
  --panel: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(251, 146, 60, 0.2);
  --amber: #f59e0b;
  --orange: #f97316;
  --rose: #f43f5e;
  --shadow: 0 24px 70px rgba(124, 45, 18, 0.16);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(
      circle at top left,
      rgba(251, 191, 36, 0.26),
      transparent 32rem
    ),
    linear-gradient(135deg, #fff7ed 0%, #fffbeb 42%, #fff1f2 100%);
  color: var(--ink);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(
    90deg,
    rgba(245, 158, 11, 0.98),
    rgba(249, 115, 22, 0.98),
    rgba(244, 63, 94, 0.98)
  );
  box-shadow: 0 12px 30px rgba(154, 52, 18, 0.24);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 1220px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #f97316;
  background: #fff;
  box-shadow: 0 10px 24px rgba(127, 29, 29, 0.18);
}

.brand-text {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link,
.mobile-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #fff7ed;
  transform: translateY(-1px);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  border: 0;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 14px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 21px;
  margin: 0 auto;
  background: #fff;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 8px 22px 18px;
  background: linear-gradient(
    180deg,
    rgba(234, 88, 12, 0.98),
    rgba(194, 65, 12, 0.98)
  );
}

.mobile-link {
  display: block;
  padding: 11px 0;
}

.hero-slider {
  position: relative;
  min-height: clamp(640px, 78vh, 820px);
  overflow: hidden;
  color: #fff;
  background: #111827;
}

.hero-track,
.hero-slide,
.hero-bg,
.hero-layer {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s ease;
}

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

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

.hero-layer {
  background:
    radial-gradient(
      circle at 76% 22%,
      rgba(251, 191, 36, 0.36),
      transparent 22rem
    ),
    linear-gradient(
      90deg,
      rgba(17, 24, 39, 0.92) 0%,
      rgba(17, 24, 39, 0.72) 44%,
      rgba(17, 24, 39, 0.26) 100%
    ),
    linear-gradient(0deg, rgba(17, 24, 39, 0.95), transparent 45%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: clamp(120px, 14vw, 190px) 24px 180px;
  margin-left: max(24px, calc((100vw - 1220px) / 2 + 24px));
}

.eyebrow {
  margin: 0 0 10px;
  color: #f59e0b;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 900;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.05;
  font-weight: 950;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.35);
}

.hero-desc {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

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

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  backdrop-filter: blur(14px);
}

.tag-row span {
  background: #fff7ed;
  color: #c2410c;
}

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

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.35);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(14px);
}

.hero-poster {
  position: absolute;
  right: max(24px, calc((100vw - 1220px) / 2 + 24px));
  top: 50%;
  z-index: 2;
  width: min(31vw, 365px);
  min-width: 260px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.42);
  transform: translateY(-50%) rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.hero-dot {
  width: 38px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.hero-dot.is-active {
  background: #fff;
}

.hero-search {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 34px;
  width: min(880px, calc(100% - 36px));
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.hero-search input,
.search-toolbar input,
.search-toolbar select,
.inline-filter input {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
}

.hero-search input {
  padding: 0 20px;
  min-height: 48px;
}

.hero-search button {
  min-width: 112px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(90deg, var(--amber), var(--orange));
}

.section-wrap,
.page-main {
  max-width: 1220px;
  margin: 0 auto;
  padding: 64px 24px;
}

.section-soft {
  max-width: none;
  padding-left: max(24px, calc((100vw - 1220px) / 2 + 24px));
  padding-right: max(24px, calc((100vw - 1220px) / 2 + 24px));
  background: linear-gradient(
    135deg,
    rgba(255, 247, 237, 0.78),
    rgba(255, 241, 242, 0.78)
  );
}

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

.section-head.compact {
  display: block;
}

.section-head h2,
.panel-title h2,
.page-hero h1,
.detail-copy h1,
.detail-article h2 {
  margin: 0;
  color: #111827;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-head h2,
.panel-title h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.section-head a,
.text-link {
  color: #ea580c;
  font-weight: 900;
}

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

.catalog-grid {
  align-items: start;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid rgba(251, 146, 60, 0.18);
  box-shadow: 0 12px 32px rgba(124, 45, 18, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  content-visibility: auto;
  contain-intrinsic-size: 420px;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111827;
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 54%);
  opacity: 0.88;
}

.duration-badge,
.play-badge {
  position: absolute;
  z-index: 2;
  color: #fff;
  font-weight: 900;
}

.duration-badge {
  left: 12px;
  bottom: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  font-size: 0.76rem;
}

.play-badge {
  right: 12px;
  bottom: 11px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--orange));
}

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

.card-meta,
.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.movie-card h3 {
  margin: 8px 0 7px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: #ea580c;
}

.movie-card p {
  min-height: 3.2em;
  margin: 0 0 12px;
  color: #4b5563;
  font-size: 0.93rem;
}

.score-row {
  margin-top: 13px;
  color: #c2410c;
}

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

.category-card,
.category-overview,
.rank-panel,
.detail-article,
.detail-aside > .rank-panel {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(251, 146, 60, 0.18);
  box-shadow: 0 16px 44px rgba(124, 45, 18, 0.09);
}

.category-card {
  padding: 22px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

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

.category-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 16px;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 950;
  background: linear-gradient(135deg, var(--amber), var(--rose));
}

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

.category-card p,
.category-overview p,
.page-hero p,
.detail-article p {
  color: #4b5563;
}

.category-samples {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.9rem;
}

.category-samples a {
  color: #c2410c;
  font-weight: 800;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

.rank-panel {
  padding: 22px;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: auto 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: #fff7ed;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.rank-item:hover {
  background: #ffedd5;
  transform: translateX(4px);
}

.rank-item img {
  width: 72px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-num {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-size: 0.8rem;
  font-weight: 950;
}

.rank-copy {
  min-width: 0;
}

.rank-copy strong,
.rank-copy em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy strong {
  color: #111827;
  font-size: 0.95rem;
}

.rank-copy em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.rank-item b {
  color: #d97706;
  font-size: 0.86rem;
}

.page-main {
  min-height: 72vh;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 34px;
  padding: clamp(38px, 8vw, 72px);
  border-radius: 34px;
  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(251, 191, 36, 0.35),
      transparent 18rem
    ),
    linear-gradient(135deg, #fff, #fff7ed 48%, #fff1f2);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
}

.page-hero p {
  max-width: 740px;
  margin: 14px 0 0;
  font-size: 1.05rem;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #9a3412;
  font-size: 0.92rem;
  font-weight: 800;
}

.crumbs a:hover {
  color: #ea580c;
}

.inline-filter,
.search-toolbar {
  margin-top: 26px;
}

.inline-filter input {
  max-width: 460px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(249, 115, 22, 0.22);
}

.search-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 170px;
  gap: 12px;
}

.search-toolbar input,
.search-toolbar select {
  min-height: 50px;
  padding: 0 17px;
  border: 1px solid rgba(249, 115, 22, 0.22);
}

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

.category-overview {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  padding: 24px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.category-overview h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.category-overview-copy p {
  margin: 0 0 16px;
}

.rank-layout {
  display: grid;
  gap: 28px;
}

.large-panel {
  padding: 26px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin-bottom: 34px;
  padding: clamp(24px, 5vw, 46px);
  border-radius: 34px;
  background:
    radial-gradient(
      circle at 82% 12%,
      rgba(244, 63, 94, 0.18),
      transparent 18rem
    ),
    linear-gradient(135deg, #fff, #fff7ed 55%, #ffedd5);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(124, 45, 18, 0.22);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-copy h1 {
  font-size: clamp(2.1rem, 5vw, 4.25rem);
  line-height: 1.08;
}

.lead {
  max-width: 820px;
  margin: 18px 0 0;
  color: #4b5563;
  font-size: 1.15rem;
}

.detail-tags span {
  color: #c2410c;
  background: #ffedd5;
}

.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 24px;
}

.detail-stats span {
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  color: #b45309;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(124, 45, 18, 0.08);
}

.player-section {
  margin-bottom: 42px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 30px;
  background: #0f172a;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.3);
}

.movie-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0f172a;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: linear-gradient(
    0deg,
    rgba(15, 23, 42, 0.46),
    rgba(15, 23, 42, 0.15)
  );
}

.player-overlay strong {
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  font-size: 1.05rem;
}

.play-circle {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 20px 54px rgba(249, 115, 22, 0.42);
  font-size: 2rem;
}

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

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

.detail-article {
  padding: clamp(22px, 4vw, 34px);
}

.detail-article h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.6rem;
}

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

.detail-article p {
  margin: 0;
  font-size: 1.02rem;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff7ed;
}

.info-list dt {
  color: #9a3412;
  font-weight: 900;
}

.info-list dd {
  margin: 0;
  color: #374151;
}

.related-section {
  padding-left: 0;
  padding-right: 0;
}

.site-footer {
  margin-top: 40px;
  background: #111827;
  color: #d1d5db;
}

.footer-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 42px 24px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand .brand-mark {
  color: #111827;
}

.footer-inner p {
  max-width: 560px;
  margin: 14px 0 0;
  color: #9ca3af;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-weight: 800;
}

.footer-links a:hover {
  color: #f59e0b;
}

@media (max-width: 1080px) {
  .main-nav {
    gap: 14px;
  }

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

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

  .hero-poster {
    opacity: 0.45;
    right: 22px;
  }
}

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

  .menu-toggle {
    display: flex;
  }

  .mobile-nav.is-open {
    display: block;
  }

  .hero-copy {
    margin-left: 0;
    padding-left: 22px;
    padding-right: 22px;
  }

  .hero-poster {
    display: none;
  }

  .movie-grid,
  .small-grid,
  .category-grid,
  .rank-list.two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-overview,
  .detail-hero {
    grid-template-columns: 1fr;
  }

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

  .search-toolbar {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .header-inner {
    height: 62px;
    padding: 0 16px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .hero-slider {
    min-height: 700px;
  }

  .hero-search {
    grid-template-columns: 1fr;
    border-radius: 26px;
  }

  .hero-search input {
    min-height: 46px;
    padding: 0 14px;
  }

  .hero-search button {
    min-height: 44px;
    margin-top: 8px;
  }

  .section-wrap,
  .page-main {
    padding: 42px 16px;
  }

  .section-head {
    display: block;
  }

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

  .rank-item {
    grid-template-columns: auto 64px minmax(0, 1fr);
  }

  .rank-item b {
    display: none;
  }

  .page-hero,
  .detail-hero,
  .player-frame {
    border-radius: 24px;
  }

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