:root {
  --warm-50: #faf7f2;
  --warm-100: #f4ecdf;
  --warm-200: #eadac5;
  --warm-300: #d7c2a6;
  --warm-400: #ae9274;
  --warm-600: #72533a;
  --warm-700: #573e2b;
  --warm-800: #33251b;
  --warm-900: #1f1611;
  --sky-50: #eff8ff;
  --sky-100: #dff0ff;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --sky-800: #075985;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --text: #241a13;
  --muted: #6d5948;
  --card: #ffffff;
  --shadow: 0 14px 35px rgba(31, 22, 17, 0.12);
  --shadow-soft: 0 8px 22px rgba(31, 22, 17, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--warm-50);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  width: 100%;
  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: 60;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(234, 218, 197, 0.85);
  box-shadow: 0 8px 22px rgba(31, 22, 17, 0.08);
  backdrop-filter: blur(12px);
}

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

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

.brand {
  font-size: 21px;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--sky-600), var(--sky-800));
  box-shadow: 0 8px 18px rgba(2, 132, 199, 0.26);
  font-size: 14px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--warm-700);
  font-weight: 600;
}

.nav-link {
  padding: 8px 2px;
  transition: color 0.2s ease;
}

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

.mobile-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 8px 12px;
  color: var(--warm-800);
  background: var(--warm-100);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--warm-200);
  background: white;
}

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

.mobile-nav-inner {
  display: grid;
  gap: 4px;
  padding-top: 12px;
  padding-bottom: 16px;
}

.mobile-nav a {
  padding: 10px 0;
  color: var(--warm-700);
  font-weight: 600;
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: var(--warm-900);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(31, 22, 17, 0.96), rgba(31, 22, 17, 0.68) 48%, rgba(31, 22, 17, 0.06));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 76px 0 90px;
}

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

.hero-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 0 0 24px;
  max-width: 650px;
  color: var(--warm-100);
  font-size: 19px;
}

.hero-meta,
.inline-meta,
.detail-meta,
.card-meta,
.poster-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-meta span,
.inline-meta span,
.detail-meta span {
  color: var(--warm-100);
  font-size: 14px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.hero-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 13px;
}

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

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

.hero-dot {
  width: 48px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-dot.is-active {
  background: var(--sky-500);
  transform: scaleX(1.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 13px;
  padding: 0 22px;
  border: 1px solid transparent;
  color: white;
  background: var(--sky-600);
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--sky-700);
  box-shadow: 0 12px 24px rgba(2, 132, 199, 0.25);
}

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

.btn.small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 13px;
  font-weight: 700;
}

.pill.amber {
  color: white;
  background: var(--amber-500);
}

.pill.sky {
  color: var(--sky-700);
  background: var(--sky-100);
}

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

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

.section-head > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-head h2,
.center-title {
  margin: 0;
  color: var(--warm-900);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
}

.section-head p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
}

.section-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: white;
  background: var(--amber-500);
  font-size: 16px;
}

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

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

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.78));
  opacity: 0.88;
}

.poster-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  border-radius: 8px;
  padding: 4px 8px;
  color: white;
  background: var(--amber-500);
  font-size: 12px;
  font-weight: 700;
}

.poster-play {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--sky-600);
  background: rgba(255, 255, 255, 0.94);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.poster-meta {
  position: absolute;
  z-index: 2;
  left: 12px;
  right: 12px;
  bottom: 12px;
  color: white;
  font-size: 12px;
}

.card-body {
  padding: 15px;
}

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

.movie-card:hover h3 {
  color: var(--sky-600);
}

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

.card-meta {
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.soft-section {
  background: linear-gradient(135deg, var(--sky-50), var(--warm-50));
}

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

.blue-section {
  color: white;
  background: linear-gradient(135deg, var(--sky-600), var(--sky-800));
}

.blue-section .center-title {
  color: white;
  text-align: center;
  margin-bottom: 36px;
}

.stack {
  display: grid;
  gap: 48px;
}

.stack.wide {
  gap: 36px;
}

.strip-head,
.rank-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.strip-head h3 {
  margin: 0 0 6px;
  color: var(--warm-800);
  font-size: 22px;
}

.strip-head h3 span {
  margin-left: 8px;
  border-radius: 999px;
  padding: 3px 10px;
  color: var(--warm-600);
  background: var(--warm-100);
  font-size: 13px;
  font-weight: 500;
}

.strip-head p {
  margin: 0;
  color: var(--muted);
}

.strip-head a,
.rank-panel-head a {
  color: var(--sky-600);
  font-weight: 700;
}

.year-block {
  padding: 24px;
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-soft);
}

.year-label {
  display: inline-flex;
  margin-bottom: 14px;
  border-radius: 13px;
  padding: 8px 18px;
  color: white;
  background: var(--sky-600);
  font-size: 25px;
  font-weight: 800;
}

.year-line {
  height: 4px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sky-600), transparent);
}

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

.list-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  overflow: hidden;
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.list-poster {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--warm-100);
}

.list-poster img {
  height: 100%;
  object-fit: cover;
}

.list-body {
  padding: 22px;
}

.list-body h3 {
  margin: 10px 0 8px;
  color: var(--warm-900);
  font-size: 22px;
}

.list-body p {
  margin: 0 0 12px;
  color: var(--muted);
}

.list-body .inline-meta span {
  color: var(--muted);
}

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

.category-tile {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  padding: 26px;
  text-align: center;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.category-tile:hover {
  transform: scale(1.04);
  background: rgba(255, 255, 255, 0.2);
}

.category-tile div {
  margin-bottom: 10px;
  font-size: 34px;
}

.category-tile h3,
.category-tile p {
  margin: 0;
}

.category-tile p {
  color: var(--sky-100);
  font-size: 14px;
}

.page-hero {
  padding: 58px 0;
}

.page-hero.blue {
  color: white;
  background: linear-gradient(135deg, var(--sky-600), var(--sky-800));
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.12;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--sky-100);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.detail-main .breadcrumb {
  color: var(--muted);
}

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

.category-overview {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: stretch;
  padding: 24px;
  border-radius: 22px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.overview-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.overview-copy h2 {
  margin: 14px 0 10px;
  font-size: 30px;
}

.overview-copy p {
  margin: 0 0 22px;
  color: var(--muted);
}

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

.filter-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
  padding: 20px;
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow-soft);
}

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

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

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--sky-500);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.filter-count {
  color: var(--muted);
  font-weight: 700;
}

.empty-state {
  display: none;
  padding: 36px;
  border-radius: 18px;
  text-align: center;
  color: var(--muted);
  background: white;
  box-shadow: var(--shadow-soft);
}

.empty-state.is-visible {
  display: block;
}

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

.rank-list li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.rank-list li span {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: white;
  background: var(--sky-600);
  font-weight: 800;
}

.rank-list li a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--warm-900);
  font-weight: 800;
}

.rank-list li a:hover {
  color: var(--sky-600);
}

.rank-list li em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

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

.rank-panel {
  padding: 20px;
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.rank-panel h3 {
  margin: 0;
  font-size: 22px;
}

.rank-list.small li {
  grid-template-columns: 38px minmax(0, 1fr) auto;
  padding: 10px 0;
  box-shadow: none;
  border-bottom: 1px solid var(--warm-100);
  border-radius: 0;
}

.rank-list.small li span {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  font-size: 13px;
}

.player-section {
  padding: 0;
  background: #000;
}

.player-section .container {
  width: min(1180px, 100%);
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  color: white;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.68));
  transition: opacity 0.2s ease;
}

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

.player-overlay span {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--sky-600);
  background: white;
  font-size: 26px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
}

.player-overlay strong {
  font-size: 18px;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
  padding-top: 36px;
  padding-bottom: 72px;
}

.detail-card,
.side-card {
  border-radius: 20px;
  padding: 26px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.detail-card h1 {
  margin: 12px 0 16px;
  color: var(--warm-900);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}

.detail-meta {
  gap: 10px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--warm-200);
}

.detail-meta span {
  color: var(--muted);
}

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

.detail-card h2,
.side-card h2 {
  margin: 0 0 13px;
  color: var(--warm-900);
  font-size: 22px;
}

.detail-card p {
  margin: 0;
  color: var(--warm-700);
  white-space: pre-line;
}

.detail-card .lead {
  margin-bottom: 12px;
  color: var(--warm-800);
  font-size: 18px;
  font-weight: 700;
}

.review-box {
  border-radius: 16px;
  padding: 20px;
  color: var(--warm-700);
  background: var(--warm-50);
  white-space: pre-line;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  color: var(--sky-700);
  background: var(--sky-100);
}

.related-side {
  position: sticky;
  top: 86px;
}

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

.side-list .movie-card {
  box-shadow: none;
  border: 1px solid var(--warm-100);
}

.site-footer {
  color: var(--warm-100);
  background: var(--warm-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 48px 0;
}

.footer-brand {
  margin-bottom: 16px;
  color: white;
  font-size: 20px;
}

.site-footer p {
  margin: 0;
  color: var(--warm-300);
  font-size: 14px;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: var(--amber-400);
  font-size: 16px;
}

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

.footer-links a {
  color: var(--warm-300);
  font-size: 14px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(215, 194, 166, 0.2);
  padding: 18px 0;
  text-align: center;
  color: var(--warm-400);
  font-size: 14px;
}

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

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

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

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

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

  .section-head,
  .strip-head,
  .rank-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .detail-layout {
    padding-top: 24px;
  }

  .related-side {
    position: static;
  }

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

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

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

  .brand {
    font-size: 18px;
  }

  .hero,
  .hero-content {
    min-height: 74vh;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(31, 22, 17, 0.86), rgba(31, 22, 17, 0.94));
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-meta {
    gap: 8px;
  }

  .cards-4,
  .cards-6,
  .overview-cards,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .card-body {
    padding: 12px;
  }

  .card-body h3 {
    min-height: 42px;
    font-size: 14px;
  }

  .card-body p {
    display: none;
  }

  .list-poster {
    aspect-ratio: 16 / 9;
  }

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

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

  .rank-list li em {
    grid-column: 2;
  }

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