:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-900: #78350f;
  --orange-100: #ffedd5;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --white: #ffffff;
  --shadow-soft: 0 20px 45px rgba(41, 37, 36, 0.12);
  --shadow-card: 0 12px 28px rgba(41, 37, 36, 0.1);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--amber-200);
  background: rgba(255, 251, 235, 0.92);
  box-shadow: 0 8px 24px rgba(120, 53, 15, 0.08);
  backdrop-filter: blur(18px);
}

.nav-shell {
  max-width: var(--max-width);
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--amber-900);
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  color: var(--white);
  box-shadow: 0 10px 18px rgba(217, 119, 6, 0.32);
  font-size: 15px;
  line-height: 1;
}

.brand-name {
  font-size: 20px;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--amber-900);
  font-weight: 700;
}

.nav-link {
  position: relative;
  padding: 8px 0;
  transition: color 0.25s ease;
}

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

.nav-link.active::after,
.nav-link:hover::after {
  width: 100%;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--amber-600);
  transition: width 0.25s ease;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--amber-100);
  color: var(--amber-900);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  border-top: 1px solid var(--amber-200);
  padding: 10px 22px 16px;
  background: var(--amber-50);
}

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

.mobile-nav-link {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--amber-900);
  font-weight: 700;
}

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

.hero-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 22px 42px;
}

.hero-slider {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 30px;
  background: var(--stone-900);
  box-shadow: var(--shadow-soft);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 0.85s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 18%, rgba(245, 158, 11, 0.38), transparent 34%),
    linear-gradient(90deg, rgba(28, 25, 23, 0.94) 0%, rgba(28, 25, 23, 0.7) 45%, rgba(28, 25, 23, 0.14) 100%),
    linear-gradient(0deg, rgba(28, 25, 23, 0.82), transparent 50%);
}

.hero-content {
  position: absolute;
  left: clamp(24px, 7vw, 82px);
  bottom: clamp(34px, 8vw, 92px);
  max-width: 620px;
  color: var(--white);
}

.hero-kicker,
.section-kicker {
  margin: 0 0 10px;
  color: var(--amber-300);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy {
  max-width: 560px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
}

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

.hero-tags span,
.tag-row span,
.detail-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  color: var(--amber-900);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
}

.hero-tags span {
  background: rgba(245, 158, 11, 0.88);
  color: var(--white);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  color: var(--white);
  box-shadow: 0 12px 22px rgba(217, 119, 6, 0.32);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.46);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.page-hero .btn-ghost,
.detail-headline .btn-ghost {
  border-color: var(--amber-200);
  color: var(--amber-800);
  background: var(--amber-50);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: 34px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(245, 158, 11, 0.78);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  right: 34px;
  bottom: 30px;
  display: flex;
  gap: 8px;
}

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

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

.hero-search,
.filter-panel {
  margin-top: 20px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 32px rgba(120, 53, 15, 0.08);
  backdrop-filter: blur(18px);
}

.hero-search {
  display: grid;
  grid-template-columns: 1.4fr minmax(260px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 20px;
}

.hero-search p,
.hero-search h2 {
  margin: 0;
}

.hero-search h2 {
  font-size: 22px;
  line-height: 1.2;
}

.hero-search label,
.filter-panel label {
  display: grid;
  gap: 6px;
  color: var(--stone-600);
  font-size: 13px;
  font-weight: 800;
}

.hero-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--stone-200);
  border-radius: 14px;
  padding: 0 14px;
  background: var(--white);
  color: var(--stone-800);
  outline: none;
  transition: border 0.25s ease, box-shadow 0.25s ease;
}

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

.page-shell,
.section-block {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 42px 22px;
}

.section-block {
  padding-top: 48px;
  padding-bottom: 48px;
}

.warm-block {
  max-width: none;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-100));
  padding-left: max(22px, calc((100vw - var(--max-width)) / 2 + 22px));
  padding-right: max(22px, calc((100vw - var(--max-width)) / 2 + 22px));
}

.soft-block {
  max-width: none;
  background: var(--stone-100);
  padding-left: max(22px, calc((100vw - var(--max-width)) / 2 + 22px));
  padding-right: max(22px, calc((100vw - var(--max-width)) / 2 + 22px));
}

.section-head,
.category-overview-head,
.detail-headline {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 24px;
}

.section-head h2,
.category-overview-head h2,
.page-hero h1,
.detail-headline h1 {
  margin: 0 0 8px;
  color: var(--stone-800);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head p,
.category-overview-head p,
.page-hero p,
.detail-headline p {
  margin: 0;
  color: var(--stone-600);
}

.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--amber-700);
  background: var(--amber-50);
  border: 1px solid var(--amber-200);
  font-weight: 900;
  white-space: nowrap;
}

.section-more:hover {
  background: var(--amber-100);
}

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

.category-tile {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  box-shadow: var(--shadow-card);
  isolation: isolate;
}

.category-tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(28, 25, 23, 0.86), rgba(28, 25, 23, 0.18));
}

.category-tile:hover img {
  transform: scale(1.08);
}

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

.category-tile strong {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
}

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

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px rgba(41, 37, 36, 0.16);
}

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

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

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

.play-hover {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(245, 158, 11, 0.92);
  color: var(--white);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card-link:hover .play-hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(120, 53, 15, 0.28);
}

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

.movie-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--stone-500);
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 48px;
  margin: 8px 0 8px;
  color: var(--stone-800);
  font-size: 16px;
  line-height: 1.45;
  transition: color 0.25s ease;
}

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

.movie-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
  margin: 0 0 12px;
  color: var(--stone-600);
  font-size: 13px;
}

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

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

.page-hero {
  margin-bottom: 28px;
  border-radius: 28px;
  padding: clamp(34px, 6vw, 68px);
  background:
    radial-gradient(circle at 78% 18%, rgba(245, 158, 11, 0.26), transparent 34%),
    linear-gradient(135deg, var(--amber-50), var(--white));
  box-shadow: var(--shadow-card);
}

.page-hero h1 {
  max-width: 860px;
}

.page-hero p {
  max-width: 760px;
  font-size: 17px;
}

.filter-panel {
  padding: 18px;
  margin-bottom: 28px;
}

.filter-row {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.7fr;
  gap: 16px;
}

.empty-state {
  margin: 32px 0 0;
  padding: 24px;
  border-radius: 18px;
  background: var(--amber-50);
  color: var(--amber-900);
  text-align: center;
  font-weight: 900;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 52px 58px 1fr auto;
  align-items: center;
  gap: 14px;
  border-radius: 16px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 18px rgba(41, 37, 36, 0.07);
  transition: transform 0.25s ease, background 0.25s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  background: var(--white);
}

.rank-number {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--amber-100);
  color: var(--amber-800);
  font-weight: 900;
}

.rank-item img {
  width: 48px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
}

.rank-title {
  font-weight: 900;
  color: var(--stone-800);
}

.rank-meta {
  color: var(--stone-500);
  font-size: 13px;
  white-space: nowrap;
}

.category-overview-card {
  margin-bottom: 28px;
  border-radius: 24px;
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--stone-500);
  font-size: 14px;
}

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

.player-card {
  overflow: hidden;
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--stone-900);
}

.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--stone-900);
}

.player-start {
  position: absolute;
  inset: 0;
  border: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, rgba(245, 158, 11, 0.18), transparent 36%),
    linear-gradient(0deg, rgba(28, 25, 23, 0.58), rgba(28, 25, 23, 0.18));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-start span {
  width: clamp(68px, 10vw, 104px);
  height: clamp(68px, 10vw, 104px);
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  color: var(--white);
  font-size: clamp(28px, 4vw, 42px);
  box-shadow: 0 20px 42px rgba(217, 119, 6, 0.42);
}

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

.detail-headline {
  padding: 26px;
  align-items: center;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 26px;
  margin-top: 28px;
}

.detail-poster,
.detail-content {
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.detail-poster {
  overflow: hidden;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-tags {
  padding: 18px;
}

.detail-tag {
  color: var(--amber-900);
}

.detail-content {
  padding: clamp(24px, 4vw, 40px);
}

.detail-content h2 {
  margin: 0 0 12px;
  color: var(--stone-800);
  font-size: 26px;
  letter-spacing: -0.02em;
}

.detail-content p {
  margin: 0 0 28px;
  color: var(--stone-600);
  font-size: 16px;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.detail-meta div {
  border-radius: 16px;
  padding: 14px;
  background: var(--amber-50);
}

.detail-meta dt {
  margin: 0 0 4px;
  color: var(--stone-500);
  font-size: 12px;
  font-weight: 900;
}

.detail-meta dd {
  margin: 0;
  color: var(--stone-800);
  font-weight: 900;
}

.related-block {
  padding-left: 0;
  padding-right: 0;
}

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

.footer-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 46px 22px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
}

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

.footer-brand p {
  max-width: 520px;
  color: var(--stone-300);
}

.footer-column h2 {
  margin: 0 0 14px;
  color: var(--amber-100);
  font-size: 16px;
}

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

.footer-column a:hover {
  color: var(--amber-300);
}

.footer-bottom {
  border-top: 1px solid var(--stone-700);
  padding: 18px 22px;
  color: var(--stone-500);
  text-align: center;
  font-size: 13px;
}

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

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

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

  .menu-toggle {
    display: block;
  }

  .hero-slider {
    min-height: 520px;
    border-radius: 24px;
  }

  .hero-search,
  .filter-row {
    grid-template-columns: 1fr;
  }

  .section-head,
  .category-overview-head,
  .detail-headline {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

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

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

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

  .brand-name {
    font-size: 18px;
  }

  .hero-section,
  .page-shell,
  .section-block {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .hero-content {
    left: 22px;
    right: 22px;
    bottom: 64px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-dots {
    left: 22px;
    right: auto;
  }

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

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

  .movie-card h3 {
    min-height: 44px;
    font-size: 15px;
  }

  .movie-card p {
    display: none;
  }

  .rank-item {
    grid-template-columns: 42px 48px 1fr;
  }

  .rank-meta {
    display: none;
  }

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