:root {
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-line: #e5e7eb;
  --color-soft: #f9fafb;
  --color-amber: #d97706;
  --color-amber-dark: #92400e;
  --color-orange-dark: #7c2d12;
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--color-text);
  background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #78350f 0%, #7c2d12 100%);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
}

.nav-wrap {
  width: min(1280px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-mark {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f59e0b;
  color: #451a03;
  box-shadow: 0 10px 20px rgba(245, 158, 11, 0.35);
}

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

.nav-links a {
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: #fde68a;
  transform: translateY(-1px);
}

.nav-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.20);
}

.nav-search input {
  width: 190px;
  border: 0;
  outline: none;
  color: #ffffff;
  background: transparent;
  padding: 10px 14px;
}

.nav-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.nav-search button {
  border: 0;
  color: #451a03;
  background: #fbbf24;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: linear-gradient(90deg, #111827 0%, #1f2937 100%);
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.52) 48%, rgba(0, 0, 0, 0.16) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  max-width: 760px;
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #fde68a;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-kicker::before {
  content: "";
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: #f59e0b;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0 0 26px;
  max-width: 700px;
  color: #e5e7eb;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.55;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
  color: #f3f4f6;
  font-size: 17px;
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  padding: 7px 12px;
  color: #ffffff;
  background: var(--color-amber);
  font-weight: 800;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

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

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

.button-primary:hover {
  transform: translateY(-2px) scale(1.02);
  background: #b45309;
}

.button-secondary {
  color: #fde68a;
  border: 1px solid rgba(253, 230, 138, 0.45);
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
}

.button-secondary:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.button-light {
  color: #92400e;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.button-light:hover {
  color: #78350f;
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.52);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
  transform: translateY(-50%) scale(1.06);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

.hero-dot.is-active {
  background: #f59e0b;
}

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

.section {
  padding: 70px 0;
}

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

.section-dark {
  color: #ffffff;
  background: #111827;
}

.section-brand {
  color: #ffffff;
  background: linear-gradient(90deg, #78350f 0%, #7c2d12 100%);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  color: #b45309;
  font-weight: 900;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 30px;
  border-radius: 999px;
  background: #d97706;
}

.section-dark .eyebrow,
.section-brand .eyebrow {
  color: #fcd34d;
}

.section-title {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.15;
  font-weight: 900;
}

.section-dark .section-title,
.section-brand .section-title {
  color: #ffffff;
}

.section-subtitle {
  max-width: 760px;
  margin: 12px 0 0;
  color: #6b7280;
  font-size: 17px;
  line-height: 1.75;
}

.section-dark .section-subtitle,
.section-brand .section-subtitle {
  color: #fde68a;
}

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

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

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

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px rgba(245, 158, 11, 0.18);
}

.movie-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111827;
}

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

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

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

.poster-gradient {
  position: absolute;
  inset: auto 0 0;
  min-height: 54%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0) 100%);
}

.poster-type {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  background: rgba(217, 119, 6, 0.94);
  font-size: 12px;
  font-weight: 900;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.58);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-body {
  padding: 16px;
}

.movie-title {
  margin: 0 0 8px;
  color: #111827;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.movie-desc {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-card {
  display: block;
  border-radius: 18px;
  padding: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 38px rgba(245, 158, 11, 0.18);
}

.category-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  margin: 0;
  color: #6b7280;
  line-height: 1.7;
}

.page-hero {
  color: #ffffff;
  padding: 74px 0;
  background: linear-gradient(90deg, #78350f 0%, #7c2d12 100%);
}

.page-hero h1 {
  max-width: 860px;
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 900;
}

.page-hero p {
  max-width: 860px;
  margin: 0;
  color: #fde68a;
  font-size: 19px;
  line-height: 1.75;
}

.content-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
}

.sidebar-card {
  position: sticky;
  top: 94px;
  border-radius: 18px;
  padding: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.sidebar-card h2,
.sidebar-card h3 {
  margin: 0 0 18px;
  font-size: 21px;
  font-weight: 900;
}

.filter-list {
  display: grid;
  gap: 8px;
}

.filter-list a {
  display: block;
  border-radius: 12px;
  padding: 11px 13px;
  color: #374151;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease;
}

.filter-list a:hover,
.filter-list a.is-active {
  color: #92400e;
  background: #fef3c7;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 46px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0 12px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  font-weight: 900;
}

.pagination span {
  color: #ffffff;
  background: #d97706;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 48px 88px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(4px);
}

.rank-number {
  color: #fcd34d;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.rank-thumb {
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  background: #000000;
}

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

.rank-info h3 {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
}

.rank-info p {
  margin: 0;
  color: #d1d5db;
  font-size: 13px;
  line-height: 1.5;
}

.player-stage {
  padding: 36px 0;
  background: linear-gradient(90deg, #111827 0%, #1f2937 100%);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #000000;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.35);
}

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

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  padding: 16px 24px;
  color: #ffffff;
  background: rgba(217, 119, 6, 0.96);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.player-start:hover {
  background: #b45309;
  transform: translate(-50%, -50%) scale(1.04);
}

.player-shell.is-playing .player-start {
  opacity: 0;
  pointer-events: none;
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: none;
  border-radius: 14px;
  padding: 12px 14px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
  font-weight: 700;
}

.player-shell.has-message .player-message {
  display: block;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 32px;
}

.detail-title {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.12;
  font-weight: 900;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  color: #4b5563;
  font-weight: 800;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: #fef3c7;
  color: #92400e;
}

.panel {
  border-radius: 18px;
  padding: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.panel + .panel {
  margin-top: 20px;
}

.panel.review {
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
}

.panel h2,
.panel h3 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 900;
}

.panel p {
  margin: 0;
  color: #374151;
  font-size: 17px;
  line-height: 1.88;
  white-space: pre-line;
}

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

.info-list dt {
  margin: 0 0 4px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
}

.info-list dd {
  margin: 0;
  color: #111827;
  font-weight: 900;
}

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

.tags span,
.tags a {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 11px;
  color: #92400e;
  background: #fef3c7;
  font-size: 13px;
  font-weight: 800;
}

.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px 160px 130px;
  gap: 12px;
  border-radius: 22px;
  padding: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.search-box input,
.search-box select {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  outline: none;
  padding: 13px 14px;
  color: #111827;
  background: #ffffff;
}

.search-box button {
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  background: var(--color-amber);
  font-weight: 900;
  cursor: pointer;
}

.search-status {
  margin: 22px 0;
  color: #6b7280;
  font-weight: 800;
}

.site-footer {
  padding: 38px 0;
  color: #fde68a;
  background: #111827;
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #ffffff;
}

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

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

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

  .sidebar-card {
    position: static;
  }
}

@media (max-width: 860px) {
  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-wrap {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0 12px;
  }

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

  .nav-search {
    width: 100%;
  }

  .nav-search input {
    width: 100%;
  }

  .hero {
    height: auto;
    min-height: 620px;
  }

  .hero-inner {
    max-width: none;
  }

  .hero-arrow {
    display: none;
  }

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

  .grid-6,
  .grid-5,
  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .container,
  .nav-wrap,
  .footer-inner {
    width: min(100% - 22px, 1280px);
  }

  .hero h1 {
    font-size: 40px;
  }

  .grid-6,
  .grid-5,
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 38px 72px minmax(0, 1fr);
  }
}
