:root {
  --bg: #fff8ed;
  --paper: #ffffff;
  --paper-soft: rgba(255, 255, 255, 0.82);
  --ink: #3b2412;
  --muted: #7a5a39;
  --amber: #f59e0b;
  --amber-dark: #b45309;
  --amber-soft: #ffedd5;
  --line: rgba(180, 83, 9, 0.18);
  --shadow: 0 24px 60px rgba(120, 53, 15, 0.16);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.28), transparent 34rem),
    linear-gradient(180deg, #fff7ed 0%, #fffbeb 42%, #fff 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 237, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(120, 53, 15, 0.08);
}

.nav-wrap {
  width: min(1280px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), #ef4444);
  box-shadow: 0 16px 32px rgba(245, 158, 11, 0.28);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 20px;
  letter-spacing: 0.02em;
  color: #7c2d12;
}

.brand-copy em {
  color: var(--amber-dark);
  font-size: 12px;
  font-style: normal;
}

.desktop-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
}

.nav-link {
  padding: 9px 12px;
  border-radius: 999px;
  color: #7c2d12;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: var(--amber);
  transform: translateY(-1px);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-search,
.mobile-search,
.big-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.big-search input,
.local-filter,
.filter-bar select {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search input {
  width: 220px;
  padding: 11px 16px;
}

.top-search button,
.mobile-search button,
.big-search button,
.primary-btn {
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), #ea580c);
  box-shadow: 0 16px 30px rgba(234, 88, 12, 0.25);
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-search button {
  padding: 11px 16px;
}

.mobile-search button,
.big-search button {
  padding: 13px 22px;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
}

.top-search button:hover,
.mobile-search button:hover,
.big-search button:hover,
.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(234, 88, 12, 0.34);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #7c2d12;
  background: #fff7ed;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 14px 16px 18px;
  background: rgba(255, 255, 255, 0.95);
}

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

.mobile-search input {
  flex: 1;
  padding: 12px 16px;
}

.mobile-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

main {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-carousel {
  position: relative;
  min-height: clamp(560px, 78vh, 760px);
  margin: 28px auto 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #2d1608;
  box-shadow: var(--shadow);
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: scale(1.02);
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(245, 158, 11, 0.24), transparent 28rem),
    linear-gradient(90deg, rgba(20, 10, 4, 0.9) 0%, rgba(20, 10, 4, 0.65) 40%, rgba(20, 10, 4, 0.24) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.64), transparent 42%);
}

.hero-content {
  position: absolute;
  left: clamp(26px, 6vw, 78px);
  bottom: clamp(34px, 7vw, 90px);
  max-width: 720px;
  color: #fff;
}

.hero-kicker,
.detail-tags,
.movie-meta,
.tag-row,
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-kicker span,
.detail-tags span {
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 700;
}

.hero-content h1,
.hero-content h2 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 7vw, 78px);
  line-height: 1;
  letter-spacing: -0.04em;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
}

.hero-content p {
  margin: 0 0 26px;
  max-width: 660px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.8;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 23px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
}

.ghost-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.26);
}

.hero-dots {
  position: absolute;
  right: 34px;
  bottom: 34px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

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

.hero-dot.is-active {
  width: 34px;
  background: var(--amber);
}

.section-block,
.page-hero,
.detail-hero,
.breadcrumb {
  margin-top: 34px;
}

.section-block,
.page-hero,
.detail-hero {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 48px rgba(120, 53, 15, 0.08);
  backdrop-filter: blur(18px);
}

.section-block {
  padding: clamp(22px, 4vw, 44px);
}

.intro-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 28px;
}

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

.section-block h2,
.page-hero h1,
.detail-copy h1,
.text-panel h2,
.side-panel h2,
.ranking-panel h2 {
  margin: 0;
  color: #7c2d12;
  letter-spacing: -0.03em;
}

.section-block h2,
.page-hero h1,
.detail-copy h1 {
  font-size: clamp(30px, 4vw, 48px);
}

.section-block p,
.page-hero p,
.text-panel p,
.detail-copy p {
  color: var(--muted);
  line-height: 1.85;
}

.big-search {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.big-search input {
  width: 100%;
  min-width: 0;
  padding: 14px 18px;
  border: 0;
  background: transparent;
}

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

.section-head > a,
.category-title-link {
  color: var(--amber-dark);
  font-weight: 900;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(120, 53, 15, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 22px 48px rgba(120, 53, 15, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #fef3c7;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(245, 158, 11, 0.88);
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, var(--amber));
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

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

.movie-title {
  display: -webkit-box;
  overflow: hidden;
  color: #7c2d12;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.4;
  min-height: 48px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-title:hover {
  color: var(--amber-dark);
}

.movie-meta {
  gap: 7px;
  margin: 10px 0;
  color: var(--amber-dark);
  font-size: 12px;
  font-weight: 800;
}

.movie-meta span {
  padding: 4px 7px;
  border-radius: 999px;
  background: #ffedd5;
}

.movie-card-body p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 50px;
  margin: 0 0 14px;
  color: #6b4f35;
  font-size: 13px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row a,
.tag-row span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #fff7ed;
  color: var(--amber-dark);
  font-size: 12px;
  font-weight: 800;
}

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

.category-card,
.category-overview-card,
.text-panel,
.side-panel,
.ranking-panel,
.recommend-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(120, 53, 15, 0.08);
}

.category-card {
  padding: 16px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.5);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.category-thumbs img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
}

.category-card strong,
.category-title-link {
  display: inline-flex;
  margin-bottom: 8px;
  color: #7c2d12;
  font-size: 20px;
}

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

.split-block {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.ranking-panel,
.recommend-panel,
.category-overview-card,
.text-panel,
.side-panel {
  padding: clamp(20px, 3vw, 32px);
}

.compact-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.compact-link {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-areas: "num title" "num meta";
  align-items: center;
  gap: 2px 12px;
  padding: 12px;
  border-radius: 16px;
  background: #fff7ed;
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.compact-link span {
  grid-area: num;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--amber);
  font-weight: 900;
}

.compact-link strong {
  grid-area: title;
  color: #7c2d12;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-link em {
  grid-area: meta;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.page-hero {
  padding: clamp(34px, 7vw, 72px);
  background:
    linear-gradient(135deg, rgba(255, 237, 213, 0.95), rgba(255, 255, 255, 0.78)),
    radial-gradient(circle at right top, rgba(245, 158, 11, 0.28), transparent 22rem);
}

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

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  margin-bottom: 26px;
}

.local-filter,
.filter-bar select {
  width: 100%;
  padding: 13px 16px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--muted);
  font-weight: 700;
}

.breadcrumb a {
  color: var(--amber-dark);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(320px, 0.76fr);
  gap: clamp(22px, 4vw, 42px);
  padding: clamp(18px, 3vw, 28px);
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: #111;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.12), transparent 18rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.72));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-ring {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), #ef4444);
  box-shadow: 0 20px 45px rgba(245, 158, 11, 0.38);
  font-size: 30px;
}

.player-overlay strong {
  max-width: min(86%, 620px);
  text-align: center;
  font-size: clamp(22px, 4vw, 42px);
  line-height: 1.2;
}

.player-overlay em {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-style: normal;
  font-weight: 800;
}

.detail-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.detail-tags span {
  border-color: rgba(245, 158, 11, 0.22);
  color: var(--amber-dark);
  background: #fff7ed;
}

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

.detail-meta li {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff7ed;
}

.detail-meta strong {
  color: #7c2d12;
}

.detail-meta span {
  color: var(--muted);
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 24px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.text-panel p {
  font-size: 17px;
}

.text-panel h2 + p {
  margin-top: 14px;
}

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

.side-panel {
  align-self: start;
}

.search-page-form {
  max-width: 820px;
  margin-top: 24px;
}

.site-footer {
  margin-top: 54px;
  padding: 46px 0 28px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.72), rgba(254, 243, 199, 0.82));
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.footer-brand p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-links h2 {
  margin: 0 0 14px;
  color: #7c2d12;
}

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff7ed;
  color: var(--amber-dark);
  font-weight: 800;
}

.copyright {
  width: min(1280px, calc(100% - 32px));
  margin: 28px auto 0;
  color: var(--muted);
}

.sticky-panel {
  position: sticky;
  top: 100px;
}

@media (max-width: 1180px) {
  .desktop-nav {
    justify-content: flex-start;
  }

  .top-search input {
    width: 170px;
  }

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

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

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

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

  .hero-carousel {
    min-height: 640px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.86));
  }

  .hero-content {
    left: 24px;
    right: 24px;
    bottom: 72px;
  }

  .hero-dots {
    left: 24px;
    right: auto;
  }

  .intro-panel,
  .split-block,
  .rank-layout,
  .detail-hero,
  .detail-content,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

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

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

  .sticky-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .nav-wrap,
  main,
  .footer-inner,
  .copyright {
    width: min(100% - 20px, 1280px);
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .hero-carousel {
    min-height: 590px;
    border-radius: 22px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 40px;
  }

  .hero-actions {
    align-items: stretch;
  }

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

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

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

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

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

  .movie-title {
    font-size: 15px;
    min-height: 42px;
  }

  .page-hero,
  .section-block,
  .detail-hero {
    border-radius: 22px;
  }

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