html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #292524;
  background: linear-gradient(180deg, #fffbeb 0%, #f5f5f4 45%, #fafaf9 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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: #fffbeb;
  background: linear-gradient(90deg, #78350f, #92400e 52%, #78350f);
  box-shadow: 0 18px 45px rgba(69, 26, 3, 0.28);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  height: 70px;
  margin: 0 auto;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #451a03;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 12px 30px rgba(251, 191, 36, 0.38);
  font-weight: 900;
  letter-spacing: -0.05em;
}

.brand-mark.small {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 13px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

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

.brand-text em {
  margin-top: 4px;
  color: #fcd34d;
  font-size: 12px;
  font-style: normal;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 650;
}

.nav-links a {
  position: relative;
  color: #fffbeb;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #fde68a;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 251, 235, 0.1);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #fffbeb;
}

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #fffbeb;
}

.mobile-menu a:hover {
  background: rgba(255, 251, 235, 0.12);
}

.mobile-menu.open {
  display: block;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  color: #fff7ed;
  background: #1c1917;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(245, 158, 11, 0.48), transparent 32%),
    radial-gradient(circle at 78% 26%, rgba(217, 119, 6, 0.34), transparent 35%),
    linear-gradient(135deg, #1c1917, #451a03 58%, #0c0a09);
}

.hero-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: 54px;
  padding: 76px 0 84px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-media {
  order: 2;
  position: relative;
  min-height: 430px;
  border: 1px solid rgba(255, 237, 213, 0.16);
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(146, 64, 14, 0.7), rgba(28, 25, 23, 0.96));
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.42);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(12, 10, 9, 0.78));
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-head span,
.page-hero span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 8px 13px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 999px;
  color: #fcd34d;
  background: rgba(69, 26, 3, 0.38);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 670px;
  margin: 0 0 24px;
  color: #fed7aa;
  font-size: 18px;
  line-height: 1.85;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 12px;
  font-weight: 800;
}

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

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

.primary-btn {
  color: #451a03;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 16px 35px rgba(245, 158, 11, 0.38);
}

.ghost-btn {
  color: #fffbeb;
  border: 1px solid rgba(255, 251, 235, 0.28);
  background: rgba(255, 251, 235, 0.1);
  backdrop-filter: blur(12px);
}

.primary-btn:hover,
.ghost-btn:hover,
.search-link:hover {
  transform: translateY(-2px);
}

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

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

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

.quick-search {
  position: relative;
  z-index: 5;
  width: min(1060px, calc(100% - 32px));
  margin: -38px auto 0;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr 220px auto;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(146, 64, 14, 0.12);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 25px 60px rgba(120, 53, 15, 0.16);
  backdrop-filter: blur(16px);
}

.search-panel.inner {
  margin-bottom: 28px;
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #fde68a;
  border-radius: 18px;
  color: #292524;
  background: #fffbeb;
  outline: 0;
  padding: 0 16px;
}

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

.search-link {
  color: #451a03;
  background: #fbbf24;
}

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

.section-head {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-head.compact {
  margin-bottom: 24px;
}

.section-head h2,
.page-hero h1,
.content-card h2 {
  margin: 0;
  color: #1c1917;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head p,
.page-hero p {
  margin: 14px 0 0;
  color: #78716c;
  font-size: 16px;
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(120, 113, 108, 0.12);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(41, 37, 36, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.38);
  box-shadow: 0 24px 60px rgba(120, 53, 15, 0.16);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 20%, rgba(251, 191, 36, 0.42), transparent 32%),
    linear-gradient(135deg, #78350f, #1c1917);
}

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

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.68));
}

.poster b {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
  font-size: 12px;
}

.play-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: #451a03;
  background: rgba(251, 191, 36, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.movie-card h2 {
  margin: 0 0 10px;
  color: #292524;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h2 a:hover {
  color: #b45309;
}

.movie-card p {
  display: -webkit-box;
  min-height: 47px;
  margin: 0 0 14px;
  overflow: hidden;
  color: #57534e;
  font-size: 14px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: #78716c;
  font-size: 12px;
}

.meta-row span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f5f5f4;
}

.tag-row.large span {
  padding: 8px 12px;
  font-size: 13px;
}

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

.category-tile,
.category-overview-card {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  padding: 26px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.26), transparent 36%),
    #fff;
  box-shadow: 0 18px 45px rgba(120, 53, 15, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(120, 53, 15, 0.16);
}

.category-tile span,
.category-title {
  display: block;
  margin-bottom: 12px;
  color: #92400e;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.category-tile strong,
.category-overview-card p {
  color: #57534e;
  font-size: 15px;
  line-height: 1.7;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.mini-links a {
  padding: 6px 10px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 12px;
  font-weight: 800;
}

.ranking-strip {
  padding-bottom: 84px;
}

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

.ranking-list.wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.movie-card.horizontal .poster {
  height: 100%;
  min-height: 158px;
  aspect-ratio: auto;
}

.movie-card.horizontal .movie-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-hero {
  color: #fff7ed;
  background:
    radial-gradient(circle at 18% 20%, rgba(245, 158, 11, 0.45), transparent 28%),
    linear-gradient(110deg, #1c1917, #78350f 58%, #451a03);
}

.page-hero > div {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 78px;
}

.page-hero h1 {
  color: #fffbeb;
}

.page-hero p {
  max-width: 780px;
  color: #fed7aa;
}

.category-hero {
  background:
    radial-gradient(circle at 76% 28%, rgba(251, 191, 36, 0.28), transparent 30%),
    linear-gradient(110deg, #292524, #78350f);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: #fde68a;
  font-size: 14px;
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fffbeb;
  background: #1c1917;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  filter: blur(8px);
  transform: scale(1.05);
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 28%, rgba(245, 158, 11, 0.36), transparent 32%),
    linear-gradient(90deg, rgba(28, 25, 23, 0.98), rgba(69, 26, 3, 0.88));
}

.detail-shell {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 72px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255, 251, 235, 0.2);
  border-radius: 28px;
  background:
    radial-gradient(circle at 25% 20%, rgba(251, 191, 36, 0.4), transparent 32%),
    linear-gradient(135deg, #78350f, #1c1917);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.detail-info .lead {
  max-width: 820px;
  margin: 0 0 24px;
  color: #fed7aa;
  font-size: 18px;
  line-height: 1.8;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #fffbeb;
  background: rgba(255, 251, 235, 0.12);
}

.player-section {
  padding-top: 48px;
}

.player-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 1px solid rgba(120, 53, 15, 0.18);
  border-radius: 30px;
  background: #0c0a09;
  box-shadow: 0 28px 80px rgba(28, 25, 23, 0.25);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0c0a09;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #451a03;
  background: linear-gradient(180deg, rgba(12, 10, 9, 0.18), rgba(12, 10, 9, 0.74));
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.play-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 18px 55px rgba(245, 158, 11, 0.38);
  font-size: 34px;
  text-indent: 6px;
}

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

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.content-card {
  padding: 30px;
  border: 1px solid rgba(120, 113, 108, 0.12);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(41, 37, 36, 0.08);
}

.content-card h2 {
  margin-bottom: 18px;
  font-size: 28px;
}

.content-card p {
  margin: 0;
  color: #57534e;
  font-size: 16px;
  line-height: 1.9;
}

.related-grid {
  padding-bottom: 84px;
}

.site-footer {
  margin-top: 84px;
  color: #d6d3d1;
  background: linear-gradient(90deg, #1c1917, #292524, #1c1917);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #fffbeb;
  font-size: 18px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fffbeb;
  font-size: 18px;
}

.site-footer p {
  color: #a8a29e;
  line-height: 1.8;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 9px;
}

.site-footer a:hover {
  color: #fbbf24;
}

.copyright {
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(214, 211, 209, 0.14);
  text-align: center;
  font-size: 13px;
}

[data-movie-card].is-hidden {
  display: none;
}

@media (max-width: 1024px) {
  .nav-links {
    gap: 14px;
    font-size: 14px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 46px;
  }

  .hero-media {
    order: 0;
    min-height: 300px;
  }

  .hero-media img {
    min-height: 300px;
  }

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

  .ranking-list.wide {
    grid-template-columns: 1fr;
  }

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

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

  .nav-toggle {
    display: block;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .brand-text em {
    display: none;
  }

  .hero,
  .hero-shell {
    min-height: 780px;
  }

  .hero-copy h1 {
    font-size: clamp(36px, 13vw, 58px);
  }

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

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

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

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

  .detail-poster {
    width: min(320px, 100%);
  }
}

@media (max-width: 560px) {
  .nav-shell,
  .mobile-menu,
  .hero-shell,
  .section-shell,
  .page-hero > div,
  .detail-shell,
  .footer-shell {
    width: min(100% - 24px, 1180px);
  }

  .hero,
  .hero-shell {
    min-height: 740px;
  }

  .hero-slide {
    padding-bottom: 90px;
  }

  .hero-media {
    min-height: 230px;
    border-radius: 24px;
  }

  .hero-media img {
    min-height: 230px;
  }

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

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

  .movie-card.horizontal .poster {
    min-height: 210px;
  }

  .section-shell {
    padding-top: 54px;
  }

  .play-overlay span {
    width: 74px;
    height: 74px;
    font-size: 28px;
  }
}
