:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-500: #78716c;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(41, 37, 36, 0.12);
  --shadow-card: 0 12px 30px rgba(41, 37, 36, 0.10);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

body {
  min-height: 100vh;
  color: var(--stone-800);
  background: linear-gradient(180deg, var(--amber-50), var(--stone-50) 38%, #ffffff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(245, 158, 11, 0.14);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--stone-900);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.logo-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--white);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  box-shadow: 0 14px 30px rgba(217, 119, 6, 0.32);
}

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

.nav-link {
  padding: 10px 15px;
  color: var(--stone-700);
  border-radius: 999px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--amber-700);
  background: var(--amber-100);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border-radius: 12px;
  background: var(--amber-100);
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 99px;
  background: var(--amber-700);
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--amber-500) 48%, var(--amber-700));
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.95) 0 2px, transparent 3px), radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.72) 0 1px, transparent 3px);
  background-size: 80px 80px, 120px 120px;
}

.hero-shell {
  position: relative;
  z-index: 1;
  min-height: 650px;
  padding: 72px 0 48px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 46px;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeUp 0.48s ease both;
}

.hero-copy {
  max-width: 720px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-kicker {
  color: var(--white);
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-copy h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero-lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.7;
}

.hero-tags,
.tag-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-tags {
  margin-top: 28px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  font-weight: 900;
  box-shadow: 0 14px 32px rgba(217, 119, 6, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(217, 119, 6, 0.35);
}

.btn-light {
  color: var(--amber-700);
  background: var(--white);
}

.btn-ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.btn-small {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 12px;
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  max-height: 540px;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.16);
  border-radius: 34px;
  box-shadow: 0 32px 80px rgba(68, 64, 60, 0.38);
  transform: rotate(2deg);
}

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

.hero-poster span,
.poster-play {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--amber-700);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.hero-poster span {
  right: 24px;
  bottom: 24px;
}

.hero-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 30px;
}

.hero-dots {
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 38px;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-dot.is-active {
  background: var(--white);
}

.hero-rank-link {
  color: var(--white);
  font-weight: 900;
}

.site-section {
  padding: 72px 0;
}

.section-soft {
  background: rgba(245, 245, 244, 0.7);
}

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

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.content-card h2,
.side-card h2 {
  margin: 0;
  color: var(--stone-900);
  font-weight: 950;
  letter-spacing: -0.05em;
}

.section-heading h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.section-link {
  color: var(--amber-700);
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(231, 229, 228, 0.88);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--stone-200);
}

.poster-link img {
  transition: transform 0.35s ease;
}

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

.poster-play {
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translateY(0);
}

.card-rank {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--white);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  font-style: normal;
  font-weight: 950;
}

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

.movie-card-body h3 {
  margin: 8px 0 8px;
  color: var(--stone-900);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.movie-card-body p {
  margin: 0 0 14px;
  color: var(--stone-500);
  line-height: 1.65;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 800;
}

.card-meta span,
.card-meta a {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--amber-100);
}

.tag-row span {
  color: var(--stone-700);
  background: var(--stone-100);
}

.movie-card-small .movie-card-body h3 {
  font-size: 16px;
}

.movie-card-small .movie-card-body p {
  display: none;
}

.category-grid,
.category-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: 220px;
  border-radius: var(--radius-lg);
  background: var(--stone-900);
  box-shadow: var(--shadow-card);
}

.category-tile img {
  position: absolute;
  inset: 0;
  opacity: 0.46;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-tile:hover img {
  opacity: 0.62;
  transform: scale(1.05);
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 1;
  display: block;
  padding: 0 22px;
  color: var(--white);
}

.category-tile span {
  margin-top: 112px;
  font-size: 24px;
  font-weight: 950;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 12px;
  margin-bottom: 28px;
  padding: 14px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-card);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--stone-100);
}

.search-box span {
  color: var(--amber-700);
  font-weight: 900;
}

.search-box input,
.filter-select {
  width: 100%;
  min-height: 48px;
  color: var(--stone-800);
  outline: none;
  background: transparent;
  font-weight: 700;
}

.filter-select {
  padding: 0 14px;
  border-radius: 14px;
  background: var(--stone-100);
}

.page-hero {
  padding: 74px 0;
  background: linear-gradient(135deg, var(--amber-100), rgba(255, 255, 255, 0.8));
}

.page-hero h1 {
  max-width: 760px;
  font-size: clamp(38px, 6vw, 68px);
}

.page-hero p {
  max-width: 740px;
  margin: 18px 0 0;
  color: var(--stone-700);
  font-size: 19px;
  line-height: 1.8;
}

.category-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 34px;
  align-items: center;
}

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

.category-hero-covers a {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

.category-hero-covers span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 26px 10px 10px;
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  color: var(--stone-500);
  font-weight: 800;
}

.breadcrumb a {
  color: var(--amber-700);
}

.category-overview-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 260px;
  border: 1px solid rgba(231, 229, 228, 0.8);
  background: var(--white);
}

.category-covers {
  height: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.category-overview-body {
  padding: 26px;
}

.category-overview-body h2 {
  margin: 0 0 12px;
  color: var(--stone-900);
  font-size: 28px;
  font-weight: 950;
}

.category-overview-body p {
  margin: 0;
  color: var(--stone-600, #57534e);
  line-height: 1.75;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.rank-num {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--white);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  font-size: 18px;
  font-weight: 950;
}

.rank-cover {
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: var(--stone-200);
}

.rank-info h2 {
  margin: 0 0 6px;
  color: var(--stone-900);
  font-size: 22px;
  font-weight: 950;
}

.rank-info p {
  margin: 0 0 10px;
  color: var(--stone-500);
  line-height: 1.65;
}

.detail-hero {
  padding: 58px 0;
  color: var(--white);
  background: radial-gradient(circle at 70% 20%, rgba(251, 191, 36, 0.4), transparent 28%), linear-gradient(135deg, var(--stone-900), #3f2f18 58%, var(--amber-700));
}

.detail-hero-inner {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
}

.detail-copy h1 {
  color: var(--white);
  font-size: clamp(38px, 6vw, 70px);
}

.detail-lead {
  max-width: 850px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.8;
}

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

.detail-meta span,
.detail-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.detail-copy .breadcrumb {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.68);
}

.detail-copy .breadcrumb a {
  color: var(--amber-100);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: start;
}

.player-card,
.content-card,
.side-card {
  overflow: hidden;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000000;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.5));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-button {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  color: var(--amber-700);
  border-radius: 50%;
  background: var(--white);
  font-size: 34px;
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.24);
  transition: transform 0.2s ease;
}

.player-button:hover {
  transform: scale(1.06);
}

.content-card,
.side-card {
  margin-top: 22px;
  padding: 28px;
}

.content-card h2,
.side-card h2 {
  margin-bottom: 14px;
  font-size: 28px;
}

.content-card p {
  margin: 0;
  color: var(--stone-700);
  font-size: 17px;
  line-height: 1.9;
}

.side-card {
  margin-top: 0;
}

.side-card dl {
  display: grid;
  gap: 13px;
  margin: 0;
}

.side-card dt {
  color: var(--amber-700);
  font-weight: 950;
}

.side-card dd {
  margin: -8px 0 0;
  color: var(--stone-700);
  line-height: 1.65;
}

.site-footer {
  padding: 42px 0;
  color: rgba(255, 255, 255, 0.8);
  background: var(--stone-900);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 26px;
}

.site-footer strong {
  display: block;
  color: var(--white);
  font-size: 20px;
  margin-bottom: 8px;
}

.site-footer p {
  max-width: 560px;
  margin: 0;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.footer-links a {
  color: var(--amber-100);
  font-weight: 800;
}

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .detail-layout,
  .category-hero-inner {
    grid-template-columns: 1fr;
  }
}

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

  .site-nav {
    position: absolute;
    top: 74px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--stone-200);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
  }

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

  .hero-shell {
    min-height: auto;
    padding: 46px 0 34px;
  }

  .hero-slide,
  .hero-slide.is-active,
  .detail-hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    max-height: 440px;
    transform: none;
  }

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

  .rank-row {
    grid-template-columns: 44px 72px minmax(0, 1fr);
  }

  .rank-row .btn {
    grid-column: 2 / -1;
  }

  .footer-inner {
    flex-direction: column;
  }
}

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

  .site-section {
    padding: 48px 0;
  }

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

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

  .movie-card-body h3 {
    font-size: 15px;
  }

  .movie-card-body p,
  .tag-row {
    display: none;
  }

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

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

  .category-covers {
    height: 150px;
  }

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

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

  .content-card,
  .side-card {
    padding: 20px;
  }
}
