:root {
  --page-bg: #f6f8fb;
  --text-main: #111827;
  --text-soft: #667085;
  --line: #e5e7eb;
  --card: #ffffff;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f8fbff 0%, var(--page-bg) 52%, #eef4ff 100%);
  color: var(--text-main);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 8%, rgba(37, 99, 235, 0.13), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(6, 182, 212, 0.16), transparent 30%);
  z-index: -1;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  max-width: 1240px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: #344054;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: #111827;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  color: #344054;
  font-weight: 700;
}

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

.hero-slider {
  position: relative;
  max-width: 1240px;
  min-height: 560px;
  margin: 34px auto 28px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 0.55s ease, transform 0.65s ease;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.42), rgba(2, 6, 23, 0.06)), var(--hero-poster);
  background-position: center;
  background-size: cover;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(37, 99, 235, 0.25), transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 690px;
  padding: 92px 70px 150px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.94);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.eyebrow.dark {
  background: rgba(37, 99, 235, 0.10);
  color: var(--blue);
}

.hero-content h1 {
  margin: 22px 0 16px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 620px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.85;
}

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

.hero-meta span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font-size: 13px;
  font-weight: 700;
}

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

.btn-primary,
.btn-ghost,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 14px;
  border: 0;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.28);
}

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

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
  color: #ffffff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 70px;
  bottom: 108px;
  display: flex;
  gap: 9px;
}

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

.hero-dot.is-active {
  width: 28px;
  background: #ffffff;
}

.hero-search-card {
  position: absolute;
  z-index: 6;
  left: 70px;
  right: 70px;
  bottom: 28px;
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(18px);
}

.hero-search-card form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.hero-search-card input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d0d5dd;
  border-radius: 14px;
  padding: 0 14px;
  outline: 0;
  background: #ffffff;
  color: #111827;
}

.hero-search-card input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.hero-search-card button {
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  background: #111827;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.hero-search-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-search-card a {
  padding: 10px 12px;
  border-radius: 999px;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.10);
  font-weight: 800;
}

.home-intro,
.content-section,
.category-strip,
.rank-preview,
.page-main,
.filter-panel,
.category-overview,
.ranking-board {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 22px;
  padding-right: 22px;
}

.home-intro {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: center;
  padding-top: 36px;
  padding-bottom: 20px;
}

.home-intro h1,
.page-hero h1 {
  margin: 15px 0 14px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.home-intro p,
.page-hero p,
.section-title-row p {
  color: var(--text-soft);
  line-height: 1.8;
}

.intro-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.intro-stats a,
.category-card,
.category-strip a {
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.intro-stats a:hover,
.category-card:hover,
.category-strip a:hover,
.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.content-section {
  padding-top: 54px;
}

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

.section-title-row h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 900;
  letter-spacing: -0.025em;
}

.section-title-row p {
  margin: 8px 0 0;
}

.section-more {
  color: var(--blue);
  background: rgba(37, 99, 235, 0.08);
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-frame,
.detail-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background-image: linear-gradient(145deg, rgba(2, 6, 23, 0.14), rgba(37, 99, 235, 0.22)), var(--poster);
  background-size: cover;
  background-position: center;
}

.poster-frame {
  aspect-ratio: 3 / 4;
}

.poster-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(2, 6, 23, 0.68));
}

.play-dot {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  min-width: 38px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-weight: 900;
}

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

.movie-card-body h3 {
  margin: 8px 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-card-body p {
  min-height: 48px;
  margin: 0 0 12px;
  color: var(--text-soft);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}

.movie-card .tag-row span,
.detail-tags span {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.08);
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  padding-top: 54px;
}

.category-strip a strong,
.category-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 900;
}

.category-strip a span,
.category-card span {
  color: var(--text-soft);
}

.rank-preview {
  padding-top: 54px;
}

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

.rank-list a,
.ranking-board a {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.rank-list span,
.ranking-board span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-weight: 900;
}

.rank-list strong,
.ranking-board strong {
  font-weight: 900;
}

.rank-list em,
.ranking-board em {
  color: var(--text-soft);
  font-style: normal;
  font-size: 14px;
}

.page-main {
  padding-top: 34px;
}

.page-hero.small {
  border-radius: 28px;
  padding: 56px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(37, 99, 235, 0.78)),
    radial-gradient(circle at right, rgba(6, 182, 212, 0.55), transparent 40%);
  box-shadow: var(--shadow);
}

.page-hero.small p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
}

.filter-panel {
  padding-top: 28px;
}

.movie-filter-form {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 0.8fr) auto;
  gap: 14px;
  align-items: end;
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.movie-filter-form label {
  display: grid;
  gap: 8px;
  color: #475467;
  font-size: 13px;
  font-weight: 800;
}

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

.detail-main {
  max-width: 1240px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: #667085;
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--blue);
}

.detail-hero-card {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 30px;
  padding: 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow);
}

.detail-poster {
  min-height: 480px;
  border-radius: 24px;
}

.detail-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.detail-info h1 {
  margin: 16px 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.detail-one-line {
  margin: 0 0 18px;
  color: #475467;
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta span {
  color: #1f2937;
  background: #f3f4f6;
}

.detail-tags {
  margin: 18px 0 26px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.player-veil {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 16px;
  align-content: center;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background-image: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.82)), var(--poster);
  background-size: cover;
  background-position: center;
}

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

.big-play {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-size: 34px;
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.35);
}

.player-veil strong {
  font-size: 24px;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.36);
}

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

.detail-text-card {
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.detail-text-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 900;
}

.detail-text-card p {
  margin: 0;
  color: #475467;
  line-height: 1.9;
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(238, 242, 255, 0.95));
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 42px 22px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 14px;
  font-weight: 900;
}

.footer-grid p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.8;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  color: #475467;
}

.footer-grid a:hover {
  color: var(--blue);
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 22px 30px;
  color: #667085;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

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

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

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

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

  .menu-toggle {
    display: flex;
  }

  .hero-slider {
    min-height: 660px;
    margin: 18px 14px 22px;
    border-radius: 24px;
  }

  .hero-content {
    padding: 58px 24px 220px;
  }

  .hero-search-card {
    left: 18px;
    right: 18px;
    bottom: 18px;
    grid-template-columns: 1fr;
  }

  .hero-search-card form {
    grid-template-columns: 1fr;
  }

  .hero-dots {
    left: 24px;
    bottom: 190px;
  }

  .hero-arrow {
    display: none;
  }

  .home-intro,
  .detail-hero-card,
  .detail-content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .page-hero.small {
    padding: 34px 24px;
  }

  .rank-list a,
  .ranking-board a {
    grid-template-columns: 42px 1fr;
  }

  .rank-list em,
  .ranking-board em {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  .site-header-inner {
    height: 62px;
  }

  .brand-text {
    font-size: 18px;
  }

  .movie-grid,
  .category-strip,
  .category-overview,
  .intro-stats,
  .movie-filter-form {
    grid-template-columns: 1fr;
  }

  .home-intro,
  .content-section,
  .category-strip,
  .rank-preview,
  .page-main,
  .filter-panel,
  .category-overview,
  .ranking-board {
    padding-left: 14px;
    padding-right: 14px;
  }

  .detail-poster {
    min-height: 360px;
  }

  .player-shell {
    border-radius: 20px;
  }
}
