:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --white: #ffffff;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.16);
  --shadow-card: 0 12px 28px rgba(15, 23, 42, 0.18);
}

* {
  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", sans-serif;
  color: var(--gray-800);
  background: var(--gray-50);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-900), var(--slate-800));
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.35);
}

.nav-row {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.86;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-500);
}

.logo-mark svg {
  width: 30px;
  height: 30px;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex: 1;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: var(--amber-400);
}

.nav-search {
  width: 230px;
  position: relative;
}

.nav-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--white);
  background: rgba(51, 65, 85, 0.92);
  border-radius: 999px;
  padding: 10px 42px 10px 16px;
}

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

.nav-search button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
}

.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  color: var(--white);
  background: transparent;
}

.mobile-menu {
  display: none;
  padding: 0 0 18px;
}

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

.mobile-menu a {
  display: block;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.92);
}

.mobile-menu a:hover {
  color: var(--amber-400);
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--slate-950);
}

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

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

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

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

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.05));
}

.hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
  color: var(--white);
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--amber-400);
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 20px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.hero-copy p {
  margin: 0;
  max-width: 680px;
  color: rgba(243, 244, 246, 0.92);
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

.btn-primary,
.btn-ghost,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 26px;
  border: 0;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  color: var(--white);
  background: var(--amber-500);
  box-shadow: 0 16px 30px rgba(245, 158, 11, 0.28);
}

.btn-primary:hover {
  background: var(--amber-600);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

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

.btn-light {
  color: var(--gray-800);
  background: var(--white);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.btn-light:hover {
  transform: translateY(-2px);
}

.tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.48);
  transition: background 0.2s ease;
}

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

.hero-arrow.prev {
  left: 18px;
}

.hero-arrow.next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 3;
  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);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--amber-500);
}

.section {
  padding: 70px 0;
}

.section.dark-lift {
  background: linear-gradient(180deg, var(--slate-900), var(--gray-50));
}

.section.white {
  background: var(--white);
}

.section.soft {
  background: linear-gradient(90deg, #f1f5f9, var(--gray-100));
}

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

.section-title {
  margin: 0;
  color: var(--gray-800);
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.2;
  font-weight: 900;
}

.section-desc {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--gray-600);
  line-height: 1.8;
}

.scroller {
  position: relative;
}

.scroller-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 6px 2px 18px;
  scrollbar-width: none;
}

.scroller-track::-webkit-scrollbar {
  display: none;
}

.scroller-item {
  flex: 0 0 288px;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.scroll-btn.left {
  left: -12px;
}

.scroll-btn.right {
  right: -12px;
}

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

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

.movie-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 214px;
  border-radius: 18px;
  color: var(--white);
  background: var(--slate-900);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 42px rgba(15, 23, 42, 0.24);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--slate-800);
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.92;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.9));
}

.card-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: rgba(229, 231, 235, 0.9);
  font-size: 13px;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--amber-300);
  background: rgba(245, 158, 11, 0.18);
}

.card-summary {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card.large {
  min-height: 452px;
}

.movie-card.large .card-title {
  font-size: 27px;
}

.movie-row {
  display: flex;
  gap: 18px;
  align-items: stretch;
  overflow: hidden;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.13);
}

.movie-row img {
  width: 220px;
  min-height: 138px;
  object-fit: cover;
}

.movie-row-body {
  flex: 1;
  padding: 18px 18px 18px 0;
}

.movie-row h3 {
  margin: 0 0 8px;
  color: var(--gray-800);
  font-size: 20px;
}

.movie-row p {
  margin: 0 0 12px;
  color: var(--gray-600);
  line-height: 1.7;
}

.row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--gray-500);
  font-size: 14px;
}

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

.category-tile {
  display: block;
  min-height: 160px;
  padding: 22px;
  border-radius: 20px;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), var(--slate-700));
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 42px rgba(15, 23, 42, 0.24);
}

.category-tile h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  font-size: 14px;
}

.page-hero {
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-900), var(--slate-800));
  padding: 70px 0;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 900;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
  font-size: 18px;
}

.breadcrumbs {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: var(--amber-400);
}

.filter-bar {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 14px;
  margin-bottom: 30px;
  padding: 18px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.filter-bar input,
.filter-bar select,
.search-panel input {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  outline: 0;
  padding: 13px 18px;
  color: var(--gray-800);
  background: var(--white);
}

.filter-bar input:focus,
.filter-bar select:focus,
.search-panel input:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16);
}

.detail-player-section {
  padding: 34px 0;
  background: var(--slate-900);
}

.detail-layout {
  max-width: 980px;
  margin: 0 auto;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #000000;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.36);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(0, 0, 0, 0.38);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-play {
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--amber-500);
  box-shadow: 0 20px 45px rgba(245, 158, 11, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}

.player-play:hover {
  transform: scale(1.06);
  background: var(--amber-600);
}

.player-play svg {
  width: 32px;
  height: 32px;
  margin-left: 4px;
}

.detail-card {
  margin-top: 46px;
  padding: 34px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.detail-card h1 {
  margin: 0 0 22px;
  color: var(--gray-800);
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.18;
  font-weight: 900;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
  color: var(--gray-600);
}

.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
}

.detail-lead {
  margin: 0 0 24px;
  padding: 18px;
  border-left: 4px solid var(--amber-500);
  border-radius: 10px;
  color: var(--gray-800);
  background: var(--amber-50);
  line-height: 1.8;
  font-size: 18px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 30px;
}

.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-size: 14px;
}

.article-section {
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.article-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.article-section h2 {
  margin: 0 0 12px;
  color: var(--gray-800);
  font-size: 26px;
}

.article-section p {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.9;
  font-size: 18px;
}

.related-block {
  margin-top: 42px;
}

.related-block h2 {
  margin: 0 0 22px;
  color: var(--gray-800);
  font-size: 30px;
  font-weight: 900;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 92px 1fr 92px;
  align-items: center;
  gap: 18px;
  padding: 12px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.13);
}

.rank-num {
  color: var(--amber-600);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

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

.rank-row h3 {
  margin: 0 0 6px;
  color: var(--gray-800);
  font-size: 18px;
}

.rank-row p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.6;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-score {
  color: var(--amber-600);
  font-weight: 900;
  text-align: right;
}

.search-panel {
  max-width: 780px;
  margin: 0 auto 30px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.search-result-note {
  margin: 0 0 22px;
  color: var(--gray-600);
  font-size: 17px;
}

.footer {
  color: rgba(255, 255, 255, 0.72);
  background: var(--slate-900);
  padding: 46px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 30px;
}

.footer h2,
.footer h3 {
  margin: 0 0 14px;
  color: var(--white);
}

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

.footer a {
  display: block;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--amber-400);
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

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

.empty-state {
  padding: 60px 20px;
  border-radius: 18px;
  text-align: center;
  color: var(--gray-600);
  background: var(--white);
}

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

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

  .nav-search {
    width: 200px;
  }
}

@media (max-width: 820px) {
  .nav-menu,
  .nav-search {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    min-height: 620px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-arrow {
    display: none;
  }

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

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

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

  .rank-row {
    grid-template-columns: 44px 76px 1fr;
  }

  .rank-score {
    display: none;
  }

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

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .section {
    padding: 48px 0;
  }

  .hero {
    height: 78vh;
    min-height: 580px;
  }

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

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .tag-row {
    display: none;
  }

  .movie-grid,
  .movie-grid.three,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .scroller-item {
    flex-basis: 82vw;
  }

  .movie-row {
    flex-direction: column;
  }

  .movie-row img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

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

  .detail-card {
    padding: 22px;
  }

  .rank-row {
    grid-template-columns: 42px 1fr;
  }

  .rank-row img {
    display: none;
  }
}
