:root {
  --page-bg: #fff7ed;
  --paper: #ffffff;
  --paper-soft: #fffbeb;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #fed7aa;
  --brand: #f97316;
  --brand-dark: #c2410c;
  --brand-soft: #ffedd5;
  --gold: #facc15;
  --shadow: 0 20px 55px rgba(154, 52, 18, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 46%, #fff7ed 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(253, 186, 116, 0.55);
  box-shadow: 0 12px 32px rgba(154, 52, 18, 0.08);
  backdrop-filter: blur(16px);
}

.header-shell,
.footer-shell,
.section-shell,
.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

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

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, #fb923c, #facc15);
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.24);
  font-size: 22px;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong,
.footer-brand strong {
  font-size: 24px;
  line-height: 1;
  color: transparent;
  background: linear-gradient(90deg, #b45309, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 900;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: #4b5563;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand-dark);
  background: var(--brand-soft);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: 22px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
}

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

.mobile-links,
.mobile-cats {
  display: grid;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  gap: 10px;
  padding: 16px 0;
}

.mobile-cats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 0;
}

.mobile-cats a {
  padding: 12px;
  border-radius: 14px;
  background: #fff7ed;
  color: var(--brand-dark);
  font-weight: 700;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #7c2d12;
}

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #ea580c, #f59e0b);
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: blur(2px) saturate(1.18);
  transform: scale(1.04);
}

.hero-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 72% 28%, rgba(250, 204, 21, 0.28), transparent 28%),
    linear-gradient(90deg, rgba(124, 45, 18, 0.96), rgba(234, 88, 12, 0.76) 50%, rgba(245, 158, 11, 0.42));
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 620px;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 54px;
  padding: 76px 0;
}

.hero-copy {
  max-width: 680px;
  color: white;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  color: #fffbeb;
  font-size: 14px;
  font-weight: 800;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.hero-copy p {
  max-width: 620px;
  margin: 22px 0 0;
  color: #ffedd5;
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.75;
}

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

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

.hero-tags span,
.detail-tags span,
.tag-row span,
.meta-pill,
.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
}

.hero-tags span {
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.18);
  color: white;
}

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

.primary-btn,
.ghost-btn,
.section-more,
.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.primary-btn {
  color: var(--brand-dark);
  background: white;
  box-shadow: 0 15px 28px rgba(255, 255, 255, 0.25);
}

.ghost-btn {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.16);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.play-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.24);
  border-radius: 34px;
  box-shadow: 0 30px 75px rgba(67, 20, 7, 0.42);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  color: var(--brand-dark);
  background: white;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.24);
  font-size: 22px;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: white;
}

.section {
  padding: 58px 0;
}

.section.alt {
  background: rgba(255, 255, 255, 0.58);
}

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

.section-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title,
.page-title,
.detail-title {
  margin: 0;
  color: #111827;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-desc,
.page-desc {
  max-width: 780px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.section-more {
  color: white;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.24);
}

.feature-grid,
.category-grid,
.movie-grid,
.related-grid {
  display: grid;
  gap: 22px;
}

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

.feature-card,
.category-card,
.movie-card,
.filter-box,
.detail-panel,
.article-block,
.ranking-list,
.search-empty {
  border: 1px solid rgba(253, 186, 116, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.feature-card,
.category-card {
  padding: 24px;
}

.feature-icon {
  margin-bottom: 14px;
  font-size: 36px;
}

.feature-card h3,
.category-card h2,
.article-block h2,
.detail-panel h2 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 21px;
  font-weight: 900;
}

.feature-card p,
.category-card p,
.article-block p,
.detail-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
}

.category-card::before {
  position: absolute;
  right: -30px;
  top: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  content: "";
  background: rgba(251, 146, 60, 0.16);
}

.category-card a {
  position: relative;
  z-index: 2;
  display: inline-flex;
  margin-top: 18px;
  color: var(--brand-dark);
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(154, 52, 18, 0.19);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fef3c7);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.score-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: #7c2d12;
  background: #fef3c7;
  font-weight: 950;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
}

.card-content {
  padding: 16px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
}

.movie-card h3 {
  margin: 9px 0 8px;
  color: #111827;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--brand);
}

.movie-card p {
  min-height: 52px;
  margin: 0 0 12px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.55;
}

.tag-row span,
.detail-tags span,
.meta-pill,
.filter-chip {
  padding: 6px 10px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
}

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

.ranking-list {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.ranking-item {
  display: grid;
  grid-template-columns: 54px 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid #ffedd5;
  transition: background 0.22s ease;
}

.ranking-item:last-child {
  border-bottom: 0;
}

.ranking-item:hover {
  background: #fff7ed;
}

.rank-num {
  color: var(--brand);
  font-size: 22px;
  font-weight: 950;
}

.ranking-item img {
  width: 58px;
  height: 78px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.rank-copy strong {
  overflow: hidden;
  color: #111827;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy em {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-score {
  color: #92400e;
  font-weight: 950;
}

.page-hero {
  padding: 72px 0 34px;
  background:
    radial-gradient(circle at 20% 20%, rgba(250, 204, 21, 0.24), transparent 30%),
    linear-gradient(135deg, #fff7ed, #fffbeb);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--brand-dark);
  font-weight: 800;
}

.filter-box {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px;
  gap: 14px;
  padding: 18px;
  margin-bottom: 26px;
}

.filter-box input,
.filter-box select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  padding: 0 15px;
  background: #fffaf0;
  color: #374151;
  font-weight: 700;
}

.filter-box input:focus,
.filter-box select:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.12);
}

.search-empty {
  display: none;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.search-empty.is-visible {
  display: block;
}

.detail-hero {
  padding: 34px 0 56px;
}

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

.player-card {
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.28);
}

.player-wrap {
  position: relative;
  background: #000000;
  aspect-ratio: 16 / 9;
}

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

.poster-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
  background: #111827;
}

.poster-layer.is-hidden {
  display: none;
}

.poster-layer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: saturate(1.15);
}

.poster-layer::after {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle, rgba(249, 115, 22, 0.12), rgba(0, 0, 0, 0.72));
}

.play-button {
  position: relative;
  z-index: 2;
  width: 88px;
  height: 88px;
  border: 0;
  padding: 0;
  color: #9a3412;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.25);
  font-size: 28px;
}

.detail-panel {
  padding: 22px;
}

.detail-title {
  margin-bottom: 14px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 18px;
}

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

.detail-poster img {
  width: 100%;
  border-radius: 24px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.article-block {
  padding: 26px;
  margin-top: 24px;
}

.article-block p + p {
  margin-top: 16px;
}

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

.site-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(253, 186, 116, 0.72);
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.footer-shell {
  padding: 38px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.footer-brand p {
  max-width: 720px;
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 0;
  border-top: 1px solid #ffedd5;
  border-bottom: 1px solid #ffedd5;
}

.footer-links a {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: white;
  color: #9a3412;
  font-weight: 800;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

.is-filtered-out {
  display: none !important;
}

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

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

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

  .hero-inner,
  .detail-layout,
  .ranking-layout {
    grid-template-columns: 1fr;
  }

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

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

  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .brand-copy strong,
  .footer-brand strong {
    font-size: 20px;
  }

  .hero-carousel,
  .hero-inner {
    min-height: 680px;
  }

  .hero-inner {
    gap: 28px;
    padding: 42px 0 72px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-poster {
    max-width: 230px;
    transform: none;
  }

  .section {
    padding: 42px 0;
  }

  .section-head,
  .footer-bottom {
    display: grid;
  }

  .movie-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

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

  .ranking-item {
    grid-template-columns: 40px 50px minmax(0, 1fr);
  }

  .rank-score {
    display: none;
  }

  .card-content {
    padding: 12px;
  }

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