:root {
  color-scheme: dark;
  --stone-950: #0c0a09;
  --stone-900: #1c1917;
  --stone-850: #231f1c;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-600: #57534e;
  --stone-500: #78716c;
  --stone-400: #a8a29e;
  --stone-300: #d6d3d1;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --white: #ffffff;
  --black: #000000;
  --shadow-xl: 0 26px 80px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.28);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--stone-950);
}

body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--stone-100, #f5f5f4);
  background: radial-gradient(circle at top left, rgba(217, 119, 6, 0.12), transparent 34rem), var(--stone-900);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.container.narrow {
  max-width: 860px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(28, 25, 23, 0.96);
  border-bottom: 1px solid rgba(120, 113, 108, 0.28);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(41, 37, 36, 0.96);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.nav-shell {
  width: min(var(--container), calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber-600), var(--stone-700));
  color: var(--white);
  font-weight: 900;
  font-size: 20px;
  box-shadow: 0 12px 32px rgba(217, 119, 6, 0.25);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-3deg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  color: #fff7ed;
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--stone-400);
  font-size: 12px;
}

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

.nav-link,
.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--stone-300);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.dropdown-trigger:hover {
  background: var(--amber-600);
  color: var(--white);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 210px;
  padding: 8px;
  border: 1px solid rgba(120, 113, 108, 0.35);
  border-radius: 14px;
  background: rgba(41, 37, 36, 0.98);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.is-open .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--stone-300);
}

.dropdown-menu a:hover {
  background: var(--stone-700);
  color: var(--white);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: var(--stone-800);
  color: var(--stone-200, #e7e5e4);
  transition: background 0.2s ease, color 0.2s ease;
}

.icon-button:hover {
  background: var(--stone-700);
  color: var(--white);
}

.mobile-only {
  display: none;
}

.header-search {
  display: none;
  border-top: 1px solid rgba(120, 113, 108, 0.25);
}

.header-search.is-open {
  display: block;
}

.search-form {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  gap: 10px;
}

.search-form input,
.inline-filter input {
  min-width: 0;
  flex: 1;
  padding: 12px 14px;
  border: 1px solid rgba(168, 162, 158, 0.25);
  border-radius: 12px;
  outline: none;
  background: var(--stone-800);
  color: var(--white);
}

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

.search-form button,
.inline-filter button,
.primary-button {
  border: 0;
  border-radius: 12px;
  background: var(--amber-600);
  color: var(--white);
  font-weight: 700;
  padding: 12px 20px;
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.2);
  transition: background 0.2s ease, transform 0.2s ease;
}

.search-form button:hover,
.inline-filter button:hover,
.primary-button:hover {
  background: var(--amber-700);
  transform: translateY(-1px);
}

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(120, 113, 108, 0.25);
  background: rgba(28, 25, 23, 0.98);
}

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

.mobile-menu nav {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-menu a {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--stone-800);
  color: var(--stone-300);
}

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

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.04);
  transform: scale(1.01);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--stone-900) 0%, rgba(28, 25, 23, 0.68) 48%, rgba(28, 25, 23, 0.25) 100%);
}

.hero-content {
  position: absolute;
  left: max(16px, calc((100% - var(--container)) / 2));
  right: 16px;
  bottom: 72px;
  max-width: 760px;
}

.hero-pill,
.category-pill,
.year-pill,
.rank-badge,
.watch-pill,
.category-text {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-pill {
  margin-bottom: 16px;
  padding: 8px 14px;
  background: var(--amber-600);
  color: var(--white);
}

.hero-content h1 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-shadow: 0 18px 54px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  max-width: 700px;
  margin: 0 0 18px;
  color: var(--stone-300);
  font-size: clamp(16px, 2vw, 21px);
}

.hero-tags,
.detail-tags,
.tag-link-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-tags span,
.tag-link-cloud a {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(68, 64, 60, 0.78);
  color: var(--stone-200, #e7e5e4);
  font-size: 13px;
}

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

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(231, 229, 228, 0.28);
  border-radius: 12px;
  color: var(--white);
  background: rgba(28, 25, 23, 0.38);
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.ghost-button:hover {
  background: rgba(68, 64, 60, 0.75);
  transform: translateY(-1px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--white);
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.58);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

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

.page-main {
  padding-top: 68px;
}

.page-hero {
  padding: 84px 0 56px;
  background: radial-gradient(circle at top right, rgba(217, 119, 6, 0.22), transparent 33rem), linear-gradient(180deg, var(--stone-800), var(--stone-900));
  border-bottom: 1px solid rgba(120, 113, 108, 0.26);
}

.small-hero h1 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.small-hero p {
  margin: 0;
  color: var(--stone-300);
  font-size: 18px;
}

.inline-filter {
  margin-top: 26px;
  display: flex;
  gap: 10px;
}

.content-section {
  padding: 64px 0;
  background: var(--stone-900);
}

.rich-section {
  background: var(--stone-800);
}

.alternate-section {
  background: linear-gradient(180deg, var(--stone-800), var(--stone-900));
}

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

.section-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--amber-500);
  font-size: 14px;
  font-weight: 700;
}

.section-head h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(25px, 3vw, 36px);
  letter-spacing: -0.03em;
}

.section-link {
  color: var(--amber-500);
  font-weight: 700;
  white-space: nowrap;
}

.section-link:hover {
  color: var(--amber-400);
}

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

.compact-grid {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 18px;
}

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

.archive-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

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

.movie-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--stone-800);
  box-shadow: 0 0 0 1px rgba(120, 113, 108, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card a {
  display: block;
  min-height: 100%;
}

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--stone-700);
}

.poster-wrap.widescreen {
  aspect-ratio: 16 / 9;
}

.poster-wrap.side-poster {
  width: 180px;
  aspect-ratio: 16 / 11;
  flex: none;
}

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

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.64), transparent 55%);
  opacity: 0.78;
}

.category-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  background: var(--amber-600);
  color: var(--white);
}

.year-pill {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.58);
  color: var(--white);
}

.watch-pill {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .watch-pill {
  opacity: 1;
  transform: translateY(0);
}

.rank-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  background: rgba(0, 0, 0, 0.72);
  color: var(--amber-400);
}

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

.movie-card-body h3 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 16px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card:hover h3 {
  color: var(--amber-400);
}

.movie-card-body p {
  margin: 0 0 12px;
  color: var(--stone-400);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  color: var(--stone-500);
  font-size: 12px;
}

.movie-card-large .movie-card-body h3 {
  font-size: 20px;
}

.movie-card-horizontal {
  border-radius: var(--radius-md);
}

.movie-card-horizontal a {
  display: flex;
  align-items: stretch;
}

.movie-card-horizontal .movie-card-body {
  flex: 1;
  padding: 18px;
}

.category-text {
  margin-bottom: 8px;
  padding: 4px 9px;
  background: var(--stone-700);
  color: var(--amber-400);
}

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

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

.category-entry,
.category-panel {
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(68, 64, 60, 0.9), rgba(41, 37, 36, 0.95));
  box-shadow: 0 0 0 1px rgba(120, 113, 108, 0.16);
}

.category-entry {
  padding: 20px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-entry:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-entry strong {
  display: block;
  color: var(--white);
  font-size: 20px;
  margin-bottom: 8px;
}

.category-entry span {
  color: var(--stone-400);
  font-size: 14px;
}

.category-panels {
  display: grid;
  gap: 28px;
}

.category-panel {
  padding: 24px;
}

.category-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.category-panel h2 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 28px;
}

.category-panel p {
  margin: 0;
  color: var(--stone-400);
}

.tag-link-cloud {
  margin-bottom: 26px;
}

.tag-link-cloud a:hover {
  background: var(--amber-600);
  color: var(--white);
}

.archive-cloud {
  margin-top: -18px;
}

.empty-state {
  display: none;
  margin-top: 28px;
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--stone-800);
  color: var(--stone-300);
  text-align: center;
}

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

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

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

.detail-main {
  padding-top: 68px;
}

.detail-hero {
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  padding: 76px 0 58px;
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid rgba(120, 113, 108, 0.24);
}

.detail-hero-inner {
  width: min(var(--container), calc(100% - 32px));
}

.detail-copy {
  max-width: 860px;
}

.detail-copy h1 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.detail-copy p {
  margin: 0 0 18px;
  color: var(--stone-300);
  font-size: 19px;
}

.detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.detail-meta-row span {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.36);
  color: var(--stone-200, #e7e5e4);
  font-size: 13px;
}

.watch-section {
  padding-top: 42px;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.player-card,
.detail-aside,
.story-card {
  border-radius: var(--radius-lg);
  background: var(--stone-800);
  box-shadow: 0 0 0 1px rgba(120, 113, 108, 0.16), var(--shadow-lg);
}

.player-card {
  padding: 12px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: var(--black);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--black);
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.25));
  color: var(--white);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 999px;
  background: var(--amber-600);
  box-shadow: 0 22px 55px rgba(217, 119, 6, 0.35);
  font-size: 30px;
}

.play-overlay:hover span {
  background: var(--amber-700);
  transform: scale(1.04);
}

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

.detail-aside {
  padding: 16px;
}

.detail-aside img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 16px;
}

.detail-aside dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.detail-aside div {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.detail-aside dt {
  color: var(--stone-500);
  font-size: 13px;
}

.detail-aside dd {
  margin: 0;
  color: var(--stone-200, #e7e5e4);
  font-size: 14px;
}

.detail-text-section {
  padding-top: 20px;
}

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

.story-card {
  padding: 28px;
}

.story-card h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 26px;
}

.story-card p {
  margin: 0;
  color: var(--stone-300);
  font-size: 16px;
}

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

.footer-shell {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 28px;
}

.footer-shell strong {
  color: #fff7ed;
  font-size: 22px;
}

.footer-shell p {
  max-width: 520px;
  margin: 10px 0 0;
  color: var(--stone-400);
}

.footer-shell nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
}

.footer-shell a {
  color: var(--stone-400);
  font-size: 14px;
}

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

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

  .mobile-only {
    display: inline-grid;
  }

  .feature-grid,
  .mini-grid,
  .category-grid,
  .prose-grid,
  .rank-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-aside {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 16px;
  }

  .detail-aside img {
    margin: 0;
  }
}

@media (max-width: 640px) {
  .brand-copy strong {
    font-size: 17px;
  }

  .brand-copy small {
    display: none;
  }

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

  .hero-content {
    bottom: 70px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-actions,
  .inline-filter,
  .search-form {
    flex-direction: column;
  }

  .search-form button,
  .inline-filter button,
  .primary-button,
  .ghost-button {
    width: 100%;
  }

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

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

  .movie-grid,
  .compact-grid,
  .archive-grid,
  .feature-grid,
  .mini-grid,
  .category-grid,
  .rank-list,
  .prose-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal a {
    display: block;
  }

  .poster-wrap.side-poster {
    width: 100%;
  }

  .detail-aside {
    display: block;
  }

  .detail-aside img {
    margin-bottom: 16px;
  }

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

  .footer-shell nav {
    justify-content: flex-start;
  }
}
