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

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(28, 25, 23, 0.86);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-800));
  color: var(--white);
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.34);
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(217, 119, 6, 0.28);
  color: var(--white);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

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

.mobile-nav {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.mobile-nav .nav-link {
  display: block;
  margin-top: 8px;
}

.mobile-category-links,
.quick-links,
.footer-links,
.hero-tags,
.tag-row,
.info-pills,
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-category-links a,
.quick-links a,
.footer-links a,
.tag-row span,
.info-pills span,
.info-pills a,
.filter-chips button {
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.12);
  color: var(--amber-800);
  padding: 6px 10px;
  font-size: 13px;
}

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

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

.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 18% 45%, rgba(245, 158, 11, 0.30), transparent 28%),
    linear-gradient(90deg, rgba(28, 25, 23, 0.90), rgba(28, 25, 23, 0.46) 52%, rgba(28, 25, 23, 0.34)),
    linear-gradient(0deg, rgba(28, 25, 23, 0.94), transparent 42%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100% - 1280px) / 2));
  top: 50%;
  width: min(680px, calc(100% - 48px));
  transform: translateY(-48%);
  color: var(--white);
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.92);
  color: var(--white);
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
}

.hero p,
.page-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.7;
}

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

.hero-tags span {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
}

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

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

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

.primary-btn:hover,
.more-link:hover {
  transform: translateY(-2px);
  background: var(--amber-700);
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.10);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.ghost-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  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.68);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.hero-dots button {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: var(--white);
}

.hero-search {
  position: absolute;
  right: max(24px, calc((100% - 1280px) / 2));
  bottom: 84px;
  z-index: 4;
  display: flex;
  width: min(460px, calc(100% - 48px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
}

.hero-search input,
.filter-panel input {
  width: 100%;
  min-height: 50px;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  padding: 0 18px;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.70);
}

.hero-search button {
  border: 0;
  background: var(--amber-600);
  color: var(--white);
  padding: 0 22px;
  font-weight: 700;
}

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

.warm-section,
.muted-section,
.feature-section {
  width: 100%;
  padding-left: max(16px, calc((100% - 1280px) / 2));
  padding-right: max(16px, calc((100% - 1280px) / 2));
}

.warm-section {
  background: linear-gradient(180deg, var(--amber-50), var(--white));
}

.muted-section {
  background: linear-gradient(180deg, var(--stone-100), var(--white));
}

.feature-section {
  background: linear-gradient(180deg, var(--white), var(--amber-50));
}

.section-head,
.center-head {
  margin-bottom: 28px;
}

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

.center-head {
  text-align: center;
}

.section h2,
.detail-card h2,
.side-card h2 {
  margin: 0;
  color: var(--stone-900);
  font-size: clamp(25px, 3vw, 36px);
  letter-spacing: -0.04em;
}

.section-head p,
.center-head p {
  margin: 10px 0 0;
  color: var(--stone-600);
  line-height: 1.7;
}

.more-link {
  background: var(--amber-600);
  color: var(--white);
  white-space: nowrap;
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 290px);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x mandatory;
}

.scroll-row::-webkit-scrollbar {
  height: 8px;
}

.scroll-row::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--stone-300);
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(231, 229, 228, 0.80);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
  scroll-snap-align: start;
}

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

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--stone-900);
}

.card-cover img,
.category-card img,
.compact-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .card-cover img,
.category-card:hover img,
.compact-card:hover .compact-cover img {
  transform: scale(1.08);
}

.cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(28, 25, 23, 0.62), transparent 55%);
}

.card-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.92);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  min-width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-800));
  color: var(--white);
  font-weight: 800;
}

.card-body {
  padding: 16px;
}

.card-meta,
.compact-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--stone-600);
  font-size: 13px;
}

.card-meta a,
.compact-meta a {
  color: var(--amber-700);
  font-weight: 700;
}

.movie-card h3 {
  margin: 10px 0 8px;
  color: var(--stone-900);
  font-size: 18px;
  line-height: 1.35;
}

.movie-card p,
.compact-card p,
.detail-card p {
  color: var(--stone-600);
  line-height: 1.75;
}

.movie-card p {
  display: -webkit-box;
  min-height: 50px;
  overflow: hidden;
  margin: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row {
  margin-top: 12px;
}

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

.feature-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.movie-card.feature .card-cover {
  aspect-ratio: 16 / 9;
}

.movie-card.feature h3 {
  font-size: 24px;
}

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

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

.category-card {
  position: relative;
  display: block;
  min-height: 230px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--stone-900);
  box-shadow: var(--shadow-card);
}

.category-card > img {
  position: absolute;
  inset: 0;
}

.category-card-bg {
  position: absolute;
  right: -32px;
  top: -32px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background-size: cover;
  background-position: center;
  filter: blur(2px);
  opacity: 0.48;
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(28, 25, 23, 0.90), rgba(28, 25, 23, 0.32));
}

.category-content {
  position: absolute;
  inset: auto 22px 22px 22px;
  color: var(--white);
}

.category-content strong,
.category-content em {
  display: block;
}

.category-content strong {
  margin-bottom: 8px;
  font-size: 26px;
  font-style: normal;
  font-weight: 800;
}

.category-content em {
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  line-height: 1.65;
}

.compact-card {
  display: grid;
  grid-template-columns: 138px 1fr;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.compact-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  background: var(--stone-900);
}

.compact-title {
  display: block;
  margin-bottom: 6px;
  color: var(--stone-900);
  font-weight: 800;
  line-height: 1.35;
}

.compact-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 8px;
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 88px max(24px, calc((100% - 1280px) / 2));
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.26), transparent 28%),
    linear-gradient(135deg, var(--stone-950), var(--amber-900));
  color: var(--white);
}

.compact-hero {
  min-height: 340px;
  display: flex;
  align-items: center;
}

.category-hero {
  min-height: 380px;
  display: flex;
  align-items: center;
}

.page-hero .quick-links {
  margin-top: 24px;
}

.page-hero .quick-links a {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
}

.filter-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.filter-panel input {
  min-height: 54px;
  border: 1px solid var(--stone-200);
  border-radius: 999px;
  background: var(--stone-50);
  color: var(--stone-800);
}

.filter-chips button {
  border: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.filter-chips button:hover,
.filter-chips button.is-active {
  background: var(--amber-700);
  color: var(--white);
}

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

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

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 0.86fr);
  gap: 28px;
}

.detail-main,
.detail-side,
.side-list {
  display: grid;
  gap: 22px;
}

.watch-panel,
.detail-card,
.side-card {
  overflow: hidden;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.watch-title,
.detail-card,
.side-card {
  padding: 24px;
}

.watch-title > span {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--amber-100);
  color: var(--amber-800);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
}

.watch-title h1 {
  margin: 0 0 12px;
  color: var(--stone-950);
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.watch-title p {
  margin: 0;
  color: var(--stone-600);
  font-size: 17px;
  line-height: 1.75;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background:
    radial-gradient(circle at center, rgba(217, 119, 6, 0.24), transparent 28%),
    rgba(0, 0, 0, 0.30);
  color: var(--white);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-ring {
  display: inline-flex;
  width: 82px;
  height: 82px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.96);
  color: var(--white);
  font-size: 31px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
}

.player-bar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-player:hover .player-bar,
.movie-player.is-paused .player-bar {
  opacity: 1;
  transform: translateY(0);
}

.player-bar button {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  padding: 8px 14px;
  backdrop-filter: blur(10px);
}

.detail-card h2,
.side-card h2 {
  margin-bottom: 16px;
  font-size: 24px;
}

.info-pills {
  margin-bottom: 16px;
}

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

.sticky-side {
  position: sticky;
  top: 96px;
}

.site-footer {
  background: var(--stone-950);
  color: rgba(255, 255, 255, 0.78);
  padding: 46px 0;
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 32px;
}

.footer-logo {
  color: var(--white);
  font-size: 22px;
}

.site-footer p {
  max-width: 520px;
  margin: 12px 0 0;
  line-height: 1.7;
}

.footer-links {
  align-content: start;
  justify-content: end;
}

.footer-links a {
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.80);
}

.movie-card.is-hidden,
.compact-card.is-hidden {
  display: none;
}

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

  .feature-grid,
  .detail-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .sticky-side {
    position: static;
  }
}

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

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

  .header-inner {
    height: 64px;
  }

  .hero {
    height: 620px;
  }

  .hero-content {
    top: 44%;
    transform: translateY(-42%);
  }

  .hero-search {
    left: 24px;
    right: 24px;
    bottom: 78px;
    width: auto;
  }

  .hero-arrow {
    display: none;
  }

  .section,
  .warm-section,
  .muted-section,
  .feature-section {
    padding-top: 52px;
    padding-bottom: 52px;
  }

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

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

  .compact-card {
    grid-template-columns: 112px 1fr;
  }

  .page-hero {
    padding-top: 58px;
    padding-bottom: 58px;
  }
}
