:root {
  color-scheme: light;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-500: #f97316;
  --teal-500: #14b8a6;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.18);
  --soft-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-800);
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 46%, #e2e8f0 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-950), var(--slate-800), var(--slate-950));
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.28);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.32);
}

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

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

.desktop-nav a,
.mobile-nav a {
  color: rgba(255, 255, 255, 0.88);
  transition: color 180ms ease, transform 180ms ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: #fbbf24;
  transform: translateY(-1px);
}

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

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

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

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

.hero-track,
.hero-slide,
.hero-bg,
.hero-mask {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 650ms ease, visibility 650ms ease;
}

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

.hero-bg {
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: brightness(0.44) saturate(1.08);
}

.hero-mask {
  background:
    radial-gradient(circle at 72% 32%, rgba(245, 158, 11, 0.35), transparent 34%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 42, 0.68) 44%, rgba(15, 23, 42, 0.22) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.98) 0%, transparent 34%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) 360px;
  align-items: center;
  gap: 52px;
  color: var(--white);
}

.hero-copy {
  max-width: 760px;
  display: grid;
  gap: 18px;
}

.eyebrow {
  margin: 0;
  color: #fbbf24;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.04em;
}

.hero p:not(.eyebrow) {
  margin: 0;
  color: rgba(226, 232, 240, 0.92);
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
}

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

.hero-tags span,
.tag-list span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 14px 28px rgba(245, 158, 11, 0.32);
}

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

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 2 / 3;
  background: var(--slate-700);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.hero-poster:hover img {
  transform: scale(1.06);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

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

.page-main {
  min-height: 70vh;
}

.page-hero {
  position: relative;
  color: var(--white);
  background:
    radial-gradient(circle at 76% 24%, rgba(245, 158, 11, 0.28), transparent 30%),
    linear-gradient(135deg, var(--slate-950), var(--slate-800));
  overflow: hidden;
}

.small-hero {
  padding: 74px 0;
}

.small-hero h1 {
  margin: 10px 0 14px;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.05em;
}

.small-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: rgba(226, 232, 240, 0.9);
  line-height: 1.8;
}

.home-search {
  position: relative;
  z-index: 8;
  margin-top: -44px;
}

.section {
  padding: 70px 0 0;
}

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

.section-heading h2 {
  margin: 0;
  color: var(--slate-800);
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--slate-500);
  line-height: 1.7;
}

.section-more {
  flex: 0 0 auto;
  color: var(--amber-600);
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.search-label,
.select-label {
  display: grid;
  gap: 8px;
  color: var(--slate-700);
  font-weight: 800;
}

.search-label input,
.select-label select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 16px;
  padding: 0 16px;
  color: var(--slate-800);
  background: var(--white);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

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

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

.full-grid {
  margin-top: 28px;
}

.compact-grid,
.related-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.movie-card {
  display: grid;
  gap: 12px;
}

.movie-card.is-hidden {
  display: none;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
  box-shadow: var(--soft-shadow);
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease, filter 500ms ease;
}

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.76), transparent 48%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.09);
  filter: saturate(1.08);
}

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

.score,
.rank-badge,
.play-hover {
  position: absolute;
  z-index: 3;
}

.score {
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  border-radius: 10px;
  color: var(--white);
  background: var(--amber-500);
  font-size: 12px;
  font-weight: 900;
}

.rank-badge {
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--white);
  background: linear-gradient(135deg, #ef4444, var(--orange-500));
  font-weight: 900;
}

.play-hover {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--slate-950);
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease;
}

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

.card-body h3 {
  margin: 0;
  color: var(--slate-800);
  font-size: 16px;
  line-height: 1.45;
}

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

.card-meta {
  margin: 5px 0 0;
  color: var(--slate-500);
  font-size: 13px;
}

.card-desc {
  margin: 7px 0 0;
  color: var(--slate-500);
  font-size: 13px;
  line-height: 1.6;
}

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

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

.category-tile {
  display: grid;
  gap: 12px;
  min-height: 178px;
  padding: 22px;
  border-radius: 24px;
  color: var(--white);
  background:
    radial-gradient(circle at 90% 10%, rgba(245, 158, 11, 0.42), transparent 28%),
    linear-gradient(135deg, var(--slate-900), var(--slate-700));
  box-shadow: var(--soft-shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-name {
  font-size: 22px;
  font-weight: 900;
}

.category-intro,
.category-samples {
  color: rgba(226, 232, 240, 0.86);
  line-height: 1.7;
  font-size: 14px;
}

.category-samples {
  color: #fcd34d;
}

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

.page-ranking {
  margin-top: 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 22px 0;
  color: var(--slate-500);
  font-size: 14px;
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--slate-950);
}

.detail-backdrop,
.detail-mask {
  position: absolute;
  inset: 0;
}

.detail-backdrop {
  background-size: cover;
  background-position: center;
  filter: blur(14px) brightness(0.34) saturate(1.08);
  transform: scale(1.08);
}

.detail-mask {
  background:
    radial-gradient(circle at 84% 20%, rgba(245, 158, 11, 0.3), transparent 28%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.76));
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding: 64px 0;
}

.detail-poster {
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--slate-700);
  box-shadow: var(--shadow);
}

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

.detail-copy {
  display: grid;
  gap: 16px;
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 820px;
  margin: 0;
  color: rgba(226, 232, 240, 0.9);
  font-size: 18px;
  line-height: 1.8;
}

.player-section {
  padding-top: 58px;
}

.player-panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow);
}

.player-panel video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.28));
  cursor: pointer;
}

.player-cover.is-hidden {
  display: none;
}

.play-circle {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  color: var(--slate-950);
  background: linear-gradient(135deg, #fbbf24, #fb923c);
  box-shadow: 0 20px 36px rgba(245, 158, 11, 0.42);
  font-size: 34px;
  line-height: 1;
  padding-left: 5px;
}

.play-title {
  font-size: 19px;
  font-weight: 900;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.content-card {
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
}

.content-card h2 {
  margin: 0 0 14px;
  color: var(--slate-800);
  font-size: 24px;
}

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

.site-footer {
  margin-top: 90px;
  color: rgba(226, 232, 240, 0.82);
  background: var(--slate-950);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 36px;
}

.footer-logo {
  color: var(--white);
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 12px;
}

.footer-brand p,
.footer-inner li {
  line-height: 1.8;
}

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

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

.footer-inner a:hover {
  color: #fbbf24;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 20px 16px;
  text-align: center;
  color: rgba(148, 163, 184, 0.8);
  font-size: 13px;
}

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

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

  .hero-content {
    grid-template-columns: 1fr 260px;
  }

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

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

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

  .hero {
    min-height: 760px;
    height: auto;
  }

  .hero-content {
    min-height: 760px;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 54px 0 92px;
  }

  .hero-poster {
    width: min(250px, 74vw);
  }

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

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

  .movie-grid,
  .compact-grid,
  .related-grid,
  .ranking-list,
  .category-grid,
  .category-grid.large,
  .detail-content,
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    padding: 42px 0;
  }

  .detail-poster {
    width: min(260px, 72vw);
  }
}

@media (max-width: 520px) {
  .brand-text {
    font-size: 18px;
  }

  .small-hero {
    padding: 48px 0;
  }

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

  .hero h2 {
    font-size: 28px;
  }

  .hero p:not(.eyebrow),
  .detail-one-line {
    font-size: 16px;
  }

  .movie-grid,
  .compact-grid,
  .related-grid,
  .ranking-list,
  .category-grid,
  .category-grid.large,
  .detail-content,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .poster-link {
    max-width: 280px;
  }
}
