:root {
  --page-bg: #fff7ed;
  --paper: #ffffff;
  --paper-soft: rgba(255, 255, 255, 0.86);
  --ink: #451a03;
  --muted: #92400e;
  --line: #fed7aa;
  --accent: #d97706;
  --accent-2: #f97316;
  --accent-soft: #ffedd5;
  --shadow: 0 22px 55px rgba(146, 64, 14, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.95), rgba(255, 237, 213, 0.95));
  border-bottom: 1px solid rgba(251, 191, 36, 0.28);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(146, 64, 14, 0.08);
}

.top-nav {
  max-width: 1280px;
  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: var(--accent);
  font-weight: 900;
  font-size: 1.35rem;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.3);
  font-size: 0.95rem;
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
}

.nav-menu {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.nav-link {
  color: #78350f;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-search,
.large-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.nav-search input {
  width: 260px;
  padding: 10px 16px;
}

.nav-search button,
.large-search button,
.primary-btn,
.outline-btn,
.ghost-btn {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button,
.large-search button,
.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.25);
}

.nav-search button {
  padding: 10px 18px;
}

.nav-search input:focus,
.large-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.24);
  background: #ffffff;
}

.home-main,
.page-main {
  min-height: 70vh;
}

.hero-carousel {
  position: relative;
  height: 72vh;
  min-height: 540px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 28%, rgba(251, 191, 36, 0.34), transparent 32%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.38) 48%, rgba(0, 0, 0, 0.18)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.76), transparent 55%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 72px;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  transform: translateX(-50%);
  color: #ffffff;
}

.hero-kicker,
.hero-heading {
  display: inline-block;
  margin: 0 0 16px;
  padding: 8px 16px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(217, 119, 6, 0.96);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  font-weight: 800;
}

.hero-content h1,
.hero-content h2 {
  max-width: 820px;
  margin: 0 0 16px;
  font-size: clamp(2.3rem, 6vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.hero-content h2 {
  font-size: clamp(2rem, 5vw, 4.6rem);
}

.hero-content p {
  max-width: 760px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.75;
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
}

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

.primary-btn,
.ghost-btn,
.outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
}

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

.outline-btn {
  color: var(--accent);
  background: #ffffff;
  border: 1px solid var(--line);
}

.primary-btn:hover,
.ghost-btn:hover,
.outline-btn:hover,
.nav-search button:hover,
.large-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(217, 119, 6, 0.28);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.46);
  cursor: pointer;
  font-size: 2.4rem;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 32px;
  border-radius: 999px;
  background: #f59e0b;
}

.section-shell,
.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 22px;
}

.section-shell + .section-shell {
  padding-top: 16px;
}

.intro-search,
.section-title,
.page-hero,
.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.intro-search {
  margin-top: -38px;
  position: relative;
  z-index: 5;
  padding: 28px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.intro-search h2,
.section-title h2,
.page-hero h1,
.detail-card h1,
.detail-card h2,
.side-card h2 {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.intro-search h2,
.section-title h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.intro-search p,
.page-hero p,
.category-tile span,
.category-overview-card p,
.detail-card p,
.site-footer p {
  color: var(--muted);
  line-height: 1.8;
}

.large-search {
  min-width: min(520px, 100%);
}

.large-search input {
  flex: 1;
  padding: 15px 20px;
}

.large-search button {
  padding: 15px 26px;
}

.section-title a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(146, 64, 14, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(146, 64, 14, 0.18);
}

.movie-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

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

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

.poster-chip,
.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(217, 119, 6, 0.94);
  font-size: 0.8rem;
  font-weight: 800;
}

.rank-badge {
  left: auto;
  right: 12px;
  background: rgba(0, 0, 0, 0.62);
}

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

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #b45309;
  font-size: 0.88rem;
  font-weight: 700;
}

.movie-card h3 {
  margin: 10px 0 8px;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.35;
}

.movie-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags span,
.detail-tags span {
  padding: 5px 10px;
  border-radius: 999px;
  color: #92400e;
  background: #ffedd5;
  font-size: 0.8rem;
  font-weight: 700;
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 320px);
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 16px;
  scrollbar-width: none;
}

.scroll-row::-webkit-scrollbar {
  display: none;
}

.category-band,
.ranking-band {
  max-width: 1320px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.92), rgba(254, 243, 199, 0.92));
}

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

.category-tile,
.category-overview-card,
.side-card,
.detail-card,
.filter-panel,
.page-hero {
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.category-tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 62px rgba(146, 64, 14, 0.18);
}

.category-tile strong {
  color: var(--ink);
  font-size: 1.35rem;
}

.category-tile small {
  color: #b45309;
  line-height: 1.6;
}

.ranking-list {
  display: grid;
  gap: 18px;
}

.movie-card-horizontal .movie-card-link {
  display: grid;
  grid-template-columns: 250px 1fr;
}

.movie-card-horizontal .poster-wrap {
  aspect-ratio: auto;
  min-height: 170px;
}

.full-ranking {
  padding-top: 24px;
}

.page-main {
  padding-top: 32px;
}

.page-hero {
  margin-bottom: 28px;
  padding: 34px;
  background:
    radial-gradient(circle at 85% 10%, rgba(251, 191, 36, 0.28), transparent 32%),
    rgba(255, 255, 255, 0.92);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.page-hero p {
  max-width: 720px;
  margin: 0;
}

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

.hero-mini-links a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--accent);
  background: #ffffff;
  text-decoration: none;
  font-weight: 800;
}

.breadcrumb {
  margin: 8px 0 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
  flex-wrap: wrap;
}

.filter-panel input,
.filter-panel select {
  min-width: 190px;
  padding: 12px 16px;
}

.filter-panel input {
  flex: 1 1 320px;
}

.search-item.is-hidden {
  display: none;
}

.category-overview-card {
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-overview-card h2 {
  margin: 0 0 10px;
}

.category-overview-card h2 a {
  color: var(--ink);
  text-decoration: none;
}

.compact-row,
.compact-column {
  display: grid;
  gap: 12px;
}

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

.compact-card {
  overflow: hidden;
  border-radius: 16px;
  color: var(--ink);
  background: #fff7ed;
  text-decoration: none;
}

.compact-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.compact-card span {
  display: block;
  padding: 10px;
  font-weight: 800;
  line-height: 1.4;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 28px;
  align-items: start;
}

.detail-primary,
.detail-sidebar {
  display: grid;
  gap: 22px;
}

.player-section {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.68)),
    rgba(0, 0, 0, 0.2);
  cursor: pointer;
  text-align: center;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-ring {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
  font-size: 2rem;
  text-indent: 5px;
}

.player-cover strong {
  max-width: min(82%, 680px);
  font-size: clamp(1.3rem, 4vw, 2.5rem);
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.detail-card,
.side-card {
  padding: 26px;
}

.detail-card h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 18px;
}

.detail-card h2,
.side-card h2 {
  margin-bottom: 14px;
  font-size: 1.55rem;
}

.detail-meta {
  margin-bottom: 16px;
}

.detail-tags {
  margin-bottom: 22px;
}

.detail-card p {
  margin: 0 0 16px;
  font-size: 1.03rem;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 18px;
}

.full-btn {
  width: 100%;
}

.detail-sidebar {
  position: sticky;
  top: 92px;
}

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

.site-footer {
  margin-top: 40px;
  background: linear-gradient(180deg, #ffedd5, #fed7aa);
  border-top: 1px solid rgba(251, 191, 36, 0.4);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 22px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 12px;
}

.footer-links a {
  color: #78350f;
  text-decoration: none;
  font-weight: 800;
}

.copyright {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px 26px;
  color: var(--muted);
}

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

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

  .detail-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .top-nav {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 14px 18px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 12px 0 6px;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-search {
    width: 100%;
  }

  .nav-search input {
    width: 100%;
  }

  .hero-carousel {
    height: 76vh;
    min-height: 560px;
  }

  .hero-content {
    bottom: 84px;
  }

  .hero-arrow {
    display: none;
  }

  .intro-search,
  .section-title,
  .page-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .large-search {
    width: 100%;
  }

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

  .movie-card-horizontal .movie-card-link {
    grid-template-columns: 180px 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .section-shell,
  .page-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-content {
    width: calc(100% - 28px);
  }

  .hero-content h1,
  .hero-content h2 {
    line-height: 1.08;
  }

  .four-col,
  .three-col,
  .category-grid,
  .overview-grid,
  .detail-sidebar,
  .compact-row {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal .movie-card-link {
    display: block;
  }

  .movie-card-horizontal .poster-wrap {
    aspect-ratio: 16 / 10;
  }

  .filter-panel input,
  .filter-panel select {
    width: 100%;
  }
}
