:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--slate-50), var(--slate-100));
  color: var(--slate-900);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    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;
  color: var(--white);
  background: linear-gradient(
    90deg,
    var(--slate-950),
    var(--slate-800),
    var(--slate-950)
  );
  border-bottom: 1px solid rgba(203, 213, 225, 0.14);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.3);
}

.nav-wrap {
  width: min(1280px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.35);
}

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

.brand-text strong,
.footer-brand {
  font-size: 21px;
  letter-spacing: 0.02em;
}

.brand-text small {
  margin-top: 4px;
  color: var(--slate-300);
  font-size: 12px;
}

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

.nav-link {
  padding: 9px 13px;
  border-radius: 12px;
  color: var(--slate-300);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: 0.25s ease;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  color: var(--slate-300);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: 0.25s ease;
}

.icon-button:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

.mobile-only,
.mobile-nav,
.search-panel {
  display: none;
}

.mobile-nav.is-open,
.search-panel.is-open {
  display: block;
}

.mobile-nav {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--slate-300);
}

.mobile-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.search-panel {
  border-top: 1px solid rgba(203, 213, 225, 0.14);
}

.search-box {
  position: relative;
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
}

.search-box input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 16px;
  outline: none;
  color: var(--slate-900);
  background: var(--white);
  padding: 13px 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.search-results {
  position: absolute;
  top: calc(100% - 10px);
  left: 0;
  right: 0;
  max-height: 420px;
  overflow-y: auto;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.search-results a {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  color: var(--slate-900);
  border-bottom: 1px solid var(--slate-100);
}

.search-results span {
  color: var(--slate-500);
  font-size: 13px;
  white-space: nowrap;
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(
      circle at 20% 10%,
      rgba(245, 158, 11, 0.34),
      transparent 28%
    ),
    linear-gradient(90deg, var(--slate-950), #3b2508, var(--slate-900));
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 34px,
    rgba(255, 255, 255, 0.18) 35px,
    rgba(255, 255, 255, 0.18) 70px
  );
}

.hero-slider {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  min-height: 660px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: center;
  gap: 60px;
  padding: 82px 0 96px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero-copy h1 {
  margin: 16px 0 0;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  background: linear-gradient(
    90deg,
    var(--amber-400),
    #fff7ed,
    var(--amber-400)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy h2 {
  margin: 22px 0 0;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.1;
}

.hero-copy p {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--slate-300);
  font-size: clamp(17px, 2vw, 22px);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  color: var(--amber-400);
  background: rgba(245, 158, 11, 0.12);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--slate-100);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.tag-row span {
  color: var(--slate-600);
  background: var(--slate-100);
}

.tag-row.large span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 800;
  transition: 0.25s ease;
}

.primary-btn {
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-500), var(--amber-600));
  box-shadow: 0 15px 30px rgba(245, 158, 11, 0.35);
}

.primary-btn:hover,
.movie-card:hover,
.category-tile:hover,
.rank-item:hover {
  transform: translateY(-4px);
}

.ghost-btn {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.hero-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.48);
}

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

.hero-poster::after,
.card-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.72));
}

.hero-poster span,
.card-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  color: var(--amber-600);
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%);
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 46px;
  display: flex;
  gap: 10px;
}

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

.hero-dot.is-active {
  width: 36px;
  background: var(--amber-400);
}

.section {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

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

.section-head h2,
.page-hero h1,
.detail-block h2,
.detail-side h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-head a {
  color: var(--amber-600);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
  transition: 0.25s ease;
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--slate-800);
}

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

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

.movie-card:hover .card-cover img {
  transform: scale(1.08);
}

.card-play {
  width: 54px;
  height: 54px;
  opacity: 0;
  transition: 0.25s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
}

.card-badge {
  position: absolute;
  z-index: 3;
  left: 12px;
  bottom: 12px;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber-500);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 18px;
}

.card-body h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.card-body p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 52px;
  overflow: hidden;
  margin: 10px 0 14px;
  color: var(--slate-600);
  font-size: 14px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 700;
}

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

.category-tile,
.category-overview-main {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 28px;
  color: var(--white);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: 0.25s ease;
}

.category-tile span,
.category-overview-main span {
  font-size: 32px;
}

.category-tile strong,
.category-overview-main h2 {
  margin: 8px 0 0;
  font-size: 24px;
}

.category-tile em,
.category-overview-main strong {
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
}

.tile-orange,
.tile-amber {
  background: linear-gradient(135deg, #f59e0b, #dc2626);
}

.tile-blue {
  background: linear-gradient(135deg, #3b82f6, #0891b2);
}

.tile-green,
.tile-emerald {
  background: linear-gradient(135deg, #22c55e, #059669);
}

.tile-rose {
  background: linear-gradient(135deg, #f43f5e, #db2777);
}

.tile-purple {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.tile-slate {
  background: linear-gradient(135deg, #334155, #0f172a);
}

.page-hero {
  color: var(--white);
  background: linear-gradient(
    90deg,
    var(--slate-950),
    #3b2508,
    var(--slate-900)
  );
  padding: 78px max(16px, calc((100vw - 1280px) / 2)) 82px;
}

.page-hero p {
  max-width: 760px;
  color: var(--slate-300);
  font-size: 19px;
}

.category-overview-card {
  overflow: hidden;
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.category-overview-main {
  border-radius: 0;
  box-shadow: none;
}

.category-overview-main p {
  color: rgba(255, 255, 255, 0.82);
}

.mini-row {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.small-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 74px;
  border-radius: 16px;
  background: var(--slate-50);
  padding: 8px;
  font-weight: 800;
}

.small-card img {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
}

.small-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  margin-bottom: 24px;
}

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

.rank-list {
  display: grid;
  gap: 12px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 48px 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 22px;
  background: var(--white);
  padding: 10px 14px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
  transition: 0.25s ease;
}

.rank-num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
  font-weight: 900;
}

.rank-item img {
  width: 74px;
  height: 74px;
  border-radius: 16px;
  object-fit: cover;
}

.rank-info {
  min-width: 0;
}

.rank-info strong,
.rank-info em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info em,
.rank-views {
  color: var(--slate-500);
  font-size: 13px;
  font-style: normal;
}

.watch-hero {
  color: var(--white);
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(245, 158, 11, 0.26),
      transparent 28%
    ),
    linear-gradient(90deg, var(--slate-950), var(--slate-900));
  padding: 54px 0;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(320px, 0.58fr);
  gap: 34px;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  align-items: center;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.44);
}

.player-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--amber-600);
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0.16),
    rgba(2, 6, 23, 0.66)
  );
  cursor: pointer;
}

.player-cover span {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  font-size: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.watch-info h1 {
  margin: 14px 0 12px;
  font-size: clamp(32px, 4.8vw, 58px);
  line-height: 1.05;
}

.watch-info p {
  color: var(--slate-300);
  font-size: 18px;
}

.crumb {
  color: var(--amber-400);
  font-weight: 900;
}

.watch-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.watch-meta span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  padding: 7px 12px;
  font-weight: 800;
}

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

.detail-main,
.detail-side {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.07);
}

.detail-main {
  padding: 28px;
}

.detail-side {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.detail-block + .detail-block {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--slate-100);
}

.detail-block p {
  color: var(--slate-700);
  font-size: 18px;
}

.info-table {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px 18px;
  margin-top: 16px;
}

.info-table span {
  color: var(--slate-500);
}

.related-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.site-footer {
  color: var(--slate-300);
  background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
  margin-top: 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
}

.footer-grid h2 {
  color: var(--white);
  font-size: 18px;
}

.footer-brand {
  display: inline-block;
  color: var(--white);
  font-weight: 900;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--amber-400);
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid rgba(203, 213, 225, 0.12);
  padding: 18px 0 28px;
  color: var(--slate-500);
}

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

  .mobile-only {
    display: grid;
  }

  .hero-slide,
  .watch-layout,
  .detail-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-poster {
    width: min(420px, 100%);
  }

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

  .rank-list.compact {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }
}

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

  .brand-text small {
    display: none;
  }

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

  .hero-slide {
    gap: 34px;
    padding: 54px 0 82px;
  }

  .section {
    padding: 38px 0;
  }

  .section-head,
  .filter-bar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .feature-grid,
  .category-grid,
  .overview-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 42px 58px minmax(0, 1fr);
  }

  .rank-views {
    display: none;
  }

  .watch-hero {
    padding: 28px 0;
  }
}
