:root {
  color-scheme: light;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --stone-950: #0c0a09;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(41, 37, 36, 0.16);
  --soft-shadow: 0 10px 24px rgba(41, 37, 36, 0.10);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  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;
  background: linear-gradient(180deg, var(--stone-50), rgba(255, 251, 235, 0.45));
  color: var(--stone-800);
}

body.player-body {
  background: var(--stone-50);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
  background: linear-gradient(180deg, rgba(120, 53, 15, 0.86), rgba(120, 53, 15, 0));
}

.site-nav.nav-scrolled,
body.inner-page .site-nav,
body.player-body .site-nav {
  background: rgba(120, 53, 15, 0.96);
  box-shadow: 0 10px 30px rgba(12, 10, 9, 0.22);
  backdrop-filter: blur(12px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--amber-50);
  letter-spacing: 0.02em;
}

.brand {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  color: var(--amber-900);
  background: linear-gradient(135deg, var(--amber-200), var(--amber-500));
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.28);
  font-weight: 900;
}

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

.desktop-nav a,
.mobile-menu a {
  color: var(--amber-100);
  font-size: 0.95rem;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--amber-100);
  border-radius: 999px;
}

.mobile-menu {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid rgba(252, 211, 77, 0.18);
  border-radius: 18px;
  background: rgba(120, 53, 15, 0.98);
  box-shadow: var(--soft-shadow);
}

.mobile-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
}

.mobile-menu a:hover,
.mobile-menu a.is-active {
  background: rgba(146, 64, 14, 0.62);
}

.hero {
  position: relative;
  min-height: 72vh;
  height: 85vh;
  overflow: hidden;
  background: var(--stone-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s 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.04);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(28, 25, 23, 0.98), rgba(28, 25, 23, 0.46), rgba(28, 25, 23, 0.18));
}

.hero-copy {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: clamp(56px, 10vw, 120px);
  z-index: 2;
  max-width: 790px;
  color: var(--white);
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(217, 119, 6, 0.92);
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.24);
  font-size: 0.86rem;
  font-weight: 700;
}

.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.25rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.hero p {
  margin: 0 0 28px;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.75;
}

.hero-actions,
.section-heading,
.page-heading-actions,
.player-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

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

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

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

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

.btn-ghost {
  color: var(--amber-50);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(8px);
}

.btn-light {
  color: var(--amber-900);
  background: var(--amber-100);
}

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

.hero-control:hover {
  background: rgba(0, 0, 0, 0.56);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

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

.hero-dot.is-active {
  width: 30px;
  background: var(--amber-400, #fbbf24);
}

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

.main-wrap {
  padding: 56px 0 72px;
}

.page-wrap {
  padding: 118px 0 72px;
}

.section {
  margin: 0 0 68px;
}

.section-heading {
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-heading h2,
.page-title h1,
.detail-copy h1 {
  margin: 0;
  color: var(--stone-800);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.section-heading p,
.page-title p {
  margin: 8px 0 0;
  color: var(--stone-600);
  line-height: 1.7;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin: 0 0 24px;
  padding: 14px;
  border: 1px solid var(--stone-200);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
}

.movie-search {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--stone-200);
  border-radius: 12px;
  color: var(--stone-800);
  background: var(--white);
  outline: none;
}

.movie-search:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.filter-label {
  min-height: 46px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  color: var(--amber-900);
  background: var(--amber-100);
  font-weight: 750;
}

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

.movie-card {
  display: block;
  min-width: 0;
  border-radius: var(--radius-md);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px) scale(1.02);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, var(--stone-200), var(--amber-100));
  box-shadow: var(--soft-shadow);
}

.movie-card:hover .poster-wrap {
  box-shadow: var(--shadow);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.80), rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0));
}

.type-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  max-width: calc(100% - 20px);
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(217, 119, 6, 0.92);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poster-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px;
  color: var(--white);
}

.poster-info strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
  font-size: 0.96rem;
  line-height: 1.35;
}

.poster-info em {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.74);
  font-style: normal;
  font-size: 0.78rem;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 244px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: linear-gradient(135deg, var(--stone-900), var(--amber-900));
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-covers {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  opacity: 0.48;
}

.category-covers img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 10, 9, 0.88), rgba(12, 10, 9, 0.2));
}

.category-copy {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 22px;
}

.category-copy strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 900;
}

.category-copy em {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-style: normal;
  line-height: 1.65;
}

.rank-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 28px;
}

.rank-panel,
.copy-card,
.side-card {
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
}

.rank-panel {
  padding: 22px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--stone-100);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
  transform: translateX(3px);
  border-color: var(--amber-300);
}

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

.rank-row strong {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--stone-800);
}

.rank-row em {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
  color: var(--stone-500);
  font-style: normal;
  font-size: 0.86rem;
}

.page-title {
  margin-bottom: 28px;
  padding: 28px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.45), transparent 34%), linear-gradient(135deg, var(--stone-900), var(--amber-900));
  box-shadow: var(--soft-shadow);
}

.page-title h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.7rem);
}

.page-title p {
  max-width: 850px;
  color: rgba(255, 255, 255, 0.78);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--stone-600);
  font-size: 0.92rem;
}

.breadcrumbs a {
  color: var(--amber-700);
  font-weight: 750;
}

.player-shell {
  padding-top: 76px;
  background: #000000;
}

.player-box {
  position: relative;
  width: min(1180px, 100%);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  overflow: hidden;
  background: #000000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.25));
  cursor: pointer;
  z-index: 3;
}

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

.player-overlay-content {
  text-align: center;
}

.player-play {
  width: 86px;
  height: 86px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber-600);
  box-shadow: 0 16px 38px rgba(217, 119, 6, 0.44);
  cursor: pointer;
}

.player-play svg {
  width: 38px;
  height: 38px;
  margin-left: 5px;
  fill: currentColor;
}

.player-overlay h1 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 3.5rem);
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.36);
}

.player-tools {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  pointer-events: none;
}

.player-tool {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(8px);
  cursor: pointer;
  pointer-events: auto;
}

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

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

.copy-card,
.side-card {
  padding: 28px;
}

.detail-copy h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.14;
  margin-bottom: 20px;
}

.meta-pills,
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 20px;
}

.meta-pills span,
.tags span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--amber-900);
  background: var(--amber-100);
  font-weight: 750;
  font-size: 0.86rem;
}

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

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--stone-200);
}

.info-item {
  padding: 14px;
  border-radius: 14px;
  background: var(--stone-50);
}

.info-item em {
  display: block;
  color: var(--stone-500);
  font-size: 0.78rem;
  font-style: normal;
}

.info-item strong {
  display: block;
  margin-top: 4px;
  color: var(--stone-800);
}

.article-block {
  margin-top: 26px;
}

.article-block h2,
.side-card h2 {
  margin: 0 0 12px;
  color: var(--stone-800);
  font-size: 1.35rem;
  font-weight: 900;
}

.article-block p {
  margin: 0 0 14px;
  color: var(--stone-700);
  line-height: 1.9;
}

.side-card {
  position: sticky;
  top: 100px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 13px;
  align-items: center;
}

.related-item img {
  width: 118px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
}

.related-item strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--stone-800);
  line-height: 1.4;
}

.related-item em {
  display: block;
  margin-top: 5px;
  color: var(--stone-500);
  font-style: normal;
  font-size: 0.82rem;
}

.empty-state {
  display: none;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--amber-50);
  color: var(--amber-900);
  font-weight: 750;
}

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

.site-footer {
  color: var(--stone-300);
  background: linear-gradient(180deg, var(--stone-900), var(--stone-950));
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 30px;
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 1fr;
  gap: 34px;
}

.footer-brand {
  color: var(--amber-100);
  font-size: 1.25rem;
}

.site-footer p {
  margin: 14px 0 0;
  color: var(--stone-400);
  line-height: 1.75;
}

.site-footer h2 {
  margin: 0 0 13px;
  color: var(--amber-100);
  font-size: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
}

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

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  color: var(--stone-500);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
}

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

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

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

  .side-card {
    position: static;
  }
}

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

  .nav-toggle {
    display: block;
  }

  .nav-inner {
    min-height: 66px;
  }

  .hero {
    height: 76vh;
    min-height: 620px;
  }

  .hero-copy {
    left: 20px;
    right: 20px;
    bottom: 76px;
  }

  .hero-control {
    display: none;
  }

  .main-wrap {
    padding-top: 38px;
  }

  .page-wrap {
    padding-top: 96px;
  }

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

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

  .search-panel {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
  }

  .player-shell {
    padding-top: 66px;
  }

  .detail-wrap {
    padding-top: 24px;
  }

  .copy-card,
  .side-card,
  .page-title {
    padding: 20px;
  }

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

  .related-item {
    grid-template-columns: 98px 1fr;
  }

  .related-item img {
    width: 98px;
    height: 66px;
  }
}
