:root {
  color-scheme: dark;
  --bg: #030712;
  --bg-soft: #111827;
  --bg-card: #1f2937;
  --line: #374151;
  --text: #ffffff;
  --muted: #d1d5db;
  --subtle: #9ca3af;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.14), transparent 32rem), linear-gradient(180deg, #030712 0%, #111827 48%, #030712 100%);
  color: var(--text);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  background: rgba(17, 24, 39, 0.92);
  border-bottom: 1px solid rgba(55, 65, 81, 0.86);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  width: min(1280px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--orange);
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.32);
  color: #ffffff;
  font-size: 14px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  justify-content: flex-end;
}

.nav-link,
.nav-group > button {
  color: var(--muted);
  border: 0;
  background: transparent;
  padding: 8px 2px;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-group:hover > button {
  color: var(--orange);
}

.nav-group {
  position: relative;
}

.drop-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 160px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(17, 24, 39, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.nav-group:hover .drop-panel,
.nav-group:focus-within .drop-panel {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.drop-panel a {
  display: block;
  padding: 10px 12px;
  color: var(--muted);
  border-radius: 10px;
}

.drop-panel a:hover {
  background: rgba(249, 115, 22, 0.16);
  color: var(--text);
}

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

.nav-search input,
.catalog-search input {
  width: 220px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: #1f2937;
  color: var(--text);
}

.nav-search input:focus,
.catalog-search input:focus {
  border-color: var(--orange);
}

.nav-search button,
.catalog-search button,
.primary-button,
.secondary-button,
.mini-button,
.player-start {
  border: 0;
  border-radius: 12px;
  background: var(--orange);
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button {
  padding: 10px 14px;
}

.nav-search button:hover,
.catalog-search button:hover,
.primary-button:hover,
.mini-button:hover,
.player-start:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(249, 115, 22, 0.28);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #1f2937;
  color: var(--text);
}

.page-main {
  padding-top: 68px;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  align-items: center;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  object-fit: cover;
  filter: brightness(0.32) blur(8px);
  transform: scale(1.03);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.18), rgba(17, 24, 39, 0.68) 55%, #030712 100%);
}

.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) minmax(280px, 0.58fr);
  gap: 48px;
  align-items: center;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(249, 115, 22, 0.42);
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
  color: #fed7aa;
  font-size: 14px;
}

.hero h1,
.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.hero p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.75;
}

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

.primary-button,
.secondary-button,
.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.primary-button,
.secondary-button {
  min-height: 48px;
  padding: 0 22px;
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: #111827;
  box-shadow: var(--shadow);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-poster-caption {
  padding: 18px;
}

.hero-poster-caption strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.hero-poster-caption span {
  color: var(--subtle);
}

.hero-dots {
  position: absolute;
  z-index: 5;
  bottom: 36px;
  left: 50%;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 32px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--orange);
}

.section,
.catalog-section,
.detail-layout,
.player-section,
.breadcrumbs {
  width: min(1280px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

.section {
  padding: 72px 0;
}

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

.section-kicker {
  margin-bottom: 8px;
  color: var(--orange);
  font-weight: 700;
}

.section h1,
.section h2,
.catalog-section h1,
.detail-copy h1,
.player-section h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.1;
}

.section-header p,
.catalog-lead,
.detail-copy .lead {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-grid.wide {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.movie-card {
  min-width: 0;
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: #111827;
  aspect-ratio: 3 / 4;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.34);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.movie-card:hover .poster-shade {
  opacity: 1;
}

.card-year {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--orange);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.92);
  color: #ffffff;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: all 0.25s ease;
}

.movie-card:hover .play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-card-body {
  padding: 12px 2px 0;
}

.movie-card-body h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}

.movie-card-body h2 a:hover,
.rank-copy h2 a:hover,
.inline-links a:hover,
.breadcrumbs a:hover {
  color: var(--orange);
}

.card-meta {
  margin-top: 7px;
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.5;
}

.movie-card-body p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 12px;
}

.category-band {
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(31, 41, 55, 0.82));
  border-top: 1px solid rgba(55, 65, 81, 0.68);
  border-bottom: 1px solid rgba(55, 65, 81, 0.68);
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: #111827;
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  transition: transform 0.32s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(3, 7, 18, 0.9));
}

.category-tile span,
.category-tile strong {
  position: relative;
  z-index: 1;
}

.category-tile span {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
}

.category-tile strong {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.category-tile:hover img {
  transform: scale(1.06);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 72px 84px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(55, 65, 81, 0.82);
  border-radius: 18px;
  background: rgba(31, 41, 55, 0.64);
}

.rank-num {
  color: var(--orange);
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.rank-cover {
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 3 / 4;
  background: #111827;
}

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

.rank-copy h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.rank-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.mini-button {
  min-height: 40px;
  padding: 0 14px;
  white-space: nowrap;
}

.catalog-hero {
  padding: 132px 0 56px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.16), rgba(17, 24, 39, 0.54));
  border-bottom: 1px solid rgba(55, 65, 81, 0.76);
}

.catalog-section {
  padding: 42px 0 84px;
}

.catalog-search {
  margin: 28px 0 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.catalog-search input {
  width: min(100%, 420px);
}

.catalog-search button {
  padding: 10px 18px;
}

.breadcrumbs {
  padding: 96px 0 18px;
  color: var(--subtle);
  font-size: 14px;
}

.breadcrumbs ol {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: #6b7280;
}

.player-section {
  padding-bottom: 42px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(55, 65, 81, 0.88);
  border-radius: 22px;
  background: #000000;
  box-shadow: var(--shadow);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.24), rgba(0, 0, 0, 0.58));
  pointer-events: none;
}

.player-start {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  font-size: 30px;
  pointer-events: auto;
}

.player-shell.is-playing .player-cover {
  display: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  padding: 24px 0 72px;
}

.detail-poster {
  position: sticky;
  top: 96px;
  overflow: hidden;
  border: 1px solid rgba(55, 65, 81, 0.88);
  border-radius: 22px;
  background: #111827;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

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

.detail-poster dl {
  margin: 0;
  padding: 18px;
}

.detail-poster div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(55, 65, 81, 0.54);
}

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

.detail-poster dt {
  color: var(--subtle);
}

.detail-poster dd {
  margin: 0;
  text-align: right;
}

.detail-copy {
  min-width: 0;
}

.detail-copy h1 {
  margin-bottom: 16px;
}

.detail-copy .lead {
  font-size: 18px;
}

.detail-copy section {
  margin-top: 32px;
  padding: 24px;
  border: 1px solid rgba(55, 65, 81, 0.78);
  border-radius: 20px;
  background: rgba(17, 24, 39, 0.62);
}

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

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

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inline-links a {
  padding: 9px 12px;
  border: 1px solid rgba(55, 65, 81, 0.88);
  border-radius: 999px;
  color: var(--muted);
}

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

.site-footer {
  border-top: 1px solid rgba(55, 65, 81, 0.8);
  background: rgba(17, 24, 39, 0.82);
}

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

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

.footer-grid p,
.footer-grid a {
  display: block;
  margin: 0 0 9px;
  color: var(--subtle);
  line-height: 1.7;
}

.footer-grid a:hover {
  color: var(--orange);
}

.footer-brand {
  margin-bottom: 16px;
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 32px;
  color: #6b7280;
  border-top: 1px solid rgba(55, 65, 81, 0.5);
}

.empty-message {
  display: none;
  padding: 24px;
  border: 1px solid rgba(55, 65, 81, 0.8);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(31, 41, 55, 0.58);
}

.empty-message.is-visible {
  display: block;
}

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

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

  .hero-poster {
    display: none;
  }

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

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    position: absolute;
    top: 68px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(17, 24, 39, 0.98);
    box-shadow: var(--shadow);
  }

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

  .drop-panel {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    margin-top: 8px;
  }

  .nav-group:focus-within .drop-panel,
  .nav-group:hover .drop-panel {
    display: block;
    transform: none;
  }

  .nav-search {
    align-items: stretch;
    flex-direction: column;
  }

  .nav-search input {
    width: 100%;
  }

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

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

  .detail-poster {
    position: static;
    max-width: 360px;
  }

  .rank-item {
    grid-template-columns: 52px 72px minmax(0, 1fr);
  }

  .rank-item .mini-button {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .movie-grid,
  .movie-grid.wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .hero {
    min-height: 86vh;
  }

  .hero h1,
  .hero h2 {
    font-size: 42px;
  }

  .section {
    padding: 52px 0;
  }

  .section-header {
    display: block;
  }

  .section-actions {
    margin-top: 18px;
  }

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

  .catalog-hero {
    padding-top: 112px;
  }

  .rank-item {
    grid-template-columns: 44px 62px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .rank-num {
    font-size: 20px;
  }

  .player-start {
    width: 68px;
    height: 68px;
    font-size: 24px;
  }
}
