* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #1f2937;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 38%, #fff7ed 100%);
  line-height: 1.6;
}

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: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.96));
  box-shadow: 0 10px 30px rgba(146, 64, 14, 0.12);
  backdrop-filter: blur(14px);
}

.nav-shell {
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.3);
}

.brand-text {
  font-size: 24px;
  background: linear-gradient(90deg, #d97706, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(146, 64, 14, 0.12);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #92400e;
  border-radius: 2px;
}

.hero-carousel {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #ffedd5 50%, #fed7aa);
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 650px;
  object-fit: cover;
  opacity: 0.36;
  transform: scale(1.02);
}

.hero-overlay,
.detail-hero-overlay,
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.38), transparent 26%),
    linear-gradient(90deg, rgba(255, 251, 235, 0.98), rgba(255, 247, 237, 0.85) 46%, rgba(124, 45, 18, 0.5));
}

.hero-content {
  position: absolute;
  z-index: 2;
  left: calc((100vw - min(1280px, 100vw)) / 2 + 24px);
  top: 50%;
  width: min(720px, calc(100% - 48px));
  transform: translateY(-50%);
}

.hero-kicker,
.section-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #b45309;
  background: rgba(254, 243, 199, 0.92);
  font-size: 14px;
  font-weight: 800;
}

.hero-content h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.06em;
  color: #111827;
}

.hero-content h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.1;
  color: #d97706;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 24px;
  color: #374151;
  font-size: 20px;
}

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

.hero-tags span,
.movie-tags span {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  color: #92400e;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  box-shadow: 0 18px 36px rgba(245, 158, 11, 0.25);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 48px rgba(146, 64, 14, 0.22);
}

.ghost-button {
  color: #b45309;
  background: rgba(255, 255, 255, 0.84);
  border: 2px solid rgba(245, 158, 11, 0.45);
}

.ghost-button.light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
}

.primary-button.full {
  width: 100%;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(146, 64, 14, 0.34);
}

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

.feature-strip {
  max-width: 1180px;
  margin: -46px auto 24px;
  padding: 0 24px;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-item {
  padding: 24px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(146, 64, 14, 0.12);
  text-align: center;
}

.feature-item strong {
  display: block;
  margin-bottom: 6px;
  color: #111827;
  font-size: 20px;
}

.feature-item span {
  color: #6b7280;
  font-size: 14px;
}

.page-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 78px 24px;
}

.soft-section {
  max-width: none;
  background: linear-gradient(180deg, #fffbeb, #ffffff);
}

.soft-section > * {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

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

.section-heading h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
}

.section-heading p {
  max-width: 720px;
  margin: 0;
  color: #6b7280;
  font-size: 17px;
}

.section-more {
  flex: 0 0 auto;
  color: #d97706;
  font-weight: 900;
}

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

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

.poster-card,
.wide-card,
.category-overview-card,
.ranking-item,
.side-card,
.content-card,
.player-card {
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 14px 32px rgba(146, 64, 14, 0.1);
}

.poster-card {
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.poster-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 54px rgba(146, 64, 14, 0.18);
}

.poster-card figure {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #ffedd5);
}

.poster-card img,
.wide-card img,
.category-tile img,
.category-cover img,
.ranking-item img,
.poster-info img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.poster-card:hover img,
.wide-card:hover img,
.category-tile:hover img,
.category-overview-card:hover img,
.ranking-item:hover img {
  transform: scale(1.08);
}

.type-badge,
.rank-badge,
.heat-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.type-badge,
.rank-badge {
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  background: linear-gradient(90deg, #f59e0b, #f97316);
}

.heat-badge {
  left: 12px;
  bottom: 12px;
  padding: 5px 9px;
  background: rgba(17, 24, 39, 0.72);
}

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

.poster-card h3,
.wide-card h3,
.category-overview-card h2,
.ranking-item h2 {
  margin: 0 0 8px;
  color: #111827;
  line-height: 1.35;
}

.poster-card h3 {
  font-size: 18px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.poster-card p,
.wide-card p,
.category-overview-card p,
.ranking-item p {
  margin: 0 0 14px;
  color: #6b7280;
  font-size: 14px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.wide-card {
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.wide-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 54px rgba(146, 64, 14, 0.18);
}

.wide-card a {
  display: grid;
  grid-template-columns: 38% 1fr;
  min-height: 190px;
}

.wide-card figure {
  margin: 0;
  overflow: hidden;
}

.wide-card-body {
  padding: 22px;
}

.category-grid,
.category-overview-grid {
  display: grid;
  gap: 22px;
}

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

.category-tile {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 28px;
  padding: 28px;
  color: #ffffff;
  box-shadow: 0 18px 48px rgba(146, 64, 14, 0.16);
}

.category-tile:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.76));
}

.category-tile img {
  position: absolute;
  inset: 0;
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 2;
}

.category-tile span {
  display: block;
  margin-top: 96px;
  font-size: 24px;
  font-weight: 900;
}

.category-tile p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.88);
}

.cta-panel {
  max-width: 1180px;
  margin: 30px auto 90px;
  padding: 58px 30px;
  border-radius: 34px;
  color: #ffffff;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(90deg, #f59e0b, #f97316);
  text-align: center;
  box-shadow: 0 24px 60px rgba(245, 158, 11, 0.26);
}

.cta-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 52px);
}

.cta-panel p {
  max-width: 760px;
  margin: 0 auto 28px;
  font-size: 18px;
  opacity: 0.92;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: center;
}

.gradient-hero {
  padding: 86px 24px;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.26), transparent 30%),
    linear-gradient(120deg, #d97706, #f97316);
}

.gradient-hero > div,
.category-hero > div,
.detail-hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.page-hero h1,
.detail-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.page-hero p,
.detail-hero p {
  max-width: 780px;
  margin: 0;
  font-size: 19px;
}

.category-hero img,
.detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-hero,
.detail-hero {
  color: #ffffff;
  background: #92400e;
}

.category-hero .page-hero-overlay,
.detail-hero-overlay {
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.82), rgba(17, 24, 39, 0.4), rgba(146, 64, 14, 0.6)),
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.35), transparent 30%);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 54px rgba(146, 64, 14, 0.16);
}

.category-cover {
  overflow: hidden;
}

.category-overview-card > div {
  padding: 24px;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inline-links a {
  padding: 5px 10px;
  border-radius: 999px;
  color: #b45309;
  background: #fef3c7;
  font-size: 12px;
  font-weight: 800;
}

.filter-panel {
  max-width: 1180px;
  margin: -34px auto 0;
  padding: 24px;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 16px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(146, 64, 14, 0.14);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #92400e;
  font-size: 13px;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #fde68a;
  border-radius: 14px;
  color: #1f2937;
  background: #fffbeb;
  outline: none;
}

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

.empty-state {
  padding: 60px 20px;
  border-radius: 24px;
  background: #ffffff;
  color: #92400e;
  text-align: center;
  font-weight: 900;
  box-shadow: 0 14px 32px rgba(146, 64, 14, 0.1);
}

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

.ranking-item {
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ranking-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(146, 64, 14, 0.16);
}

.ranking-item a {
  display: grid;
  grid-template-columns: 74px 110px 1fr 110px;
  align-items: center;
  gap: 18px;
  padding: 16px;
}

.ranking-number {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  font-size: 22px;
  font-weight: 900;
}

.ranking-item img {
  width: 110px;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  object-fit: cover;
}

.ranking-item strong {
  color: #d97706;
  font-size: 24px;
}

.detail-hero {
  min-height: 520px;
}

.detail-hero-content {
  padding: 80px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

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

.detail-layout {
  max-width: 1280px;
  margin: -80px auto 0;
  padding: 0 24px 30px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
}

.detail-main,
.detail-side {
  display: grid;
  align-content: start;
  gap: 24px;
}

.player-card,
.content-card,
.side-card {
  overflow: hidden;
}

.player-frame {
  position: relative;
  background: #111827;
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.25), rgba(17, 24, 39, 0.72));
}

.play-overlay[hidden] {
  display: none;
}

.play-circle {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 18px 46px rgba(245, 158, 11, 0.38);
  font-size: 38px;
}

.play-overlay strong {
  font-size: 20px;
}

.content-card {
  padding: 30px;
}

.content-card h2,
.side-card h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 26px;
}

.content-card p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
}

.poster-info {
  padding: 22px;
}

.poster-info img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  margin-bottom: 18px;
  object-fit: cover;
}

.poster-info dl {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
}

.poster-info dl div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}

.poster-info dt {
  color: #9ca3af;
  font-weight: 700;
}

.poster-info dd {
  margin: 0;
  color: #374151;
  font-weight: 800;
}

.site-footer {
  margin-top: 30px;
  color: #fffbeb;
  background: linear-gradient(180deg, #78350f, #451a03);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 58px 24px 42px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 34px;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: #fde68a;
  font-size: 20px;
}

.footer-grid p,
.footer-grid a {
  color: #ffedd5;
  font-size: 14px;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-grid a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 24px;
  border-top: 1px solid rgba(253, 230, 138, 0.18);
  color: #fde68a;
  font-size: 14px;
  text-align: center;
}

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

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

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

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

  .detail-side {
    max-width: 420px;
  }
}

@media (max-width: 820px) {
  .nav-shell {
    height: 66px;
    padding: 0 16px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(146, 64, 14, 0.18);
  }

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

  .nav-link {
    padding: 12px 14px;
    border-radius: 12px;
  }

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

  .hero-overlay {
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.94), rgba(255, 237, 213, 0.9), rgba(124, 45, 18, 0.38));
  }

  .hero-content {
    left: 18px;
    width: calc(100% - 36px);
  }

  .hero-content p {
    font-size: 17px;
  }

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

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

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

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

  .category-cover {
    aspect-ratio: 16 / 9;
  }

  .ranking-item a {
    grid-template-columns: 56px 84px 1fr;
  }

  .ranking-item strong {
    display: none;
  }

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

@media (max-width: 560px) {
  .brand-text {
    font-size: 20px;
  }

  .page-section {
    padding: 52px 16px;
  }

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

  .category-tile {
    min-height: 210px;
  }

  .detail-layout {
    margin-top: -50px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .content-card {
    padding: 22px;
  }

  .ranking-item a {
    grid-template-columns: 46px 72px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .ranking-number {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 18px;
  }

  .ranking-item img {
    width: 72px;
  }
}
