:root {
  --ink: #1f1607;
  --muted: #7c5b24;
  --gold: #facc15;
  --gold-strong: #d97706;
  --amber: #92400e;
  --dark: #111827;
  --cream: #fff7ed;
  --paper: #ffffff;
  --line: rgba(146, 64, 14, 0.16);
  --shadow: 0 24px 60px rgba(76, 29, 0, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

.site-header {
  color: #fff7ed;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.brand-mark,
.footer-logo span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #78350f;
  background: linear-gradient(135deg, #fef3c7, #facc15);
  box-shadow: 0 0 32px rgba(250, 204, 21, 0.55);
}

.brand-text {
  font-size: 1.45rem;
  background: linear-gradient(90deg, #fef3c7, #fde68a, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  position: relative;
  color: #fffbeb;
  font-weight: 700;
  opacity: 0.88;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
  opacity: 1;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: var(--gold);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(254, 243, 199, 0.35);
  border-radius: 12px;
  background: rgba(120, 53, 15, 0.45);
  padding: 9px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 4px;
  background: #fffbeb;
}

.mobile-menu {
  display: none;
  padding: 16px 0 4px;
  border-top: 1px solid rgba(254, 243, 199, 0.18);
  margin-top: 16px;
}

.mobile-menu.open {
  display: grid;
  gap: 12px;
}

.mobile-nav-link {
  color: #fffbeb;
  font-weight: 700;
  padding: 10px 0;
}

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

.hero-track {
  min-height: inherit;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.06);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 35%, rgba(250, 204, 21, 0.25), transparent 30%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.95) 0%, rgba(92, 40, 5, 0.82) 45%, rgba(17, 24, 39, 0.48) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.1));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 64px;
  padding: 72px 0;
}

.hero-copy {
  max-width: 780px;
  color: #fff7ed;
}

.hero-eyebrow,
.section-heading span,
.page-hero span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(250, 204, 21, 0.35);
  border-radius: 999px;
  color: #fef3c7;
  background: rgba(146, 64, 14, 0.35);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 20px 0 14px;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.055em;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.hero-copy h2 + p,
.hero-copy h1 + h2 + p {
  margin-top: 14px;
}

.hero-copy p {
  max-width: 720px;
  color: #fde68a;
  font-size: 1.08rem;
  line-height: 1.85;
}

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

.hero-tags span,
.card-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  color: #78350f;
  background: #fef3c7;
  font-size: 0.78rem;
  font-weight: 800;
}

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

.primary-button,
.ghost-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
  color: #451a03;
  background: linear-gradient(135deg, #fef3c7, #facc15, #f59e0b);
  box-shadow: 0 18px 38px rgba(217, 119, 6, 0.35);
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover {
  transform: translateY(-2px);
}

.ghost-button {
  color: #fff7ed;
  border: 1px solid rgba(254, 243, 199, 0.55);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.ghost-button.dark {
  color: #78350f;
  border-color: rgba(146, 64, 14, 0.25);
  background: #fff7ed;
}

.text-button {
  color: #fde68a;
  padding-inline: 8px;
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(254, 243, 199, 0.35);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 10px 14px;
  color: #451a03;
  background: #facc15;
  font-weight: 900;
}

.hero-control {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(254, 243, 199, 0.32);
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(0, 0, 0, 0.28);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

.hero-control.prev {
  left: 24px;
}

.hero-control.next {
  right: 24px;
}

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

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

.hero-dot.active {
  width: 34px;
  background: #facc15;
}

main {
  position: relative;
}

.quick-search-section {
  margin-top: 52px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 58px 0 24px;
}

.section-heading h2,
.page-hero h1 {
  margin: 10px 0 0;
  color: #1f1607;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.section-heading p,
.page-hero p {
  max-width: 760px;
  color: #7c5b24;
  line-height: 1.75;
}

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

.center-heading {
  display: grid;
  justify-items: center;
  text-align: center;
}

.light-heading h2,
.light-heading a {
  color: #fffbeb;
}

.light-heading span {
  color: #451a03;
  background: #facc15;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 44px rgba(146, 64, 14, 0.08);
  backdrop-filter: blur(10px);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(146, 64, 14, 0.18);
  border-radius: 16px;
  color: #451a03;
  background: #fffaf0;
  padding: 0 14px;
  font: inherit;
  font-weight: 700;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

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

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

.movie-card {
  min-width: 0;
}

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

.movie-card-link {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(146, 64, 14, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 42px rgba(146, 64, 14, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: var(--shadow);
}

.poster-frame {
  position: relative;
  overflow: hidden;
  background: #78350f;
}

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

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

.poster-gradient {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), transparent);
}

.poster-meta,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-weight: 900;
}

.poster-meta {
  left: 12px;
  bottom: 12px;
  padding: 7px 10px;
  color: #fef3c7;
  background: rgba(0, 0, 0, 0.52);
  font-size: 0.78rem;
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #451a03;
  background: linear-gradient(135deg, #fef08a, #f59e0b);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.movie-type {
  color: #b45309;
  font-size: 0.78rem;
  font-weight: 900;
}

.movie-card h2 {
  margin: 0;
  color: #1f1607;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 950;
}

.movie-card p {
  margin: 0;
  color: #75521a;
  font-size: 0.92rem;
  line-height: 1.65;
}

.card-tags {
  margin-top: auto;
}

.category-showcase {
  margin: 70px 0 20px;
  padding: 70px 0;
  color: #fff7ed;
  background:
    radial-gradient(circle at 20% 20%, rgba(250, 204, 21, 0.25), transparent 24%),
    linear-gradient(135deg, #451a03, #78350f 48%, #111827);
}

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

.category-card,
.category-overview-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(254, 243, 199, 0.2);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  padding: 22px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.16);
  transition: transform 0.25s ease, background 0.25s ease;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.16);
}

.category-card span,
.category-overview-card span {
  color: #facc15;
  font-weight: 950;
}

.category-card strong,
.category-overview-card h2 {
  display: block;
  margin: 10px 0;
  color: #fff7ed;
  font-size: 1.3rem;
  line-height: 1.25;
  font-weight: 950;
}

.category-card em,
.category-overview-card em {
  color: #fde68a;
  font-style: normal;
  font-weight: 900;
}

.page-main {
  padding-bottom: 70px;
}

.page-hero {
  margin: 46px auto 28px;
  padding: 54px;
  border: 1px solid rgba(146, 64, 14, 0.14);
  border-radius: 32px;
  background:
    radial-gradient(circle at 85% 20%, rgba(250, 204, 21, 0.2), transparent 26%),
    linear-gradient(135deg, #fff7ed, #ffffff);
  box-shadow: 0 18px 50px rgba(146, 64, 14, 0.1);
}

.slim-hero {
  min-height: 0;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  color: var(--ink);
  background: #ffffff;
  border-color: rgba(146, 64, 14, 0.13);
}

.category-overview-card img {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: 18px;
}

.category-overview-card h2 {
  color: #1f1607;
}

.category-overview-card p {
  color: #7c5b24;
  line-height: 1.65;
}

.detail-main {
  background: linear-gradient(180deg, #111827 0, #3b1d08 460px, #fff7ed 461px, #ffffff 100%);
  padding: 34px 0 70px;
}

.detail-layout {
  display: grid;
  gap: 26px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #fde68a;
  font-weight: 800;
}

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

.detail-card,
.detail-text {
  overflow: hidden;
  border: 1px solid rgba(254, 243, 199, 0.22);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 90px rgba(17, 24, 39, 0.22);
}

.player-area {
  position: relative;
  background: #000000;
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #fff7ed;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.62));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  color: #451a03;
  background: linear-gradient(135deg, #fef3c7, #facc15);
  font-size: 2.2rem;
  box-shadow: 0 18px 55px rgba(250, 204, 21, 0.4);
}

.play-overlay strong {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.detail-info {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  padding: 28px;
}

.detail-poster img {
  width: 100%;
  border-radius: 22px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: 0 22px 60px rgba(146, 64, 14, 0.18);
}

.detail-meta {
  color: #b45309;
  font-weight: 950;
}

.detail-copy h1 {
  margin: 12px 0;
  color: #1f1607;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-one-line {
  color: #6b4e1f;
  font-size: 1.05rem;
  line-height: 1.8;
}

.detail-tags span {
  background: #ffedd5;
}

.detail-text {
  padding: 34px;
  border-color: rgba(146, 64, 14, 0.12);
  box-shadow: 0 18px 50px rgba(146, 64, 14, 0.08);
}

.detail-text h2 {
  margin: 0 0 12px;
  color: #1f1607;
  font-size: 1.5rem;
  font-weight: 950;
}

.detail-text p {
  margin: 0 0 26px;
  color: #573b12;
  line-height: 2;
  font-size: 1.02rem;
}

.site-footer {
  color: #fef3c7;
  background:
    radial-gradient(circle at 10% 0%, rgba(250, 204, 21, 0.12), transparent 24%),
    linear-gradient(180deg, #111827, #451a03 70%, #1c1917);
  padding: 62px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 36px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #facc15;
  font-size: 1.3rem;
  font-weight: 950;
}

.footer-brand p,
.site-footer p {
  color: #fde68a;
  line-height: 1.8;
}

.site-footer h2 {
  color: #facc15;
  font-size: 1.05rem;
  font-weight: 950;
}

.site-footer a {
  display: block;
  margin: 10px 0;
  color: #fffbeb;
  font-weight: 700;
  opacity: 0.82;
}

.site-footer a:hover {
  color: #facc15;
  opacity: 1;
}

.footer-bottom {
  margin-top: 44px;
  padding: 18px;
  border-top: 1px solid rgba(254, 243, 199, 0.15);
  color: #fde68a;
  text-align: center;
}

.line-clamp-1,
.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-1 {
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

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

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

  .hero-content {
    grid-template-columns: 1fr 280px;
    gap: 34px;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero-carousel {
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 56px 0 78px;
  }

  .hero-poster {
    width: min(280px, 84vw);
  }

  .hero-control {
    top: auto;
    bottom: 24px;
    transform: none;
  }

  .hero-control.prev {
    left: 24px;
  }

  .hero-control.next {
    left: 84px;
    right: auto;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

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

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

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

  .detail-poster {
    max-width: 240px;
  }

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

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .brand-text {
    font-size: 1.2rem;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 2.55rem;
  }

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

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

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

  .category-overview-card {
    grid-template-columns: 96px 1fr;
    padding: 16px;
  }

  .category-overview-card img {
    width: 96px;
    height: 128px;
  }

  .page-hero {
    padding: 28px;
    border-radius: 24px;
  }

  .detail-info,
  .detail-text {
    padding: 20px;
  }

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