
:root {
  color-scheme: dark;
  --bg: #11100f;
  --panel: rgba(34, 29, 26, 0.86);
  --panel-strong: #211c19;
  --panel-soft: rgba(255, 255, 255, 0.06);
  --text: #fff7ed;
  --muted: #d6c8bc;
  --faint: #9f8f82;
  --line: rgba(255, 255, 255, 0.12);
  --primary: #d9864a;
  --primary-strong: #cb6f3f;
  --primary-soft: rgba(217, 134, 74, 0.18);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(217, 134, 74, 0.16), transparent 34rem),
    radial-gradient(circle at 92% 10%, rgba(203, 111, 63, 0.12), transparent 32rem),
    linear-gradient(180deg, #171311 0%, #0f0e0d 48%, #14110f 100%);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #211c19;
}

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

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #1d120a;
  background: linear-gradient(135deg, #f7c58c, var(--primary));
  box-shadow: 0 12px 32px rgba(217, 134, 74, 0.35);
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

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

.nav-link:hover,
.nav-link.is-active,
.mobile-nav a:hover {
  color: var(--text);
  background: var(--panel-soft);
}

.header-search {
  display: flex;
  align-items: center;
  width: min(300px, 28vw);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.header-search input,
.wide-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

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

.header-search button,
.wide-search button {
  border: 0;
  color: #1d120a;
  font-weight: 800;
  background: linear-gradient(135deg, #f7c58c, var(--primary));
}

.header-search button {
  align-self: stretch;
  padding: 0 16px;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
}

.mobile-nav {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-strong);
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 9, 8, 0.96) 0%, rgba(10, 9, 8, 0.78) 42%, rgba(10, 9, 8, 0.42) 100%),
    linear-gradient(180deg, rgba(10, 9, 8, 0.18), rgba(10, 9, 8, 0.92));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 56px;
  padding: 120px 0 96px;
}

.eyebrow {
  margin-bottom: 10px;
  color: #f7c58c;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-info h1 {
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.hero-copy h1,
.hero-copy > h2 {
  max-width: 900px;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
}

.hero-movie-title {
  margin-top: 24px;
  color: #f7c58c;
  font-size: clamp(1.8rem, 4vw, 3.4rem) !important;
}

.hero-desc {
  max-width: 720px;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-meta span,
.detail-meta span,
.card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
}

.hero-actions,
.section-heading,
.filter-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-actions {
  margin-top: 30px;
}

.btn,
.filter-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover,
.filter-row button:hover {
  transform: translateY(-2px);
  border-color: rgba(247, 197, 140, 0.62);
}

.btn.primary {
  color: #1d120a;
  border: 0;
  background: linear-gradient(135deg, #f7c58c, var(--primary));
  box-shadow: 0 16px 42px rgba(217, 134, 74, 0.28);
}

.btn.ghost,
.filter-row button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.btn.text {
  color: #f7c58c;
  border-color: transparent;
}

.btn.small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.86rem;
}

.hero-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-poster::after,
.poster-link::after,
.detail-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(0, 0, 0, 0.78));
  pointer-events: none;
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.5rem;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  padding: 0;
}

.hero-dot.is-active {
  width: 30px;
  background: var(--primary);
}

.section,
.page-hero,
.detail-hero {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.section-search-panel {
  margin-top: -38px;
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(34, 29, 26, 0.88);
  box-shadow: var(--shadow);
}

.section-heading {
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-heading.compact,
.section-heading.inline {
  display: block;
  margin-bottom: 18px;
}

.section-heading h2,
.story-card h2,
.category-overview-card h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-heading a {
  color: #f7c58c;
  font-weight: 800;
}

.wide-search {
  display: flex;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
}

.wide-search input {
  padding: 0 22px;
  font-size: 1rem;
}

.wide-search button {
  padding: 0 28px;
}

.filter-row {
  margin-top: 20px;
}

.filter-row button.is-active {
  color: #1d120a;
  border-color: transparent;
  background: linear-gradient(135deg, #f7c58c, var(--primary));
}

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

.category-tile,
.category-overview-card,
.story-card,
.rank-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.16);
}

.category-tile {
  min-height: 176px;
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(247, 197, 140, 0.5);
  background: linear-gradient(180deg, rgba(217, 134, 74, 0.18), rgba(255, 255, 255, 0.045));
}

.category-tile span,
.category-overview-card h2 {
  display: block;
  margin-bottom: 10px;
  color: #f7c58c;
  font-weight: 950;
}

.category-tile p,
.category-overview-card p,
.story-card p,
.detail-one-line,
.ranking-item p {
  color: var(--muted);
  line-height: 1.75;
}

.category-tile strong {
  display: block;
  margin-top: 16px;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.55;
}

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

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

.movie-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.045);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(247, 197, 140, 0.46);
  background: rgba(255, 255, 255, 0.075);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

.poster-link img,
.hero-poster img,
.detail-poster img,
.ranking-poster img {
  transition: transform 0.4s ease;
}

.movie-card:hover .poster-link img,
.hero-poster:hover img,
.detail-poster:hover img,
.ranking-item:hover img {
  transform: scale(1.06);
}

.card-badge,
.play-dot,
.ranking-poster span,
.detail-poster span {
  position: absolute;
  z-index: 2;
}

.card-badge {
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  padding: 6px 10px;
  border-radius: 999px;
  color: #1d120a;
  background: rgba(247, 197, 140, 0.92);
  font-size: 0.75rem;
  font-weight: 900;
}

.play-dot {
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #1d120a;
  background: #f7c58c;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

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

.movie-card h3,
.ranking-item h3 {
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.ranking-item h3 a:hover,
.category-sample-links a:hover {
  color: #f7c58c;
}

.card-desc {
  margin-top: 8px;
  min-height: 3.2em;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin-top: 12px;
  gap: 6px;
}

.card-meta span {
  min-height: 24px;
  padding: 4px 8px;
  font-size: 0.76rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 28px;
}

.rank-panel {
  padding: 24px;
}

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

.ranking-list.mini {
  gap: 12px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.ranking-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  overflow: hidden;
}

.ranking-poster span {
  left: 8px;
  top: 8px;
  display: inline-flex;
  min-width: 32px;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  color: #1d120a;
  background: #f7c58c;
  font-weight: 950;
}

.page-hero,
.detail-hero {
  padding: 58px 0 28px;
}

.page-hero.slim {
  max-width: 900px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
}

.page-hero > p,
.detail-copy p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.category-hero {
  padding-bottom: 8px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--faint);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: #f7c58c;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  padding: 18px;
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.category-cover-stack img {
  aspect-ratio: 2 / 3;
  border-radius: 12px;
}

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

.category-sample-links a,
.tag {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
}

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

.detail-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.detail-poster span {
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  color: #1d120a;
  background: #f7c58c;
  transform: translate(-50%, -50%);
}

.detail-info h1 {
  font-size: clamp(2.3rem, 6vw, 5rem);
}

.detail-one-line {
  max-width: 780px;
  margin-top: 20px;
  font-size: 1.15rem;
}

.detail-meta {
  margin-top: 22px;
}

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

.detail-info .btn {
  margin-top: 28px;
}

.player-section {
  padding-top: 48px;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
}

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

.player-start {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text);
  background:
    radial-gradient(circle at center, rgba(217, 134, 74, 0.28), transparent 18rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.68));
}

.player-start.is-hidden {
  display: none;
}

.player-start span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  color: #1d120a;
  background: linear-gradient(135deg, #f7c58c, var(--primary));
  box-shadow: 0 18px 50px rgba(217, 134, 74, 0.32);
}

.player-start strong {
  font-size: 1.15rem;
}

.detail-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.story-card {
  padding: 28px;
}

.story-card.accent {
  background: linear-gradient(180deg, rgba(217, 134, 74, 0.14), rgba(255, 255, 255, 0.04));
}

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

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

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: rgba(10, 9, 8, 0.72);
}

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 30px;
  padding: 40px 0;
}

.footer-inner p {
  margin-top: 12px;
  color: var(--faint);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px;
}

.footer-links a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

@media (max-width: 1080px) {
  .header-search {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr 280px;
  }

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

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

  .split-section,
  .ranking-page .ranking-list {
    grid-template-columns: 1fr;
  }
}

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

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

  .hero-carousel {
    min-height: 760px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 96px;
  }

  .hero-poster {
    width: min(280px, 70vw);
    transform: none;
  }

  .section-search-panel,
  .detail-layout,
  .detail-copy,
  .category-overview-card,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .movie-grid,
  .compact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .header-inner,
  .section,
  .page-hero,
  .detail-hero,
  .footer-inner {
    width: min(100% - 22px, 1200px);
  }

  .hero-content {
    width: min(100% - 22px, 1200px);
  }

  .hero-copy h1,
  .hero-copy > h2,
  .page-hero h1,
  .detail-info h1 {
    letter-spacing: -0.025em;
  }

  .wide-search {
    border-radius: 18px;
    flex-direction: column;
  }

  .wide-search input {
    width: 100%;
    min-height: 54px;
  }

  .wide-search button {
    width: 100%;
    min-height: 48px;
  }

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

  .ranking-item {
    grid-template-columns: 72px 1fr;
    gap: 12px;
  }

  .section {
    padding: 48px 0;
  }
}
