:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #1e293b;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --brand: #f97316;
  --brand-dark: #ea580c;
  --brand-red: #dc2626;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.18), transparent 34rem),
    linear-gradient(180deg, #0f172a 0%, #020617 34rem, #020617 100%);
  color: var(--text);
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-red));
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.32);
}

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

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

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--soft);
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: white;
  background: rgba(249, 115, 22, 0.14);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.8);
  color: white;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 2px;
}

.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.76;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.28) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.18) 42%, rgba(2, 6, 23, 0.36) 100%);
}

.hero-content {
  position: absolute;
  z-index: 2;
  left: max(24px, calc((100vw - 1180px) / 2));
  top: 50%;
  width: min(680px, calc(100% - 48px));
  transform: translateY(-50%);
}

.hero-label,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.16);
  color: #fed7aa;
  border: 1px solid rgba(249, 115, 22, 0.35);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.hero p {
  max-width: 620px;
  margin: 0 0 24px;
  color: #e2e8f0;
  font-size: clamp(17px, 2.3vw, 22px);
  line-height: 1.72;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--soft);
}

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

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.25s ease, background 0.25s ease, border 0.25s ease;
}

.primary-btn {
  padding: 0 24px;
  background: linear-gradient(135deg, var(--brand), var(--brand-red));
  color: white;
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.32);
}

.ghost-btn {
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 23, 42, 0.54);
  color: white;
  backdrop-filter: blur(12px);
}

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

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 34px;
  display: flex;
  justify-content: center;
  gap: 9px;
}

.hero-dot {
  width: 26px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.62);
  transition: 0.25s ease;
}

.hero-dot.active {
  width: 54px;
  background: var(--brand);
}

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

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

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

.section-heading h2,
.page-hero h1,
.detail-content h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-more,
.text-link {
  color: #fb923c;
}

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

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

.page-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding-bottom: 58px;
}

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.2);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.48);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.22), rgba(15, 23, 42, 0.96));
}

.movie-card.large .poster-link {
  aspect-ratio: 16 / 10;
}

.poster-link img,
.category-tile img,
.category-cover img,
.list-card img,
.detail-sidebar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .poster-link img,
.category-tile:hover img,
.category-card:hover .category-cover img,
.list-card:hover img {
  transform: scale(1.08);
}

.type-pill,
.rank-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.type-pill {
  right: 12px;
  padding: 6px 10px;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(12px);
}

.rank-badge {
  left: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--brand), var(--brand-red));
  font-style: normal;
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: #fb923c;
}

.card-meta,
.card-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.card-desc {
  min-height: 42px;
  margin-top: 10px;
  line-height: 1.58;
}

.tag-row,
.detail-tags,
.info-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.tag-row span,
.detail-tags span,
.info-pills span {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--soft);
  font-size: 12px;
}

.tag-row span {
  padding: 5px 9px;
}

.detail-tags span,
.info-pills span {
  padding: 8px 12px;
}

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

.category-tile {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.24));
}

.category-tile span {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 18px;
}

.category-tile strong,
.category-tile em {
  display: block;
}

.category-tile strong {
  margin-bottom: 8px;
  font-size: 21px;
}

.category-tile em {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.6;
  font-style: normal;
}

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

.list-card {
  display: grid;
  grid-template-columns: 54px 112px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.9);
  transition: 0.25s ease;
}

.list-card:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(249, 115, 22, 0.42);
}

.list-rank {
  color: #fb923c;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.list-card img {
  height: 78px;
  border-radius: 14px;
  background: var(--panel-soft);
}

.list-content strong,
.list-content small,
.list-content em {
  display: block;
}

.list-content strong {
  margin-bottom: 6px;
}

.list-content small {
  color: var(--muted);
}

.list-content em {
  margin-top: 8px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.5;
  font-style: normal;
}

.page-shell,
.detail-shell {
  padding: 40px 0 64px;
}

.page-hero {
  margin-bottom: 32px;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.24), transparent 26rem),
    rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
}

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

.category-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.92);
}

.category-cover {
  min-height: 210px;
  background: var(--panel-soft);
  overflow: hidden;
}

.category-body {
  padding: 28px;
}

.category-body h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.category-body p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

.category-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.category-preview span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
  color: #fed7aa;
  font-size: 13px;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px 220px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.88);
}

.filter-bar label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  background: #020617;
  color: white;
  padding: 0 14px;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(249, 115, 22, 0.72);
}

.empty-state {
  padding: 50px 20px;
  text-align: center;
  color: var(--muted);
}

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

.breadcrumb a:hover {
  color: #fb923c;
}

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

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.player-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.24), rgba(2, 6, 23, 0.62));
  color: white;
}

.play-layer.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.play-icon {
  position: relative;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-red));
  box-shadow: 0 20px 42px rgba(249, 115, 22, 0.42);
}

.play-icon::after {
  content: "";
  position: absolute;
  left: 33px;
  top: 24px;
  border-left: 25px solid white;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
}

.player-topline {
  position: absolute;
  left: 18px;
  top: 18px;
  max-width: calc(100% - 36px);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.64);
  color: white;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.detail-content {
  margin-top: 28px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.9);
}

.detail-content .lead-text {
  margin: 16px 0 20px;
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.75;
}

.detail-content section {
  margin-top: 28px;
}

.detail-content h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-content p {
  margin: 0;
  color: var(--soft);
  line-height: 1.9;
}

.detail-sidebar {
  position: sticky;
  top: 96px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.95);
}

.detail-sidebar img {
  width: 100%;
  aspect-ratio: 2 / 3;
  background: var(--panel-soft);
}

.detail-sidebar dl {
  margin: 0;
  padding: 22px;
}

.detail-sidebar div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.detail-sidebar div:last-child {
  border-bottom: 0;
}

.detail-sidebar dt {
  color: var(--muted);
  font-size: 13px;
}

.detail-sidebar dd {
  margin: 5px 0 0;
  color: white;
  line-height: 1.5;
}

.related-section {
  width: 100%;
  padding-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.88);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

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

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

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

  .detail-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 240px 1fr;
  }
}

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

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.96);
  }

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

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

  .hero {
    min-height: 68vh;
  }

  .hero-content {
    top: 52%;
  }

  .content-section {
    padding: 40px 0;
  }

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

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

  .card-body {
    padding: 13px;
  }

  .card-desc,
  .tag-row {
    display: none;
  }

  .category-card,
  .detail-sidebar {
    grid-template-columns: 1fr;
  }

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

  .list-card {
    grid-template-columns: 42px 76px 1fr;
    gap: 10px;
    padding: 10px;
  }

  .list-card img {
    height: 62px;
  }

  .list-content em {
    display: none;
  }

  .page-hero,
  .detail-content {
    padding: 24px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .brand-text {
    font-size: 18px;
  }

  .movie-grid,
  .page-grid,
  .featured-grid,
  .category-grid,
  .list-grid {
    grid-template-columns: 1fr;
  }

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

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }
}
