:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-500: #78716c;
  --stone-700: #44403c;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.16);
  --shadow-deep: 0 30px 80px rgba(2, 6, 23, 0.32);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-900);
  background: var(--stone-50);
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--stone-100);
  background: linear-gradient(90deg, var(--slate-800), var(--slate-700), var(--slate-800));
  border-bottom: 1px solid rgba(217, 119, 6, 0.22);
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.22);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--slate-900);
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-300), var(--amber-600));
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(217, 119, 6, 0.35);
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 22px;
  letter-spacing: 0.04em;
}

.brand-text small {
  color: var(--stone-300);
  font-size: 12px;
  margin-top: 3px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 700;
}

.desktop-nav a {
  position: relative;
  padding: 8px 0;
  transition: color 0.25s ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--amber-500);
  transition: width 0.25s ease;
}

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

.desktop-nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: var(--stone-100);
  border: 0;
  border-radius: 12px;
  background: rgba(71, 85, 105, 0.5);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 18px;
  border-top: 1px solid rgba(214, 211, 209, 0.16);
}

.mobile-nav a {
  display: block;
  padding: 10px 12px;
  color: var(--stone-100);
  border-radius: 10px;
}

.mobile-nav a:hover {
  background: rgba(71, 85, 105, 0.55);
}

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

.hero {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  color: white;
  background: var(--slate-900);
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 900ms ease;
  pointer-events: none;
}

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

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

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 28%, rgba(251, 191, 36, 0.24), transparent 28%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.82) 42%, rgba(15, 23, 42, 0.25) 78%, rgba(15, 23, 42, 0.68));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 560px;
  padding-top: 34px;
}

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

.hero-kicker,
.card-meta,
.eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--amber-300);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-kicker span,
.card-meta span,
.detail-tags span,
.tag-row span,
.hero-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}

.hero-kicker span {
  padding: 5px 10px;
  color: white;
  background: rgba(217, 119, 6, 0.32);
  backdrop-filter: blur(5px);
}

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

.hero-copy p {
  max-width: 680px;
  margin: 0;
  color: var(--stone-200);
  font-size: 18px;
}

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

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  padding: 5px 10px;
  color: var(--stone-100);
  font-size: 12px;
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid rgba(245, 158, 11, 0.22);
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  font-weight: 900;
  border-radius: 999px;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.primary-btn {
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--amber-300), var(--amber-600));
  box-shadow: 0 14px 34px rgba(217, 119, 6, 0.28);
}

.ghost-btn {
  color: white;
  border: 1px solid rgba(245, 245, 244, 0.34);
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(6px);
}

.ghost-btn.dark {
  color: var(--slate-900);
  border-color: rgba(15, 23, 42, 0.16);
  background: rgba(255, 255, 255, 0.7);
}

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

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 44%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: white;
  font-size: 36px;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(5px);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

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

.hero-panel {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: 18px;
  margin-top: 500px;
  margin-bottom: 34px;
}

.quick-search,
.side-recommend,
.content-card,
.filter-panel,
.collection-card a,
.movie-card,
.detail-layout,
.player-section {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(214, 211, 209, 0.7);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.quick-search,
.side-recommend {
  padding: 20px;
  backdrop-filter: blur(12px);
}

.quick-search strong {
  display: block;
  color: var(--slate-900);
  font-size: 22px;
}

.quick-search span {
  display: block;
  color: var(--stone-700);
  margin: 4px 0 14px;
}

.quick-search form {
  display: flex;
  gap: 10px;
}

.quick-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  color: var(--slate-900);
  border: 1px solid var(--stone-200);
  border-radius: 14px;
  background: white;
  outline: none;
}

.quick-search input,
.filter-panel input {
  padding: 0 14px;
}

.quick-search button {
  min-width: 90px;
  color: white;
  font-weight: 900;
  border: 0;
  border-radius: 14px;
  background: var(--amber-600);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip-row a {
  padding: 6px 10px;
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
}

.side-recommend h2 {
  margin: 0 0 12px;
  color: var(--slate-900);
  font-size: 18px;
}

.wide-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 9px;
  color: var(--slate-900);
  border-radius: 16px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.wide-card:hover {
  background: rgba(245, 158, 11, 0.11);
  transform: translateX(3px);
}

.wide-card img {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
}

.wide-card strong,
.wide-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wide-card small {
  color: var(--stone-500);
  font-size: 12px;
}

.page-section {
  padding: 54px 0;
}

.no-top {
  padding-top: 0;
}

.alt-section {
  padding: 42px 22px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(231, 229, 228, 0.55), rgba(255, 255, 255, 0.8));
}

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

.section-heading.left-only {
  justify-content: flex-start;
}

.section-heading p,
.page-hero > p {
  margin: 0 0 5px;
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.section-heading h2,
.page-hero h1 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.15;
}

.section-heading a {
  color: var(--amber-700);
  font-weight: 900;
}

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

.category-card,
.collection-card a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
  padding: 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.22), transparent 44%),
    linear-gradient(135deg, var(--slate-800), var(--slate-900));
  color: white;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.collection-card a {
  min-height: 220px;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 44%),
    white;
  color: var(--slate-900);
}

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

.category-card span,
.collection-card span {
  color: var(--amber-300);
  font-weight: 900;
}

.category-card strong,
.collection-card p {
  color: var(--stone-200);
  font-size: 14px;
  font-weight: 500;
}

.collection-card p {
  color: var(--stone-700);
}

.collection-card h2 {
  margin: 18px 0 8px;
  font-size: 24px;
}

.collection-card strong {
  color: var(--amber-700);
}

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

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

.rank-grid {
  counter-reset: movie-rank;
}

.movie-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--slate-800);
}

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

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.04), rgba(2, 6, 23, 0.72));
  opacity: 0.8;
}

.year-badge,
.rank-badge,
.poster-play {
  position: absolute;
  z-index: 2;
}

.year-badge {
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  color: white;
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.68);
}

.rank-badge {
  top: 10px;
  left: 10px;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  color: var(--slate-950);
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-300), var(--amber-600));
}

.poster-play {
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

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

.card-meta {
  gap: 6px;
  color: var(--stone-500);
  font-size: 11px;
  letter-spacing: 0;
}

.card-meta span {
  padding: 2px 7px;
  background: var(--stone-100);
}

.movie-card h2 {
  margin: 10px 0 7px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card h2 a:hover {
  color: var(--amber-700);
}

.movie-card p {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--stone-700);
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card.compact .movie-card-body {
  padding: 12px;
}

.movie-card.compact h2 {
  font-size: 15px;
}

.movie-card.compact p {
  min-height: 40px;
  font-size: 12px;
}

.tag-row span {
  color: var(--amber-700);
  background: rgba(245, 158, 11, 0.1);
}

.inner-page {
  padding-top: 38px;
}

.page-hero {
  margin-bottom: 34px;
  padding: 36px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(231, 229, 228, 0.7));
  box-shadow: var(--shadow-soft);
}

.small-hero {
  margin-bottom: 26px;
}

.copy-block {
  max-width: 780px;
  color: var(--stone-700);
  font-size: 16px;
}

.inline-actions {
  margin-top: 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(380px, 0.9fr);
  gap: 16px;
  align-items: end;
  margin-bottom: 24px;
  padding: 18px;
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--stone-700);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel select {
  padding: 0 12px;
}

.filter-selects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.empty-state {
  display: none;
  grid-column: 1 / -1;
  margin: 0;
  padding: 16px;
  color: var(--stone-700);
  text-align: center;
  border-radius: 16px;
  background: var(--stone-100);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--stone-500);
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 32px;
  padding: 24px;
  margin-bottom: 34px;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.detail-copy {
  align-self: center;
}

.detail-copy h1 {
  margin: 12px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
}

.detail-tags {
  margin-bottom: 18px;
}

.detail-tags span {
  color: var(--amber-700);
  background: rgba(245, 158, 11, 0.1);
}

.lead-text {
  max-width: 760px;
  color: var(--stone-700);
  font-size: 18px;
}

.player-section {
  padding: 24px;
  margin-bottom: 34px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow-deep);
}

.player-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: white;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.78));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  padding-left: 5px;
  font-size: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-300), var(--amber-600));
  box-shadow: 0 18px 45px rgba(217, 119, 6, 0.38);
}

.player-overlay strong {
  max-width: min(720px, 90%);
  font-size: clamp(22px, 4vw, 38px);
  text-align: center;
}

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

.article-section {
  padding-top: 0;
}

.content-card {
  padding: 28px;
}

.content-card h2 {
  margin: 0 0 12px;
  font-size: 25px;
}

.content-card p {
  margin: 0 0 22px;
  color: var(--stone-700);
  font-size: 16px;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.site-footer {
  margin-top: 48px;
  color: var(--stone-300);
  background: linear-gradient(90deg, var(--slate-950), var(--slate-800), var(--slate-950));
  border-top: 1px solid rgba(217, 119, 6, 0.22);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
  padding: 44px 0;
}

.footer-brand p {
  max-width: 520px;
  color: var(--stone-400, #a8a29e);
}

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

.site-footer ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

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

.footer-bottom {
  padding: 16px;
  color: var(--stone-500);
  text-align: center;
  border-top: 1px solid rgba(214, 211, 209, 0.12);
}

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

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

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

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

  .hero {
    min-height: 760px;
  }

  .hero-content {
    align-items: flex-start;
    min-height: 520px;
    padding-top: 70px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    margin-top: 470px;
  }

  .hero-dots {
    bottom: 260px;
  }

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

  .filter-panel,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 310px;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 24px, 1240px);
  }

  .brand-text strong {
    font-size: 18px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero {
    min-height: 820px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

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

  .hero-panel {
    margin-top: 500px;
  }

  .hero-arrow {
    top: 36%;
    width: 38px;
    height: 38px;
    font-size: 28px;
  }

  .hero-prev {
    left: 10px;
  }

  .hero-next {
    right: 10px;
  }

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

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

  .page-hero,
  .detail-layout,
  .player-section,
  .content-card,
  .filter-panel {
    padding: 18px;
    border-radius: 20px;
  }

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

  .movie-card p {
    font-size: 12px;
  }
}
