:root {
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --stone-950: #0c0a09;
  --stone-900: #1c1917;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-600: #57534e;
  --stone-500: #78716c;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --white: #ffffff;
  --shadow-soft: 0 20px 45px rgba(28, 25, 23, 0.13);
  --shadow-card: 0 16px 35px rgba(28, 25, 23, 0.1);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

body {
  min-height: 100vh;
  color: var(--stone-900);
  background: linear-gradient(180deg, #fffbeb 0%, #fafaf9 46%, #ffffff 100%);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(214, 211, 209, 0.85);
  box-shadow: 0 10px 25px rgba(28, 25, 23, 0.05);
  backdrop-filter: blur(18px);
}

.header-shell,
.quick-categories-inner,
.content-section,
.footer-shell,
.breadcrumb {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
}

.header-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--stone-900);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber), #fb923c);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.35);
}

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

.nav-link,
.quick-categories a,
.footer-links a {
  color: var(--stone-600);
  font-size: 15px;
  font-weight: 700;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--stone-950);
  background: #fef3c7;
}

.menu-toggle {
  display: none;
  padding: 9px 14px;
  color: var(--stone-950);
  background: #fef3c7;
  border-radius: 999px;
  font-weight: 800;
}

.quick-categories {
  border-top: 1px solid rgba(231, 229, 228, 0.8);
}

.quick-categories-inner {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-top: 10px;
  padding-bottom: 10px;
}

.quick-categories a {
  white-space: nowrap;
}

.quick-categories a:hover,
.footer-links a:hover {
  color: var(--amber-dark);
}

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

.hero-track,
.hero-slide,
.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-shade,
.page-hero-shade {
  background: linear-gradient(
    0deg,
    rgba(12, 10, 9, 0.96) 0%,
    rgba(12, 10, 9, 0.64) 48%,
    rgba(12, 10, 9, 0.12) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  height: 100%;
  margin: 0 auto;
  padding: 90px 22px 92px;
  display: flex;
  align-items: flex-end;
}

.hero-copy {
  max-width: 720px;
  color: var(--white);
}

.pill-row,
.tag-row,
.movie-meta-line,
.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pill,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.pill.primary {
  color: var(--white);
  background: var(--amber);
}

.pill.dark {
  color: var(--white);
  background: rgba(41, 37, 36, 0.82);
}

.hero h1,
.hero h2 {
  margin: 14px 0 12px;
  font-size: clamp(34px, 7vw, 70px);
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: -0.055em;
  text-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.hero h2 + h2 {
  font-size: clamp(24px, 4.5vw, 44px);
  letter-spacing: -0.035em;
  color: #fde68a;
}

.hero p {
  max-width: 640px;
  margin: 0;
  color: #e7e5e4;
  font-size: 18px;
  line-height: 1.8;
}

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

.btn,
.ghost-link,
.filter-bar button,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 900;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.btn:hover,
.ghost-link:hover,
.filter-bar button:hover,
.hero-search button:hover {
  transform: translateY(-1px);
}

.btn.primary,
.hero-search button,
.filter-bar button {
  color: var(--white);
  background: var(--amber);
  box-shadow: 0 15px 30px rgba(245, 158, 11, 0.3);
}

.btn.primary:hover,
.hero-search button:hover,
.filter-bar button:hover {
  background: var(--amber-dark);
}

.btn.light {
  color: var(--stone-950);
  background: rgba(255, 255, 255, 0.9);
}

.btn.outline,
.ghost-link {
  color: var(--stone-800);
  background: var(--white);
  border: 1px solid rgba(214, 211, 209, 0.95);
}

.btn.full {
  width: 100%;
  margin-top: 12px;
}

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

.hero-dot {
  width: 32px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition:
    width 0.2s ease,
    background 0.2s ease;
}

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

.hero-search {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: -30px;
  width: min(780px, calc(100% - 44px));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  transform: translateX(-50%);
}

.hero-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  color: var(--stone-900);
  background: #fafaf9;
  border: 1px solid #e7e5e4;
  border-radius: 14px;
  outline: none;
}

.hero-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.content-section {
  padding-top: 74px;
  padding-bottom: 20px;
}

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

.section-kicker {
  margin: 0 0 8px;
  color: var(--amber-dark);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.section-heading h2,
.page-hero h1,
.detail-info h1,
.detail-copy h2,
.side-panel h2,
.category-card-large h2 {
  margin: 0;
  color: var(--stone-900);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-heading span,
.category-card-large p,
.side-panel p {
  display: block;
  margin-top: 9px;
  color: var(--stone-600);
  font-size: 16px;
}

.section-more {
  color: var(--amber-dark);
  font-weight: 950;
}

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

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

.movie-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(231, 229, 228, 0.95);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.movie-card:hover {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 24px 48px rgba(28, 25, 23, 0.16);
  transform: translateY(-4px);
}

.poster-frame,
.category-cover,
.rank-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #292524, #78350f);
}

.poster-frame {
  aspect-ratio: 3 / 4.1;
}

.poster-frame img,
.category-cover img,
.rank-thumb img,
.detail-poster,
.player-cover img,
.category-tile img,
.page-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 9px;
  color: var(--white);
  background: rgba(12, 10, 9, 0.72);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

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

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

.movie-meta-line span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #d6d3d1;
}

.movie-card h3,
.ranking-item h3 {
  margin: 8px 0 8px;
  color: var(--stone-950);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 950;
}

.movie-card h3 a:hover,
.ranking-item h3 a:hover,
.category-card-large h2 a:hover {
  color: var(--amber-dark);
}

.movie-card p,
.ranking-item p,
.detail-info p,
.detail-copy p {
  margin: 0;
  color: var(--stone-600);
  font-size: 14px;
  line-height: 1.7;
}

.movie-card.compact .movie-card-body {
  padding: 12px;
}

.movie-card.compact h3 {
  font-size: 15px;
}

.movie-card.compact p {
  display: none;
}

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

.tag-row span {
  color: #92400e;
  background: #fef3c7;
  font-size: 12px;
}

.tag-row.large span {
  min-height: 32px;
  padding: 7px 12px;
}

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

.category-tile {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  background: var(--stone-900);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}

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

.category-tile img {
  position: absolute;
  inset: 0;
  opacity: 0.72;
  transition: transform 0.3s ease;
}

.category-tile:hover img {
  transform: scale(1.06);
}

.category-tile span,
.category-tile strong {
  position: relative;
  z-index: 1;
}

.category-tile span {
  font-size: 22px;
  font-weight: 950;
}

.category-tile strong {
  margin-top: 8px;
  color: #f5f5f4;
  font-size: 13px;
  line-height: 1.6;
}

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

.side-panel {
  position: sticky;
  top: 108px;
  align-self: start;
  padding: 28px;
  background: linear-gradient(160deg, #292524, #78350f);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.side-panel h2,
.side-panel p {
  color: var(--white);
}

.side-panel p {
  color: #e7e5e4;
  line-height: 1.8;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 58px 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(231, 229, 228, 0.95);
  border-radius: 22px;
  box-shadow: 0 12px 24px rgba(28, 25, 23, 0.08);
}

.rank-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber), #fb923c);
  border-radius: 17px;
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.25);
}

.rank-thumb {
  width: 82px;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
}

.rank-content p {
  max-width: 820px;
}

.page-hero {
  position: relative;
  min-height: 330px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin: 0 auto;
  padding: 64px 22px;
  color: var(--white);
  background: linear-gradient(135deg, var(--stone-900), #78350f);
}

.page-hero.small-hero {
  min-height: 260px;
}

.page-hero > div:not(.page-hero-shade) {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.page-hero h1,
.page-hero p {
  color: var(--white);
}

.page-hero p:not(.section-kicker) {
  max-width: 760px;
  margin: 14px 0 0;
  color: #e7e5e4;
  font-size: 18px;
  line-height: 1.8;
}

.category-hero > img {
  position: absolute;
  inset: 0;
  opacity: 0.56;
}

.category-list-large {
  display: grid;
  gap: 24px;
}

.category-card-large {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  padding: 22px;
  background: var(--white);
  border: 1px solid #e7e5e4;
  border-radius: 28px;
  box-shadow: var(--shadow-card);
}

.category-cover {
  height: 220px;
  border-radius: 22px;
}

.category-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.category-preview span {
  padding: 7px 10px;
  color: #92400e;
  background: #fef3c7;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px 150px 160px auto;
  gap: 12px;
  margin-bottom: 28px;
  padding: 14px;
  background: var(--white);
  border: 1px solid #e7e5e4;
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}

.compact-filter {
  grid-template-columns: minmax(220px, 1fr) auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 28px;
  padding-bottom: 22px;
  color: var(--stone-600);
  font-size: 14px;
  font-weight: 800;
}

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

.detail-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 26px;
}

.player-card {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  background: var(--stone-950);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.player-card video {
  width: 100%;
  height: 100%;
  min-height: 460px;
  display: block;
  background: var(--stone-950);
  object-fit: contain;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: var(--white);
  cursor: pointer;
  background: rgba(12, 10, 9, 0.35);
}

.player-cover img {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  filter: blur(2px);
  transform: scale(1.03);
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(245, 158, 11, 0.1),
    rgba(12, 10, 9, 0.76)
  );
}

.player-cover span,
.player-cover strong {
  position: relative;
  z-index: 1;
}

.play-circle {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  color: var(--stone-950);
  background: var(--white);
  border-radius: 999px;
  font-size: 30px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.player-cover strong {
  padding: 9px 16px;
  background: var(--amber);
  border-radius: 999px;
  font-size: 16px;
}

.player-card.is-playing .player-cover {
  display: none;
}

.detail-info {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-self: start;
  padding: 22px;
  background: var(--white);
  border: 1px solid #e7e5e4;
  border-radius: 28px;
  box-shadow: var(--shadow-card);
}

.detail-poster {
  aspect-ratio: 3 / 4.2;
  border-radius: 18px;
  background: linear-gradient(135deg, #292524, #78350f);
}

.detail-info h1 {
  margin-bottom: 12px;
  font-size: clamp(27px, 3.3vw, 40px);
}

.detail-meta {
  margin-bottom: 16px;
}

.detail-meta span {
  color: var(--stone-700);
  background: #f5f5f4;
}

.detail-copy {
  padding-top: 30px;
}

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

.detail-copy h2 {
  margin-top: 22px;
  margin-bottom: 12px;
  font-size: 28px;
}

.detail-copy p {
  font-size: 17px;
  line-height: 1.95;
}

.site-footer {
  margin-top: 70px;
  color: #d6d3d1;
  background: var(--stone-950);
}

.footer-shell {
  padding-top: 34px;
  padding-bottom: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-logo {
  color: var(--white);
}

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

.footer-shell p {
  margin: 0;
  font-size: 14px;
}

[data-movie-card].is-hidden {
  display: none;
}

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

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

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

  .side-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-shell {
    min-height: 64px;
  }

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

  .site-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 66px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: var(--white);
    border: 1px solid #e7e5e4;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
  }

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

  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding-top: 86px;
    padding-bottom: 134px;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-search {
    grid-template-columns: 1fr;
    bottom: 18px;
  }

  .content-section {
    padding-top: 46px;
  }

  .section-heading {
    display: block;
  }

  .section-more {
    display: inline-flex;
    margin-top: 12px;
  }

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

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

  .ranking-item {
    grid-template-columns: 44px 66px minmax(0, 1fr);
  }

  .ranking-item .ghost-link {
    grid-column: 2 / 4;
  }

  .rank-number {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .rank-thumb {
    width: 66px;
  }

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

  .category-cover {
    height: 220px;
  }

  .detail-info {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .player-card,
  .player-card video {
    min-height: 280px;
  }

  .play-circle {
    width: 68px;
    height: 68px;
    font-size: 24px;
  }

  .footer-shell {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .compact-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-poster {
    width: 150px;
  }
}
