:root {
  --bg: #0a0a0a;
  --bg-soft: #141414;
  --surface: #1f1f1f;
  --surface-light: #292929;
  --border: #333333;
  --text: #ffffff;
  --muted: #9ca3af;
  --muted-strong: #d1d5db;
  --accent: #ea580c;
  --accent-light: #fb923c;
  --gold: #f59e0b;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(234, 88, 12, 0.16), transparent 34rem),
    radial-gradient(circle at top right, rgba(251, 146, 60, 0.08), transparent 30rem),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(51, 51, 51, 0.86);
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1280px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  box-shadow: 0 16px 30px rgba(234, 88, 12, 0.28);
}

.logo-text {
  font-size: 20px;
}

.logo.compact .logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.logo.compact .logo-text {
  font-size: 17px;
}

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

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

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(234, 88, 12, 0.18);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.hero-slider {
  position: relative;
  height: 72vh;
  min-height: 540px;
  overflow: hidden;
  background: var(--bg);
}

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

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, #0a0a0a 0%, rgba(10, 10, 10, 0.88) 28%, rgba(10, 10, 10, 0.46) 58%, rgba(10, 10, 10, 0.22) 100%),
    linear-gradient(to right, rgba(10, 10, 10, 0.88), rgba(10, 10, 10, 0.2));
}

.hero-content {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 70px;
  max-width: 760px;
}

.hero-kicker,
.eyebrow {
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 13px;
}

.hero-content h1,
.hero-content h2 {
  margin: 14px 0 18px;
  max-width: 760px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 22px;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.movie-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.movie-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(234, 88, 12, 0.72);
  font-size: 12px;
  font-weight: 700;
}

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

.btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn.primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 18px 36px rgba(234, 88, 12, 0.32);
}

.btn.ghost {
  border: 1px solid rgba(251, 146, 60, 0.36);
  color: #fff;
  background: rgba(31, 31, 31, 0.72);
}

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

.text-link {
  color: var(--accent-light);
  padding: 0 4px;
}

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

.hero-dots {
  position: absolute;
  right: max(24px, calc((100vw - 1280px) / 2));
  bottom: 56px;
  display: flex;
  gap: 10px;
  z-index: 4;
}

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

.hero-dot.active {
  background: var(--accent-light);
}

.section {
  padding: 58px 0;
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: -28px;
  position: relative;
  z-index: 5;
}

.intro-card,
.prose-card,
.category-card-large,
.movie-card,
.search-panel {
  border: 1px solid var(--border);
  background: rgba(31, 31, 31, 0.88);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.intro-card {
  padding: 22px;
}

.intro-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

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

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

.section-heading h2,
.page-hero h1,
.detail-copy h1 {
  margin: 8px 0 8px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading span,
.page-hero p,
.detail-one-line,
.category-title p {
  color: var(--muted);
  line-height: 1.75;
}

.section-more {
  color: var(--accent-light);
  font-weight: 800;
}

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

.category-tile {
  position: relative;
  min-height: 180px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.category-tile::before,
.category-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to top, rgba(10, 10, 10, 0.95), rgba(10, 10, 10, 0.2)), var(--tile-image);
  background-size: cover;
  background-position: center;
  transition: transform 0.35s ease;
}

.category-tile:hover::before,
.category-card-large:hover .category-cover::before {
  transform: scale(1.08);
}

.category-tile span,
.category-tile small {
  position: relative;
}

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

.category-tile small {
  color: var(--muted-strong);
  line-height: 1.6;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 12px;
  padding: 14px;
  margin-bottom: 24px;
}

.site-search,
.year-filter {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  background: var(--bg-soft);
  outline: none;
  padding: 0 16px;
}

.site-search:focus,
.year-filter:focus {
  border-color: var(--accent);
}

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

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

.movie-card {
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(234, 88, 12, 0.45);
  background: var(--surface-light);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050505;
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.poster-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.76), transparent 58%);
}

.rank-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 3;
  min-width: 34px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #111;
  background: linear-gradient(135deg, #fbbf24, #fb923c);
  font-style: normal;
  font-weight: 900;
}

.movie-info {
  padding: 16px;
}

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

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

.movie-info p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.movie-meta,
.detail-meta,
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.movie-meta span,
.detail-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.page-hero {
  padding: 68px 0 28px;
}

.page-hero p {
  max-width: 760px;
}

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

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

.category-cover {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface-light);
}

.category-card-large h2 {
  margin: 6px 0 10px;
  font-size: 28px;
}

.category-card-large p {
  color: var(--muted);
  line-height: 1.7;
}

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

.sample-links span {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 34px;
  align-items: end;
  padding: 58px 0 34px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
}

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

.detail-copy h1 {
  margin-top: 10px;
}

.detail-one-line {
  max-width: 820px;
  font-size: 18px;
}

.detail-tags {
  margin: 18px 0;
}

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

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

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.24));
  text-align: center;
}

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

.play-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 20px 46px rgba(234, 88, 12, 0.42);
  font-size: 34px;
  padding-left: 5px;
}

.player-cover strong {
  display: block;
  padding: 0 24px;
  font-size: clamp(20px, 4vw, 36px);
}

.detail-body {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
}

.prose-card {
  padding: 26px;
}

.prose-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.prose-card p {
  color: var(--muted-strong);
  line-height: 1.9;
  white-space: pre-line;
}

.accent-card {
  border-color: rgba(234, 88, 12, 0.32);
  background: rgba(234, 88, 12, 0.1);
}

.site-footer {
  margin-top: 54px;
  border-top: 1px solid var(--border);
  background: #080808;
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}

.footer-brand p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.7;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.footer-links strong {
  display: block;
  margin-bottom: 12px;
}

.footer-links a {
  display: block;
  margin: 8px 0;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  color: #737373;
  text-align: center;
  font-size: 14px;
}

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

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

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

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

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

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

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

  .main-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(20, 20, 20, 0.98);
    box-shadow: var(--shadow);
  }

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

  .nav-link {
    border-radius: 12px;
  }

  .hero-slider {
    height: 78vh;
    min-height: 560px;
  }

  .hero-content {
    padding-bottom: 92px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-dots {
    left: 16px;
    right: auto;
    bottom: 46px;
  }

  .intro-strip,
  .footer-inner,
  .footer-links,
  .search-panel,
  .category-card-large {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding: 42px 0;
  }

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

  .movie-info {
    padding: 13px;
  }

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

  .movie-info p {
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .wrap,
  .header-inner,
  .footer-inner,
  .hero-content {
    width: min(100% - 24px, 1280px);
  }

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

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn,
  .text-link {
    width: 100%;
  }
}
