:root {
  --primary-50: #fff7ed;
  --primary-100: #ffedd5;
  --primary-300: #f6b87d;
  --primary-400: #f29148;
  --primary-600: #e0561b;
  --primary-700: #ba4118;
  --secondary-50: #f7f7f5;
  --secondary-100: #e8e6df;
  --secondary-500: #6f6a60;
  --secondary-600: #575148;
  --secondary-700: #3f3932;
  --secondary-900: #26231f;
  --card: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 14px 32px rgba(38, 35, 31, 0.10);
  --shadow-xl: 0 25px 60px rgba(38, 35, 31, 0.18);
  --radius-lg: 18px;
  --radius-xl: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--secondary-900);
  background: var(--secondary-50);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--secondary-900);
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-400));
  box-shadow: 0 10px 22px rgba(224, 86, 27, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--secondary-700);
  font-size: 15px;
  font-weight: 650;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-600);
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #fff;
  background: var(--primary-600);
  cursor: pointer;
}

.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 24px 72px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  background: radial-gradient(circle at top left, rgba(242, 145, 72, 0.22), transparent 38%), #fff;
}

.hero-slider {
  position: relative;
  min-height: 640px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.hero-inner {
  max-width: 1280px;
  min-height: 640px;
  margin: 0 auto;
  padding: 72px 24px 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  align-items: center;
  gap: 48px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--primary-700);
  background: var(--primary-50);
  font-size: 14px;
  font-weight: 800;
}

.hero h1,
.detail-hero h1,
.page-title h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--secondary-900);
}

.hero-desc {
  max-width: 700px;
  margin: 22px 0 28px;
  color: var(--secondary-600);
  font-size: 18px;
}

.hero-actions,
.card-actions,
.player-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid transparent;
  background: var(--primary-600);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(224, 86, 27, 0.22);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--primary-700);
  box-shadow: 0 18px 34px rgba(186, 65, 24, 0.26);
}

.button.button-ghost {
  background: rgba(255, 255, 255, 0.76);
  color: var(--secondary-900);
  border-color: rgba(38, 35, 31, 0.10);
  box-shadow: none;
}

.button.button-small {
  padding: 8px 13px;
  font-size: 13px;
}

.hero-media {
  position: relative;
  z-index: 2;
  min-height: 460px;
}

.hero-poster {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(460px, 90%);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: rotate(2deg);
  background: var(--secondary-100);
}

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

.hero-floating-card {
  position: absolute;
  left: 0;
  bottom: 42px;
  max-width: 360px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.hero-floating-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--secondary-900);
  font-size: 18px;
}

.hero-floating-card p {
  margin: 0;
  color: var(--secondary-600);
  font-size: 14px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(63, 57, 50, 0.24);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 28px;
  background: var(--primary-600);
}

.section {
  margin-top: 46px;
}

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

.section h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  color: var(--secondary-900);
}

.section-note {
  margin: 6px 0 0;
  color: var(--secondary-500);
}

.filter-panel {
  margin: 28px 0;
  padding: 18px;
  border: 1px solid rgba(38, 35, 31, 0.08);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px auto;
  gap: 12px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(38, 35, 31, 0.12);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--secondary-900);
  background: var(--secondary-50);
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--primary-400);
  box-shadow: 0 0 0 4px rgba(242, 145, 72, 0.14);
}

.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--secondary-900);
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(38, 35, 31, 0.08);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-300);
  box-shadow: var(--shadow-md);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-100), var(--secondary-100));
}

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

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

.badge-row {
  position: absolute;
  inset: 12px 12px auto;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(38, 35, 31, 0.75);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(6px);
}

.badge.primary {
  background: rgba(224, 86, 27, 0.90);
}

.card-body {
  padding: 14px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 800;
  color: var(--secondary-900);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta,
.card-line {
  margin: 0;
  color: var(--secondary-500);
  font-size: 13px;
}

.card-line {
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-tile {
  min-height: 128px;
  padding: 20px;
  border-radius: var(--radius-xl);
  color: var(--secondary-900);
  background: linear-gradient(135deg, #fff, var(--primary-50));
  border: 1px solid rgba(38, 35, 31, 0.08);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile strong {
  display: block;
  font-size: 20px;
  margin-bottom: 6px;
}

.category-tile span,
.category-tile p {
  color: var(--secondary-500);
  font-size: 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 80px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(38, 35, 31, 0.08);
  box-shadow: var(--shadow-sm);
}

.rank-no {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary-600);
  text-align: center;
}

.rank-cover {
  width: 80px;
  height: 106px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--secondary-100);
}

.rank-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 850;
}

.rank-desc {
  margin: 0;
  color: var(--secondary-500);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-title {
  padding: 38px;
  border-radius: 34px;
  background: linear-gradient(135deg, #fff, var(--primary-50));
  border: 1px solid rgba(38, 35, 31, 0.08);
  box-shadow: var(--shadow-sm);
}

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

.breadcrumb a {
  color: var(--primary-700);
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 36px;
  padding: 30px;
  border-radius: 34px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  background: var(--secondary-100);
  box-shadow: var(--shadow-md);
}

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

.meta-pills,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--secondary-700);
  background: var(--secondary-50);
  border: 1px solid rgba(38, 35, 31, 0.08);
  font-size: 13px;
  font-weight: 750;
}

.content-card {
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(38, 35, 31, 0.08);
}

.content-card h2,
.content-card h3 {
  margin-top: 0;
}

.player-card {
  overflow: hidden;
  border-radius: 32px;
  background: #12100e;
  box-shadow: var(--shadow-xl);
}

.video-shell {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.62));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-card.is-playing .play-overlay {
  opacity: 0;
  visibility: hidden;
}

.play-button {
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--primary-600);
  box-shadow: 0 18px 36px rgba(224, 86, 27, 0.38);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.player-info {
  padding: 18px 22px;
  color: rgba(255, 255, 255, 0.80);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.player-status {
  color: rgba(255, 255, 255, 0.70);
  font-size: 13px;
}

.sitemap-list {
  columns: 4 220px;
  column-gap: 24px;
}

.sitemap-list a {
  display: block;
  break-inside: avoid;
  padding: 5px 0;
  color: var(--secondary-700);
}

.sitemap-list a:hover {
  color: var(--primary-600);
}

.site-footer {
  margin-top: 60px;
  padding: 36px 24px;
  color: var(--secondary-500);
  background: #fff;
  border-top: 1px solid rgba(38, 35, 31, 0.08);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

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

.footer-links a:hover {
  color: var(--primary-600);
}

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

@media (max-width: 1100px) {
  .movie-grid,
  .movie-grid.compact,
  .category-cloud {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .navbar {
    height: auto;
    min-height: 64px;
    align-items: flex-start;
    padding: 14px 18px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 62px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-md);
  }

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

  .hero,
  .hero-slider,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 44px 20px 68px;
  }

  .hero-media {
    min-height: 410px;
  }

  .hero-poster {
    left: 10%;
    right: auto;
    width: 72%;
  }

  .hero-floating-card {
    left: 0;
    right: 0;
    bottom: 20px;
    max-width: none;
  }

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

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

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

  .rank-item .button {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .rank-cover {
    width: 64px;
    height: 88px;
  }
}

@media (max-width: 620px) {
  .page-shell {
    padding: 28px 16px 54px;
  }

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

  .filter-panel {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

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

  .page-title,
  .detail-hero,
  .content-card {
    padding: 20px;
    border-radius: 24px;
  }

  .hero h1,
  .detail-hero h1,
  .page-title h1 {
    font-size: 34px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .logo {
    font-size: 18px;
  }
}
