:root {
  --bg: #fffaf0;
  --paper: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #f1e7d8;
  --amber: #d97706;
  --orange: #f97316;
  --deep: #111827;
  --soft: #fff7ed;
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.15);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fff7ed 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96));
  border-bottom: 1px solid rgba(217, 119, 6, 0.14);
  box-shadow: 0 10px 30px rgba(120, 53, 15, 0.08);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #b45309, #f97316);
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.32);
  font-weight: 900;
}

.brand-text strong {
  display: block;
  font-size: 1.28rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #92400e, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  display: block;
  color: #78716c;
  font-size: 0.76rem;
}

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

.nav-links a {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: 0.25s ease;
}

.nav-links a:hover {
  color: #b45309;
  background: rgba(251, 191, 36, 0.16);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #ffedd5;
  cursor: pointer;
}

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

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.7s ease, transform 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(251, 146, 60, 0.32), transparent 35%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.62) 48%, rgba(0, 0, 0, 0.9));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 92px;
  color: #ffffff;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 12px;
  color: #fbbf24;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}

.hero-content h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.8rem, 8vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
  text-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}

.hero-summary {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #92400e;
  background: #ffedd5;
  font-size: 0.78rem;
  font-weight: 800;
}

.tag-row.large span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

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

.primary-btn,
.ghost-btn,
.section-link,
.filter-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  border: 0;
  cursor: pointer;
  transition: 0.25s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, #d97706, #f97316);
  box-shadow: 0 16px 28px rgba(217, 119, 6, 0.32);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 34px rgba(217, 119, 6, 0.38);
}

.ghost-btn,
.section-link {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

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

.hero-panel {
  position: absolute;
  z-index: 4;
  right: max(16px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-prev,
.hero-next {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 1.7rem;
  line-height: 1;
}

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

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

.hero-dot.is-active {
  width: 28px;
  border-radius: 99px;
  background: #fbbf24;
}

.section {
  padding: 58px 0;
}

.intro-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
  margin-top: 42px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: var(--shadow);
}

.intro-strip h2,
.section-head h2,
.page-hero h1,
.detail-info h1,
.article-block h2,
.search-card h2,
.ranking-card h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

.intro-strip h2,
.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.intro-strip p:last-child,
.page-hero p,
.search-card p {
  color: var(--muted);
}

.intro-strip .section-link {
  color: #92400e;
  background: #ffedd5;
  border-color: transparent;
  white-space: nowrap;
}

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

.section-head a {
  color: #b45309;
  font-weight: 900;
}

.section-head.compact {
  align-items: center;
  margin-bottom: 16px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(217, 119, 6, 0.12);
  box-shadow: 0 14px 36px rgba(120, 53, 15, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 45px rgba(120, 53, 15, 0.16);
}

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(145deg, #fef3c7, #fed7aa);
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .card-cover img {
  transform: scale(1.07);
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
}

.play-chip {
  right: 10px;
  bottom: 10px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
}

.rank-badge {
  left: 10px;
  top: 10px;
  padding: 6px 10px;
  background: linear-gradient(135deg, #d97706, #ef4444);
  box-shadow: 0 8px 18px rgba(185, 28, 28, 0.28);
  font-size: 0.75rem;
}

.card-body {
  padding: 16px;
}

.card-body h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.card-body h2 a:hover {
  color: #b45309;
}

.card-meta {
  margin: 8px 0 0;
  color: #9ca3af;
  font-size: 0.85rem;
}

.card-line {
  margin: 10px 0 0;
  color: #4b5563;
  font-size: 0.92rem;
}

.category-zone {
  padding-top: 28px;
}

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

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

.category-card {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  border: 1px solid rgba(217, 119, 6, 0.12);
  box-shadow: 0 16px 34px rgba(120, 53, 15, 0.1);
  transition: 0.25s ease;
}

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

.category-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  height: 118px;
  overflow: hidden;
  background: #fed7aa;
}

.category-covers img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-content {
  display: grid;
  gap: 7px;
  padding: 16px;
}

.category-content strong {
  font-size: 1.18rem;
}

.category-content em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.92rem;
}

.split-zone {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 24px;
}

.ranking-card,
.search-card,
.article-block article,
.meta-table {
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid rgba(217, 119, 6, 0.12);
  box-shadow: var(--shadow);
}

.ranking-card,
.search-card {
  padding: 26px;
}

.ranking-card.full {
  width: 100%;
}

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

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

.ranking-list a {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 4px 14px;
  align-items: center;
  padding: 13px;
  border-radius: 16px;
  background: #fff7ed;
  transition: 0.25s ease;
}

.ranking-list a:hover {
  background: #ffedd5;
  transform: translateX(3px);
}

.ranking-list span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #d97706, #f97316);
  font-weight: 900;
  font-size: 0.82rem;
}

.ranking-list strong {
  line-height: 1.2;
}

.ranking-list em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.86rem;
}

.search-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at top right, rgba(251, 146, 60, 0.26), transparent 38%),
    linear-gradient(135deg, #111827, #3f2412);
  color: #ffffff;
}

.search-card p {
  color: rgba(255, 255, 255, 0.78);
}

.search-card .primary-btn {
  align-self: flex-start;
  margin-top: 18px;
}

.page-hero {
  padding: 74px 0 24px;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 7vw, 5rem);
  background: linear-gradient(90deg, #92400e, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero p {
  max-width: 760px;
  font-size: 1.08rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.page-hero .breadcrumb {
  color: #78716c;
}

.breadcrumb a:hover {
  color: #fbbf24;
}

.page-hero .breadcrumb a:hover {
  color: #b45309;
}

.catalog-filter {
  display: grid;
  grid-template-columns: 1fr 180px 180px auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(217, 119, 6, 0.12);
  box-shadow: 0 14px 30px rgba(120, 53, 15, 0.08);
}

.catalog-filter label {
  display: grid;
  gap: 6px;
  color: #78716c;
  font-size: 0.82rem;
  font-weight: 900;
}

.catalog-filter input,
.catalog-filter select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  outline: 0;
  background: #fffaf0;
  color: #1f2937;
}

.catalog-filter input:focus,
.catalog-filter select:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.filter-reset {
  color: #92400e;
  background: #ffedd5;
}

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

.detail-hero {
  position: relative;
  min-height: 76vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.detail-bg,
.detail-shade {
  position: absolute;
  inset: 0;
}

.detail-bg {
  background-position: center;
  background-size: cover;
  filter: blur(10px) scale(1.08) brightness(0.52);
}

.detail-shade {
  background:
    radial-gradient(circle at 18% 26%, rgba(251, 146, 60, 0.32), transparent 34%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.2), rgba(17, 24, 39, 0.92));
}

.detail-layout {
  position: relative;
  z-index: 2;
  padding: 92px 0 56px;
}

.detail-main {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  align-items: end;
}

.detail-cover {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
}

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

.detail-info h1 {
  max-width: 900px;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.96;
  text-shadow: 0 22px 52px rgba(0, 0, 0, 0.45);
}

.detail-line {
  max-width: 790px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.16rem;
}

.detail-info .primary-btn {
  margin-top: 26px;
}

.detail-section {
  padding-top: 52px;
}

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

.movie-video,
.player-poster,
.player-poster img {
  width: 100%;
  height: 100%;
}

.movie-video {
  display: block;
  object-fit: contain;
  background: #000000;
}

.player-poster {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #000000;
}

.player-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.62));
}

.player-poster img {
  object-fit: cover;
  opacity: 0.82;
}

.player-start {
  position: absolute;
  z-index: 2;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #d97706, #f97316);
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.42);
  font-size: 2rem;
  padding-left: 6px;
  transition: 0.25s ease;
}

.player-poster:hover .player-start {
  transform: scale(1.08);
}

.player-shell.is-playing .player-poster {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.article-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.article-block article {
  padding: 28px;
}

.article-block article:nth-child(3) {
  grid-column: 1 / -1;
}

.article-block p {
  margin: 14px 0 0;
  color: #4b5563;
}

.meta-table dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
}

.meta-table div {
  padding: 16px;
  border-radius: 16px;
  background: #fff7ed;
}

.meta-table dt {
  color: #9a3412;
  font-weight: 900;
}

.meta-table dd {
  margin: 6px 0 0;
  color: #374151;
}

.site-footer {
  margin-top: 72px;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937 60%, #431407);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 36px;
  padding: 48px 0;
}

.footer-brand {
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-grid h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 1.1rem;
}

.footer-grid p {
  margin: 0;
  color: #d1d5db;
}

.footer-grid ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9ca3af;
  font-size: 0.92rem;
}

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

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

  .split-zone,
  .article-block {
    grid-template-columns: 1fr;
  }

  .detail-main {
    grid-template-columns: 220px 1fr;
  }

  .catalog-filter {
    grid-template-columns: 1fr 160px auto;
  }
}

@media (max-width: 760px) {
  .nav-shell {
    min-height: 66px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    border-radius: 14px;
  }

  .hero-slider {
    min-height: 82vh;
  }

  .hero-content {
    margin-bottom: 105px;
  }

  .hero-panel {
    left: 16px;
    right: auto;
    bottom: 24px;
  }

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

  .movie-grid,
  .featured-grid,
  .catalog-grid,
  .compact-grid,
  .category-grid,
  .category-grid.large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .card-body {
    padding: 12px;
  }

  .card-line {
    display: none;
  }

  .catalog-filter {
    grid-template-columns: 1fr;
  }

  .ranking-list.two-column {
    grid-template-columns: 1fr;
  }

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

  .detail-cover {
    width: min(210px, 70vw);
  }

  .meta-table dl,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 38px 0;
  }
}

@media (max-width: 460px) {
  .shell,
  .nav-shell,
  .hero-content,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

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

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }
}
