:root {
  color-scheme: dark;
  --bg: #090703;
  --panel: rgba(24, 18, 10, 0.86);
  --panel-solid: #171108;
  --panel-soft: rgba(44, 32, 14, 0.62);
  --line: rgba(245, 158, 11, 0.18);
  --line-strong: rgba(245, 158, 11, 0.34);
  --text: #f8ecd4;
  --muted: #bcae96;
  --subtle: #86765f;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --amber-dark: #92400e;
  --danger: #ef4444;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --font-sans: Inter, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  --font-serif: Georgia, "Noto Serif SC", "Songti SC", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(245, 158, 11, 0.12), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(146, 64, 14, 0.18), transparent 30rem),
    linear-gradient(180deg, #0e0a04 0%, var(--bg) 50%, #050402 100%);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 7, 3, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.32);
}

.header-inner {
  height: 74px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1a1004;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-light), var(--amber-dark));
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.28);
}

.brand-text {
  color: var(--amber-light);
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  white-space: nowrap;
}

.desktop-nav a,
.mobile-nav a,
.site-footer a {
  color: #ddc9a8;
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.site-footer a:hover {
  color: var(--amber-light);
}

.header-search,
.mobile-search,
.big-search,
.inline-search {
  display: flex;
  align-items: center;
  background: rgba(24, 18, 10, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.header-search input,
.mobile-search input,
.big-search input,
.inline-search input,
.search-tools select {
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.header-search input {
  width: 210px;
  padding: 10px 14px;
}

.header-search button,
.mobile-search button,
.big-search button {
  border: 0;
  padding: 10px 16px;
  color: #211404;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  cursor: pointer;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 15px;
  color: var(--amber-light);
  background: rgba(245, 158, 11, 0.08);
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(9, 7, 3, 0.98);
}

.mobile-panel.open {
  display: block;
}

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

.mobile-search {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 20px;
}

.mobile-search input {
  flex: 1;
  padding: 12px 14px;
}

.hero-carousel {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-slide {
  display: none;
  position: relative;
  min-height: 640px;
}

.hero-slide.active {
  display: block;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.hero-bg::after,
.page-hero::after,
.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 30%, rgba(245, 158, 11, 0.16), transparent 26rem),
    linear-gradient(180deg, transparent 58%, rgba(9, 7, 3, 0.98));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 360px;
  gap: 56px;
  align-items: center;
  padding: 70px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 16px;
  color: var(--amber-light);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--amber);
  border-radius: 999px;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  max-width: 850px;
  font-family: var(--font-serif);
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: #fff6df;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.56);
}

.hero-copy p,
.page-hero p,
.detail-copy .one-line {
  max-width: 740px;
  margin: 22px 0 0;
  color: #ead7b6;
  font-size: 18px;
}

.hero-tags,
.detail-meta,
.tag-row,
.movie-meta,
.filter-chips,
.quick-links,
.cloud-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags,
.detail-meta,
.tag-row {
  margin-top: 22px;
}

.hero-tags span,
.detail-meta span,
.tag-row span,
.filter-chips button,
.cloud-links a,
.quick-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #e8d3ae;
  background: rgba(22, 15, 7, 0.68);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.btn.primary {
  color: #1f1304;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  box-shadow: 0 14px 36px rgba(245, 158, 11, 0.28);
}

.btn.ghost {
  color: var(--amber-light);
  border: 1px solid var(--line-strong);
  background: rgba(245, 158, 11, 0.08);
}

.hero-poster,
.detail-poster,
.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(135deg, #2c1e0c, #080604);
  border: 1px solid rgba(245, 158, 11, 0.24);
  box-shadow: var(--shadow);
}

.hero-poster {
  aspect-ratio: 2 / 3;
}

.hero-poster img,
.detail-poster img,
.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.2s ease;
}

.poster-link:hover img,
.hero-poster:hover img,
.detail-poster:hover img {
  transform: scale(1.04);
}

.image-missing {
  opacity: 0;
}

.poster-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: rgba(255, 246, 223, 0.78);
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(245, 158, 11, 0.22), transparent 12rem),
    linear-gradient(135deg, #211505, #0a0703);
}

.poster-link img,
.hero-poster img,
.detail-poster img {
  position: relative;
  z-index: 1;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 7, 3, 0.66);
  backdrop-filter: blur(12px);
}

.hero-controls button,
.hero-dots button {
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--amber-light);
  background: rgba(245, 158, 11, 0.09);
  font-size: 26px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.3);
}

.hero-dots button.active {
  width: 28px;
  background: var(--amber-light);
}

.quick-filter-panel,
.section-block,
.detail-layout,
.rank-board,
.listing-tools,
.category-overview-list {
  margin-top: 56px;
}

.quick-filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(24, 18, 10, 0.62);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.22);
}

.big-search input {
  flex: 1;
  min-height: 54px;
  padding: 0 20px;
}

.big-search button {
  min-height: 54px;
  padding: 0 24px;
}

.quick-links a:hover,
.cloud-links a:hover,
.filter-chips button:hover,
.filter-chips button.active {
  color: #1f1304;
  background: var(--amber-light);
  border-color: var(--amber-light);
}

.section-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 26px;
}

.title-mark {
  width: 5px;
  height: 38px;
  margin-top: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--amber-light), var(--amber-dark));
}

.section-title h2 {
  margin: 0;
  color: var(--amber-light);
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
}

.section-title p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(24, 18, 10, 0.76);
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.22);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.movie-card .poster-link {
  border-radius: 0;
  border: 0;
  box-shadow: none;
  aspect-ratio: 2 / 3;
}

.score-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 3;
  min-width: 46px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #241404;
  font-weight: 900;
  text-align: center;
  background: var(--amber-light);
}

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  margin: 0;
  color: #fff2d3;
  font-size: 18px;
  line-height: 1.35;
}

.movie-info h3 a:hover {
  color: var(--amber-light);
}

.movie-info p {
  display: -webkit-box;
  min-height: 52px;
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  margin-top: 12px;
  color: var(--subtle);
  font-size: 13px;
}

.movie-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 10px;
  color: var(--amber-dark);
}

.movie-card .tag-row {
  margin-top: 12px;
  gap: 6px;
}

.movie-card .tag-row span {
  min-height: 24px;
  padding: 3px 8px;
  font-size: 12px;
}

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

.category-tile {
  min-height: 178px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.category-tile span {
  color: var(--amber-light);
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 900;
}

.category-tile strong {
  color: #fff0cf;
}

.category-tile em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.more-row {
  margin-top: 26px;
  text-align: center;
}

.more-row a {
  display: inline-flex;
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--amber-light);
}

.cloud-links a span {
  margin-left: 8px;
  color: var(--amber-light);
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}

.compact-hero {
  background:
    radial-gradient(circle at 72% 20%, rgba(245, 158, 11, 0.18), transparent 28rem),
    linear-gradient(135deg, #120c04, #080603);
}

.page-hero .container,
.detail-hero .container {
  position: relative;
  z-index: 2;
  padding: 64px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

.listing-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(24, 18, 10, 0.72);
}

.inline-search {
  flex: 1 1 320px;
}

.inline-search input {
  width: 100%;
  min-height: 46px;
  padding: 0 18px;
}

.filter-chips button {
  cursor: pointer;
}

.result-count {
  margin: 0 0 0 auto;
  color: var(--muted);
}

.result-count span {
  color: var(--amber-light);
  font-weight: 900;
}

.search-tools select {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(24, 18, 10, 0.86);
}

.rank-board {
  display: grid;
  gap: 12px;
}

.rank-row {
  display: grid;
  grid-template-columns: 54px 64px minmax(0, 1fr) minmax(200px, auto) 90px;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(24, 18, 10, 0.74);
}

.rank-row:hover {
  border-color: var(--line-strong);
  background: rgba(42, 29, 12, 0.82);
}

.rank-num {
  color: var(--amber-light);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.rank-row img {
  width: 64px;
  height: 84px;
  object-fit: cover;
  border-radius: 12px;
  background: #201406;
}

.rank-title {
  color: #fff2d3;
  font-size: 18px;
  font-weight: 800;
}

.rank-meta {
  color: var(--muted);
}

.rank-row strong {
  color: var(--amber-light);
  text-align: right;
}

.category-overview-list {
  display: grid;
  gap: 26px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(24, 18, 10, 0.68);
}

.category-cover {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 24px;
  border-radius: 22px;
  background-size: cover;
  background-position: center;
}

.category-cover span {
  color: var(--amber-light);
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 900;
}

.category-cover strong,
.category-cover p {
  margin: 0;
}

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

.movie-card.compact .movie-info p,
.movie-card.compact .tag-row {
  display: none;
}

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

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

.detail-hero {
  min-height: 560px;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.detail-poster {
  aspect-ratio: 2 / 3;
}

.detail-copy h1 {
  font-size: clamp(40px, 6vw, 72px);
}

.detail-meta a {
  color: var(--amber-light);
}

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

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

.player-card,
.content-card,
.aside-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(24, 18, 10, 0.74);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
}

.player-card {
  padding: 18px;
}

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

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #fff8e8;
  background: rgba(0, 0, 0, 0.48);
  cursor: pointer;
}

.play-overlay span {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #1f1304;
  background: var(--amber-light);
  box-shadow: 0 0 0 14px rgba(245, 158, 11, 0.16);
}

.player-card.playing .play-overlay {
  display: none;
}

.player-note {
  margin: 12px 4px 0;
  color: var(--muted);
  font-size: 14px;
}

.content-card,
.aside-card {
  padding: 24px;
}

.content-card h2,
.aside-card h2 {
  margin: 0 0 12px;
  color: var(--amber-light);
  font-family: var(--font-serif);
  font-size: 26px;
}

.content-card p {
  margin: 0;
  color: #ead9bd;
  font-size: 17px;
}

.large-tags span {
  min-height: 36px;
}

.aside-card dl {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 10px 12px;
  margin: 0;
}

.aside-card dt {
  color: var(--subtle);
}

.aside-card dd {
  margin: 0;
  color: #f2ddba;
}

.side-link {
  display: block;
  padding: 12px 0;
  color: #ead6b6;
  border-bottom: 1px solid var(--line);
}

.side-link:hover {
  color: var(--amber-light);
}

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

.site-footer {
  margin-top: 80px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  background: rgba(9, 7, 3, 0.88);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
}

.footer-brand {
  margin-bottom: 16px;
}

.site-footer p {
  max-width: 520px;
  color: var(--muted);
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--amber-light);
}

.site-footer a:not(.brand) {
  display: block;
  margin: 8px 0;
}

[hidden],
.movie-card.is-hidden {
  display: none !important;
}

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

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

  .header-search {
    margin-left: auto;
  }

  .hero-content,
  .detail-hero-grid,
  .detail-layout,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .detail-poster {
    max-width: 320px;
  }

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

@media (max-width: 780px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    height: 66px;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
  }

  .brand-text {
    font-size: 19px;
  }

  .header-search {
    display: none;
  }

  .hero-carousel,
  .hero-slide,
  .hero-content {
    min-height: 620px;
  }

  .hero-content {
    padding: 44px 0 96px;
    gap: 28px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 40px;
  }

  .quick-filter-panel {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .big-search {
    border-radius: 22px;
    flex-direction: column;
    align-items: stretch;
  }

  .big-search button {
    border-radius: 0 0 22px 22px;
  }

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

  .movie-info {
    padding: 12px;
  }

  .movie-info h3 {
    font-size: 16px;
  }

  .rank-row {
    grid-template-columns: 40px 54px minmax(0, 1fr);
  }

  .rank-meta,
  .rank-row strong {
    display: none;
  }

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

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

  .mobile-nav {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .quick-links {
    flex-direction: column;
  }

  .btn,
  .quick-links a {
    width: 100%;
  }
}
