:root {
  color-scheme: light;
  --stone-950: #1c1917;
  --stone-900: #292524;
  --stone-850: #312c2a;
  --stone-800: #3d3735;
  --stone-700: #57534e;
  --stone-600: #78716c;
  --stone-500: #a8a29e;
  --stone-300: #d6d3d1;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --stone-50: #fafaf9;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --white: #ffffff;
  --shadow-soft: 0 18px 55px rgba(41, 37, 36, 0.16);
  --shadow-card: 0 10px 28px rgba(41, 37, 36, 0.13);
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(41, 37, 36, 0.96);
  color: var(--stone-100);
  box-shadow: 0 8px 30px rgba(28, 25, 23, 0.3);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  max-width: var(--container);
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 168px;
}

.logo-mark,
.footer-logo span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.28);
}

.logo-text {
  display: grid;
  line-height: 1.16;
}

.logo-text strong {
  font-size: 20px;
  letter-spacing: 0.04em;
}

.logo-text em {
  font-style: normal;
  font-size: 12px;
  color: var(--stone-300);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.nav-link {
  color: var(--stone-200);
  font-size: 15px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

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

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  background: rgba(87, 83, 78, 0.82);
  border: 1px solid rgba(214, 211, 209, 0.15);
  border-radius: 999px;
  overflow: hidden;
}

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

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: var(--stone-300);
}

.header-search button,
.mobile-search button {
  border: 0;
  cursor: pointer;
  color: var(--white);
  background: var(--amber-600);
  padding: 10px 15px;
  transition: background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover {
  background: var(--amber-700);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(87, 83, 78, 0.65);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 999px;
}

.mobile-panel {
  border-top: 1px solid rgba(214, 211, 209, 0.15);
  padding: 16px 20px 20px;
  background: var(--stone-900);
}

.mobile-search {
  margin-bottom: 12px;
}

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

.mobile-nav {
  display: grid;
  gap: 6px;
}

.mobile-link {
  padding: 10px 2px;
  color: var(--stone-200);
}

.page-shell {
  min-height: 100vh;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: var(--stone-950);
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(28, 25, 23, 0.86), rgba(28, 25, 23, 0.42) 48%, rgba(28, 25, 23, 0.12)),
    linear-gradient(0deg, rgba(28, 25, 23, 1) 0%, rgba(28, 25, 23, 0.1) 46%);
}

.hero-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 0 0 72px;
  color: var(--white);
}

.hero-content .container {
  max-width: var(--container);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--amber-100, #fef3c7);
  background: rgba(217, 119, 6, 0.88);
  box-shadow: 0 12px 32px rgba(217, 119, 6, 0.25);
}

.hero h1,
.hero h2 {
  margin: 18px 0 14px;
  max-width: 760px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 24px;
  font-size: clamp(17px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.88);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.hero-tags span,
.detail-tags span,
.tag-row span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

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

.btn-primary,
.btn-secondary,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  color: var(--white);
  background: var(--amber-600);
  box-shadow: 0 14px 30px rgba(217, 119, 6, 0.28);
}

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

.btn-primary:hover {
  background: var(--amber-700);
}

.btn-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-soft {
  color: var(--amber-700);
  background: #fff7ed;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.72);
  transform: translateY(-1px);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.main-content {
  padding: 52px 0 68px;
}

.section-block {
  margin-bottom: 58px;
}

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

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

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

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

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

.movie-card,
.wide-card,
.category-card,
.rank-card,
.info-panel {
  border-radius: var(--radius-md);
}

.movie-card {
  display: block;
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-md);
  background: var(--stone-200);
  box-shadow: var(--shadow-card);
}

.poster-wrap img,
.wide-cover img,
.detail-poster img,
.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}

.poster-mask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 34px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.06));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.poster-wrap b {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 8px;
  color: var(--white);
  background: var(--amber-600);
  font-size: 12px;
}

.movie-card h3 {
  margin: 10px 0 3px;
  color: var(--stone-900);
  font-size: 16px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.movie-card p {
  margin: 0;
  color: var(--stone-600);
  font-size: 13px;
}

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

.movie-card:hover h3,
.wide-card:hover h3,
.rank-card:hover h3 {
  color: var(--amber-700);
}

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

.wide-card {
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wide-card:hover,
.category-card:hover,
.rank-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.wide-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--stone-200);
}

.play-badge {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(217, 119, 6, 0.9);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.wide-info {
  padding: 18px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 700;
}

.wide-info h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

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

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

.tag-row span {
  color: var(--stone-700);
  background: var(--stone-100);
  font-size: 12px;
}

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

.category-card {
  display: block;
  padding: 26px;
  color: var(--white);
  background: linear-gradient(135deg, var(--stone-900), var(--stone-700));
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -80px;
  bottom: -95px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.2);
}

.category-card h3 {
  margin: 0 0 9px;
  font-size: 23px;
}

.category-card p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.78);
}

.category-card span {
  color: var(--amber-400);
  font-weight: 700;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 48px 78px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 13px;
  background: var(--white);
  box-shadow: 0 5px 18px rgba(41, 37, 36, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-number {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  background: var(--amber-600);
}

.rank-cover {
  overflow: hidden;
  height: 106px;
  border-radius: 12px;
  background: var(--stone-200);
}

.rank-info h3 {
  margin: 0 0 5px;
  font-size: 18px;
}

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

.rank-meta {
  color: var(--stone-600);
  white-space: nowrap;
}

.page-hero {
  color: var(--white);
  background: linear-gradient(135deg, var(--stone-900), var(--stone-700));
  padding: 66px 0;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.14;
}

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

.breadcrumb {
  margin-bottom: 18px;
  color: var(--stone-300);
  font-size: 14px;
}

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

.filter-panel {
  margin: 0 0 28px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.filter-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.filter-field label {
  display: block;
  margin: 0 0 7px;
  color: var(--stone-700);
  font-weight: 700;
  font-size: 14px;
}

.filter-field input,
.filter-field select {
  width: 100%;
  border: 1px solid var(--stone-300);
  outline: none;
  border-radius: 12px;
  padding: 11px 12px;
  background: var(--white);
}

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

.filter-reset {
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  color: var(--white);
  background: var(--stone-800);
  cursor: pointer;
}

.no-result {
  display: none;
  padding: 38px;
  text-align: center;
  border-radius: var(--radius-md);
  color: var(--stone-600);
  background: var(--white);
}

.detail-hero {
  background: var(--stone-950);
  color: var(--white);
  padding: 34px 0 46px;
}

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

.player-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  cursor: pointer;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.18));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-overlay span {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--amber-600);
  box-shadow: 0 20px 48px rgba(217, 119, 6, 0.35);
  font-size: 30px;
}

.player-overlay strong {
  font-size: 18px;
}

.detail-side {
  display: grid;
  gap: 18px;
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  background: var(--stone-200);
}

.detail-title {
  margin: 22px 0 10px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.16;
}

.detail-subtitle {
  max-width: 850px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

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

.detail-tags span {
  background: rgba(255, 255, 255, 0.13);
}

.detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 30px;
  align-items: start;
}

.article-card,
.side-card {
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.article-card {
  padding: 30px;
}

.article-card h2,
.side-card h2 {
  margin: 0 0 18px;
  color: var(--stone-900);
  font-size: 26px;
}

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

.side-card {
  padding: 22px;
}

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

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--stone-200);
  padding-bottom: 11px;
}

.info-list dt {
  color: var(--stone-500);
}

.info-list dd {
  margin: 0;
  color: var(--stone-900);
  font-weight: 700;
  text-align: right;
}

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

.search-status {
  margin: 0 0 20px;
  color: var(--stone-600);
}

.site-footer {
  background: var(--stone-900);
  color: var(--stone-300);
  padding: 46px 0 26px;
}

.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 21px;
  margin-bottom: 12px;
}

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

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

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

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

.footer-bottom {
  max-width: var(--container);
  margin: 30px auto 0;
  padding: 22px 20px 0;
  border-top: 1px solid rgba(214, 211, 209, 0.12);
  color: var(--stone-500);
  font-size: 14px;
}

@media (max-width: 1120px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

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

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

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

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

@media (max-width: 760px) {
  .nav-wrap {
    height: 64px;
    padding: 0 14px;
  }

  .logo-text em {
    display: none;
  }

  .hero {
    height: 560px;
  }

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

  .hero-control {
    display: none;
  }

  .main-content {
    padding: 34px 0 48px;
  }

  .poster-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }

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

  .rank-card {
    grid-template-columns: 38px 64px 1fr;
  }

  .rank-meta {
    display: none;
  }

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

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

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