:root {
  --bg: #f9fafb;
  --panel: #ffffff;
  --panel-soft: #fff7ed;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --dark: #111827;
  --accent: #d97706;
  --accent-dark: #b45309;
  --accent-light: #fef3c7;
  --shadow: 0 16px 35px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(14px);
}

.header-inner {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 2px;
  color: #ffffff;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.28);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 9px 15px;
  color: #4b5563;
  border-radius: 999px;
  transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: var(--accent);
}

.mobile-menu-button {
  display: none;
  border: 0;
  color: var(--text);
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.main-shell {
  min-height: calc(100vh - 64px);
  padding-top: 64px;
}

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

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.54) 46%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1180px, calc(100% - 48px));
  transform: translate(-50%, -50%);
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 12px;
  color: #fbbf24;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.05;
  font-weight: 900;
}

.hero-summary {
  max-width: 680px;
  margin: 0 0 20px;
  color: #e5e7eb;
  font-size: 20px;
}

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

.hero-meta span,
.detail-meta span {
  padding: 6px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

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

.primary-button,
.ghost-button,
.panel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  transition: 0.22s ease;
}

.primary-button {
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.34);
}

.primary-button:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  cursor: pointer;
  transform: translateY(-50%);
  font-size: 32px;
  line-height: 1;
  transition: 0.22s ease;
  backdrop-filter: blur(8px);
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

.hero-dot.active {
  width: 34px;
  background: #f59e0b;
}

.hero-search {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 74px;
  width: min(430px, calc(100% - 48px));
  display: flex;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  backdrop-filter: blur(16px);
}

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

.hero-search button,
.filter-panel button {
  min-width: 90px;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: var(--accent);
  cursor: pointer;
  font-weight: 800;
}

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px 0;
}

.inner-page .content-section:first-of-type {
  padding-top: 40px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
  color: var(--dark);
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  color: var(--accent-dark);
  font-weight: 800;
}

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

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

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

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.72);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  transition: 0.26s ease;
}

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

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #78350f);
}

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

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.72) 100%);
  opacity: 0;
  transition: 0.28s ease;
}

.movie-card:hover .card-cover::after {
  opacity: 1;
}

.card-type {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 8px;
  color: #fbbf24;
  background: rgba(0, 0, 0, 0.62);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
  color: #ffffff;
  background: var(--accent);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: 0.26s ease;
}

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

.card-body {
  padding: 14px;
}

.card-body h3 {
  min-height: 48px;
  margin: 0 0 8px;
  color: var(--dark);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 850;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body h3 a:hover {
  color: var(--accent-dark);
}

.card-meta {
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.card-meta span + span::before {
  content: "•";
  margin-right: 6px;
  color: #d1d5db;
}

.card-body p {
  margin: 9px 0 12px;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span {
  padding: 3px 8px;
  color: #92400e;
  background: #fffbeb;
  border-radius: 999px;
  font-size: 12px;
}

.highlighted-section {
  max-width: 1232px;
  margin-top: 56px;
  padding: 42px;
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
  border-radius: 32px;
}

.soft-section {
  max-width: 1232px;
  margin-top: 56px;
  padding: 42px;
  background: #f3f4f6;
  border-radius: 32px;
}

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

.category-tile {
  position: relative;
  min-height: 160px;
  overflow: hidden;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
  border-radius: 22px;
  background: #111827;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.54;
  transition: 0.3s ease;
}

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

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.84));
}

.category-tile span,
.category-tile strong {
  position: relative;
  z-index: 1;
}

.category-tile span {
  font-size: 18px;
  font-weight: 850;
}

.category-tile strong {
  color: #fbbf24;
  font-size: 13px;
}

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

.ranking-panel {
  position: sticky;
  top: 88px;
  padding: 24px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.ranking-panel h2 {
  margin: 0 0 18px;
  font-size: 26px;
}

.ranking-panel ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-panel li a {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
}

.rank-no {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--accent);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.rank-title {
  font-weight: 800;
}

.rank-year {
  color: var(--muted);
  font-size: 13px;
}

.panel-link {
  width: 100%;
  margin-top: 18px;
  color: #ffffff;
  background: var(--dark);
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.55), transparent 36%), linear-gradient(135deg, #111827, #451a03);
}

.small-hero {
  max-width: 1280px;
  margin: 24px auto 0;
  padding: 58px 32px;
  border-radius: 0 0 32px 32px;
}

.small-hero h1 {
  max-width: 920px;
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
}

.small-hero p:last-child {
  max-width: 780px;
  margin: 0;
  color: #e5e7eb;
  font-size: 18px;
}

.category-overview-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 18px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  overflow: hidden;
  border-radius: 18px;
  background: #111827;
}

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

.category-overview-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-overview-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.category-overview-card span {
  color: var(--accent-dark);
  font-weight: 800;
}

.filter-panel {
  max-width: 1280px;
  margin: 32px auto 0;
  padding: 18px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 12px;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.result-line {
  margin-bottom: 16px;
  color: var(--muted);
}

.result-line strong {
  color: var(--accent-dark);
}

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

.rank-card {
  display: grid;
  grid-template-columns: 126px 1fr;
  gap: 18px;
  padding: 16px;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.rank-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  background: #111827;
}

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

.rank-cover span {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--accent);
  border-radius: 999px;
  font-weight: 900;
}

.rank-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.rank-card p {
  color: #4b5563;
}

.breadcrumb {
  max-width: 1280px;
  margin: 24px auto 0;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--accent-dark);
  font-weight: 800;
}

.detail-hero {
  max-width: 1280px;
  margin: 24px auto 0;
  padding: 28px 24px 0;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: center;
}

.poster-wrap {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: #111827;
}

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

.detail-info h1 {
  margin: 0 0 16px;
  color: var(--dark);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
}

.detail-page .detail-meta span {
  color: #4b5563;
  background: #f3f4f6;
  border-color: #e5e7eb;
}

.lead-text {
  max-width: 820px;
  margin: 22px 0;
  color: #374151;
  font-size: 20px;
}

.large-tags span {
  padding: 6px 12px;
  font-size: 13px;
}

.player-section {
  max-width: 1100px;
  margin: 48px auto 0;
  padding: 0 24px;
}

.player-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: 28px;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.28);
}

.player-box video,
.player-cover,
.player-cover img {
  width: 100%;
  height: 100%;
}

.player-box video {
  display: block;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #111827;
  transition: 0.28s ease;
}

.player-cover img {
  object-fit: cover;
  opacity: 0.72;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.62));
}

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

.big-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  color: #ffffff;
  background: var(--accent);
  border-radius: 999px;
  font-size: 34px;
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 42px rgba(217, 119, 6, 0.38);
}

.play-trigger {
  margin-top: 18px;
}

.article-section {
  max-width: 980px;
}

.article-section h2 {
  margin: 0 0 14px;
  color: var(--dark);
  font-size: 28px;
}

.article-section p {
  margin: 0 0 28px;
  color: #374151;
  font-size: 17px;
}

.movie-card.compact .card-body h3 {
  min-height: auto;
}

.movie-card.compact .card-body p {
  -webkit-line-clamp: 3;
}

.site-footer {
  margin-top: 70px;
  color: #d1d5db;
  background: #111827;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.footer-logo {
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.footer-inner p {
  max-width: 620px;
  margin: 12px 0 0;
  color: #9ca3af;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: #fbbf24;
  font-weight: 800;
}

.footer-copy {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

  .split-layout,
  .rank-list {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  .mobile-menu-button {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 64px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    padding: 14px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    text-align: center;
  }

  .hero-section {
    min-height: 640px;
  }

  .hero-content {
    top: 44%;
  }

  .hero-search {
    left: 24px;
    right: 24px;
    bottom: 72px;
    width: auto;
  }

  .hero-arrow {
    display: none;
  }

  .four-col,
  .six-col,
  .category-grid,
  .category-overview-list,
  .filter-panel,
  .detail-hero {
    grid-template-columns: 1fr 1fr;
  }

  .category-overview-card,
  .rank-card {
    grid-template-columns: 120px 1fr;
  }

  .detail-hero {
    align-items: start;
  }

  .filter-panel {
    margin-left: 24px;
    margin-right: 24px;
  }
}

@media (max-width: 620px) {
  .header-inner {
    padding: 0 16px;
  }

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

  .content-section,
  .player-section,
  .breadcrumb,
  .detail-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-content {
    width: calc(100% - 32px);
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-summary {
    font-size: 17px;
  }

  .hero-search {
    left: 16px;
    right: 16px;
    flex-direction: column;
  }

  .small-hero {
    margin-top: 12px;
    padding: 46px 20px;
    border-radius: 0 0 24px 24px;
  }

  .four-col,
  .six-col,
  .category-grid,
  .category-overview-list,
  .filter-panel,
  .detail-hero,
  .category-overview-card,
  .rank-card {
    grid-template-columns: 1fr;
  }

  .movie-grid {
    gap: 16px;
  }

  .highlighted-section,
  .soft-section {
    padding: 26px 16px;
    border-radius: 24px;
  }

  .poster-wrap {
    max-width: 260px;
  }

  .footer-inner {
    flex-direction: column;
  }
}
