:root {
  --brand: #d97706;
  --brand-dark: #b45309;
  --brand-soft: #fff7ed;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --card: #ffffff;
  --bg: #f7f8fb;
  --shadow: 0 20px 45px rgba(31, 41, 55, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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;
  color: #ffffff;
  background: linear-gradient(90deg, #d97706 0%, #f97316 100%);
  box-shadow: 0 12px 30px rgba(180, 83, 9, 0.24);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #f97316;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

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

.site-nav a {
  padding: 8px 0;
  opacity: 0.92;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  opacity: 1;
  color: #fff7ed;
  border-bottom-color: #fed7aa;
}

.menu-toggle {
  display: none;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 0;
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 20px;
  cursor: pointer;
}

.hero-carousel {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #111827;
}

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

.hero-slide:first-child {
  opacity: 1;
}

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

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

.hero-slide::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 52%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 56px 0 74px;
  color: #ffffff;
}

.hero-panel {
  width: min(780px, 100%);
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  color: #fef3c7;
  background: rgba(245, 158, 11, 0.9);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-panel h1,
.hero-panel h2 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.06;
  font-weight: 900;
  text-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}

.hero-panel p {
  max-width: 720px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.75;
}

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

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  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(10px);
}

.hero-meta .score,
.detail-meta .score {
  color: #78350f;
  background: #fbbf24;
  border-color: #fbbf24;
  font-weight: 900;
}

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

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, #f59e0b 0%, #f97316 100%);
  box-shadow: 0 16px 36px rgba(245, 158, 11, 0.34);
}

.btn-secondary {
  color: #92400e;
  background: #fff7ed;
}

.btn-ghost {
  color: #fef3c7;
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-control.prev {
  left: 20px;
}

.hero-control.next {
  right: 20px;
}

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

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

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

main {
  min-height: 70vh;
}

.page-hero {
  padding: 70px 0 38px;
  background: radial-gradient(circle at top left, #fed7aa 0%, rgba(254, 215, 170, 0) 34%), linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
}

.page-hero h1 {
  max-width: 880px;
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.12;
  font-weight: 900;
}

.page-hero p {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.content-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 8px;
}

.content-section.soft {
  width: min(1180px, calc(100% - 32px));
  margin-top: 48px;
  padding: 40px;
  background: linear-gradient(90deg, #fff7ed 0%, #fffbeb 100%);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.18;
  font-weight: 900;
}

.section-heading p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.movie-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  border-color: rgba(245, 158, 11, 0.48);
  box-shadow: 0 22px 44px rgba(31, 41, 55, 0.15);
  transform: translateY(-5px);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(145deg, #f3f4f6, #e5e7eb);
}

.movie-card.featured .poster-link {
  aspect-ratio: 4 / 3;
}

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

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

.card-score,
.card-year {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.card-score {
  top: 10px;
  right: 10px;
  color: #78350f;
  background: #fbbf24;
}

.card-year {
  left: 10px;
  bottom: 10px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.68);
}

.card-body {
  padding: 15px;
}

.card-body h3 {
  margin: 0 0 9px;
  font-size: 16px;
  line-height: 1.38;
  font-weight: 900;
}

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

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

.card-meta {
  justify-content: space-between;
  color: #6b7280;
  font-size: 12px;
}

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

.tag-row span {
  color: #92400e;
  background: #fff7ed;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}

.category-hub {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 42px auto 0;
}

.category-box {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 26px;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.category-box h2 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 900;
}

.category-box p {
  flex: 1;
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 12px;
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 20px;
  box-shadow: 0 14px 36px rgba(31, 41, 55, 0.08);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--ink);
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 13px;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.filter-empty {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto;
  color: var(--muted);
  text-align: center;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: min(1180px, calc(100% - 32px));
  margin: 46px auto 0;
}

.pagination a,
.pagination span {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 13px;
  font-weight: 800;
}

.pagination span,
.pagination a:hover {
  color: #ffffff;
  background: var(--brand);
  border-color: var(--brand);
}

.player-wrap {
  background: #050505;
}

.player-inner {
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
  background: #000000;
}

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

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

.video-start span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #d97706;
  background: #ffffff;
  border-radius: 999px;
}

.video-start:hover {
  transform: translate(-50%, -50%) scale(1.04);
}

.video-start.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.video-error {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: none;
  color: #fee2e2;
  background: rgba(127, 29, 29, 0.84);
  border-radius: 14px;
  padding: 12px 14px;
  text-align: center;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 28px;
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
}

.detail-card,
.side-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(31, 41, 55, 0.09);
}

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  font-weight: 900;
}

.detail-meta span {
  color: #6b7280;
  background: #f9fafb;
  border-color: #e5e7eb;
}

.detail-meta .score {
  color: #78350f;
  background: #fbbf24;
}

.detail-card h2,
.side-card h2 {
  margin: 28px 0 12px;
  font-size: 24px;
  font-weight: 900;
}

.detail-card p {
  margin: 0 0 16px;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.95;
}

.detail-cover {
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

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

.related-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.related-list a {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: #f9fafb;
  border-radius: 14px;
}

.related-list img {
  width: 58px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
}

.related-list strong {
  display: block;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-list span {
  color: var(--muted);
  font-size: 13px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 92px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #eef2f7;
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(31, 41, 55, 0.07);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  border-radius: 16px;
  font-size: 18px;
  font-weight: 900;
}

.rank-row img {
  width: 92px;
  height: 122px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-row h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
}

.rank-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.rank-score {
  color: #92400e;
  background: #fef3c7;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 30px;
  padding: 44px 0;
}

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

.site-footer p {
  margin: 0;
  line-height: 1.8;
}

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

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

.footer-bottom {
  padding: 18px;
  color: #9ca3af;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

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

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

@media (max-width: 768px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 66px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px;
    background: #b45309;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
  }

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

  .hero-carousel {
    min-height: 78vh;
  }

  .hero-content {
    padding: 42px 0 70px;
  }

  .hero-control {
    display: none;
  }

  .content-section.soft {
    padding: 24px;
  }

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

  .category-hub,
  .filter-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 40px 74px minmax(0, 1fr);
  }

  .rank-score {
    grid-column: 3;
    width: fit-content;
  }

  .video-start strong {
    display: none;
  }
}
