:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-100: #f1f5f9;
  --gray-100: #f3f4f6;
  --gray-500: #6b7280;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --orange-500: #f97316;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--slate-800);
  background: linear-gradient(180deg, #f8fafc 0%, #f3f4f6 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: #ffffff;
  background: linear-gradient(90deg, var(--slate-950), var(--slate-800), var(--slate-950));
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.28);
}

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--amber-400), var(--orange-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
  box-shadow: 0 0 26px rgba(245, 158, 11, 0.42);
  font-size: 14px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 650;
}

.desktop-nav a,
.mobile-nav a {
  color: rgba(255, 255, 255, 0.84);
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--amber-400);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: #ffffff;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  background: rgba(2, 6, 23, 0.96);
}

.mobile-nav.is-open {
  display: grid;
  gap: 12px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.24)), var(--hero-image);
  background-size: cover;
  background-position: center;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.02);
}

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

.hero-shade,
.detail-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0.2) 46%, rgba(15, 23, 42, 0.72));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  height: 100%;
  color: #ffffff;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber-400);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-intro h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero-text,
.page-hero p,
.detail-one-line {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.small-link,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #111827;
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
  box-shadow: 0 18px 30px rgba(245, 158, 11, 0.28);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

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

.hero-poster {
  position: relative;
  width: min(310px, 28vw);
  flex: 0 0 auto;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  right: 14px;
  top: 14px;
  padding: 7px 10px;
  color: #ffffff;
  background: var(--amber-500);
  border-radius: 10px;
  font-weight: 900;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
}

.hero-controls button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.6);
  cursor: pointer;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  min-width: 10px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.4);
}

.hero-dots button.active {
  width: 28px;
  background: var(--amber-400);
}

.hero-search-band {
  position: relative;
  z-index: 10;
  margin-top: -38px;
}

.search-band-inner,
.filter-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-form {
  display: flex;
  flex: 1;
  min-width: 260px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
}

.search-form input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid #e5e7eb;
  outline: none;
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--slate-800);
  background: #ffffff;
}

.search-form input {
  border: 0;
  border-radius: 0;
}

.search-form button {
  border: 0;
  padding: 0 24px;
  color: #111827;
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
  font-weight: 900;
  cursor: pointer;
}

.quick-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 520px;
}

.quick-cats a {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  color: var(--slate-700);
  font-size: 13px;
  font-weight: 700;
}

.content-section {
  padding: 64px 0 0;
}

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

.section-head h2 {
  margin: 0;
  color: var(--slate-800);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--gray-500);
}

.section-link,
.small-link {
  min-height: 38px;
  color: var(--slate-800);
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

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

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

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

.movie-card {
  min-width: 0;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 2 / 3;
  background: #e5e7eb;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
}

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
  transition: opacity 0.3s ease;
}

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

.movie-card:hover .poster-link::after {
  opacity: 1;
}

.poster-score,
.rank-badge {
  position: absolute;
  z-index: 3;
  top: 10px;
  padding: 5px 8px;
  border-radius: 9px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.poster-score {
  right: 10px;
  background: var(--amber-500);
}

.rank-badge {
  left: 10px;
  background: rgba(15, 23, 42, 0.86);
}

.movie-card-body {
  padding: 13px 2px 0;
}

.movie-card-body h2 {
  margin: 0;
  color: var(--slate-800);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 850;
}

.movie-card-body h2 a:hover {
  color: var(--orange-500);
}

.movie-meta,
.movie-desc {
  margin: 7px 0 0;
  color: var(--gray-500);
  font-size: 13px;
  line-height: 1.55;
}

.tag-row {
  margin-top: 10px;
}

.tag-row span {
  color: var(--slate-700);
  background: #ffffff;
  border: 1px solid #e5e7eb;
  backdrop-filter: none;
}

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

.wide-rank {
  grid-template-columns: repeat(auto-fill, minmax(174px, 1fr));
}

.page-hero {
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.32), transparent 30%), linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.compact-hero {
  padding: 82px 0 76px;
}

.compact-hero h1 {
  font-size: clamp(38px, 5vw, 58px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

.category-overview {
  display: grid;
  gap: 28px;
  padding: 48px 0 0;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  padding: 24px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.category-copy h2 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 950;
}

.category-copy p:not(.eyebrow) {
  color: var(--gray-500);
  line-height: 1.8;
}

.filter-panel {
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.filter-panel input {
  flex: 2 1 280px;
}

.filter-panel select {
  flex: 1 1 160px;
}

.detail-hero {
  position: relative;
  color: #ffffff;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.76), rgba(15, 23, 42, 0.32)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(210px, 310px) 1fr;
  gap: 38px;
  align-items: center;
  min-height: 560px;
  padding: 62px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.42);
}

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

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

.detail-meta span,
.detail-meta strong {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.detail-meta strong {
  color: #111827;
  background: var(--amber-400);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding-top: 48px;
}

.player-panel,
.article-box,
.side-card {
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.player-panel {
  padding: 14px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

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

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
  cursor: pointer;
}

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

.play-icon {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin: 0 auto;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
  box-shadow: 0 18px 38px rgba(245, 158, 11, 0.36);
  font-size: 32px;
}

.article-box,
.side-card {
  margin-top: 24px;
  padding: 26px;
}

.article-box h2,
.side-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 950;
}

.article-box p {
  margin: 0;
  color: #475569;
  line-height: 1.9;
  font-size: 16px;
}

.side-card {
  margin-top: 0;
  position: sticky;
  top: 92px;
}

.side-card dl {
  margin: 0;
}

.side-card div {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #e5e7eb;
}

.side-card div:last-child {
  border-bottom: 0;
}

.side-card dt {
  color: var(--gray-500);
}

.side-card dd {
  margin: 0;
  font-weight: 700;
}

.site-footer {
  margin-top: 72px;
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding: 48px 0;
}

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

.site-footer p {
  max-width: 560px;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 10px;
}

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

.footer-bottom {
  padding: 18px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.is-filtered-out {
  display: none;
}

@media (max-width: 1080px) {
  .feature-grid,
  .rank-list,
  .mini-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .detail-layout,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .side-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

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

  .hero-content,
  .detail-hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    align-content: center;
    padding: 72px 0 96px;
  }

  .hero-poster {
    width: 210px;
    transform: none;
  }

  .search-band-inner {
    display: grid;
  }

  .quick-cats {
    max-width: none;
  }

  .feature-grid,
  .rank-list,
  .mini-grid,
  .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

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

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

  .detail-intro h1,
  .hero-copy h1,
  .page-hero h1 {
    font-size: 38px;
  }
}

@media (max-width: 420px) {
  .movie-grid,
  .feature-grid,
  .rank-list,
  .mini-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .movie-card-body h2 {
    font-size: 14px;
  }

  .movie-desc {
    display: none;
  }
}
