:root {
  color-scheme: dark;
  --bg: #12100e;
  --bg-soft: #1f1a15;
  --paper: #fffaf0;
  --text: #fff7ed;
  --muted: #c8bdae;
  --line: rgba(255, 237, 213, 0.16);
  --amber: #f59e0b;
  --amber-deep: #b45309;
  --stone: #292524;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

* {
  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: radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.18), transparent 30%), #15110d;
  color: var(--text);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(18, 16, 14, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #1c1917;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.36);
}

.brand-text {
  font-size: 20px;
  color: #ffedd5;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #d6d3d1;
  transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #1c1917;
  background: #fbbf24;
}

.menu-toggle {
  display: none;
  color: #ffedd5;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 8px 12px;
}

.mobile-nav {
  display: none;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px 14px;
  flex-wrap: wrap;
}

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

.hero-carousel {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  background: #0c0a09;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) brightness(0.72);
  transform: scale(1.04);
}

.hero-shade,
.detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 10, 9, 0.94) 0%, rgba(12, 10, 9, 0.74) 42%, rgba(12, 10, 9, 0.34) 100%), linear-gradient(0deg, #15110d 0%, transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  min-height: 78vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 48px;
  padding: 80px 0 74px;
}

.eyebrow,
.page-hero span,
.section-head span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  color: #fcd34d;
  background: rgba(146, 64, 14, 0.32);
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-copy h1 {
  margin: 20px 0 10px;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1.02;
  max-width: 850px;
  letter-spacing: -0.055em;
}

.hero-copy h2 {
  margin: 0 0 16px;
  color: #fde68a;
  font-size: clamp(26px, 3vw, 44px);
  letter-spacing: -0.035em;
}

.hero-copy p,
.page-hero p,
.section-head p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.85;
  font-size: 17px;
}

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

.primary-btn,
.ghost-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 850;
  transition: 0.22s ease;
}

.primary-btn {
  color: #1c1917;
  background: linear-gradient(135deg, #fbbf24, #fb923c);
  box-shadow: 0 16px 36px rgba(245, 158, 11, 0.32);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 46px rgba(245, 158, 11, 0.4);
}

.ghost-btn,
.section-more {
  color: #ffedd5;
  border: 1px solid rgba(255, 237, 213, 0.22);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.ghost-btn:hover,
.section-more:hover {
  border-color: rgba(251, 191, 36, 0.55);
  color: #fcd34d;
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-poster img {
  aspect-ratio: 3 / 4.15;
  width: 100%;
  object-fit: cover;
}

.hero-poster span,
.play-dot {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.9);
  color: #1c1917;
  font-weight: 900;
}

.hero-poster span {
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
}

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

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
}

.hero-dot.active {
  background: #fbbf24;
}

.hero-rail {
  width: min(1240px, calc(100% - 32px));
  margin: -42px auto 32px;
  position: relative;
  z-index: 10;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(31, 26, 21, 0.86);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.rail-title {
  margin-bottom: 12px;
  color: #fcd34d;
  font-weight: 900;
}

.rail-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.rail-list.vertical {
  display: flex;
  flex-direction: column;
}

.compact-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: 0.22s ease;
}

.compact-card:hover {
  background: rgba(245, 158, 11, 0.14);
  transform: translateY(-2px);
}

.compact-card img {
  width: 58px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
}

.compact-card span {
  min-width: 0;
}

.compact-card strong,
.compact-card em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-card strong {
  color: #fff7ed;
  font-size: 14px;
}

.compact-card em {
  margin-top: 6px;
  color: #a8a29e;
  font-size: 12px;
  font-style: normal;
}

.compact-rank {
  position: absolute;
}

.filter-panel {
  display: grid;
  gap: 16px;
  margin: 28px 0 44px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  min-height: 56px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-box span {
  color: #fbbf24;
  font-size: 22px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #fff7ed;
  background: transparent;
}

.search-box input::placeholder {
  color: #a8a29e;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-chips a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.18);
  font-size: 14px;
}

.content-section {
  margin: 58px 0;
}

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

.section-head h2 {
  margin: 12px 0 8px;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.04em;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  color: #292524;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4.15;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-card .poster-link img {
  aspect-ratio: 21 / 11;
}

.movie-card:hover .poster-link img {
  transform: scale(1.06);
}

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

.play-dot {
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #1c1917;
  background: #fbbf24;
  font-weight: 900;
}

.card-body {
  padding: 16px;
}

.card-meta,
.tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #78716c;
  font-size: 13px;
}

.card-meta a {
  color: #b45309;
  font-weight: 800;
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: #b45309;
}

.movie-card p {
  min-height: 48px;
  color: #57534e;
  line-height: 1.65;
  font-size: 14px;
}

.tag-row {
  justify-content: start;
  flex-wrap: wrap;
  margin-top: 12px;
}

.tag-row span,
.detail-tags span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-weight: 700;
  font-size: 12px;
}

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

.category-tile,
.category-overview-card,
.article-card,
.player-card,
.ranking-aside {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
}

.category-tile {
  padding: 22px;
}

.tile-title {
  display: block;
  margin-bottom: 10px;
  color: #fcd34d;
  font-size: 22px;
  font-weight: 900;
}

.category-tile p,
.category-overview-card p {
  color: #c8bdae;
  line-height: 1.75;
}

.category-tile div,
.overview-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.category-tile div a,
.overview-links a,
.footer-links a {
  color: #fde68a;
  border-bottom: 1px solid rgba(253, 230, 138, 0.28);
}

.page-shell {
  padding-bottom: 60px;
}

.page-hero {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  margin: 34px auto 28px;
  padding: clamp(38px, 7vw, 86px);
  border: 1px solid var(--line);
  border-radius: 34px;
  overflow: hidden;
  background: radial-gradient(circle at 90% 20%, rgba(245, 158, 11, 0.32), transparent 30%), linear-gradient(135deg, rgba(68, 64, 60, 0.88), rgba(28, 25, 23, 0.96));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
}

.overview-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.overview-covers img {
  height: 150px;
  object-fit: cover;
  border-radius: 14px;
}

.category-overview-card h2 {
  margin: 4px 0 10px;
  color: #fcd34d;
  font-size: 24px;
}

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

.ranking-aside {
  position: sticky;
  top: 96px;
  padding: 18px;
}

.ranking-aside h2 {
  margin: 0 0 16px;
  color: #fcd34d;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #0c0a09;
}

.detail-inner {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 72px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4.15;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: #d6d3d1;
  font-size: 14px;
}

.breadcrumb a {
  color: #fcd34d;
}

.detail-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.detail-line {
  max-width: 820px;
  color: #ddd6ce;
  line-height: 1.8;
  font-size: 18px;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffedd5;
}

.detail-container {
  margin-top: -72px;
  position: relative;
  z-index: 4;
}

.player-card {
  padding: 14px;
  background: rgba(12, 10, 9, 0.92);
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 8px;
  border: 0;
  color: #fff7ed;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.18), rgba(0, 0, 0, 0.55)), rgba(0, 0, 0, 0.42);
  cursor: pointer;
}

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

.player-cover span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #1c1917;
  background: #fbbf24;
  font-size: 28px;
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.35);
}

.player-cover strong {
  font-size: clamp(22px, 3vw, 36px);
}

.player-cover em {
  color: #fde68a;
  font-style: normal;
}

.article-card {
  margin-top: 24px;
  padding: clamp(24px, 4vw, 42px);
  background: rgba(255, 250, 240, 0.96);
  color: #292524;
}

.article-card h2 {
  margin: 0 0 12px;
  color: #92400e;
  font-size: 28px;
}

.article-card h2:not(:first-child) {
  margin-top: 28px;
}

.article-card p {
  color: #44403c;
  line-height: 1.9;
  font-size: 16px;
}

.info-table {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.info-table div {
  padding: 16px;
  border-radius: 18px;
  background: #fff7ed;
}

.info-table span,
.info-table strong {
  display: block;
}

.info-table span {
  color: #78716c;
  font-size: 13px;
}

.info-table strong {
  margin-top: 6px;
  color: #292524;
}

.site-footer {
  margin-top: 72px;
  padding: 48px 22px 28px;
  background: #0c0a09;
  border-top: 1px solid var(--line);
}

.footer-grid {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  color: #fcd34d;
  font-size: 24px;
  font-weight: 900;
}

.site-footer p {
  color: #a8a29e;
  line-height: 1.75;
}

.site-footer h3 {
  margin: 0 0 10px;
  color: #fff7ed;
}

.copyright {
  width: min(1240px, 100%);
  margin: 28px auto 0;
  padding-top: 22px;
  color: #78716c;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.is-filtered-out {
  display: none !important;
}

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

  .hero-content,
  .detail-inner,
  .ranking-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    max-width: 280px;
  }

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

  .ranking-aside {
    position: static;
  }
}

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

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

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

  .hero-content {
    padding-top: 56px;
    gap: 28px;
  }

  .hero-poster {
    display: none;
  }

  .hero-copy h1,
  .detail-copy h1 {
    letter-spacing: -0.035em;
  }

  .movie-grid,
  .listing-grid,
  .category-grid,
  .category-overview-grid,
  .footer-grid,
  .info-table {
    grid-template-columns: 1fr;
  }

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

  .rail-list {
    grid-template-columns: 1fr;
  }

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

  .detail-inner {
    padding-top: 42px;
  }

  .detail-poster {
    max-width: 240px;
  }
}
