:root {
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111c31;
  --line: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --orange: #f97316;
  --red: #dc2626;
  --amber: #f59e0b;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.12), transparent 30%), var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
}

.header-inner,
.top-pills,
.footer-inner,
.footer-bottom,
.page-shell,
.hero,
.content-section,
.detail-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.35);
}

.logo-text {
  font-size: 1.28rem;
}

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

.nav-link,
.top-pill {
  color: #cbd5e1;
  border-radius: 10px;
  transition: 0.22s ease;
}

.nav-link {
  padding: 9px 13px;
  font-size: 0.92rem;
  font-weight: 650;
}

.nav-link:hover,
.nav-link.active,
.top-pill:hover {
  color: #fff;
  background: rgba(249, 115, 22, 0.18);
}

.header-search,
.mobile-search,
.hero-search,
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.hero-search input,
.filter-bar input,
.filter-bar select {
  border: 1px solid rgba(148, 163, 184, 0.22);
  outline: none;
  color: var(--text);
  background: rgba(15, 23, 42, 0.82);
  border-radius: 12px;
  padding: 11px 13px;
}

.header-search input {
  width: 220px;
}

.header-search button,
.mobile-search button,
.hero-search button,
.filter-bar button,
.primary-btn,
.ghost-btn,
.section-more,
.player-start {
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 750;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.header-search button,
.mobile-search button,
.hero-search button,
.filter-bar button,
.primary-btn,
.player-start {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 14px 32px rgba(249, 115, 22, 0.22);
}

.header-search button,
.mobile-search button,
.hero-search button,
.filter-bar button {
  padding: 11px 14px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
}

.ghost-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.primary-btn:hover,
.ghost-btn:hover,
.header-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.filter-bar button:hover,
.player-start:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #fff;
  background: rgba(15, 23, 42, 0.92);
}

.top-pills {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 0 12px;
}

.top-pill {
  flex: none;
  padding: 6px 12px;
  font-size: 0.82rem;
  background: rgba(51, 65, 85, 0.72);
}

.mobile-panel {
  display: none;
  padding: 14px 16px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.98);
}

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

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

.mobile-nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.hero {
  padding: 34px 0 28px;
}

.hero-stage {
  position: relative;
  min-height: 610px;
  border-radius: 28px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: var(--shadow);
}

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) 360px;
  gap: 46px;
  align-items: center;
  padding: 64px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.16);
  border: 1px solid rgba(251, 146, 60, 0.28);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 0.86rem;
  font-weight: 760;
}

.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.5rem, 7vw, 5.3rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero p {
  max-width: 680px;
  margin: 0;
  color: #dbeafe;
  font-size: clamp(1rem, 2vw, 1.28rem);
}

.hero-tags,
.tag-row,
.meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags {
  margin: 26px 0 30px;
}

.hero-tags span,
.tag-row span,
.meta-tags span {
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.14);
  border: 1px solid rgba(251, 146, 60, 0.2);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.8rem;
}

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

.hero-poster {
  position: relative;
  display: block;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transform: rotate(1.5deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
  background: #111827;
}

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  border-radius: 999px;
  padding: 8px 13px;
  font-weight: 800;
}

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 64px;
  bottom: 34px;
  display: flex;
  gap: 9px;
}

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

.hero-dot.active {
  width: 54px;
  background: #fff;
}

.hero-quick {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.78);
}

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

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.hero-links a {
  color: #cbd5e1;
  background: rgba(51, 65, 85, 0.88);
  border-radius: 999px;
  padding: 8px 12px;
}

.content-section,
.page-shell,
.detail-shell {
  padding: 38px 0;
}

.section-head,
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 22px;
}

.section-head h2,
.page-head h1,
.detail-title h1 {
  margin: 0;
  font-size: clamp(1.72rem, 3vw, 2.55rem);
  line-height: 1.15;
}

.section-head p,
.page-head p,
.detail-title p,
.card-body p,
.media-row p,
.footer-inner p,
.copy-block p {
  color: var(--muted);
}

.section-more {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 15px;
  color: #fff;
  background: rgba(249, 115, 22, 0.18);
  border: 1px solid rgba(249, 115, 22, 0.28);
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.86);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.32);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4.15;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-shade {
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(transparent, rgba(2, 6, 23, 0.9));
}

.play-chip,
.rank-badge {
  position: absolute;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  border-radius: 999px;
  font-weight: 800;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  font-size: 0.78rem;
}

.rank-badge {
  left: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}

.card-body {
  padding: 15px;
}

.card-meta,
.detail-meta,
.row-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #cbd5e1;
  font-size: 0.82rem;
}

.card-meta span,
.detail-meta span,
.row-top span {
  background: rgba(51, 65, 85, 0.78);
  border-radius: 999px;
  padding: 3px 8px;
}

.card-body h2,
.media-row h2 {
  margin: 10px 0 8px;
  font-size: 1.08rem;
  line-height: 1.28;
}

.card-body h2 a:hover,
.media-row h2 a:hover,
.footer-links a:hover {
  color: #fb923c;
}

.card-body p {
  margin: 0 0 12px;
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-card {
  border-radius: 22px;
  padding: 24px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.94));
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.category-card h2 {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.category-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.category-card span {
  color: #fed7aa;
  font-weight: 780;
}

.filter-bar {
  flex-wrap: wrap;
  margin: 0 0 24px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.8);
}

.filter-bar input {
  min-width: min(100%, 320px);
  flex: 1;
}

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

.media-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 15px;
  padding: 12px;
}

.row-poster {
  overflow: hidden;
  border-radius: 14px;
  background: #111827;
}

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

.media-row h2 {
  font-size: 1.08rem;
}

.media-row p {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.small-rank {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  border-radius: 9px;
  font-weight: 800;
}

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

.breadcrumb {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.player-card,
.info-card,
.side-card,
.copy-block {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.86);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

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

.player-video {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.player-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.82));
}

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

.player-start {
  position: relative;
  z-index: 2;
  min-width: 128px;
  min-height: 52px;
  padding: 0 24px;
  font-size: 1.02rem;
}

.detail-title,
.info-card,
.side-card,
.copy-block {
  padding: 22px;
}

.detail-title h1 {
  margin-bottom: 14px;
}

.detail-meta {
  margin-bottom: 18px;
}

.copy-block {
  margin-top: 22px;
}

.copy-block h2,
.side-card h2,
.info-card h2 {
  margin: 0 0 14px;
  font-size: 1.36rem;
}

.copy-block p {
  margin: 0 0 16px;
}

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

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

.side-card {
  margin-top: 18px;
}

.side-card .media-row {
  border-radius: 14px;
  box-shadow: none;
  background: rgba(2, 6, 23, 0.28);
}

.empty-state {
  display: none;
  padding: 26px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: 18px;
}

.site-footer {
  margin-top: 48px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.98));
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  padding: 40px 0 26px;
}

.footer-inner h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 14px;
}

.footer-links a {
  color: #cbd5e1;
}

.footer-bottom {
  padding: 18px 0 26px;
  color: #64748b;
  font-size: 0.9rem;
}

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

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

  .hero-content {
    padding: 44px;
  }

  .hero-poster {
    width: min(320px, 80%);
    transform: none;
  }

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

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

@media (max-width: 760px) {
  .desktop-nav,
  .top-pills {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .header-inner {
    min-height: 60px;
  }

  .hero {
    padding-top: 20px;
  }

  .hero-stage,
  .hero-content {
    min-height: 690px;
  }

  .hero-content {
    padding: 28px;
    align-content: center;
  }

  .hero-controls {
    left: 28px;
    bottom: 24px;
  }

  .hero-quick,
  .section-head,
  .page-head,
  .footer-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-search {
    align-items: stretch;
  }

  .hero-links {
    justify-content: flex-start;
  }

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

  .card-body {
    padding: 13px;
  }

  .media-row {
    grid-template-columns: 82px minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .header-inner,
  .top-pills,
  .footer-inner,
  .footer-bottom,
  .page-shell,
  .hero,
  .content-section,
  .detail-shell {
    width: min(100% - 22px, 1180px);
  }

  .logo-text {
    font-size: 1.08rem;
  }

  .hero-stage,
  .hero-content {
    min-height: 660px;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-search,
  .filter-bar,
  .mobile-search {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .detail-title,
  .info-card,
  .side-card,
  .copy-block {
    padding: 18px;
  }
}
