:root {
  --bg: #fffaf0;
  --panel: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #d97706;
  --brand-dark: #92400e;
  --brand-soft: #fef3c7;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.86);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.28);
}

.brand-name {
  font-size: 20px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.nav-link {
  padding: 10px 12px;
  border-radius: 999px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.header-search,
.mobile-search {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.header-search input,
.mobile-search input {
  width: 210px;
  border: 0;
  outline: 0;
  padding: 10px 14px;
  background: transparent;
}

.header-search button,
.mobile-search button,
.hero-search button,
.primary-button,
.secondary-button {
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.header-search button,
.mobile-search button {
  padding: 0 16px;
  color: #ffffff;
  background: var(--brand);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff7ed;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #92400e;
}

.mobile-panel {
  display: none;
  padding: 0 24px 18px;
  border-top: 1px solid var(--line);
}

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

.mobile-nav {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  color: #374151;
  background: #ffffff;
}

.mobile-link.is-active {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.page-main {
  min-height: 72vh;
}

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

.section.compact {
  padding-top: 36px;
}

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

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--brand);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title,
.page-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.section-desc,
.page-desc {
  max-width: 780px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
}

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

.hero-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  min-height: 620px;
  color: #ffffff;
  box-shadow: var(--shadow);
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 34px;
  padding: clamp(28px, 5vw, 70px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.94) 0%, rgba(17, 24, 39, 0.76) 43%, rgba(17, 24, 39, 0.3) 100%),
    radial-gradient(circle at 18% 18%, rgba(245, 158, 11, 0.3), transparent 38%);
}

.hero-content,
.hero-poster-panel {
  position: relative;
  z-index: 2;
}

.hero-content {
  align-self: center;
  max-width: 680px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-meta span,
.tag-row span,
.detail-tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 12px;
  font-weight: 800;
}

.hero-meta span {
  color: #fff7ed;
  background: rgba(245, 158, 11, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero p {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 14px 30px rgba(234, 88, 12, 0.3);
}

.secondary-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.hero-search {
  display: flex;
  max-width: 560px;
  margin-top: 28px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 16px 18px;
  color: #111827;
}

.hero-search button {
  padding: 0 24px;
  color: #ffffff;
  background: var(--brand);
}

.hero-poster-panel {
  align-self: center;
  justify-self: end;
  width: min(380px, 100%);
}

.hero-poster-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 26px;
  transform: rotate(2deg);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.hero-poster-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.7));
}

.hero-poster-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
}

.hero-poster-caption strong {
  display: block;
  font-size: 22px;
}

.hero-controls {
  position: absolute;
  left: clamp(28px, 5vw, 70px);
  right: clamp(28px, 5vw, 70px);
  bottom: 28px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-arrow {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.3);
}

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

.quick-categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1280px;
  margin: 16px auto 0;
  padding: 0 24px 24px;
}

.quick-category {
  padding: 18px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-category:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.quick-category strong {
  display: block;
  margin-bottom: 4px;
  color: var(--brand-dark);
  font-size: 18px;
}

.quick-category span {
  color: var(--muted);
  font-size: 14px;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.88);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.movie-poster img {
  transition: transform 0.35s ease;
}

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

.movie-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.movie-card-body {
  padding: 18px;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.movie-card h2 {
  margin: 8px 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.movie-card h2 a:hover,
.ranking-body h2 a:hover,
.detail-related h2 a:hover {
  color: var(--brand);
}

.movie-card p {
  min-height: 64px;
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 14px;
}

.tag-row,
.detail-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.category-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  aspect-ratio: 16 / 10;
  background: #111827;
}

.category-card-body {
  padding: 20px;
}

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

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

.category-card span {
  color: var(--brand);
  font-weight: 900;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.7fr;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #374151;
  font-weight: 800;
}

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

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

.ranking-item {
  display: grid;
  grid-template-columns: 54px 92px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.06);
}

.ranking-number {
  color: var(--brand);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.ranking-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: #111827;
}

.ranking-body h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.ranking-body p {
  margin: 0 0 10px;
  color: #4b5563;
  font-size: 14px;
}

.detail-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

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

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: var(--shadow);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  background: #111827;
}

.player-cover img {
  opacity: 0.7;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22), rgba(0, 0, 0, 0.62));
}

.player-cover.is-hidden {
  display: none;
}

.play-button {
  position: absolute;
  z-index: 3;
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 20px 38px rgba(234, 88, 12, 0.34);
  font-size: 30px;
  line-height: 1;
}

.detail-side {
  position: sticky;
  top: 96px;
  overflow: hidden;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-poster {
  aspect-ratio: 2 / 3;
  background: #111827;
}

.detail-side-body {
  padding: 20px;
}

.detail-side-body h1 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.18;
}

.detail-meta-list {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  color: #4b5563;
}

.detail-meta-list strong {
  color: #111827;
}

.detail-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px 70px;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

.article-panel,
.aside-panel {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
}

.article-panel {
  padding: 30px;
}

.article-panel h2,
.aside-panel h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

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

.aside-panel {
  padding: 18px;
}

.detail-related {
  display: grid;
  gap: 14px;
}

.related-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: center;
}

.related-card img {
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  background: #111827;
}

.related-card h2 {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.25;
}

.related-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.empty-filter {
  display: none;
  padding: 30px;
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
}

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

.site-footer {
  color: #d1d5db;
  background: #111827;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 36px;
}

.footer-logo .brand-name {
  color: #ffffff;
}

.footer-brand p {
  max-width: 520px;
  margin: 18px 0 0;
  color: #9ca3af;
}

.footer-links h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 20px;
}

.footer-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

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

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

@media (max-width: 1080px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

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

  .hero-carousel {
    min-height: 820px;
  }

  .hero-poster-panel,
  .detail-side {
    position: relative;
    top: auto;
    justify-self: start;
    width: min(320px, 100%);
  }

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

  .ranking-list {
    grid-template-columns: 1fr;
  }

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

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

  .brand-name {
    font-size: 17px;
  }

  .section,
  .detail-content {
    padding: 42px 16px;
  }

  .hero {
    padding: 18px 16px;
  }

  .hero-carousel {
    min-height: 760px;
    border-radius: 22px;
  }

  .hero-slide {
    padding: 28px 20px 84px;
  }

  .hero-search {
    flex-direction: column;
    border-radius: 18px;
  }

  .hero-search button {
    min-height: 48px;
  }

  .hero-controls {
    left: 20px;
    right: 20px;
  }

  .quick-categories,
  .movie-grid,
  .category-grid {
    grid-template-columns: 1fr;
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-header {
    display: block;
  }

  .ranking-item {
    grid-template-columns: 42px 76px 1fr;
    gap: 12px;
  }

  .article-panel {
    padding: 22px;
  }

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