:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --orange-400: #fb923c;
  --white: #ffffff;
  --shadow-lg: 0 10px 15px -3px rgb(15 23 42 / 0.14), 0 4px 6px -4px rgb(15 23 42 / 0.18);
  --shadow-xl: 0 20px 25px -5px rgb(15 23 42 / 0.18), 0 8px 10px -6px rgb(15 23 42 / 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--slate-800);
  background: linear-gradient(135deg, var(--slate-50), var(--slate-100));
  line-height: 1.6;
}

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;
  color: var(--white);
  background: rgb(15 23 42 / 0.96);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

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

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

.brand {
  font-size: 20px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  box-shadow: 0 12px 24px rgb(249 115 22 / 0.35);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
}

.nav-link {
  color: rgb(255 255 255 / 0.86);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--orange-400);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgb(255 255 255 / 0.08);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.mobile-nav {
  display: none;
  padding: 14px 24px 22px;
  border-top: 1px solid rgb(255 255 255 / 0.09);
  background: var(--slate-900);
}

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

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.75s ease;
}

.hero-slide.active {
  opacity: 1;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 35%, rgb(249 115 22 / 0.28), transparent 32%), linear-gradient(90deg, rgb(15 23 42 / 0.92), rgb(15 23 42 / 0.68), rgb(15 23 42 / 0.86));
}

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

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

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgb(249 115 22 / 0.18);
  border: 1px solid rgb(251 146 60 / 0.35);
  font-weight: 700;
}

.hero h1 {
  margin: 22px 0 20px;
  font-size: clamp(42px, 8vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 30px;
  color: rgb(226 232 240 / 0.92);
  font-size: clamp(18px, 2.4vw, 24px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-primary {
  color: var(--white);
  background: var(--orange-500);
  box-shadow: 0 14px 30px rgb(249 115 22 / 0.34);
}

.btn-primary:hover {
  background: var(--orange-600);
}

.btn-ghost {
  color: var(--white);
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.16);
}

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

.hero-dot {
  width: 36px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.35);
  cursor: pointer;
}

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

.section,
.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px;
}

.section.tight {
  padding-top: 42px;
}

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

.section-title {
  margin: 10px 0 0;
  color: var(--slate-800);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.18;
}

.section-desc {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--slate-600);
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.poster-link {
  position: relative;
  display: block;
  height: 230px;
  overflow: hidden;
  background: var(--slate-800);
}

.featured .poster-link {
  height: 270px;
}

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

.movie-card:hover img,
.media-item:hover img {
  transform: scale(1.08);
}

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgb(2 6 23 / 0.72));
}

.duration,
.rank-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 9px;
  border-radius: 8px;
  color: var(--white);
  background: rgb(2 6 23 / 0.75);
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  right: auto;
  left: 12px;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
}

.card-body {
  padding: 20px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.card-tags span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--orange-600);
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

.movie-card h2,
.movie-card h3 {
  margin: 0 0 9px;
  color: var(--slate-800);
  font-size: 18px;
  line-height: 1.35;
}

.movie-card a:hover,
.media-item:hover strong,
.category-card:hover h2 {
  color: var(--orange-500);
}

.movie-card p {
  min-height: 44px;
  margin: 0 0 16px;
  color: var(--slate-600);
  font-size: 14px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--slate-500);
  font-size: 13px;
}

.card-meta strong {
  color: var(--orange-500);
}

.band {
  background: linear-gradient(90deg, var(--slate-800), var(--slate-900));
  color: var(--white);
}

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

.category-card {
  min-height: 190px;
  padding: 28px;
  border-radius: 22px;
  color: var(--white);
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.12);
  box-shadow: 0 14px 30px rgb(2 6 23 / 0.16);
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, background 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px) scale(1.01);
  background: var(--orange-500);
}

.category-card i {
  display: block;
  margin-bottom: 18px;
  font-style: normal;
  font-size: 40px;
}

.category-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: rgb(255 255 255 / 0.8);
  font-size: 14px;
}

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

.media-item {
  display: grid;
  grid-template-columns: auto 104px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.media-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-xl);
}

.media-item img {
  width: 104px;
  height: 68px;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.media-rank {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  font-weight: 900;
}

.media-item strong {
  display: block;
  color: var(--slate-800);
}

.media-item em {
  display: block;
  margin-top: 4px;
  color: var(--slate-500);
  font-style: normal;
  font-size: 13px;
}

.media-item b {
  color: var(--orange-500);
}

.page-hero {
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-800), var(--slate-900));
}

.page-hero .page-shell {
  padding-top: 58px;
  padding-bottom: 58px;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.15;
}

.page-hero p {
  max-width: 850px;
  margin: 0;
  color: rgb(226 232 240 / 0.88);
  font-size: 18px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding: 16px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.search-box {
  flex: 1 1 300px;
  position: relative;
}

.search-box input,
.toolbar select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 0 15px;
  color: var(--slate-800);
  background: var(--slate-50);
  outline: none;
}

.toolbar select {
  flex: 0 0 190px;
}

.search-box input:focus,
.toolbar select:focus {
  border-color: var(--orange-400);
  box-shadow: 0 0 0 3px rgb(249 115 22 / 0.16);
}

.empty-state {
  display: none;
  padding: 50px 20px;
  text-align: center;
  color: var(--slate-500);
}

.empty-state.show {
  display: block;
}

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

.breadcrumb {
  margin-bottom: 18px;
  color: var(--slate-500);
  font-size: 14px;
}

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

.detail-card,
.side-card {
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.detail-card {
  overflow: hidden;
}

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

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  z-index: 3;
}

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

.player-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.play-ring {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: rgb(249 115 22 / 0.92);
  box-shadow: 0 20px 50px rgb(249 115 22 / 0.42);
  font-size: 34px;
}

.detail-body {
  padding: 28px;
}

.detail-body h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.15;
  color: var(--slate-800);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 24px;
}

.detail-section {
  margin-top: 28px;
}

.detail-section h2,
.side-card h2 {
  margin: 0 0 12px;
  color: var(--slate-800);
  font-size: 24px;
}

.detail-section p {
  color: var(--slate-600);
  font-size: 16px;
}

.side-card {
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 88px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--slate-100);
}

.related-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.related-item img {
  width: 96px;
  height: 62px;
  border-radius: 12px;
  object-fit: cover;
}

.related-item strong {
  display: block;
  color: var(--slate-800);
  line-height: 1.35;
}

.related-item span {
  display: block;
  margin-top: 5px;
  color: var(--slate-500);
  font-size: 12px;
}

.site-footer {
  color: rgb(226 232 240 / 0.86);
  background: var(--slate-900);
  padding: 56px 24px 24px;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 32px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

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

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

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

.footer-bottom {
  max-width: 1280px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 0.08);
  text-align: center;
  color: rgb(226 232 240 / 0.7);
  font-size: 14px;
}

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

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

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

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

  .side-card {
    position: static;
  }
}

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

  .menu-button {
    display: block;
  }

  .nav-wrap {
    padding: 0 16px;
  }

  .brand {
    font-size: 18px;
  }

  .hero {
    height: 560px;
  }

  .section,
  .page-shell {
    padding: 48px 16px;
  }

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

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

  .toolbar select {
    flex: 1 1 100%;
  }

  .media-item {
    grid-template-columns: 42px 82px 1fr;
  }

  .media-item img {
    width: 82px;
    height: 58px;
  }

  .media-item b {
    display: none;
  }

  .detail-body {
    padding: 22px;
  }

  .play-ring {
    width: 76px;
    height: 76px;
    font-size: 28px;
  }
}
