
:root {
  --stone-950: #1c1917;
  --stone-900: #292524;
  --stone-800: #44403c;
  --stone-700: #57534e;
  --stone-600: #78716c;
  --stone-500: #a8a29e;
  --stone-300: #d6d3d1;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --stone-50: #fafaf9;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-100: #fef3c7;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(41, 37, 36, .13);
  --shadow-card: 0 12px 30px rgba(41, 37, 36, .12);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--stone-50);
  color: var(--stone-900);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.7;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(41, 37, 36, .96);
  color: var(--stone-50);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(28, 25, 23, .22);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .02em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-800));
  color: var(--white);
  font-size: 15px;
  box-shadow: 0 12px 26px rgba(217, 119, 6, .35);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  white-space: nowrap;
}

.desktop-nav a,
.mobile-nav a {
  color: var(--stone-200);
  font-weight: 600;
  transition: color .2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--amber-500);
}

.nav-search {
  display: flex;
  align-items: center;
  width: 300px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(87, 83, 78, .82);
  border: 1px solid rgba(255, 255, 255, .08);
}

.nav-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 11px 14px 11px 18px;
  background: transparent;
  color: var(--white);
}

.nav-search input::placeholder {
  color: var(--stone-300);
}

.nav-search button,
.hero-search button,
.filter-panel button {
  border: 0;
  cursor: pointer;
  background: var(--amber-600);
  color: var(--white);
  font-weight: 700;
  padding: 11px 18px;
  transition: background .2s ease, transform .2s ease;
}

.nav-search button:hover,
.hero-search button:hover,
.filter-panel button:hover {
  background: var(--amber-700);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--stone-50);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  gap: 12px;
  flex-direction: column;
}

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

.mobile-nav form {
  display: flex;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(87, 83, 78, .82);
}

.mobile-nav input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 12px 14px;
  background: transparent;
  color: var(--white);
}

.mobile-nav button {
  border: 0;
  padding: 0 16px;
  background: var(--amber-600);
  color: var(--white);
  font-weight: 700;
}

.hero-carousel {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  background: var(--stone-900);
}

.hero-slides {
  position: relative;
  min-height: 570px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity .75s ease, transform .9s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-copy {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  color: var(--white);
  max-width: 720px;
  padding: 84px 0 128px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--amber-500);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 13px;
  font-weight: 800;
}

.hero-copy h1 {
  max-width: 820px;
  margin: 12px 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.04;
  letter-spacing: -.04em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 22px;
  color: var(--stone-200);
  font-size: clamp(17px, 2.2vw, 22px);
}

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

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(245, 158, 11, .13);
  color: var(--amber-700);
  border: 1px solid rgba(217, 119, 6, .22);
  padding: 5px 11px;
  font-size: 13px;
  font-weight: 700;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.hero-tags .tag {
  color: var(--amber-100);
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .18);
}

.tag:hover {
  transform: translateY(-1px);
  background: var(--amber-600);
  color: var(--white);
}

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

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

.primary-button {
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  color: var(--white);
  box-shadow: 0 14px 30px rgba(217, 119, 6, .32);
}

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

.ghost-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .08);
}

.full-button {
  width: 100%;
  margin-top: 16px;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 86px;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-prev,
.hero-next {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: var(--white);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

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

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

.hero-dot.is-active {
  width: 28px;
  background: var(--amber-500);
}

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 6;
  width: min(720px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(250, 250, 249, .96);
  box-shadow: var(--shadow-soft);
}

.hero-search input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 18px 24px;
  background: transparent;
  color: var(--stone-900);
}

.section-block {
  padding: 64px 0;
}

.muted-section {
  background: var(--stone-100);
}

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

.section-heading h2,
.page-title-section h1 {
  margin: 6px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
  letter-spacing: -.03em;
}

.section-heading a {
  color: var(--amber-700);
  font-weight: 800;
}

.light-heading h2,
.light-heading a {
  color: var(--white);
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform .22s ease, box-shadow .22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(41, 37, 36, .18);
}

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

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

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

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.year-badge {
  right: 10px;
  top: 10px;
  padding: 4px 9px;
  background: rgba(28, 25, 23, .78);
}

.rank-badge {
  left: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-800));
  box-shadow: 0 12px 22px rgba(217, 119, 6, .33);
}

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

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--stone-600);
  font-size: 13px;
  font-weight: 700;
}

.movie-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--stone-100);
  padding: 4px 9px;
}

.movie-card h3 {
  margin: 11px 0 8px;
  font-size: 19px;
  line-height: 1.32;
}

.movie-card h3 a:hover {
  color: var(--amber-700);
}

.movie-card p {
  margin: 0 0 14px;
  color: var(--stone-700);
  font-size: 14px;
}

.card-tags .tag {
  font-size: 12px;
  padding: 3px 8px;
}

.movie-card-wide {
  display: grid;
  grid-template-columns: 160px 1fr;
}

.movie-card-wide .poster-link {
  aspect-ratio: auto;
  min-height: 190px;
}

.rank-section {
  background: radial-gradient(circle at top left, rgba(245, 158, 11, .22), transparent 34%), linear-gradient(135deg, var(--stone-950), var(--stone-800));
}

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

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

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

.category-tile {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--radius-lg);
  padding: 22px;
  color: var(--white);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .22s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
}

.category-tile span {
  font-size: 23px;
  font-weight: 900;
}

.category-tile p {
  margin: 8px 0 0;
  color: var(--stone-200);
  font-size: 14px;
}

.page-title-section {
  padding: 64px 0 48px;
  background: linear-gradient(135deg, var(--stone-900), var(--stone-700));
  color: var(--white);
}

.page-title-section p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--stone-200);
  font-size: 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 220px 220px;
  gap: 16px;
  margin-top: -26px;
  margin-bottom: 30px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: var(--stone-700);
  font-weight: 800;
  font-size: 14px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--stone-200);
  border-radius: 12px;
  outline: 0;
  background: var(--stone-50);
  color: var(--stone-900);
  padding: 12px 14px;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, .16);
}

.empty-state {
  padding: 48px;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--stone-600);
  text-align: center;
  box-shadow: var(--shadow-card);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform .22s ease, box-shadow .22s ease;
}

.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(41, 37, 36, .18);
}

.category-overview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.category-overview-card h2 {
  margin: 4px 0 8px;
  font-size: 24px;
}

.category-overview-card p {
  margin: 0;
  color: var(--stone-700);
}

.watch-section {
  padding: 34px 0;
  background: radial-gradient(circle at top right, rgba(245, 158, 11, .20), transparent 30%), var(--stone-950);
}

.video-player {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .34);
  aspect-ratio: 16 / 9;
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 8px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .62));
  cursor: pointer;
}

.player-start strong {
  display: block;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .13);
  backdrop-filter: blur(10px);
}

.play-icon {
  width: 84px;
  height: 84px;
  display: inline-grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-800));
  font-size: 34px;
  box-shadow: 0 20px 45px rgba(217, 119, 6, .4);
}

.player-start[hidden] {
  display: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  padding: 44px 0 24px;
}

.detail-poster {
  position: sticky;
  top: 92px;
  align-self: start;
}

.detail-poster img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.detail-content {
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  padding: 32px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--stone-600);
  font-size: 14px;
  font-weight: 700;
}

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

.detail-content h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
  letter-spacing: -.03em;
}

.detail-content h2 {
  margin: 28px 0 10px;
  font-size: 24px;
}

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

.lead-text {
  margin-top: 24px !important;
  color: var(--stone-900) !important;
  font-size: 20px !important;
  font-weight: 800;
}

.detail-tags {
  margin-top: 6px;
}

.site-footer {
  margin-top: 40px;
  background: var(--stone-950);
  color: var(--stone-300);
}

.footer-inner {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
  padding: 46px 0;
}

.footer-logo {
  color: var(--white);
}

.footer-brand p {
  max-width: 420px;
  margin: 18px 0 0;
}

.footer-links h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

.footer-links div {
  display: grid;
  gap: 9px;
}

.footer-links a:hover {
  color: var(--amber-500);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 18px;
  text-align: center;
  color: var(--stone-500);
}

[hidden] {
  display: none !important;
}

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

  .menu-toggle {
    display: block;
  }

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

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

  .filter-keyword {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: 64px;
  }

  .site-logo {
    font-size: 18px;
  }

  .hero-carousel,
  .hero-slides {
    min-height: 650px;
  }

  .hero-copy {
    padding: 68px 0 150px;
  }

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

  .hero-search {
    border-radius: 18px;
  }

  .hero-search input {
    min-width: 0;
  }

  .movie-grid-five,
  .movie-grid-four,
  .category-grid,
  .category-overview-grid,
  .rank-list,
  .rank-list-page,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .movie-card-wide {
    grid-template-columns: 120px 1fr;
  }

  .movie-card-wide .poster-link {
    min-height: 168px;
  }

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

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

  .detail-poster {
    position: static;
  }

  .detail-content {
    padding: 22px;
  }
}

@media (max-width: 520px) {
  .hero-search {
    display: grid;
    border-radius: 16px;
  }

  .hero-search button {
    padding: 13px 18px;
  }

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

  .movie-card-wide .poster-link {
    aspect-ratio: 3 / 4;
  }
}
