:root {
  color-scheme: light;
  --stone-950: #0c0a09;
  --stone-900: #1c1917;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-600: #57534e;
  --stone-500: #78716c;
  --stone-300: #d6d3d1;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --stone-50: #fafaf9;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-100: #fef3c7;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(28, 25, 23, 0.12);
  --shadow-hover: 0 24px 58px rgba(28, 25, 23, 0.18);
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--stone-50);
  color: var(--stone-900);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(28, 25, 23, 0.96);
  color: var(--stone-100);
  border-bottom: 1px solid rgba(120, 113, 108, 0.32);
  backdrop-filter: blur(16px);
}

.navbar {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--stone-950);
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.32);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 20px;
  line-height: 1;
}

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

.nav-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  flex: 1;
}

.nav-links,
.nav-cats {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link,
.nav-cats a {
  color: var(--stone-300);
  font-size: 15px;
  transition: color 0.2s ease;
}

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

.nav-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(214, 211, 209, 0.18);
  border-radius: 999px;
  background: rgba(12, 10, 9, 0.5);
}

.nav-search input {
  width: 180px;
  padding: 10px 14px;
  color: var(--stone-100);
  background: transparent;
  border: 0;
  outline: none;
}

.nav-search button {
  height: 40px;
  padding: 0 16px;
  color: var(--stone-950);
  border: 0;
  background: var(--amber-500);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(250, 250, 249, 0.08);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--stone-100);
}

.hero {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  background: var(--stone-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1.3s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 10, 9, 0.92), rgba(12, 10, 9, 0.54), rgba(12, 10, 9, 0.18)), linear-gradient(0deg, var(--stone-950), rgba(12, 10, 9, 0.18) 46%, rgba(12, 10, 9, 0.16));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 88px;
  color: var(--white);
}

.hero-badge,
.section-kicker,
.info-pill,
.rank-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  background: var(--amber-500);
  color: var(--stone-950);
  font-weight: 800;
}

.hero-badge {
  margin-bottom: 18px;
  padding: 7px 14px;
}

.hero h1,
.hero h2 {
  max-width: 820px;
  margin: 0 0 16px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 760px;
  margin: 0 0 22px;
  color: var(--stone-200);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.72;
}

.hero-meta,
.detail-meta,
.movie-meta,
.breadcrumb,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta span,
.detail-meta span,
.movie-meta span,
.card-tags span {
  border-radius: 999px;
  background: rgba(41, 37, 36, 0.82);
  color: var(--stone-200);
  padding: 6px 12px;
  font-size: 13px;
}

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

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

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

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

.btn-secondary {
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: var(--amber-400);
  background: rgba(12, 10, 9, 0.42);
}

.btn-light {
  color: var(--stone-950);
  background: var(--white);
}

.hero-tools {
  position: absolute;
  z-index: 5;
  right: max(16px, calc((100vw - 1180px) / 2));
  bottom: 38px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

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

.hero-search {
  position: relative;
  z-index: 6;
  width: min(1180px, calc(100% - 32px));
  margin: -42px auto 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.hero-search input {
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--stone-200);
  border-radius: 16px;
  outline: none;
}

.hero-search button {
  min-width: 128px;
  border: 0;
  border-radius: 16px;
  background: var(--stone-900);
  color: var(--white);
  cursor: pointer;
}

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

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

.section-kicker {
  margin-bottom: 10px;
  padding: 5px 10px;
  font-size: 12px;
}

.section-title,
.page-title {
  margin: 0;
  color: var(--stone-900);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.section-desc,
.page-desc {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--stone-600);
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: block;
  background: var(--stone-900);
}

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

.movie-card:hover .movie-poster img,
.wide-card:hover img {
  transform: scale(1.08);
}

.movie-year,
.play-chip {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: var(--white);
  background: rgba(12, 10, 9, 0.78);
  backdrop-filter: blur(10px);
  font-size: 12px;
}

.movie-year {
  top: 12px;
  right: 12px;
  padding: 5px 9px;
}

.play-chip {
  left: 12px;
  bottom: 12px;
  padding: 7px 11px;
  color: var(--stone-950);
  background: var(--amber-500);
  font-weight: 800;
}

.movie-info {
  padding: 18px;
}

.movie-info h2,
.movie-info h3 {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-info h2 a:hover,
.movie-info h3 a:hover,
.rank-title:hover {
  color: var(--amber-600);
}

.movie-info p {
  display: -webkit-box;
  min-height: 47px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--stone-600);
  font-size: 14px;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  justify-content: space-between;
}

.movie-meta span {
  background: var(--stone-100);
  color: var(--stone-600);
}

.feature-block {
  background: linear-gradient(135deg, #fff7ed, #f5f5f4);
  border-top: 1px solid var(--stone-200);
  border-bottom: 1px solid var(--stone-200);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.wide-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  display: block;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  background: var(--stone-900);
}

.wide-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.wide-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 10, 9, 0.92), rgba(12, 10, 9, 0.18));
}

.wide-card-body {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  color: var(--white);
}

.wide-card-body strong {
  display: block;
  margin-bottom: 10px;
  font-size: 30px;
  line-height: 1.15;
}

.wide-card-body small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--stone-200);
  font-size: 15px;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.side-list {
  display: grid;
  gap: 16px;
}

.side-item {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 16px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.side-item img {
  width: 132px;
  height: 100%;
  min-height: 116px;
  object-fit: cover;
}

.side-item div {
  padding: 16px 16px 16px 0;
}

.side-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}

.side-item p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--stone-600);
  font-size: 14px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--stone-900), var(--stone-700));
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.category-card::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.28);
}

.category-card strong {
  position: relative;
  z-index: 2;
  margin-bottom: 10px;
  font-size: 24px;
}

.category-card span,
.category-card p {
  position: relative;
  z-index: 2;
  color: var(--stone-200);
  line-height: 1.7;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 64px 116px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.rank-badge {
  justify-content: center;
  width: 42px;
  height: 42px;
}

.rank-item img {
  width: 116px;
  height: 86px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-title {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 800;
}

.rank-item p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--stone-600);
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-hero {
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.36), transparent 36%), linear-gradient(135deg, var(--stone-950), var(--stone-800));
  color: var(--white);
}

.page-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.page-hero .page-title {
  color: var(--white);
}

.page-hero .page-desc,
.breadcrumb {
  color: var(--stone-200);
}

.breadcrumb {
  margin-bottom: 24px;
  font-size: 14px;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.filter-bar label {
  display: grid;
  gap: 8px;
  color: var(--stone-600);
  font-size: 13px;
  font-weight: 700;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--stone-200);
  border-radius: 12px;
  background: var(--stone-50);
  outline: none;
}

.detail-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 76px;
}

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

.player-card,
.detail-side,
.detail-article {
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.player-card {
  overflow: hidden;
}

.video-box {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(12, 10, 9, 0.62), rgba(12, 10, 9, 0.14));
  cursor: pointer;
  z-index: 4;
}

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

.play-button {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--stone-950);
  background: var(--amber-500);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
  cursor: pointer;
}

.play-button::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 24px solid var(--stone-950);
}

.player-title {
  padding: 22px 24px 26px;
}

.player-title h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.player-title p {
  margin: 0;
  color: var(--stone-600);
  line-height: 1.8;
}

.detail-side {
  overflow: hidden;
}

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

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

.detail-side-body h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  color: var(--stone-600);
}

.info-list dt {
  color: var(--stone-900);
  font-weight: 800;
}

.detail-article {
  margin-top: 28px;
  padding: 28px;
}

.detail-article h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.detail-article p {
  margin: 0 0 24px;
  color: var(--stone-700);
  line-height: 1.92;
}

.detail-article .lead {
  color: #92400e;
  font-size: 18px;
  font-weight: 700;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.site-footer {
  background: var(--stone-950);
  color: var(--stone-300);
  border-top: 1px solid rgba(120, 113, 108, 0.24);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
}

.footer-grid p {
  max-width: 520px;
  color: var(--stone-400);
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 17px;
}

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

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(120, 113, 108, 0.18);
  color: var(--stone-500);
  font-size: 14px;
}

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

.empty-state {
  display: none;
  padding: 40px;
  border-radius: var(--radius-xl);
  background: var(--white);
  text-align: center;
  color: var(--stone-600);
  box-shadow: var(--shadow-soft);
}

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

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

  .player-layout {
    grid-template-columns: 1fr;
  }

  .detail-side {
    display: grid;
    grid-template-columns: 220px 1fr;
  }

  .detail-side img {
    height: 100%;
  }

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

@media (max-width: 860px) {
  .navbar {
    min-height: 66px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 66px;
    display: none;
    padding: 18px 16px 22px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(28, 25, 23, 0.98);
    border-bottom: 1px solid rgba(120, 113, 108, 0.28);
  }

  .nav-panel.open {
    display: flex;
  }

  .nav-links,
  .nav-cats {
    flex-wrap: wrap;
  }

  .nav-search input {
    width: 100%;
  }

  .hero-content {
    padding-bottom: 110px;
  }

  .hero-tools {
    left: 16px;
    right: auto;
  }

  .hero-search,
  .filter-bar,
  .feature-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-item {
    grid-template-columns: 44px 88px 1fr;
  }

  .rank-item .btn-secondary {
    grid-column: 2 / -1;
    width: fit-content;
  }
}

@media (max-width: 560px) {
  .brand-text small,
  .nav-cats {
    display: none;
  }

  .hero {
    min-height: 78vh;
  }

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

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

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

  .section-header {
    display: block;
  }

  .side-item {
    grid-template-columns: 102px 1fr;
  }

  .side-item img {
    width: 102px;
  }

  .detail-side {
    display: block;
  }

  .detail-article {
    padding: 22px;
  }
}
