:root {
  --orange-900: #7c2d12;
  --orange-800: #9a3412;
  --orange-700: #c2410c;
  --orange-600: #ea580c;
  --amber-500: #f59e0b;
  --amber-300: #fcd34d;
  --cream: #fff7ed;
  --paper: #ffffff;
  --ink: #16130f;
  --muted: #776b5e;
  --line: rgba(124, 45, 18, 0.12);
  --shadow: 0 18px 45px rgba(124, 45, 18, 0.16);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  background:
    radial-gradient(
      circle at top left,
      rgba(245, 158, 11, 0.22),
      transparent 34rem
    ),
    linear-gradient(180deg, #fff7ed 0%, #fff 32%, #fff7ed 100%);
  min-height: 100vh;
}

body.is-locked {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(
    90deg,
    var(--orange-700),
    var(--amber-500),
    var(--orange-800)
  );
  box-shadow: 0 16px 35px rgba(154, 52, 18, 0.28);
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 18px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  font-weight: 900;
  color: var(--orange-800);
  background: #fff;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.45),
    0 10px 24px rgba(0, 0, 0, 0.18);
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-text small {
  margin-top: 4px;
  font-size: 12px;
  color: #ffedd5;
  letter-spacing: 0.14em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link,
.nav-menu-button {
  border: 0;
  color: #fff;
  background: transparent;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-menu:hover .nav-menu-button {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.nav-menu {
  position: relative;
}

.nav-menu-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 210px;
  padding: 10px;
  border-radius: 18px;
  color: #3f2617;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.22s ease;
}

.nav-menu:hover .nav-menu-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #4d2a12;
}

.nav-menu-panel a:hover {
  background: #ffedd5;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(330px, 28vw);
  margin-left: 8px;
  padding: 5px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.nav-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  color: #fff;
  background: transparent;
  padding: 8px 10px;
}

.nav-search input::placeholder {
  color: #ffedd5;
}

.nav-search button,
.primary-button,
.secondary-button,
.section-more,
.filter-panel button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 800;
}

.nav-search button {
  color: var(--orange-800);
  background: #fff;
  padding: 8px 14px;
}

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

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
}

.mobile-panel {
  display: none;
  max-height: calc(100vh - 72px);
  overflow: auto;
  padding: 0 18px 18px;
  background: rgba(124, 45, 18, 0.96);
}

.mobile-panel a {
  display: block;
  padding: 13px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff7ed;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 620px;
  color: #fff;
  background: #2d1607;
  isolation: isolate;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

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

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 72% 22%,
      rgba(245, 158, 11, 0.26),
      transparent 28rem
    ),
    linear-gradient(
      90deg,
      rgba(45, 22, 7, 0.96),
      rgba(124, 45, 18, 0.72) 42%,
      rgba(45, 22, 7, 0.34)
    ),
    linear-gradient(0deg, rgba(22, 19, 15, 0.9), transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  min-height: 620px;
  margin: 0 auto;
  padding: 72px 18px 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.58fr);
  gap: 34px;
  align-items: center;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 900;
  color: #fed7aa;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  text-shadow: 0 22px 50px rgba(0, 0, 0, 0.38);
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  color: var(--orange-900);
  background: linear-gradient(135deg, #fff, #fed7aa);
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.3);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(10px);
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(14px);
}

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

.hero-card-info {
  position: absolute;
  inset: auto 16px 16px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(22, 19, 15, 0.68);
  backdrop-filter: blur(14px);
}

.hero-card-info h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.hero-card-info span {
  color: #fed7aa;
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

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

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

.content-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 54px 18px;
}

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

.section-title-row h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.section-title-row span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.section-more {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange-600), var(--amber-500));
  box-shadow: 0 14px 28px rgba(234, 88, 12, 0.25);
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 35px rgba(124, 45, 18, 0.1);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(234, 88, 12, 0.28);
  box-shadow: var(--shadow);
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #431407, #9a3412 55%, #f59e0b);
}

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

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

.rank-badge,
.score-pill {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--orange-600), var(--amber-500));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
}

.score-pill {
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
}

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

.movie-meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--orange-700);
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 20px;
  line-height: 1.22;
}

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

.movie-card p {
  margin: 0;
  min-height: 54px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

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

.tag-list span {
  padding: 6px 9px;
  border-radius: 999px;
  color: #8a3a0e;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

.feature-strip {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
}

.hot-panel,
.filter-panel,
.category-panel,
.detail-card,
.player-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 38px rgba(124, 45, 18, 0.12);
}

.hot-panel {
  padding: 24px;
  color: #fff;
  background:
    radial-gradient(
      circle at top right,
      rgba(252, 211, 77, 0.3),
      transparent 26rem
    ),
    linear-gradient(135deg, var(--orange-800), var(--orange-600));
}

.hot-panel h2,
.hot-panel p {
  margin: 0;
}

.hot-panel p {
  margin-top: 12px;
  color: #ffedd5;
  line-height: 1.8;
}

.hot-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.hot-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.13);
}

.hot-item b {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
}

.hot-item strong {
  display: block;
}

.hot-item span {
  color: #fed7aa;
  font-size: 13px;
}

.filter-panel {
  padding: 20px;
  display: grid;
  gap: 14px;
}

.filter-panel h2 {
  margin: 0;
  font-size: 24px;
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 150px 150px auto;
  gap: 10px;
}

.filter-row input,
.filter-row select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: #fff;
  padding: 12px 13px;
}

.filter-panel button {
  color: #fff;
  background: linear-gradient(135deg, var(--orange-600), var(--amber-500));
  padding: 0 20px;
}

.global-search-results {
  display: none;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.global-search-results.is-visible {
  display: grid;
  gap: 10px;
}

.search-result-link {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: #fff7ed;
}

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

.category-panel {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-panel::before {
  content: "";
  position: absolute;
  inset: auto -30px -60px auto;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
}

.category-panel h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.category-panel span {
  margin-top: 16px;
  color: var(--orange-700);
  font-weight: 900;
}

.page-hero {
  max-width: var(--max);
  margin: 28px auto 0;
  padding: 42px 18px 0;
}

.page-hero-inner {
  overflow: hidden;
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(
      circle at 80% 0,
      rgba(252, 211, 77, 0.32),
      transparent 24rem
    ),
    linear-gradient(
      135deg,
      var(--orange-800),
      var(--orange-600) 54%,
      var(--amber-500)
    );
  padding: clamp(30px, 5vw, 58px);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 58px);
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: #ffedd5;
  line-height: 1.8;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  color: #fed7aa;
  font-weight: 800;
}

.detail-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px 18px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 26px;
}

.player-card {
  overflow: hidden;
}

.video-shell {
  position: relative;
  overflow: hidden;
  background: #160b04;
  aspect-ratio: 16 / 9;
}

.movie-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle, rgba(245, 158, 11, 0.22), transparent 18rem),
    linear-gradient(180deg, rgba(22, 19, 15, 0.15), rgba(22, 19, 15, 0.78));
  cursor: pointer;
}

.player-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.play-circle {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 34px;
  background: linear-gradient(135deg, var(--orange-600), var(--amber-500));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
}

.detail-card {
  padding: 24px;
  margin-top: 22px;
}

.detail-card h1,
.detail-card h2 {
  margin: 0 0 14px;
  letter-spacing: -0.04em;
}

.detail-card h1 {
  font-size: clamp(30px, 5vw, 48px);
}

.detail-card h2 {
  font-size: 26px;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--orange-800);
  background: #ffedd5;
  font-weight: 900;
}

.detail-card p {
  color: #4b4037;
  line-height: 1.9;
  font-size: 16px;
}

.detail-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.side-poster {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #431407, #9a3412 55%, #f59e0b);
  box-shadow: var(--shadow);
}

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

.side-box {
  padding: 20px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.side-box h2 {
  margin: 0 0 14px;
}

.side-link {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.side-link:first-of-type {
  border-top: 0;
}

.side-link strong:hover {
  color: var(--orange-700);
}

.side-link span {
  color: var(--muted);
  font-size: 13px;
}

.no-results {
  display: none;
  padding: 24px;
  border-radius: var(--radius-lg);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.9);
}

.no-results.is-visible {
  display: block;
}

.site-footer {
  color: #fff;
  background: linear-gradient(135deg, #431407, #7c2d12);
  margin-top: 40px;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 18px;
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1fr;
  gap: 26px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 900;
}

.site-footer p,
.site-footer a {
  color: #fed7aa;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-links.compact a {
  font-size: 13px;
}

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

  .mobile-toggle {
    display: block;
    margin-left: auto;
  }

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

  .hero-content,
  .feature-strip,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 440px;
  }

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

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

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

@media (max-width: 720px) {
  .brand-text small {
    display: none;
  }

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

  .hero-content {
    padding-top: 44px;
    align-items: start;
  }

  .hero-actions,
  .section-title-row {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .section-more {
    width: 100%;
  }

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

  .movie-card-body {
    padding: 13px;
  }

  .movie-card h3 {
    font-size: 17px;
  }

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

  .content-section {
    padding: 38px 14px;
  }

  .page-hero {
    padding-top: 24px;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .movie-grid.compact-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hot-item {
    grid-template-columns: 38px 1fr;
  }

  .hot-item .score-pill-inline {
    grid-column: 2;
  }
}
