:root {
  color-scheme: dark;
  --bg: #05070c;
  --bg-soft: #0c111d;
  --bg-card: rgba(17, 24, 39, 0.78);
  --line: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #a3aab8;
  --muted-2: #6b7280;
  --orange: #f97316;
  --red: #dc2626;
  --gold: #facc15;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --radius: 22px;
}

* {
  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 30rem),
    linear-gradient(180deg, #111827 0%, #05070c 46%, #000 100%);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.nav-wrap {
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.34);
}

.brand-text {
  font-size: 1.28rem;
  background: linear-gradient(90deg, #fb923c, #ef4444);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.main-nav a,
.mobile-nav a {
  padding: 10px 14px;
  border-radius: 12px;
  color: #d1d5db;
  font-size: 0.95rem;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.mobile-nav a:hover,
.main-nav a.is-active,
.mobile-nav a.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.95), rgba(220, 38, 38, 0.95));
}

.top-search,
.mobile-search {
  display: flex;
  gap: 8px;
  align-items: center;
}

.top-search input,
.mobile-search input,
.catalog-toolbar input,
.catalog-toolbar select {
  border: 1px solid rgba(148, 163, 184, 0.22);
  outline: 0;
  color: var(--text);
  background: rgba(15, 23, 42, 0.86);
  border-radius: 14px;
  padding: 11px 14px;
  min-width: 210px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input:focus,
.mobile-search input:focus,
.catalog-toolbar input:focus,
.catalog-toolbar select:focus {
  border-color: rgba(249, 115, 22, 0.9);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.13);
}

.top-search button,
.mobile-search button,
.primary-btn,
.ghost-btn,
.catalog-toolbar button,
.player-button {
  border: 0;
  cursor: pointer;
  color: #fff;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search button,
.mobile-search button,
.catalog-toolbar button,
.primary-btn,
.player-button {
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 15px 35px rgba(249, 115, 22, 0.25);
}

.top-search button,
.mobile-search button {
  padding: 11px 16px;
}

.primary-btn,
.ghost-btn,
.player-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
}

.ghost-btn {
  background: rgba(31, 41, 55, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.22);
  backdrop-filter: blur(12px);
}

.primary-btn:hover,
.ghost-btn:hover,
.player-button:hover,
.top-search button:hover,
.mobile-search button:hover,
.catalog-toolbar button:hover {
  transform: translateY(-2px) scale(1.02);
}

.menu-toggle {
  display: none;
  border: 0;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(31, 41, 55, 0.85);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 14px 24px 22px;
  border-top: 1px solid var(--line);
  background: rgba(7, 10, 18, 0.96);
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.hero-slider {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  background: #000;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.78) 42%, rgba(0, 0, 0, 0.12) 100%),
    linear-gradient(0deg, #05070c 0%, rgba(5, 7, 12, 0.15) 46%, rgba(5, 7, 12, 0.25) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 96px 24px 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 0 16px;
  padding: 7px 14px;
  color: #fdba74;
  font-weight: 800;
  font-size: 0.88rem;
  border: 1px solid rgba(249, 115, 22, 0.5);
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.14);
  backdrop-filter: blur(10px);
}

.hero-content h1,
.hero-content h2 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 950;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.hero-content h3 {
  margin: 16px 0 0;
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  color: #fb923c;
}

.hero-content p:not(.eyebrow) {
  max-width: 720px;
  margin: 20px 0 0;
  color: #d1d5db;
  font-size: 1.08rem;
}

.hero-meta,
.detail-meta,
.movie-meta,
.info-row,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

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

.hero-meta span,
.detail-meta span,
.info-row span,
.tag-list span,
.category-chip {
  border-radius: 999px;
  padding: 6px 11px;
  color: #e5e7eb;
  background: rgba(31, 41, 55, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

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

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  width: min(1280px, calc(100% - 48px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

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

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

.hero-dot.is-active {
  background: linear-gradient(90deg, var(--orange), var(--red));
}

.hero-arrows {
  display: flex;
  gap: 10px;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  color: #fff;
  background: rgba(15, 23, 42, 0.65);
  cursor: pointer;
}

.section,
.catalog-section,
.detail-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 24px;
}

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

.section-header h2,
.catalog-header h1,
.detail-copy h1,
.detail-copy h2 {
  margin: 0;
  line-height: 1.15;
}

.section-header h2,
.catalog-header h1,
.detail-copy h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
}

.section-header p,
.catalog-header p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
}

.link-more {
  color: #fb923c;
  font-weight: 800;
  white-space: nowrap;
}

.movie-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scrollbar-width: thin;
}

.movie-row .movie-card {
  flex: 0 0 245px;
}

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

.movie-card {
  position: relative;
  display: grid;
  gap: 13px;
  min-width: 0;
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(15, 23, 42, 0.56);
  border: 1px solid rgba(148, 163, 184, 0.1);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(249, 115, 22, 0.42);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.poster-box {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111827;
}

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

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 48%);
}

.score,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.score {
  right: 12px;
  padding: 7px 9px;
  background: rgba(0, 0, 0, 0.66);
}

.rank-badge {
  left: 12px;
  min-width: 38px;
  padding: 8px 9px;
  text-align: center;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.hover-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(249, 115, 22, 0.9);
  transform: translate(-50%, -50%) scale(0.75);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.movie-info {
  display: grid;
  gap: 7px;
  padding: 0 14px 16px;
}

.movie-info strong {
  overflow: hidden;
  font-size: 1rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.movie-line {
  color: var(--muted);
  font-size: 0.88rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta em {
  color: #cbd5e1;
  font-size: 0.78rem;
  font-style: normal;
}

.movie-card.is-compact {
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: stretch;
}

.movie-card.is-compact .poster-box {
  aspect-ratio: auto;
  min-height: 130px;
}

.movie-card.is-compact .movie-info {
  padding: 14px 14px 14px 0;
  align-content: center;
}

.dark-band {
  background: linear-gradient(180deg, rgba(5, 7, 12, 0.92), rgba(17, 24, 39, 0.84));
}

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

.category-chip {
  display: grid;
  gap: 7px;
  min-height: 116px;
  padding: 20px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(220, 38, 38, 0.08)),
    rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(249, 115, 22, 0.18);
}

.category-chip strong {
  font-size: 1.12rem;
}

.category-chip span {
  color: var(--muted);
}

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

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 24px 0 30px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.68);
}

.catalog-toolbar input {
  flex: 1 1 260px;
}

.catalog-toolbar select {
  min-width: 160px;
}

.catalog-toolbar button {
  padding: 11px 16px;
}

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

.category-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.7);
  box-shadow: var(--shadow);
}

.category-card h2 {
  margin: 0;
  font-size: 1.35rem;
}

.category-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.category-image {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 18px;
  background: #111827;
}

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

.category-image span {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.45), transparent);
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.category-samples a {
  padding: 5px 9px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.12);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: #fb923c;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.player-frame video,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-cover {
  border: 0;
  color: #fff;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.25);
}

.player-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.1)),
    radial-gradient(circle at center, rgba(249, 115, 22, 0.18), transparent 20rem);
}

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

.player-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  min-width: 150px;
}

.player-button:hover {
  transform: translate(-50%, -50%) scale(1.04);
}

.detail-side,
.detail-copy,
.related-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.68);
  box-shadow: var(--shadow);
}

.detail-side {
  padding: 16px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 18px;
  background: #111827;
}

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

.detail-side h2 {
  margin: 16px 0 10px;
  font-size: 1.35rem;
}

.detail-meta,
.info-row,
.tag-list {
  margin-top: 12px;
}

.detail-copy {
  margin-top: 26px;
  padding: 28px;
}

.detail-copy p {
  color: #d1d5db;
}

.detail-copy h2 {
  margin-top: 30px;
  font-size: 1.55rem;
}

.related-box {
  margin-top: 26px;
  padding: 24px;
}

.related-box h2 {
  margin: 0 0 18px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(7, 10, 18, 0.96);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 52px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 34px;
}

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

.footer-grid p,
.footer-grid a {
  color: var(--muted);
}

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

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

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px 34px;
  color: var(--muted-2);
  font-size: 0.9rem;
}

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

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

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

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

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .hero-slider {
    min-height: 720px;
  }

  .hero-content {
    padding-top: 80px;
  }

  .section-header,
  .catalog-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .category-strip,
  .rank-list,
  .watch-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .nav-wrap {
    height: 66px;
    padding: 0 16px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

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

  .hero-content,
  .section,
  .catalog-section,
  .detail-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 2.65rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions a {
    flex: 1 1 100%;
  }

  .hero-controls {
    bottom: 22px;
  }

  .hero-arrows {
    display: none;
  }

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

  .movie-row .movie-card {
    flex-basis: 185px;
  }

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

  .category-image {
    min-height: 260px;
  }

  .catalog-toolbar input,
  .catalog-toolbar select,
  .catalog-toolbar button,
  .mobile-search input,
  .mobile-search button {
    width: 100%;
  }

  .player-button {
    min-width: 132px;
  }
}
