:root {
  --bg: #050505;
  --bg-soft: #0d1117;
  --panel: #111827;
  --panel-2: #1f2937;
  --line: rgba(255, 255, 255, 0.10);
  --text: #ffffff;
  --muted: #aeb6c5;
  --accent: #f59e0b;
  --accent-2: #ea580c;
  --red: #ef4444;
  --blue: #06b6d4;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #000000 0%, #0b0f18 50%, #000000 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #111827 0%, #000000 50%, #111827 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.nav-wrap {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 20px;
  background: linear-gradient(90deg, #fbbf24, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  color: #9ca3af;
  font-size: 12px;
  font-style: normal;
}

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

.desktop-nav a,
.mobile-nav a {
  padding: 10px 14px;
  border-radius: 12px;
  color: #d1d5db;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 16px;
}

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

.hero {
  position: relative;
  height: 72vh;
  min-height: 540px;
  overflow: hidden;
  background: #000000;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #000000 0%, rgba(0, 0, 0, 0.70) 42%, rgba(0, 0, 0, 0.15) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.55) 46%, rgba(0, 0, 0, 0.12) 100%);
}

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

.hero-label,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin-bottom: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.22);
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 32px;
  color: #d1d5db;
  font-size: 18px;
}

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

.primary-button,
.glass-button,
.search-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
}

.primary-button,
.search-panel button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 40px rgba(245, 158, 11, 0.24);
}

.primary-button:hover,
.search-panel button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.glass-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.plain-link {
  color: #fbbf24;
  font-weight: 700;
}

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

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

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

.main-wrap,
.page-main,
.detail-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 20px;
}

.content-section {
  margin: 0 0 64px;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
}

.section-more {
  color: #fbbf24;
  font-weight: 700;
}

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

.movie-list-row {
  display: grid;
  gap: 16px;
}

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.98), rgba(31, 41, 55, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.62);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
}

.movie-card-row {
  display: grid;
  grid-template-columns: 190px 1fr;
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111827;
}

.movie-card-row .card-cover {
  aspect-ratio: 16 / 10;
}

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

.movie-card:hover .card-cover img {
  transform: scale(1.06);
  filter: brightness(0.78);
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.86);
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
}

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

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--accent-2));
  color: #ffffff;
  font-size: 15px;
}

.card-body {
  padding: 17px;
}

.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 18px;
  font-weight: 800;
}

.card-title:hover {
  color: #fbbf24;
}

.card-meta {
  margin: 8px 0 10px;
  color: #9ca3af;
  font-size: 13px;
}

.card-desc {
  min-height: 46px;
  margin: 0 0 12px;
  color: #cbd5e1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag-row span,
.detail-tags span {
  color: #d1d5db;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
}

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

.category-tile,
.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: 22px;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.category-tile img,
.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.58);
  transition: transform .35s ease, filter .35s ease;
}

.category-tile:hover img,
.category-card:hover img {
  transform: scale(1.06);
  filter: brightness(0.72);
}

.category-tile span {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.88) 100%);
}

.category-tile strong,
.category-tile em,
.category-card div {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
}

.category-tile strong {
  bottom: 62px;
  font-size: 24px;
}

.category-tile em {
  bottom: 22px;
  color: #d1d5db;
  font-style: normal;
  font-size: 14px;
}

.category-card div {
  bottom: 20px;
}

.category-card h2 {
  margin: 0 0 8px;
}

.category-card p {
  margin: 0;
  color: #d1d5db;
}

.page-hero {
  min-height: 310px;
  padding: 70px 20px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.page-hero > div {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.compact-hero {
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, .16), transparent 34%),
    linear-gradient(135deg, #111827, #000000 72%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #d1d5db;
  font-size: 18px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.filter-bar a {
  padding: 10px 16px;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
  color: #9ca3af;
  font-size: 14px;
}

.breadcrumb a {
  color: #fbbf24;
}

.breadcrumb em {
  color: #d1d5db;
  font-style: normal;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.video-player,
.player-cover,
.player-cover img,
.player-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-player {
  object-fit: contain;
  background: #000000;
}

.player-cover {
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #000000;
  color: #ffffff;
  z-index: 3;
}

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

.player-cover img {
  object-fit: cover;
  filter: brightness(0.62);
}

.player-mask {
  background: radial-gradient(circle at center, rgba(245, 158, 11, .20), rgba(0, 0, 0, .45) 55%, rgba(0, 0, 0, .76));
}

.player-cover strong {
  position: relative;
  z-index: 4;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  margin: auto;
  top: calc(50% - 43px);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 20px 60px rgba(245, 158, 11, 0.36);
  font-size: 34px;
}

.detail-card,
.poster-card,
.info-card {
  margin-top: 22px;
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.98), rgba(31, 41, 55, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.detail-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  color: #fbbf24;
  font-size: 14px;
  font-weight: 800;
}

.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}

.lead-text {
  margin: 0 0 18px;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
  color: #d1d5db;
  font-size: 18px;
}

.detail-card h2 {
  margin: 28px 0 12px;
  font-size: 24px;
}

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

.poster-card {
  margin-top: 39px;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 18px;
}

.poster-card h2 {
  margin: 0 0 8px;
}

.poster-card p {
  color: #9ca3af;
}

.primary-button.full {
  width: 100%;
}

.info-card p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.info-card p:last-child {
  border-bottom: 0;
}

.info-card span {
  color: #9ca3af;
}

.search-panel {
  display: flex;
  width: min(760px, 100%);
  gap: 12px;
  margin-top: 28px;
}

.search-panel input {
  flex: 1;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  outline: none;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #050505;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 8px 0 0;
  color: #9ca3af;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #d1d5db;
}

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

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

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

  .poster-card {
    margin-top: 0;
  }
}

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

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

  .hero {
    min-height: 620px;
  }

  .hero-copy {
    justify-content: flex-end;
    padding-bottom: 92px;
  }

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

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

  .section-head,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-panel {
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .nav-wrap {
    height: 62px;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    font-size: 16px;
  }

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

  .main-wrap,
  .page-main,
  .detail-layout {
    padding: 32px 14px;
  }

  .page-hero {
    padding: 54px 14px;
  }
}
