:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --white: #ffffff;
  --shadow-soft: 0 12px 30px rgba(41, 37, 36, 0.10);
  --shadow-strong: 0 24px 60px rgba(28, 25, 23, 0.25);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--stone-800);
  background: var(--stone-50);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-700), var(--amber-600), var(--orange-700));
  box-shadow: 0 10px 24px rgba(120, 53, 15, 0.28);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 13px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #ffffff;
}

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

.brand-text strong {
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}

.brand-text small {
  margin-top: 4px;
  color: var(--amber-100);
  font-size: 0.74rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.nav-link,
.mobile-link {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--amber-100);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

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

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

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 10px 12px;
  border-radius: 10px;
}

.mobile-link:hover,
.mobile-link.is-active {
  background: rgba(255, 255, 255, 0.12);
}

.hero-slider {
  position: relative;
  height: 60vh;
  min-height: 480px;
  overflow: hidden;
  background: var(--stone-900);
}

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.46) 52%, rgba(0, 0, 0, 0.18));
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 74px;
  transform: translateX(-50%);
  color: #ffffff;
}

.hero-content h1 {
  max-width: 760px;
  margin: 10px 0 16px;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-content p {
  max-width: 760px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.hero-search {
  display: flex;
  width: min(620px, 100%);
  padding: 6px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.hero-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 12px 14px;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.hero-search button {
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--amber-600);
  font-weight: 800;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 0;
  font-weight: 800;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #ffffff;
  background: var(--amber-600);
}

.button-primary:hover {
  background: var(--amber-700);
}

.button-glass {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.button-ghost {
  color: var(--stone-700);
  background: #ffffff;
  border: 1px solid var(--stone-200);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.hero-dots button {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  transition: width 0.2s ease, background-color 0.2s ease;
}

.hero-dots button[aria-current="true"] {
  width: 34px;
  background: #ffffff;
}

.section {
  padding: 72px 0;
}

.section-soft {
  background: linear-gradient(180deg, var(--amber-50), #ffffff);
}

.section-categories {
  color: #ffffff;
  background: linear-gradient(135deg, var(--stone-900), var(--stone-700));
}

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

.compact-head {
  margin-bottom: 22px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--amber-600);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-categories .eyebrow,
.detail-hero .eyebrow,
.page-hero .eyebrow {
  color: var(--amber-200);
}

.section-head h2,
.rank-panel h2,
.side-panel h2,
.detail-card h2 {
  margin: 4px 0 0;
  color: var(--stone-800);
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
  line-height: 1.2;
}

.section-categories .section-head h2 {
  color: #ffffff;
}

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

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

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--stone-200), var(--amber-100));
}

.movie-card:not(.movie-card-compact) .card-cover {
  aspect-ratio: 16 / 10;
}

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

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

.cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0));
}

.card-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--amber-600);
  font-size: 0.76rem;
  font-weight: 900;
}

.rank-badge {
  left: 10px;
  right: auto;
  background: rgba(28, 25, 23, 0.82);
}

.card-body {
  padding: 14px;
}

.card-body h3 {
  display: -webkit-box;
  min-height: 2.85em;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--stone-800);
  font-size: 1rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-body p {
  display: -webkit-box;
  min-height: 3.15em;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--stone-600);
  font-size: 0.9rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--stone-500);
  font-size: 0.8rem;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag-row span,
.detail-tags a {
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--stone-700);
  background: var(--stone-100);
  font-size: 0.76rem;
  font-weight: 700;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
  align-items: start;
}

.rank-panel,
.side-panel,
.detail-card,
.filter-panel,
.category-card,
.player-shell {
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.rank-panel,
.side-panel {
  position: sticky;
  top: 88px;
  padding: 24px;
}

.rank-panel-head {
  margin-bottom: 18px;
}

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

.mini-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.mini-card img {
  width: 86px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--stone-100);
}

.mini-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--stone-800);
  font-size: 0.92rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mini-card small {
  display: block;
  margin-top: 4px;
  color: var(--stone-500);
}

.mini-rank {
  display: inline-flex;
  min-width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--amber-600);
  font-size: 0.75rem;
  font-weight: 900;
}

.category-pills,
.category-grid {
  display: grid;
  gap: 20px;
}

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

.category-pill {
  min-height: 132px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.category-pill:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.14);
}

.category-pill strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.category-pill span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
}

.page-hero,
.detail-hero {
  position: relative;
  color: #ffffff;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-700), var(--orange-700));
}

.compact-page-hero,
.category-hero {
  padding: 70px 0;
}

.page-hero h1,
.detail-hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.08;
}

.page-hero p,
.detail-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
}

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

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

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

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 150px;
  background: var(--stone-100);
}

.category-covers img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

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

.category-card-body h2 {
  margin: 6px 0 8px;
  font-size: 1.5rem;
}

.category-card-body p {
  margin: 0 0 12px;
  color: var(--stone-600);
}

.category-card-body strong {
  color: var(--amber-700);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(140px, 200px)) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 26px;
  padding: 18px;
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--stone-600);
  font-size: 0.86rem;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--stone-200);
  border-radius: 12px;
  outline: 0;
  padding: 0 12px;
  color: var(--stone-800);
  background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--amber-600);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.14);
}

.filter-empty {
  margin: 0 0 18px;
  padding: 16px;
  border-radius: 12px;
  color: var(--stone-700);
  background: var(--amber-50);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 52px 86px minmax(0, 1fr) minmax(140px, 240px);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
}

.rank-row img {
  width: 86px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
}

.rank-number {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--amber-600);
  font-weight: 900;
}

.rank-info strong {
  display: block;
  font-size: 1rem;
}

.rank-info small,
.rank-row em {
  color: var(--stone-500);
  font-style: normal;
  font-size: 0.88rem;
}

.detail-hero {
  min-height: 520px;
  padding: 40px 0 64px;
  background: var(--stone-900);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  filter: blur(4px);
}

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

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(28, 25, 23, 0.96), rgba(28, 25, 23, 0.68));
}

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

.detail-intro {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  margin-top: 42px;
}

.detail-poster {
  width: 250px;
  aspect-ratio: 2 / 3;
  border: 6px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  object-fit: cover;
  box-shadow: var(--shadow-strong);
  background: var(--stone-100);
}

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

.detail-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 22px;
  background: #000000;
}

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

.player-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  width: 84px;
  height: 84px;
  border: 0;
  border-radius: 50%;
  background: rgba(217, 119, 6, 0.92);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.player-play:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.player-play span {
  display: block;
  margin-left: 31px;
  width: 0;
  height: 0;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 25px solid #ffffff;
}

.player-shell.is-playing .player-play {
  opacity: 0;
  pointer-events: none;
}

.player-status {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 4;
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.58);
  pointer-events: none;
  font-size: 0.9rem;
}

.player-status.is-hidden {
  display: none;
}

.detail-card {
  padding: 24px;
  margin-bottom: 18px;
}

.detail-card h2 {
  margin: 0 0 12px;
}

.detail-card p {
  margin: 0;
  color: var(--stone-700);
  font-size: 1rem;
}

.detail-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.detail-next {
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--stone-700);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  font-weight: 800;
}

.site-footer {
  padding: 50px 0;
  color: var(--stone-200);
  background: linear-gradient(90deg, var(--stone-900), var(--stone-700), var(--stone-900));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  color: #ffffff;
  font-weight: 900;
  font-size: 1.2rem;
}

.site-footer p {
  max-width: 360px;
  margin: 16px 0 0;
  color: var(--stone-200);
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 1.05rem;
}

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

.footer-links a {
  color: var(--stone-200);
}

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

[hidden],
.is-filter-hidden {
  display: none !important;
}

@media (max-width: 1120px) {
  .six-columns {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .desktop-nav {
    gap: 12px;
    font-size: 0.92rem;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero-slider {
    height: 68vh;
    min-height: 540px;
  }

  .hero-content {
    bottom: 72px;
  }

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

  .rank-panel,
  .side-panel {
    position: static;
  }

  .detail-poster {
    width: 210px;
  }

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

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

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

  .rank-row em {
    display: none;
  }
}

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

  .brand-text small {
    display: none;
  }

  .hero-slider {
    min-height: 620px;
  }

  .hero-content h1 {
    font-size: 2.1rem;
  }

  .hero-search {
    display: grid;
  }

  .hero-search button {
    min-height: 42px;
  }

  .hero-arrow {
    display: none;
  }

  .section {
    padding: 48px 0;
  }

  .section-head {
    display: block;
  }

  .text-link {
    display: inline-block;
    margin-top: 12px;
  }

  .six-columns,
  .four-columns,
  .three-columns,
  .category-pills,
  .category-grid,
  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }

  .filter-panel {
    padding: 14px;
  }

  .filter-panel label,
  .filter-panel button {
    grid-column: 1 / -1;
  }

  .detail-intro {
    margin-top: 28px;
  }

  .detail-poster {
    width: 170px;
  }

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

  .detail-tags a {
    font-size: 0.72rem;
  }

  .player-play {
    width: 66px;
    height: 66px;
  }

  .player-play span {
    margin-left: 25px;
    border-top-width: 13px;
    border-bottom-width: 13px;
    border-left-width: 20px;
  }

  .category-covers,
  .category-covers img {
    height: 112px;
  }
}

@media (max-width: 430px) {
  .six-columns,
  .four-columns,
  .three-columns,
  .category-pills,
  .category-grid {
    grid-template-columns: 1fr;
  }
}
