:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --teal: #14b8a6;
  --teal-light: #2dd4bf;
  --amber: #f59e0b;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

* {
  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-900);
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 10px 35px rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(16px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand {
  font-size: 24px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--teal-light), var(--teal));
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(20, 184, 166, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--slate-200);
  font-weight: 650;
  font-size: 15px;
}

.nav-links a,
.mobile-nav a,
.site-footer a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.mobile-nav a:hover,
.site-footer a:hover {
  color: var(--teal-light);
}

.menu-button {
  display: none;
  border: 0;
  color: var(--white);
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mobile-nav a {
  color: var(--slate-200);
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.hero {
  position: relative;
  height: 680px;
  overflow: hidden;
  background: var(--slate-950);
}

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

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

.hero-bg,
.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg img {
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.1) contrast(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 35%, rgba(20, 184, 166, 0.32), transparent 35%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.66) 44%, rgba(2, 6, 23, 0.22) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  max-width: 1180px;
}

.eyebrow,
.section-kicker {
  color: var(--teal-light);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-content h1,
.inner-hero h1,
.detail-copy h1 {
  max-width: 850px;
  margin: 16px 0;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.hero-content p,
.inner-hero p,
.detail-copy .lead {
  max-width: 760px;
  font-size: clamp(17px, 2vw, 22px);
  color: #dbeafe;
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.78);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

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

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

.primary-button {
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--teal-light), var(--teal));
  box-shadow: 0 16px 34px rgba(20, 184, 166, 0.36);
}

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

.primary-button:hover,
.ghost-button:hover,
.movie-card:hover,
.category-tile:hover {
  transform: translateY(-3px);
}

.hero-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 64px;
  border: 0;
  border-radius: 18px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.5);
  font-size: 42px;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.hero-arrow.prev {
  left: 28px;
}

.hero-arrow.next {
  right: 28px;
}

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

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

.hero-dots button.is-active {
  width: 34px;
  background: var(--teal-light);
}

.section-wrap,
.search-panel,
.inner-hero,
.detail-hero,
.player-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.search-panel {
  margin-top: -44px;
  position: relative;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.search-panel.compact {
  margin-top: 28px;
}

.search-panel h2,
.section-head h2,
.article-grid h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.18;
  font-weight: 900;
}

.search-panel p,
.movie-card p,
.category-tile p,
.rank-item p,
.article-grid p,
.site-footer p {
  color: var(--slate-500);
  line-height: 1.75;
}

.search-panel input {
  width: min(420px, 100%);
  height: 50px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 0 20px;
  color: var(--slate-900);
  outline: none;
  background: var(--white);
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.04);
}

.search-panel input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.section-wrap {
  padding: 68px 0 0;
}

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

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

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

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

.movie-card {
  min-width: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  box-shadow: 0 28px 56px rgba(15, 23, 42, 0.2);
}

.large-card {
  grid-column: span 2;
  grid-row: span 2;
}

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

.large-card .poster-link {
  aspect-ratio: 16 / 11;
}

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

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

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--slate-950);
  background: var(--teal-light);
  font-weight: 900;
  font-size: 13px;
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  min-height: 48px;
  color: var(--slate-900);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-title:hover,
.rank-title:hover {
  color: var(--teal);
}

.movie-card p {
  min-height: 74px;
  margin: 10px 0 12px;
  font-size: 14px;
}

.tag-row span {
  min-height: 26px;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 12px;
}

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

.dark-block {
  width: min(1240px, calc(100% - 32px));
  padding: 44px 30px;
  border-radius: 30px;
  color: var(--white);
  background:
    radial-gradient(circle at 20% 0%, rgba(20, 184, 166, 0.22), transparent 32%),
    linear-gradient(135deg, var(--slate-950), var(--slate-800));
  box-shadow: var(--shadow);
}

.dark-block .section-head h2 {
  color: var(--white);
}

.rank-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rank-strip a {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--slate-200);
}

.rank-strip strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: var(--slate-950);
  background: var(--teal-light);
}

.rank-strip span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 800;
}

.rank-strip em {
  color: var(--teal-light);
  font-style: normal;
}

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

.category-tile {
  display: flex;
  min-height: 154px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  border-radius: 22px;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 0%, rgba(45, 212, 191, 0.55), transparent 38%),
    linear-gradient(135deg, var(--slate-900), var(--slate-700));
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.17);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile p {
  margin: 10px 0 0;
  color: #dbeafe;
  font-size: 14px;
}

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

.category-tile.big {
  min-height: 220px;
}

.inner-hero {
  margin-top: 32px;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  border-radius: 30px;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 12%, rgba(20, 184, 166, 0.42), transparent 34%),
    linear-gradient(135deg, var(--slate-950), var(--slate-800));
  box-shadow: var(--shadow);
}

.inner-hero p {
  color: #cbd5e1;
}

.detail-hero {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 42px;
  align-items: center;
  margin-top: 36px;
  padding: 38px;
  border-radius: 30px;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 0%, rgba(20, 184, 166, 0.32), transparent 34%),
    linear-gradient(135deg, var(--slate-950), var(--slate-800));
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 24px;
  background: var(--slate-700);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.48);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #cbd5e1;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--teal-light);
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: var(--slate-950);
  box-shadow: var(--shadow);
}

.player-shell video {
  display: block;
  width: 100%;
  min-height: 460px;
  max-height: 72vh;
  background: var(--slate-950);
  object-fit: contain;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(20, 184, 166, 0.22), rgba(2, 6, 23, 0.42));
  cursor: pointer;
}

.player-start[hidden] {
  display: none;
}

.player-start span {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  padding-left: 7px;
  border-radius: 999px;
  color: var(--slate-950);
  background: var(--teal-light);
  font-size: 46px;
  box-shadow: 0 20px 50px rgba(20, 184, 166, 0.36);
}

.article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 320px;
  gap: 24px;
}

.article-grid article,
.article-grid aside {
  padding: 26px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}

.article-grid p {
  margin-bottom: 0;
}

dl {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px 16px;
  margin: 18px 0 0;
}

dt {
  color: var(--slate-500);
  font-weight: 800;
}

dd {
  margin: 0;
  color: var(--slate-900);
  font-weight: 700;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 64px 120px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--teal-light), var(--teal));
  font-weight: 900;
}

.rank-cover {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  background: var(--slate-800);
}

.rank-title {
  color: var(--slate-900);
  font-size: 20px;
  font-weight: 900;
}

.site-footer {
  margin-top: 80px;
  padding: 56px 0 28px;
  color: var(--slate-300);
  background: var(--slate-950);
}

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

.site-footer h3 {
  margin: 0 0 16px;
  color: var(--white);
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: var(--slate-300);
}

.footer-brand {
  font-size: 22px;
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--slate-500);
  text-align: center;
  font-size: 14px;
}

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

  .menu-button {
    display: block;
  }

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

  .hero {
    height: 620px;
  }

  .search-panel,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-grid,
  .featured-grid,
  .category-grid,
  .big-grid,
  .footer-grid,
  .article-grid,
  .detail-hero {
    grid-template-columns: 1fr 1fr;
  }

  .large-card {
    grid-column: span 1;
    grid-row: span 1;
  }

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

  .detail-hero {
    align-items: start;
  }

  .detail-poster {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .brand {
    font-size: 19px;
  }

  .hero {
    height: 560px;
  }

  .hero-content h1,
  .inner-hero h1,
  .detail-copy h1 {
    font-size: 38px;
  }

  .hero-arrow {
    display: none;
  }

  .search-panel,
  .inner-hero,
  .detail-hero {
    padding: 24px;
  }

  .movie-grid,
  .featured-grid,
  .category-grid,
  .big-grid,
  .footer-grid,
  .article-grid,
  .detail-hero,
  .rank-item {
    grid-template-columns: 1fr;
  }

  .rank-item {
    align-items: start;
  }

  .rank-cover {
    width: 130px;
  }

  .player-shell video {
    min-height: 260px;
  }
}
