:root {
  --bg: #14110f;
  --bg-soft: #211812;
  --panel: rgba(34, 24, 18, 0.88);
  --panel-strong: rgba(54, 35, 24, 0.92);
  --line: rgba(236, 163, 104, 0.26);
  --text: #fff8f0;
  --muted: #e8d4be;
  --muted-dark: #b98255;
  --accent: #eca368;
  --accent-strong: #d9703c;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 5%, rgba(217, 112, 60, 0.25), transparent 32rem),
    radial-gradient(circle at 85% 10%, rgba(236, 163, 104, 0.18), transparent 28rem),
    linear-gradient(135deg, #0d0b0a 0%, #1d130e 46%, #2a1b13 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(236, 163, 104, 0.16);
  background: rgba(17, 12, 9, 0.84);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #2a160d;
  background: linear-gradient(135deg, #ffe2c2, #eca368 55%, #d9703c);
  box-shadow: 0 10px 28px rgba(236, 163, 104, 0.28);
}

.brand-text {
  font-size: 1.3rem;
}

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

.desktop-nav a,
.mobile-nav a {
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
  color: #fff;
  background: rgba(236, 163, 104, 0.16);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(360px, 32vw);
  padding: 6px;
  border: 1px solid rgba(236, 163, 104, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.header-search input,
.mobile-nav input,
.filter-bar input,
.filter-bar select {
  min-width: 0;
  color: var(--text);
  border: 0;
  outline: none;
  background: transparent;
}

.header-search input {
  flex: 1;
  padding: 8px 12px;
}

.header-search button,
.mobile-nav button {
  border: 0;
  color: #25150e;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f7dbbf, #eca368);
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(236, 163, 104, 0.28);
  color: #fff;
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid rgba(236, 163, 104, 0.18);
  border-radius: 20px;
  background: rgba(24, 17, 13, 0.96);
}

.mobile-nav.is-open {
  display: grid;
  gap: 10px;
}

.mobile-nav form {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(236, 163, 104, 0.18);
  border-radius: 999px;
}

.mobile-nav input {
  flex: 1;
  padding: 8px 12px;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 20px;
}

.hero-stage {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  border: 1px solid rgba(236, 163, 104, 0.20);
  border-radius: var(--radius-xl);
  background: #160f0b;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
  transform: scale(1.03);
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-slide img,
.detail-backdrop img,
.category-tile img,
.category-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

img.is-empty {
  opacity: 0;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 9, 7, 0.92) 0%, rgba(13, 9, 7, 0.62) 45%, rgba(13, 9, 7, 0.16) 100%),
    linear-gradient(0deg, rgba(13, 9, 7, 0.88) 0%, transparent 56%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: clamp(34px, 7vw, 76px);
}

.hero-label,
.section-kicker,
.card-kicker,
.category-overview-card p:first-child {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 5vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-desc,
.page-hero p,
.detail-one-line {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.8;
}

.hero-tags,
.detail-meta,
.detail-tags,
.card-tags,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-tags span,
.detail-meta span,
.detail-tags span,
.card-tags span,
.chip-row button {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid rgba(236, 163, 104, 0.24);
  border-radius: 999px;
  color: #ffe7cf;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

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

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

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

.btn.primary {
  color: #25150e;
  background: linear-gradient(135deg, #f7dbbf, #eca368 55%, #d9703c);
  box-shadow: 0 14px 34px rgba(217, 112, 60, 0.26);
}

.btn.ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.42);
  transform: translateY(-50%);
}

.hero-arrow.prev {
  left: 20px;
}

.hero-arrow.next {
  right: 20px;
}

.hero-dots {
  position: absolute;
  left: clamp(34px, 7vw, 76px);
  bottom: 28px;
  z-index: 5;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 30px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.3);
}

.hero-dots button.is-active {
  background: var(--accent);
}

.hero-side-panel {
  display: grid;
  gap: 14px;
  align-content: center;
  padding: 22px;
  border: 1px solid rgba(236, 163, 104, 0.18);
  border-radius: var(--radius-xl);
  background: rgba(36, 24, 17, 0.72);
  box-shadow: var(--shadow);
}

.hero-side-panel p {
  margin: 0;
  color: var(--accent);
  font-weight: 800;
}

.hero-side-panel a {
  padding: 16px;
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.hero-side-panel a:hover {
  color: #fff;
  background: rgba(236, 163, 104, 0.18);
  transform: translateX(4px);
}

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

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

.section-heading h2,
.rank-column h2,
.story-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.section-heading a,
.ranking-head a {
  color: var(--accent);
  font-weight: 800;
}

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

.category-tile {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(236, 163, 104, 0.18);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(217, 112, 60, 0.18), rgba(255, 255, 255, 0.05));
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.22);
}

.category-tile::after,
.category-overview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(16, 10, 7, 0.92), rgba(16, 10, 7, 0.28));
}

.category-tile span,
.category-tile em {
  position: relative;
  z-index: 2;
  display: block;
}

.category-tile span {
  margin-top: 70px;
  font-size: 1.25rem;
  font-weight: 900;
}

.category-tile em {
  margin-top: 8px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.6;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(236, 163, 104, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(32, 22, 16, 0.74);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.20);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(236, 163, 104, 0.46);
  background: rgba(48, 31, 21, 0.88);
}

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

.poster-link {
  display: block;
}

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4.2;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 25%, rgba(236, 163, 104, 0.30), transparent 60%),
    linear-gradient(135deg, #2e1d13, #140d0a);
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.movie-card:hover .poster-frame img {
  transform: scale(1.05);
}

.card-badge,
.card-type {
  position: absolute;
  z-index: 2;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.card-badge {
  left: 12px;
  color: #27140c;
  background: rgba(247, 219, 191, 0.92);
}

.card-type {
  right: 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
}

.card-body {
  padding: 16px;
}

.card-kicker {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.78rem;
}

.card-body h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--accent);
}

.card-summary {
  display: -webkit-box;
  min-height: 3.3em;
  margin: 10px 0 14px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-tags {
  gap: 7px;
}

.card-tags span {
  min-height: 24px;
  padding: 4px 8px;
  color: #f4caa7;
  font-size: 0.76rem;
}

.ranking-panel,
.rank-column,
.story-card,
.filter-bar,
.category-overview-card {
  border: 1px solid rgba(236, 163, 104, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(32, 22, 16, 0.78);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.ranking-panel {
  position: sticky;
  top: 100px;
  padding: 18px;
}

.ranking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 900;
}

.rank-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 6px 10px;
  padding: 12px 0;
  border-top: 1px solid rgba(236, 163, 104, 0.12);
}

.rank-number {
  grid-row: span 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #2b170d;
  font-weight: 900;
  background: linear-gradient(135deg, #f7dbbf, #eca368);
}

.rank-title {
  font-weight: 800;
}

.rank-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.rank-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.rank-column {
  padding: 20px;
}

.page-hero,
.detail-hero {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  margin: 30px auto 0;
  overflow: hidden;
  border: 1px solid rgba(236, 163, 104, 0.20);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 25% 20%, rgba(236, 163, 104, 0.24), transparent 32rem),
    linear-gradient(135deg, rgba(42, 27, 19, 0.94), rgba(17, 11, 8, 0.96));
  box-shadow: var(--shadow);
}

.page-hero {
  min-height: 320px;
  display: grid;
  align-items: center;
  padding: clamp(32px, 6vw, 72px);
}

.slim-hero {
  min-height: 270px;
}

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

.category-overview-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 230px;
}

.category-overview-card > div,
.category-overview-card > a {
  position: relative;
  z-index: 2;
}

.category-cover {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}

.category-overview-card > div {
  padding: 22px;
}

.category-overview-card h2 {
  margin: 0 0 10px;
  font-size: 1.55rem;
}

.category-intro {
  color: var(--muted);
  line-height: 1.7;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.category-samples span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffdcc0;
  background: rgba(236, 163, 104, 0.14);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 170px;
  gap: 12px;
  padding: 14px;
  margin-bottom: 18px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(236, 163, 104, 0.18);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.filter-bar select option {
  color: #111;
}

.chip-row {
  margin-bottom: 24px;
}

.chip-row button {
  cursor: pointer;
}

.chip-row button.is-active {
  color: #27140c;
  background: linear-gradient(135deg, #f7dbbf, #eca368);
}

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

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.36;
  filter: blur(4px);
  transform: scale(1.04);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 9, 7, 0.96), rgba(13, 9, 7, 0.72), rgba(13, 9, 7, 0.30));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(230px, 320px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  min-height: 520px;
  padding: clamp(28px, 6vw, 72px);
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(236, 163, 104, 0.26);
  border-radius: var(--radius-xl);
  aspect-ratio: 3 / 4.2;
  background: linear-gradient(135deg, #2e1d13, #140d0a);
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

.detail-meta,
.detail-tags {
  margin-top: 20px;
}

.player-section {
  width: min(1100px, calc(100% - 32px));
  margin: 42px auto 0;
}

.player-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(236, 163, 104, 0.28);
  border-radius: var(--radius-xl);
  background: #050403;
  box-shadow: var(--shadow);
}

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.player-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
  transition: opacity 0.2s ease;
}

.player-play span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #29150c;
  font-size: 2.1rem;
  background: linear-gradient(135deg, #f7dbbf, #eca368);
  box-shadow: 0 20px 60px rgba(236, 163, 104, 0.30);
}

.player-box.is-playing .player-play {
  opacity: 0;
  pointer-events: none;
}

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

.story-card {
  padding: 26px;
}

.story-card p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.9;
  white-space: pre-line;
}

.site-footer {
  margin-top: 90px;
  border-top: 1px solid rgba(236, 163, 104, 0.16);
  background: rgba(12, 8, 6, 0.88);
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
}

.footer-inner p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.8;
}

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 1100px) {
  .hero,
  .split-layout,
  .rank-layout,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .hero-side-panel,
  .ranking-panel {
    position: static;
  }

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

  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: 66px;
  }

  .brand-text {
    font-size: 1.1rem;
  }

  .hero,
  .content-section,
  .page-hero,
  .detail-hero,
  .player-section,
  .footer-inner {
    width: min(100% - 22px, 1240px);
  }

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

  .hero-content {
    padding: 30px 22px 62px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-dots {
    left: 22px;
  }

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

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

  .category-cover {
    min-height: 180px;
  }

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

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

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

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

  .footer-links {
    justify-content: flex-start;
  }
}

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

  .card-summary {
    min-height: 0;
  }
}
