:root {
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: rgba(15, 23, 42, 0.58);
  --panel-strong: rgba(15, 23, 42, 0.88);
  --line: rgba(51, 65, 85, 0.62);
  --line-soft: rgba(30, 41, 59, 0.72);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --card: #111827;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shell: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 0%, rgba(30, 41, 59, 0.75), transparent 34%), var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #020617;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  background: rgba(2, 6, 23, 0.78);
  border-bottom: 1px solid rgba(30, 41, 59, 0.72);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(var(--shell), calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #e2e8f0, #64748b);
  color: #020617;
  box-shadow: 0 16px 30px rgba(148, 163, 184, 0.16);
}

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

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

.nav-link,
.mobile-nav a {
  color: #cbd5e1;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 8px 11px;
  font-size: 14px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav a:hover {
  color: var(--text);
  background: rgba(30, 41, 59, 0.68);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.84);
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: #cbd5e1;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav {
  display: none;
  width: min(var(--shell), calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.94);
  box-shadow: var(--shadow);
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  font-size: 15px;
}

.nav-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

main {
  min-height: 70vh;
}

.page-main {
  padding-top: 96px;
  padding-bottom: 72px;
}

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

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

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(to top, #020617 0%, rgba(2, 6, 23, 0.92) 20%, rgba(2, 6, 23, 0.52) 58%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(to right, rgba(2, 6, 23, 0.86) 0%, rgba(2, 6, 23, 0.38) 52%, rgba(2, 6, 23, 0.12) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 0 0 88px;
}

.hero-inner {
  width: min(var(--shell), calc(100% - 32px));
  margin: 0 auto;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.meta-row,
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.eyebrow {
  margin-bottom: 18px;
  color: #cbd5e1;
  font-size: 13px;
}

.eyebrow span,
.meta-row span,
.tag-row span,
.detail-tags span,
.duration-pill,
.category-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.82);
  border: 1px solid rgba(51, 65, 85, 0.62);
  color: #cbd5e1;
}

.eyebrow span {
  padding: 6px 11px;
  backdrop-filter: blur(10px);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  color: #f8fafc;
  text-shadow: 0 16px 56px rgba(0, 0, 0, 0.55);
}

.hero p {
  max-width: 720px;
  margin: 0 0 32px;
  color: #cbd5e1;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.78;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  color: #020617;
  background: #f8fafc;
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.35);
}

.btn-primary:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

.btn-ghost {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.62);
  border-color: var(--line);
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  background: rgba(30, 41, 59, 0.82);
  transform: translateY(-2px);
}

.quick-search {
  width: min(680px, 100%);
  display: flex;
  gap: 10px;
  padding: 8px;
  margin-top: 30px;
  border-radius: 18px;
  border: 1px solid rgba(51, 65, 85, 0.66);
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(14px);
}

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

.quick-search input {
  padding: 0 14px;
}

.quick-search button,
.filter-button {
  border: 0;
  cursor: pointer;
}

.quick-search button {
  min-width: 108px;
}

.section {
  padding: 72px 0;
}

.section-muted {
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.52), transparent);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  color: #f8fafc;
  letter-spacing: -0.04em;
}

.section-line {
  height: 4px;
  flex: 1;
  min-width: 40px;
  border-radius: 999px;
  background: linear-gradient(to right, #1e293b, transparent);
}

.section-more {
  color: #cbd5e1;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid var(--line-soft);
}

.section-more:hover {
  color: var(--text);
  background: rgba(30, 41, 59, 0.78);
}

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

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

.feature-card,
.poster-card,
.wide-card,
.compact-card,
.category-card,
.info-panel {
  background: rgba(15, 23, 42, 0.52);
  border: 1px solid rgba(30, 41, 59, 0.72);
  transition: transform 0.25s ease, border 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.feature-card,
.poster-card,
.category-card,
.info-panel {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.feature-card:hover,
.poster-card:hover,
.wide-card:hover,
.compact-card:hover,
.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(100, 116, 139, 0.82);
  background: rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
}

.feature-card a,
.poster-card a,
.wide-card a,
.compact-card a,
.category-card a {
  display: block;
  height: 100%;
}

.feature-media,
.poster-media,
.wide-media,
.compact-cover,
.related-cover {
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

.feature-media {
  aspect-ratio: 16 / 10;
}

.poster-media {
  aspect-ratio: 3 / 4;
}

.feature-media img,
.poster-media img,
.wide-media img,
.compact-cover img,
.related-cover img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.feature-card:hover img,
.poster-card:hover img,
.wide-card:hover img,
.compact-card:hover img,
.related-card:hover img {
  transform: scale(1.06);
}

.poster-gradient {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.88), transparent);
}

.duration-pill {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  font-size: 12px;
  backdrop-filter: blur(10px);
}

.feature-body,
.poster-body,
.wide-body {
  padding: 20px;
}

.meta-row {
  gap: 6px;
  margin-bottom: 12px;
}

.meta-row span {
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 8px;
}

.feature-body h3,
.poster-body h3,
.wide-body h3,
.compact-info h3,
.related-info h3,
.category-card h3 {
  margin: 0;
  color: #f8fafc;
  font-weight: 800;
  line-height: 1.35;
}

.feature-body h3 {
  font-size: 21px;
}

.poster-body h3 {
  font-size: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feature-body p,
.poster-body p,
.wide-body p,
.compact-info p,
.related-info p,
.category-card p,
.info-panel p,
.page-lead,
.detail-text p {
  color: var(--muted);
  line-height: 1.75;
}

.feature-body p,
.poster-body p {
  margin: 9px 0 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feature-body p {
  -webkit-line-clamp: 2;
}

.poster-body p {
  -webkit-line-clamp: 2;
  font-size: 14px;
}

.wide-list {
  display: grid;
  gap: 22px;
}

.wide-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.wide-card a {
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: 260px;
}

.wide-media {
  min-height: 260px;
}

.wide-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
}

.wide-body h3 {
  margin-bottom: 12px;
  font-size: clamp(24px, 2.8vw, 34px);
  letter-spacing: -0.04em;
}

.wide-body p {
  margin: 0 0 18px;
}

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

.tag-row span,
.detail-tags span,
.category-pill {
  padding: 6px 10px;
  font-size: 13px;
}

.horizontal-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 260px);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scroll-snap-type: x mandatory;
}

.horizontal-scroll .poster-card {
  scroll-snap-align: start;
}

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

.compact-card {
  border-radius: 16px;
  overflow: hidden;
}

.compact-card a {
  display: grid;
  grid-template-columns: 96px 1fr;
  min-height: 122px;
}

.compact-cover {
  height: 122px;
}

.rank-num {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #020617;
  font-weight: 900;
  background: #f8fafc;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.36);
}

.compact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 16px;
}

.compact-info h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.compact-info p {
  margin: 0;
  color: var(--muted-2);
  font-size: 13px;
}

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

.category-card a {
  padding: 28px;
}

.category-card h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.category-card p {
  margin: 0 0 20px;
}

.category-card .category-pill {
  border-radius: 10px;
}

.page-hero {
  padding: 48px 0 34px;
}

.page-kicker {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 10px;
  color: #cbd5e1;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(15, 23, 42, 0.66);
}

.page-hero h1 {
  max-width: 920px;
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.page-lead {
  max-width: 800px;
  margin: 0;
  font-size: 17px;
}

.search-panel {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 22px 0 0;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  background: rgba(15, 23, 42, 0.72);
}

.search-panel input {
  padding: 10px 12px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.filter-button {
  padding: 9px 13px;
  color: #cbd5e1;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line-soft);
}

.filter-button:hover,
.filter-button.is-active {
  color: #020617;
  background: #f8fafc;
  border-color: #f8fafc;
}

.hidden-card {
  display: none !important;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 36px;
  text-align: center;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.5);
}

.detail-main {
  padding-top: 92px;
  padding-bottom: 80px;
}

.breadcrumb {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

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

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

.player-card,
.detail-card,
.related-panel {
  border: 1px solid var(--line-soft);
  background: rgba(15, 23, 42, 0.55);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.12));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: #020617;
  background: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  cursor: pointer;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, background 0.2s ease;
}

.play-button:hover {
  transform: scale(1.06);
  background: #ffffff;
}

.detail-card {
  margin-top: 20px;
  padding: 28px;
}

.detail-card h1 {
  margin: 0 0 20px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.05em;
}

.detail-block {
  margin-top: 26px;
}

.detail-block h2 {
  margin: 0 0 12px;
  font-size: 20px;
  color: #e2e8f0;
}

.detail-text {
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: rgba(2, 6, 23, 0.36);
}

.detail-text p {
  margin: 0;
}

.related-panel {
  position: sticky;
  top: 88px;
  padding: 20px;
}

.related-panel h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.related-list {
  display: grid;
  gap: 14px;
}

.related-card a {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(30, 41, 59, 0.72);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.22);
  transition: background 0.2s ease, border 0.2s ease;
}

.related-card a:hover {
  border-color: rgba(100, 116, 139, 0.82);
  background: rgba(30, 41, 59, 0.42);
}

.related-cover {
  aspect-ratio: 3 / 4;
  border-radius: 10px;
}

.related-info h3 {
  margin-bottom: 8px;
  font-size: 15px;
}

.related-info p {
  margin: 0;
  font-size: 13px;
  color: var(--muted-2);
}

.site-footer {
  border-top: 1px solid rgba(30, 41, 59, 0.72);
  background: rgba(2, 6, 23, 0.96);
}

.footer-shell {
  width: min(var(--shell), calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 28px;
}

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

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: var(--muted);
  line-height: 1.75;
  font-size: 14px;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-grid a:hover {
  color: #f8fafc;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  text-align: center;
  border-top: 1px solid rgba(30, 41, 59, 0.72);
  color: #64748b;
}

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

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

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

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

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

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

  .related-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: 620px;
  }

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

  .quick-search,
  .search-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .quick-search button,
  .search-panel .btn {
    width: 100%;
  }

  .section {
    padding: 52px 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }

  .section-line {
    order: 3;
    flex-basis: 100%;
  }

  .feature-grid,
  .category-grid,
  .ranking-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .wide-card a {
    grid-template-columns: 1fr;
  }

  .wide-media {
    aspect-ratio: 16 / 10;
    min-height: auto;
  }

  .compact-card a,
  .related-card a {
    grid-template-columns: 84px 1fr;
  }

  .compact-cover {
    height: 112px;
  }

  .detail-card {
    padding: 22px;
  }

  .play-button {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }
}

@media (max-width: 420px) {
  .poster-grid {
    grid-template-columns: 1fr 1fr;
  }

  .poster-body {
    padding: 14px;
  }

  .meta-row span {
    font-size: 11px;
  }
}
