:root {
  color-scheme: light;
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --orange: #f97316;
  --rose: #ec4899;
  --purple: #7c3aed;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #f3f4f6;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(31, 41, 55, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
  line-height: 1.6;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #d97706 0%, #f97316 100%);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(217, 119, 6, 0.26);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  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: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 700;
}

.main-nav a {
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 24px;
}

.hero-slider {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: #111827;
}

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

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

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

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.58) 48%, rgba(0, 0, 0, 0.22) 100%);
}

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

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 14px;
  background: rgba(245, 158, 11, 0.95);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-content h1,
.hero-content h2 {
  max-width: 850px;
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  max-width: 760px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: clamp(17px, 2.1vw, 22px);
}

.hero-meta,
.meta-pills,
.hero-actions,
.compact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-meta span,
.meta-pills a,
.meta-pills span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.hero-actions {
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 12px;
  padding: 0 24px;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.btn.primary {
  color: #ffffff;
  background: var(--amber);
  box-shadow: 0 15px 35px rgba(245, 158, 11, 0.35);
}

.btn.primary:hover {
  background: var(--amber-dark);
}

.btn.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}

.btn.ghost.light {
  color: #ffffff;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.46);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-2px);
}

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

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

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

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

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

.main-stack {
  padding: 56px 0;
  display: grid;
  gap: 64px;
}

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

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

.section-title h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
}

.section-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #fff7ed;
  color: var(--amber-dark);
  font-weight: 900;
}

.section-link,
.inline-more {
  color: var(--amber-dark);
  font-weight: 900;
}

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

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

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

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

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

.slim-grid {
  margin-top: 20px;
}

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

.compact-card,
.standard-card {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(31, 41, 55, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.compact-card:hover,
.standard-card:hover,
.horizontal-card:hover,
.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.poster {
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #e5e7eb;
}

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

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

.compact-card strong,
.standard-body strong {
  display: block;
  padding: 12px 12px 4px;
  overflow: hidden;
  color: #1f2937;
  font-size: 15px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.standard-body {
  display: block;
  padding-bottom: 12px;
}

.standard-body em,
.horizontal-body em,
.featured-content em {
  display: -webkit-box;
  overflow: hidden;
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.standard-body em {
  min-height: 44px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px 0;
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
}

.card-row span:first-child {
  color: #eab308;
}

.featured-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 330px;
  border: 2px solid rgba(245, 158, 11, 0.85);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(217, 119, 6, 0.18);
}

.poster-wrap {
  position: absolute;
  inset: 0;
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.42) 54%, rgba(0, 0, 0, 0.08) 100%);
}

.featured-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  border-radius: 999px;
  padding: 6px 12px;
  color: #ffffff;
  background: var(--amber);
  font-size: 12px;
  font-weight: 900;
}

.featured-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px;
  color: #ffffff;
}

.featured-content strong {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.featured-content em {
  color: #e5e7eb;
  font-size: 14px;
}

.horizontal-card {
  display: flex;
  gap: 16px;
  min-height: 132px;
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(31, 41, 55, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.horizontal-poster {
  width: 150px;
  flex: 0 0 150px;
  overflow: hidden;
  background: #e5e7eb;
}

.horizontal-body {
  min-width: 0;
  padding: 16px 16px 16px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.horizontal-body strong {
  overflow: hidden;
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.horizontal-body em {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.muted {
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
}

.highlight-section,
.score-section,
.white-section {
  border-radius: 30px;
  padding: clamp(24px, 4vw, 48px);
  box-shadow: 0 12px 35px rgba(31, 41, 55, 0.08);
}

.highlight-section {
  background: linear-gradient(90deg, #fffbeb 0%, #fff7ed 100%);
}

.score-section {
  background: linear-gradient(135deg, #faf5ff 0%, #fdf2f8 100%);
}

.white-section {
  background: #ffffff;
}

.region-block {
  margin-bottom: 34px;
}

.region-block h3,
.white-section h3 {
  margin: 0 0 16px;
  font-size: 23px;
  font-weight: 900;
}

.inline-more {
  display: inline-flex;
  margin-top: 14px;
}

.page-hero {
  padding: 68px 0;
  color: #ffffff;
  background: linear-gradient(90deg, #d97706 0%, #f97316 100%);
}

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

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.rank-hero {
  background: linear-gradient(120deg, #7c2d12 0%, #ea580c 55%, #f59e0b 100%);
}

.list-hero {
  background: linear-gradient(120deg, #374151 0%, #f97316 100%);
}

.search-hero {
  background: linear-gradient(120deg, #4f46e5 0%, #ec4899 100%);
}

.listing-wrap,
.ranking-wrap {
  padding: 42px 0;
}

.filter-panel {
  position: sticky;
  top: 82px;
  z-index: 20;
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
  border-radius: 22px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 35px rgba(31, 41, 55, 0.10);
  backdrop-filter: blur(14px);
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 900;
}

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

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

.empty-state {
  display: none;
  border-radius: 22px;
  padding: 50px 20px;
  text-align: center;
  color: #6b7280;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(31, 41, 55, 0.08);
}

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

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

.chip-link {
  display: flex;
  min-height: 82px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
  box-shadow: inset 0 0 0 1px #fed7aa;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chip-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(245, 158, 11, 0.16);
}

.chip-link span {
  overflow: hidden;
  font-size: 17px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip-link strong {
  color: var(--amber-dark);
  font-size: 13px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 120px 1fr auto;
  align-items: center;
  gap: 18px;
  border-radius: 20px;
  padding: 14px 18px;
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(31, 41, 55, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-num {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  font-weight: 900;
}

.rank-poster {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  background: #e5e7eb;
}

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

.rank-info strong {
  font-size: 19px;
  font-weight: 900;
}

.rank-info em {
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info span,
.rank-hot {
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
}

.rank-hot {
  color: var(--amber-dark);
}

.player-shell {
  background: #000000;
}

.player-container {
  padding: 0;
}

.video-box {
  position: relative;
  overflow: hidden;
  background: #000000;
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.92);
  box-shadow: 0 16px 45px rgba(245, 158, 11, 0.35);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.play-button span {
  margin-left: 5px;
  font-size: 38px;
}

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

.play-button.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.player-message {
  position: absolute;
  left: 50%;
  bottom: 18px;
  display: none;
  border-radius: 999px;
  padding: 10px 16px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.68);
  transform: translateX(-50%);
}

.player-message.is-visible {
  display: block;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.86fr);
  gap: 28px;
  padding: 36px 0;
}

.detail-main,
.related-aside {
  min-width: 0;
}

.detail-card,
.content-section,
.aside-card {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 32px rgba(31, 41, 55, 0.08);
}

.detail-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 24px;
}

.detail-cover {
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 2 / 3;
  background: #e5e7eb;
}

.detail-info h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.14;
}

.lead-text {
  margin: 0 0 18px;
  color: #4b5563;
  font-size: 18px;
}

.detail-info .meta-pills a,
.detail-info .meta-pills span {
  color: #92400e;
  background: #fffbeb;
  box-shadow: inset 0 0 0 1px #fcd34d;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.tag-pill {
  border-radius: 10px;
  padding: 6px 10px;
  color: #4c1d95;
  background: #f5f3ff;
  font-size: 13px;
  font-weight: 800;
}

.content-section {
  margin-top: 22px;
  padding: 26px;
}

.content-section h2,
.aside-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.content-section p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
}

.related-aside {
  align-self: start;
  position: sticky;
  top: 86px;
}

.aside-card {
  padding: 22px;
}

.site-footer {
  margin-top: 60px;
  padding: 46px 0;
  color: #d1d5db;
  background: linear-gradient(90deg, #1f2937 0%, #111827 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 18px;
}

.site-footer p {
  margin: 0;
  max-width: 520px;
  color: #d1d5db;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #d1d5db;
}

.site-footer a:hover {
  color: #fbbf24;
}

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

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

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

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

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

  .related-aside {
    position: static;
  }
}

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

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 66px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-radius: 18px;
    padding: 10px;
    background: #ffffff;
    color: #1f2937;
    box-shadow: var(--shadow);
  }

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

  .main-nav a {
    border-radius: 12px;
    padding: 12px 14px;
  }

  .main-nav a:hover {
    background: #fff7ed;
  }

  .hero-slider {
    height: 76vh;
    min-height: 560px;
  }

  .hero-content {
    padding-bottom: 86px;
  }

  .hero-arrow {
    display: none;
  }

  .cards-six,
  .cards-five,
  .cards-four,
  .two-columns,
  .chip-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .highlight-section,
  .score-section,
  .white-section {
    padding: 22px;
    border-radius: 22px;
  }

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

  .horizontal-card {
    gap: 12px;
    min-height: 112px;
  }

  .horizontal-poster {
    width: 105px;
    flex-basis: 105px;
  }

  .horizontal-body {
    padding: 12px 12px 12px 0;
  }

  .rank-row {
    grid-template-columns: 42px 82px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .rank-hot {
    display: none;
  }

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

  .detail-cover {
    max-width: 240px;
  }
}

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

  .cards-six,
  .cards-five,
  .cards-four,
  .two-columns,
  .chip-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .featured-card {
    min-height: 270px;
  }

  .compact-card strong,
  .standard-body strong {
    font-size: 14px;
  }

  .standard-body em {
    display: none;
  }

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

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

  .play-button span {
    font-size: 30px;
  }
}
