:root {
  --site-amber: #d97706;
  --site-amber-dark: #92400e;
  --site-orange: #ea580c;
  --site-cream: #fffbeb;
  --site-card: rgba(255, 255, 255, 0.86);
  --site-text: #1f2937;
  --site-muted: #6b7280;
  --site-border: rgba(253, 230, 138, 0.72);
  --site-shadow: 0 24px 70px rgba(146, 64, 14, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--site-text);
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(251, 191, 36, 0.35), transparent 32rem),
    linear-gradient(135deg, #fffbeb 0%, #fef9c3 42%, #fff7ed 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

main {
  overflow: hidden;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(253, 230, 138, 0.8);
  background: rgba(255, 251, 235, 0.9);
  backdrop-filter: blur(16px);
}

.site-header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.site-logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.28);
}

.site-logo-text {
  font-size: 1.32rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #b45309, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
}

.nav-link {
  padding: 10px 12px;
  border-radius: 999px;
  color: #4b5563;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #b45309;
  background: rgba(253, 230, 138, 0.7);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--site-border);
  border-radius: 999px;
  background: #ffffff;
}

.header-search input,
.mobile-search input,
.search-panel input,
.local-filter-input {
  border: 0;
  outline: 0;
  color: #374151;
  background: transparent;
  font: inherit;
}

.header-search input {
  width: 180px;
  padding: 8px 8px 8px 14px;
}

.header-search button,
.mobile-search button,
.search-panel button {
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(253, 230, 138, 0.7);
}

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

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--site-shadow);
}

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

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  padding: 6px;
  border: 1px solid var(--site-border);
  border-radius: 999px;
}

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

.mobile-nav {
  display: grid;
  gap: 6px;
}

.hero-section {
  width: min(1180px, calc(100% - 32px));
  margin: 30px auto 76px;
}

.hero-shell {
  position: relative;
  min-height: 620px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--site-shadow);
  background: #92400e;
}

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

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

.hero-background {
  position: absolute;
  inset: 0;
}

.hero-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(69, 26, 3, 0.92), rgba(120, 53, 15, 0.52), rgba(251, 191, 36, 0.18)),
    linear-gradient(0deg, rgba(69, 26, 3, 0.68), transparent 50%);
}

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

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #92400e;
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  background: #fef3c7;
}

.hero-copy h1 {
  max-width: 720px;
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.25);
}

.hero-one-line {
  max-width: 650px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  line-height: 1.7;
}

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

.hero-tags span,
.detail-tags span {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  color: #7c2d12;
  font-weight: 800;
  font-size: 0.86rem;
  background: rgba(255, 237, 213, 0.92);
}

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

.primary-button,
.secondary-button,
.cta-actions a,
.inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: all 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 16px 34px rgba(217, 119, 6, 0.28);
}

.secondary-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.primary-button:hover,
.secondary-button:hover,
.cta-actions a:hover,
.inline-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  display: block;
  height: 470px;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.26);
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.hero-dots {
  position: absolute;
  left: 64px;
  bottom: 36px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 38px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.hero-dots button.is-active {
  background: #ffffff;
}

.hero-quick {
  position: relative;
  z-index: 4;
  width: calc(100% - 72px);
  margin: -58px auto 0;
  padding: 22px;
}

.hero-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.content-section {
  margin-bottom: 74px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-heading h2,
.page-hero h1,
.detail-intro h1,
.cta-section h2 {
  margin: 0;
  color: #78350f;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.section-heading p,
.page-hero p,
.cta-section p {
  max-width: 780px;
  margin: 10px 0 0;
  color: var(--site-muted);
  line-height: 1.8;
}

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

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

.movie-card {
  overflow: hidden;
}

.movie-card.is-hidden,
.rank-card.is-hidden {
  display: none;
}

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

.movie-poster img,
.hero-poster img,
.rank-poster img,
.detail-poster img,
.category-tile img,
.movie-card-media img {
  transition: transform 0.35s ease;
}

.movie-card:hover .movie-poster img,
.hero-poster:hover img,
.rank-card:hover .rank-poster img,
.category-tile:hover img,
.movie-card-horizontal:hover .movie-card-media img {
  transform: scale(1.06);
}

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(217, 119, 6, 0.92);
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(6px);
}

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

.movie-card-content h3,
.movie-card-body h3,
.rank-info h2 {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 1.02rem;
  line-height: 1.38;
}

.movie-card-content h3 a:hover,
.movie-card-body h3 a:hover,
.rank-info h2 a:hover {
  color: var(--site-amber);
}

.movie-meta-line,
.movie-card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #92400e;
  font-size: 0.86rem;
  font-weight: 800;
}

.movie-meta-line span,
.movie-card-meta span,
.detail-meta span {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fef3c7;
}

.movie-card-content p,
.movie-card-body p,
.rank-info p,
.detail-main p {
  color: var(--site-muted);
  line-height: 1.7;
}

.movie-card-content p {
  margin: 12px 0 0;
  font-size: 0.92rem;
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  padding: 12px;
}

.movie-card-media {
  display: block;
  min-height: 138px;
  border-radius: 14px;
  overflow: hidden;
  background: #fef3c7;
}

.movie-card-body {
  min-width: 0;
  padding: 4px 0;
}

.movie-card-body p {
  margin: 10px 0 0;
  font-size: 0.9rem;
}

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

.category-tile {
  position: relative;
  display: block;
  min-height: 250px;
  overflow: hidden;
  padding: 22px;
  color: #ffffff;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(69, 26, 3, 0.84), rgba(120, 53, 15, 0.18));
}

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

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

.category-tile span {
  display: inline-flex;
  margin-bottom: 84px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #92400e;
  font-weight: 900;
  background: #fef3c7;
}

.category-tile strong {
  display: block;
  font-size: 1.35rem;
}

.category-tile p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
}

.rank-list {
  margin: 0;
  padding: 14px;
  list-style: none;
}

.rank-list li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 10px;
  border-bottom: 1px solid rgba(253, 230, 138, 0.6);
}

.rank-list li:last-child {
  border-bottom: 0;
}

.rank-list span,
.rank-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 950;
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.rank-list a {
  min-width: 0;
  font-weight: 900;
  color: #374151;
}

.rank-list em {
  color: #92400e;
  font-style: normal;
  font-weight: 800;
}

.stack-list {
  display: grid;
  gap: 14px;
}

.cta-section {
  margin-bottom: 84px;
  padding: 58px 30px;
  border-radius: 34px;
  text-align: center;
  color: #ffffff;
  box-shadow: var(--site-shadow);
}

.cta-section h2,
.cta-section p {
  color: #ffffff;
}

.cta-section p {
  margin-left: auto;
  margin-right: auto;
  opacity: 0.92;
}

.cta-actions {
  justify-content: center;
}

.cta-actions a {
  color: #b45309;
  background: #ffffff;
}

.page-hero {
  margin: 42px auto 38px;
  padding: 54px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--site-shadow);
}

.page-hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.8rem);
}

.filter-panel,
.search-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
}

.local-filter-input,
.search-panel input {
  flex: 1 1 auto;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff7ed;
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-actions button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  color: #92400e;
  font-weight: 800;
  background: #fef3c7;
}

.filter-actions button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.category-overview-wrap {
  display: grid;
  gap: 24px;
}

.category-overview {
  padding: 22px;
}

.category-overview-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.category-overview h2 {
  margin: 0;
  color: #78350f;
  font-size: 2rem;
}

.category-overview p {
  margin: 8px 0 0;
  color: var(--site-muted);
  line-height: 1.7;
}

.inline-link {
  flex: 0 0 auto;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

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

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

.rank-card {
  display: grid;
  grid-template-columns: 54px 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
}

.rank-poster {
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 18px;
  background: #fef3c7;
}

.detail-hero {
  position: relative;
  min-height: 600px;
  margin-bottom: 64px;
  overflow: hidden;
}

.detail-bg {
  position: absolute;
  inset: 0;
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(69, 26, 3, 0.92), rgba(69, 26, 3, 0.62), rgba(251, 191, 36, 0.18)),
    linear-gradient(0deg, #fffbeb 0%, rgba(255, 251, 235, 0.26) 45%, rgba(69, 26, 3, 0.2) 100%);
}

.detail-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  min-height: 600px;
  padding: 46px 0;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 10px solid rgba(255, 255, 255, 0.26);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.detail-intro h1 {
  max-width: 760px;
  margin: 18px 0 18px;
  color: #ffffff;
  font-size: clamp(2.2rem, 5vw, 5rem);
  text-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.detail-one-line {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.2rem;
  line-height: 1.8;
}

.detail-meta {
  margin: 22px 0 16px;
}

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

.site-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.1));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-start span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 2.3rem;
  line-height: 1;
  text-indent: 0.12em;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.player-frame.is-playing .player-start {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.detail-main,
.detail-side,
.next-prev {
  padding: 24px;
}

.detail-main h2,
.detail-side h2 {
  margin: 0 0 14px;
  color: #78350f;
  font-size: 1.5rem;
}

.detail-main p {
  margin: 0 0 24px;
  font-size: 1.02rem;
}

.compact-tags {
  margin-top: 8px;
}

.side-list {
  display: grid;
  gap: 12px;
}

.next-prev {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.next-prev a {
  color: #92400e;
  font-weight: 900;
}

.search-results .movie-grid {
  margin-top: 22px;
}

.site-footer {
  color: #ffffff;
  background: linear-gradient(135deg, #78350f, #92400e 48%, #431407);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-logo .site-logo-text {
  color: #ffffff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.footer-brand p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.8;
}

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

.footer-links a {
  padding: 9px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
}

.footer-bottom {
  padding: 18px 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 1080px) {
  .site-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 42px;
  }

  .hero-poster {
    display: none;
  }

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

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

  .two-column-section,
  .detail-grid,
  .detail-shell {
    grid-template-columns: 1fr;
  }

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

  .overview-list,
  .hero-quick-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container-wrap,
  .site-header-inner,
  .mobile-panel,
  .hero-section {
    width: min(100% - 24px, 1180px);
  }

  .site-header-inner {
    height: 66px;
  }

  .site-logo-text {
    font-size: 1.05rem;
  }

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

  .hero-content {
    padding: 28px;
  }

  .hero-dots {
    left: 28px;
    bottom: 26px;
  }

  .hero-quick {
    width: calc(100% - 24px);
  }

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

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

  .movie-card-content p {
    display: none;
  }

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

  .page-hero {
    padding: 30px;
  }

  .filter-panel,
  .search-panel,
  .category-overview-head,
  .footer-inner,
  .next-prev {
    flex-direction: column;
    align-items: stretch;
  }

  .rank-card {
    grid-template-columns: 44px 96px minmax(0, 1fr);
    gap: 12px;
  }

  .detail-shell {
    min-height: auto;
    padding: 30px 0;
  }

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

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

  .detail-intro h1 {
    font-size: 2.3rem;
  }

  .player-start span {
    width: 66px;
    height: 66px;
    font-size: 1.8rem;
  }

  .movie-card-horizontal {
    grid-template-columns: 92px minmax(0, 1fr);
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .feature-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-number {
    position: absolute;
    margin: 10px;
  }
}
