:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-400: #fbbf24;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --shadow: 0 14px 32px rgba(41, 37, 36, 0.12);
  --radius: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  background: rgba(120, 53, 15, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(28, 25, 23, 0.18);
}

.header-inner {
  max-width: var(--max);
  height: 64px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--amber-50);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-200), var(--amber-600));
  color: var(--amber-900);
  box-shadow: 0 0 28px rgba(251, 191, 36, 0.45);
}

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

.site-nav a {
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--amber-100);
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: rgba(146, 64, 14, 0.8);
  color: white;
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 10px;
  padding: 8px 11px;
  color: var(--amber-50);
  background: rgba(146, 64, 14, 0.72);
}

.page-main {
  padding-top: 64px;
  min-height: 70vh;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s 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-slide img.is-missing,
.poster-wrap img.is-missing,
.category-tile img.is-missing,
.category-cover img.is-missing,
.rank-list img.is-missing {
  display: none;
}

.hero-slide:has(img.is-missing),
.poster-wrap,
.category-tile,
.category-cover,
.rank-list img {
  background: radial-gradient(circle at 30% 20%, rgba(251, 191, 36, 0.38), transparent 34%), linear-gradient(135deg, #292524, #78350f 60%, #1c1917);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.28) 45%, rgba(0, 0, 0, 0.2));
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 820px;
  width: calc(100% - 40px);
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.92);
  color: white;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 14px 32px rgba(120, 53, 15, 0.24);
}

.hero h1,
.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero p,
.page-hero p {
  max-width: 760px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.btn,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover,
.hero-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(28, 25, 23, 0.18);
}

.btn-primary,
.hero-search button {
  background: var(--amber-600);
  color: white;
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: rgba(0, 0, 0, 0.46);
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
}

.hero-arrow--prev {
  left: 18px;
}

.hero-arrow--next {
  right: 18px;
}

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

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

.hero-dots button.is-active {
  width: 34px;
  background: white;
}

.search-strip {
  max-width: var(--max);
  margin: -38px auto 0;
  position: relative;
  z-index: 5;
  padding: 0 20px;
}

.hero-search {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--stone-200);
  border-radius: 999px;
  padding: 0 18px;
  outline: none;
}

.quick-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.quick-links a {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--amber-100);
  color: var(--amber-800);
  font-size: 14px;
  font-weight: 700;
}

.content-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 58px 20px;
}

.content-section--warm {
  max-width: none;
  background: linear-gradient(180deg, var(--amber-50), white);
}

.content-section--warm > * {
  max-width: var(--max);
  margin-right: auto;
  margin-left: auto;
}

.content-section--gray {
  max-width: none;
  background: var(--stone-100);
}

.content-section--gray > * {
  max-width: var(--max);
  margin-right: auto;
  margin-left: auto;
}

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

.section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(25px, 3vw, 36px);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--stone-600);
}

.section-more {
  color: var(--amber-700);
  font-weight: 800;
  white-space: nowrap;
}

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 6px 20px rgba(41, 37, 36, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

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

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

.duration,
.rank-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.72);
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.rank-badge {
  right: auto;
  left: 10px;
  background: var(--amber-600);
}

.movie-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  padding: 15px;
}

.movie-card strong {
  display: -webkit-box;
  overflow: hidden;
  min-height: 1.35em;
  color: var(--stone-800);
  font-size: 17px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--stone-500);
  font-size: 13px;
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-tags,
.detail-meta,
.category-meta,
.tag-list,
.inline-links,
.quick-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags b,
.detail-meta span,
.detail-meta a,
.category-meta span,
.tag-list span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--amber-100);
  color: var(--amber-800);
  font-size: 12px;
  font-weight: 700;
}

.meta-line {
  margin-top: auto;
  color: var(--stone-400);
  font-size: 12px;
}

.movie-card--horizontal {
  flex-direction: row;
  min-height: 120px;
}

.poster-wrap--horizontal {
  width: 42%;
  min-width: 150px;
  aspect-ratio: auto;
}

.movie-card--horizontal .movie-card__body {
  padding: 14px 14px 14px 0;
}

.movie-card--horizontal small {
  color: var(--stone-400);
}

.movie-card--large .poster-wrap--large {
  aspect-ratio: 16 / 9;
}

.movie-card--large strong {
  font-size: 24px;
}

.featured-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 22px;
}

.featured-side {
  display: grid;
  gap: 16px;
}

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

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow);
  color: white;
}

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

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

.category-tile span {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.16));
}

.category-tile strong,
.category-tile em,
.category-tile b {
  position: absolute;
  right: 18px;
  left: 18px;
}

.category-tile strong {
  bottom: 78px;
  font-size: 23px;
}

.category-tile em {
  bottom: 42px;
  display: -webkit-box;
  overflow: hidden;
  font-style: normal;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.category-tile b {
  bottom: 18px;
  color: var(--amber-200);
  font-size: 13px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: white;
  box-shadow: 0 4px 14px rgba(41, 37, 36, 0.06);
}

.rank-row span,
.rank-number {
  color: var(--amber-700);
  font-weight: 900;
}

.rank-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row em {
  min-width: 0;
  overflow: hidden;
  color: var(--stone-500);
  font-size: 13px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row b,
.rank-list-item b {
  color: var(--amber-700);
}

.page-hero {
  background: radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.2), transparent 28%), linear-gradient(120deg, var(--amber-900), var(--amber-800));
  color: white;
  padding: 80px 20px;
}

.page-hero > div {
  max-width: var(--max);
  margin: 0 auto;
}

.page-hero--compact {
  padding: 72px 20px 58px;
}

.page-hero--category {
  padding: 74px 20px 62px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr repeat(4, minmax(130px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 22px;
  background: white;
  box-shadow: 0 6px 20px rgba(41, 37, 36, 0.08);
}

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

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--stone-200);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--stone-800);
  background: white;
  outline: none;
}

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

.category-overview-list {
  display: grid;
  gap: 18px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 22px;
  padding: 18px;
  border-radius: 24px;
  background: white;
  box-shadow: 0 6px 20px rgba(41, 37, 36, 0.08);
}

.category-cover {
  min-height: 170px;
  overflow: hidden;
  border-radius: 18px;
}

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

.category-overview-card h2 {
  margin: 2px 0 8px;
}

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

.inline-links a {
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 700;
}

.rank-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-list-item a {
  display: grid;
  grid-template-columns: 58px 112px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 18px;
  background: white;
  box-shadow: 0 4px 14px rgba(41, 37, 36, 0.06);
}

.rank-list img {
  width: 112px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-info {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.rank-info strong,
.rank-info em,
.rank-info small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.detail-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 20px 58px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 24px;
}

.detail-main {
  display: grid;
  gap: 20px;
}

.player-card,
.detail-card,
.side-card {
  overflow: hidden;
  border-radius: 24px;
  background: white;
  box-shadow: 0 6px 20px rgba(41, 37, 36, 0.08);
}

.video-box {
  position: relative;
  background: black;
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: black;
}

.big-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.9);
  color: white;
  font-size: 28px;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.video-box.is-playing .big-play {
  opacity: 0;
  pointer-events: none;
}

.detail-card {
  padding: 24px;
}

.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.detail-meta {
  margin-bottom: 14px;
}

.tag-list {
  margin-bottom: 18px;
}

.detail-card blockquote {
  margin: 0 0 22px;
  padding: 16px 18px;
  border-left: 4px solid var(--amber-600);
  border-radius: 14px;
  background: var(--amber-50);
  color: var(--stone-700);
  font-weight: 650;
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.detail-card section {
  padding-top: 18px;
  border-top: 1px solid var(--stone-200);
}

.detail-card section + section {
  margin-top: 18px;
}

.detail-card p {
  margin: 0;
  color: var(--stone-600);
}

.detail-side {
  min-width: 0;
}

.side-card {
  position: sticky;
  top: 86px;
  padding: 18px;
}

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

.sitemap-group {
  margin-bottom: 28px;
  padding: 20px;
  border-radius: 20px;
  background: white;
  box-shadow: 0 4px 14px rgba(41, 37, 36, 0.06);
}

.sitemap-group h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.sitemap-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 14px;
}

.sitemap-links a {
  overflow: hidden;
  color: var(--stone-700);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sitemap-links small {
  color: var(--stone-400);
}

.site-footer {
  background: var(--stone-900);
  color: var(--stone-300, #d6d3d1);
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 46px 20px 28px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr;
  gap: 34px;
}

.site-footer p {
  color: var(--stone-400);
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--amber-100);
}

.site-footer a {
  display: block;
  margin: 7px 0;
  color: var(--stone-400);
  font-size: 14px;
}

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

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

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

.is-hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .site-nav {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 18px;
    background: rgba(120, 53, 15, 0.98);
  }

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

  .nav-toggle {
    display: inline-flex;
  }

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

  .featured-layout,
  .detail-shell,
  .footer-grid,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .hero {
    height: 520px;
  }

  .hero-search,
  .section-head,
  .rank-list-item a {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-search {
    display: grid;
  }

  .card-grid,
  .category-grid,
  .rank-grid,
  .filter-panel,
  .sitemap-links {
    grid-template-columns: 1fr;
  }

  .movie-card--horizontal {
    flex-direction: column;
  }

  .poster-wrap--horizontal {
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 10;
  }

  .movie-card--horizontal .movie-card__body {
    padding: 15px;
  }

  .rank-list-item a {
    display: grid;
    text-align: left;
  }

  .rank-list img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}
