:root {
  --slate-950: #020617;
  --slate-925: #07111f;
  --slate-900: #0f172a;
  --slate-850: #152034;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-100: #f1f5f9;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --red-600: #dc2626;
  --yellow-500: #eab308;
  --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.28);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--slate-950);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--slate-100);
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.14), transparent 36rem), var(--slate-900);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 18px;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange-500), var(--red-600));
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.26);
  transform: translateZ(0);
}

.brand:hover .brand-mark,
.footer-brand:hover .brand-mark {
  transform: scale(1.08);
}

.brand-name {
  color: #ffffff;
  font-size: 1.2rem;
  white-space: nowrap;
}

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

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  color: var(--slate-300);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

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

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #ffffff;
  background: rgba(51, 65, 85, 0.9);
}

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

.header-search input,
.mobile-search input,
.search-panel input {
  width: 250px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.88);
  color: #ffffff;
  outline: none;
  padding: 11px 14px;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.search-panel input:focus,
.filter-panel select:focus {
  border-color: var(--orange-500);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.16);
}

.header-search button,
.mobile-search button,
.primary-btn,
.filter-btn.is-active,
.player-button {
  border: 0;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--orange-500), var(--red-600));
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.25);
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(51, 65, 85, 0.88);
  cursor: pointer;
}

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

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

.mobile-menu.is-open {
  display: block;
}

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

.mobile-link {
  padding: 12px 14px;
}

.mobile-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  color: var(--slate-400);
  font-size: 0.88rem;
}

.mobile-chip,
.category-chip,
.hero-tags span,
.detail-pill,
.tag-list span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.88);
  color: var(--slate-200);
}

.mobile-chip,
.category-chip {
  padding: 6px 10px;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: var(--slate-950);
}

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.15)), linear-gradient(0deg, rgba(15, 23, 42, 1), transparent 38%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--orange-500);
  color: #ffffff;
  font-weight: 800;
}

.hero h1,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p,
.page-hero p,
.detail-title p {
  color: var(--slate-300);
  font-size: 1.13rem;
}

.hero p {
  max-width: 650px;
  margin: 18px 0 0;
}

.hero-tags,
.detail-meta,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin: 28px 0;
}

.hero-tags span,
.detail-pill,
.tag-list span {
  padding: 8px 12px;
  font-size: 0.92rem;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn:hover,
.player-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(249, 115, 22, 0.3);
}

.ghost-btn {
  border: 1px solid rgba(203, 213, 225, 0.26);
  border-radius: 14px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.42);
  font-weight: 800;
}

.ghost-btn:hover {
  background: rgba(51, 65, 85, 0.8);
}

.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-nav:hover {
  background: rgba(0, 0, 0, 0.75);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--orange-500);
}

.main-stack {
  padding: 56px 0 72px;
}

.section,
.category-section {
  margin-top: 64px;
}

.section:first-child,
.category-section:first-child {
  margin-top: 0;
}

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

.section-heading h2,
.filter-panel h2,
.detail-card h2,
.sidebar-card h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--slate-400);
}

.section-heading a {
  color: var(--orange-500);
  font-weight: 800;
  white-space: nowrap;
}

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

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

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

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

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 260px);
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 14px;
  scrollbar-width: none;
}

.scroll-row::-webkit-scrollbar {
  display: none;
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(30, 41, 59, 0.88);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border 0.24s ease;
}

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

.card-link {
  display: block;
  height: 100%;
}

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(51, 65, 85, 0.7), rgba(15, 23, 42, 0.95));
}

.movie-card-large .poster-frame,
.movie-card-wide .poster-frame {
  aspect-ratio: 16 / 9;
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.34s ease, filter 0.34s ease;
}

.movie-card:hover .poster-frame img {
  transform: scale(1.08);
  filter: brightness(0.72);
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  max-width: calc(100% - 24px);
  padding: 5px 9px;
  border-radius: 9px;
  background: var(--orange-500);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
}

.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--orange-500);
  color: #ffffff;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.poster-frame figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 36px 14px 14px;
  color: #ffffff;
  font-size: 0.86rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), transparent);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.movie-card:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

.card-body {
  padding: 14px;
}

.card-body h3 {
  display: -webkit-box;
  min-height: 44px;
  margin: 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 0.98rem;
  line-height: 1.38;
  transition: color 0.2s ease;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card:hover .card-body h3 {
  color: var(--orange-500);
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 10px;
  color: var(--slate-400);
  font-size: 0.82rem;
}

.feature-band {
  padding: 30px;
  border: 1px solid rgba(249, 115, 22, 0.18);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.16), rgba(220, 38, 38, 0.1), rgba(30, 41, 59, 0.8));
}

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

.compact-card {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.09);
  border-radius: var(--radius-md);
  background: rgba(30, 41, 59, 0.86);
  transition: transform 0.2s ease, background 0.2s ease;
}

.compact-card:hover {
  transform: translateX(4px);
  background: rgba(51, 65, 85, 0.92);
}

.compact-poster {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: var(--slate-700);
}

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

.compact-info strong,
.compact-info em {
  display: block;
}

.compact-info strong {
  color: #ffffff;
}

.compact-info em {
  margin-top: 3px;
  color: var(--slate-400);
  font-style: normal;
  font-size: 0.86rem;
}

.compact-score {
  color: var(--yellow-500);
  font-weight: 900;
}

.page-hero {
  padding: 68px 0;
  background: linear-gradient(120deg, rgba(234, 88, 12, 0.95), rgba(220, 38, 38, 0.92)), radial-gradient(circle at right, rgba(255, 255, 255, 0.22), transparent 28rem);
}

.page-hero p {
  max-width: 760px;
  margin: 14px 0 0;
}

.filter-panel,
.search-panel,
.detail-card,
.sidebar-card,
.player-card,
.category-card {
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(30, 41, 59, 0.9);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.filter-panel,
.search-panel {
  margin-bottom: 30px;
  padding: 24px;
}

.filter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.filter-actions,
.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  border: 0;
  border-radius: 14px;
  background: rgba(51, 65, 85, 0.88);
  color: var(--slate-300);
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}

.filter-panel select {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  padding: 10px 12px;
  outline: none;
}

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

.category-card {
  display: flex;
  min-height: 200px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  transition: transform 0.22s ease, border 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(249, 115, 22, 0.35);
}

.category-card h2 {
  margin: 0 0 10px;
  color: #ffffff;
}

.category-card p {
  color: var(--slate-400);
}

.category-card span {
  color: var(--orange-500);
  font-weight: 900;
}

.search-panel form {
  display: flex;
  gap: 12px;
}

.search-panel input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1.05rem;
}

.search-panel button {
  min-width: 118px;
}

.search-empty {
  display: none;
  padding: 46px 20px;
  border-radius: var(--radius-lg);
  color: var(--slate-400);
  text-align: center;
  background: rgba(30, 41, 59, 0.78);
}

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

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

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

.breadcrumb a:hover {
  color: var(--orange-500);
}

.player-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 26px;
}

.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-position: center;
  background-size: cover;
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-cover::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.25));
}

.player-card.is-playing .player-cover {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.player-button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 0;
  font-size: 1.05rem;
}

.detail-card,
.sidebar-card {
  padding: 24px;
}

.detail-title {
  margin-bottom: 24px;
}

.detail-title p {
  margin: 12px 0 0;
}

.detail-meta {
  margin: 20px 0;
}

.detail-card p {
  color: var(--slate-300);
}

.detail-card h2,
.sidebar-card h2 {
  margin-bottom: 14px;
}

.review-box {
  margin-top: 22px;
  padding: 18px;
  border-left: 4px solid var(--orange-500);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.62);
}

.sidebar-card {
  margin-bottom: 22px;
}

.related-stack {
  display: grid;
  gap: 12px;
}

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

.site-footer {
  margin-top: 72px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
  gap: 30px;
  padding: 42px 0;
}

.footer-grid h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: var(--slate-400);
}

.footer-grid p {
  margin: 12px 0 0;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li + li {
  margin-top: 8px;
}

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

.footer-bottom {
  padding: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  text-align: center;
  font-size: 0.9rem;
}

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

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

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

@media (max-width: 900px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero,
  .hero-bg {
    min-height: 560px;
  }

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

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

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .brand-name {
    font-size: 1rem;
  }

  .hero,
  .hero-bg {
    min-height: 620px;
  }

  .hero-copy {
    padding: 80px 0 70px;
  }

  .hero-tags span,
  .detail-pill,
  .tag-list span {
    font-size: 0.82rem;
    padding: 6px 9px;
  }

  .hero-actions,
  .detail-actions,
  .search-panel form,
  .filter-top {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-nav {
    display: none;
  }

  .main-stack {
    padding-top: 34px;
  }

  .section,
  .category-section {
    margin-top: 44px;
  }

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

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

  .card-body {
    padding: 11px;
  }

  .card-body h3 {
    min-height: 40px;
    font-size: 0.9rem;
  }

  .movie-meta {
    gap: 6px;
    font-size: 0.74rem;
  }

  .feature-band,
  .filter-panel,
  .search-panel,
  .detail-card,
  .sidebar-card {
    padding: 18px;
  }

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

  .compact-card {
    grid-template-columns: 62px 1fr auto;
  }
}
