:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --orange-600: #ea580c;
  --rose-500: #f43f5e;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(15, 23, 42, .12);
  --shadow-strong: 0 24px 70px rgba(15, 23, 42, .24);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--slate-800);
  background: linear-gradient(135deg, #f8fafc 0%, #fafaf9 45%, #f1f5f9 100%);
  min-height: 100vh;
}

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

img {
  display: block;
  max-width: 100%;
  background: linear-gradient(135deg, #1e293b, #78350f);
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, #1e293b 0%, #292524 52%, #1e293b 100%);
  border-bottom: 1px solid rgba(245, 158, 11, .22);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .22);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 16px 30px rgba(234, 88, 12, .28);
  transform: translateZ(0);
  transition: transform .28s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(-4deg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .02em;
  color: transparent;
  background: linear-gradient(90deg, var(--amber-400), var(--orange-600));
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: #cbd5e1;
}

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

.desktop-nav a,
.mobile-nav a {
  border-radius: 12px;
  padding: 10px 14px;
  color: #f8fafc;
  font-weight: 650;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, .1);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 10px 24px 18px;
  background: rgba(15, 23, 42, .98);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

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

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: var(--slate-900);
  color: #ffffff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -35% -20%;
  height: 360px;
  background: radial-gradient(circle, rgba(245, 158, 11, .26), transparent 65%);
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  min-height: 720px;
  opacity: 0;
  visibility: hidden;
  background-size: cover;
  background-position: center;
  transition: opacity .8s ease, visibility .8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-inner {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 56px;
  position: relative;
  z-index: 2;
  padding: 96px 0 150px;
}

.eyebrow {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 12px;
  color: #92400e;
  background: rgba(251, 191, 36, .18);
  border: 1px solid rgba(245, 158, 11, .22);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #fde68a;
  background: rgba(245, 158, 11, .18);
}

.hero h1 {
  margin: 24px 0 0;
  font-size: clamp(34px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -.05em;
  max-width: 860px;
}

.hero h2 {
  margin: 18px 0 0;
  font-size: clamp(26px, 3.2vw, 42px);
  color: #fbbf24;
}

.hero p {
  margin: 18px 0 0;
  max-width: 760px;
  font-size: 18px;
  line-height: 1.8;
  color: #e2e8f0;
}

.hero-tags,
.detail-meta,
.movie-meta,
.tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

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

.hero-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #fff7ed;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .14);
}

.hero-actions,
.page-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn-primary,
.btn-ghost,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 850;
  min-height: 48px;
  padding: 0 22px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.btn-primary {
  color: #ffffff;
  border: 0;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 18px 34px rgba(234, 88, 12, .28);
  cursor: pointer;
}

.btn-primary:hover,
.btn-ghost:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(12px);
}

.page-actions .btn-ghost {
  color: var(--slate-800);
  border-color: rgba(15, 23, 42, .14);
  background: rgba(255, 255, 255, .86);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-strong);
  transform: rotate(2deg);
  border: 1px solid rgba(255, 255, 255, .18);
}

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

.hero-poster span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: auto;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(245, 158, 11, .9);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .32);
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .42);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}

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

.hero-strip {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 4;
  width: min(1120px, calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.hero-mini-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 74px;
  border-radius: 18px;
  padding: 10px;
  color: #ffffff;
  background: rgba(15, 23, 42, .68);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(18px);
  transition: transform .25s ease, background .25s ease;
}

.hero-mini-card:hover {
  transform: translateY(-4px);
  background: rgba(15, 23, 42, .86);
}

.hero-mini-card img {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
}

.hero-mini-card span {
  font-weight: 800;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.section-light,
.section-warm {
  width: 100%;
  max-width: none;
  padding-left: max(24px, calc((100vw - 1280px) / 2));
  padding-right: max(24px, calc((100vw - 1280px) / 2));
}

.section-light {
  background: rgba(255, 255, 255, .7);
}

.section-warm {
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
}

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

.section-heading span {
  color: var(--amber-600);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(26px, 3vw, 40px);
  color: var(--slate-800);
  letter-spacing: -.03em;
}

.section-heading > a,
.text-link {
  color: var(--amber-600);
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform .35s ease, box-shadow .35s ease;
}

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

.movie-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--slate-900);
}

.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}

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

.movie-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, .8), rgba(2, 6, 23, .12));
  transition: opacity .3s ease;
}

.movie-card:hover .movie-cover::after {
  opacity: 1;
}

.type-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
  background: rgba(15, 23, 42, .8);
  backdrop-filter: blur(10px);
}

.rank-badge {
  left: auto;
  right: 12px;
  color: #451a03;
  background: linear-gradient(135deg, #fef3c7, #f59e0b);
}

.play-mark {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: auto;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(245, 158, 11, .94);
  transform: scale(.4);
  opacity: 0;
  transition: transform .28s ease, opacity .28s ease;
}

.movie-card:hover .play-mark {
  transform: scale(1);
  opacity: 1;
}

.movie-card-body {
  padding: 18px;
}

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

.movie-card h3 a:hover {
  color: var(--amber-600);
}

.movie-card p {
  margin: 10px 0 0;
  color: var(--slate-600);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  margin-top: 12px;
  gap: 8px;
  color: var(--slate-500);
  font-size: 13px;
}

.movie-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #cbd5e1;
}

.tag-row {
  margin-top: 12px;
}

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

.movie-card-small .movie-card-body {
  padding: 14px;
}

.movie-card-small h3 {
  font-size: 16px;
}

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

.category-tile,
.category-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}

.category-tile {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  color: #ffffff;
}

.category-tile:hover,
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, .92), rgba(2, 6, 23, .2));
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 1;
}

.category-tile span {
  font-size: 24px;
  font-weight: 900;
}

.category-tile p {
  margin: 8px 0 0;
  color: #e2e8f0;
  line-height: 1.65;
}

.page-hero {
  padding: 86px max(24px, calc((100vw - 1280px) / 2));
  background: radial-gradient(circle at 20% 10%, rgba(245, 158, 11, .18), transparent 34%), linear-gradient(135deg, #f8fafc, #fff7ed);
}

.page-hero-slim,
.page-hero-rank,
.page-hero-search {
  border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.page-hero h1 {
  margin: 18px 0 0;
  max-width: 900px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.page-hero p {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--slate-600);
  font-size: 18px;
  line-height: 1.8;
}

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

.category-card {
  padding: 18px;
}

.category-card-media {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.category-card-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
}

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

.category-card p {
  margin: 10px 0 12px;
  color: var(--slate-600);
  line-height: 1.7;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(150px, 190px));
  gap: 14px;
  align-items: end;
  margin-bottom: 30px;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--shadow);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 48px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0 14px;
  color: var(--slate-800);
  background: #ffffff;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, .16);
}

.empty-state {
  border-radius: var(--radius);
  margin: 24px 0 0;
  padding: 28px;
  text-align: center;
  color: var(--slate-500);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-section {
  padding: 34px max(24px, calc((100vw - 1280px) / 2)) 56px;
  background: linear-gradient(135deg, #0f172a, #292524);
  color: #ffffff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
  margin-bottom: 22px;
  font-size: 14px;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr);
  gap: 34px;
  align-items: start;
}

.player-card,
.detail-info,
.detail-content article {
  border-radius: 28px;
  box-shadow: var(--shadow-strong);
}

.player-card {
  overflow: hidden;
  background: #000000;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, .72), rgba(2, 6, 23, .2));
  cursor: pointer;
  transition: opacity .25s ease, visibility .25s ease;
}

.player-overlay span {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 30px;
  background: rgba(245, 158, 11, .95);
  box-shadow: 0 20px 45px rgba(0, 0, 0, .35);
}

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

.detail-info {
  padding: 28px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(18px);
}

.detail-info h1 {
  margin: 18px 0 0;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.detail-lead {
  margin: 18px 0 0;
  color: #e2e8f0;
  line-height: 1.8;
  font-size: 17px;
}

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

.detail-meta span {
  color: #f8fafc;
  background: rgba(255, 255, 255, .1);
}

.detail-tags span {
  color: #fde68a;
  background: rgba(245, 158, 11, .15);
}

.detail-play {
  margin-top: 26px;
}

.detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.detail-content article {
  background: #ffffff;
  padding: 30px;
}

.detail-content h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.detail-content p {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.9;
}

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

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

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-poster {
    display: none;
  }

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

  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 780px) {
  .nav-shell {
    height: 68px;
    padding: 0 16px;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
  }

  .brand-title {
    font-size: 19px;
  }

  .brand-subtitle {
    display: none;
  }

  .hero,
  .hero-slide {
    min-height: 680px;
  }

  .hero-inner {
    width: calc(100% - 32px);
    padding: 78px 0 172px;
  }

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

  .hero-strip {
    grid-template-columns: 1fr;
    bottom: 18px;
  }

  .hero-mini-card:nth-child(n+3) {
    display: none;
  }

  .hero-dots {
    bottom: 170px;
  }

  .section,
  .section-light,
  .section-warm {
    width: 100%;
    padding: 48px 16px;
  }

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

  .movie-grid,
  .movie-grid-3,
  .movie-grid-4,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .detail-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .detail-info,
  .detail-content article {
    padding: 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, #020617, #1c1917);
  border-top: 1px solid rgba(245, 158, 11, .16);
}

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

.footer-brand .brand-title {
  color: #ffffff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.footer-desc {
  margin: 18px 0 0;
  max-width: 560px;
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 18px;
  color: #ffffff;
}

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

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

.footer-bottom {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid rgba(148, 163, 184, .18);
  color: #64748b;
  font-size: 14px;
}
