:root {
  --fog-950: #07111f;
  --fog-900: #0d1b2e;
  --fog-800: #12233a;
  --fog-700: #20334f;
  --mist-700: #53627a;
  --mist-600: #69778f;
  --mist-100: #eef4f8;
  --cyan-600: #0891b2;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --amber-400: #f59e0b;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 14px 34px rgba(15, 23, 42, 0.14);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Roboto, Arial, sans-serif;
  color: var(--fog-800);
  background: linear-gradient(180deg, #f8fbff 0%, #eef4f8 100%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--fog-900);
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), #2563eb);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.35);
}

.brand-text {
  font-size: 19px;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--mist-700);
  font-size: 14px;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--cyan-600);
  background: rgba(6, 182, 212, 0.1);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(8, 145, 178, 0.1);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--cyan-600);
  border-radius: 99px;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--fog-900);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.03);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 17, 31, 0.94) 0%, rgba(7, 17, 31, 0.7) 42%, rgba(7, 17, 31, 0.26) 100%), linear-gradient(180deg, rgba(7, 17, 31, 0.16) 0%, rgba(7, 17, 31, 0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  height: 100%;
  margin: 0 auto;
  padding: 70px 22px 76px;
  display: flex;
  align-items: flex-end;
}

.hero-copy {
  max-width: 720px;
  color: var(--white);
  animation: fadeUp 0.7s ease both;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan-400);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker {
  padding: 7px 12px;
  color: var(--white);
  background: rgba(6, 182, 212, 0.9);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.28);
}

.hero h1,
.hero h2 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 900;
  text-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.hero p {
  max-width: 660px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), #2563eb);
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(6, 182, 212, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(6, 182, 212, 0.42);
}

.btn.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-search {
  display: flex;
  max-width: 520px;
  margin-top: 24px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  backdrop-filter: blur(16px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  color: var(--white);
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 14px;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.64);
}

.hero-search button {
  border: 0;
}

.hero-controls {
  position: absolute;
  right: 22px;
  bottom: 30px;
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero-controls button,
.hero-dot {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-radius: 999px;
  backdrop-filter: blur(14px);
}

.hero-controls button {
  width: 44px;
  height: 44px;
  font-size: 22px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  overflow: hidden;
  color: transparent;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.main-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 22px;
}

.section {
  margin-bottom: 58px;
}

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

.section-head h2,
.page-title h1,
.detail-title h1 {
  margin: 8px 0 0;
  color: var(--fog-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.section-head p,
.page-title p {
  margin: 8px 0 0;
  max-width: 720px;
  color: var(--mist-600);
}

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

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

.movie-card {
  background: var(--white);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.2;
  overflow: hidden;
  background: radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.32), transparent 34%), var(--fog-800);
}

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

.movie-card:hover .poster-link img {
  transform: scale(1.06);
  filter: saturate(1.12) contrast(1.05);
}

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(6, 182, 212, 0.92);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(6, 182, 212, 0.34);
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--cyan-600);
  font-size: 12px;
  font-weight: 800;
}

.card-body h3 {
  margin: 8px 0 8px;
  color: var(--fog-900);
  font-size: 18px;
  line-height: 1.28;
  font-weight: 850;
}

.card-body p {
  min-height: 54px;
  margin: 0;
  color: var(--mist-700);
  font-size: 14px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.card-tags span,
.tag-list span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  color: var(--fog-700);
  background: #eef7fb;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  padding: 24px;
  color: var(--white);
  background: linear-gradient(135deg, var(--fog-900), #0f3a57 52%, var(--cyan-600));
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.category-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -48px;
  top: -42px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.category-card strong {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.rank-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 58px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.rank-num {
  color: var(--cyan-600);
  font-size: 22px;
  font-weight: 900;
}

.rank-row img {
  width: 58px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--fog-800);
}

.rank-info strong {
  display: block;
  color: var(--fog-900);
  font-size: 16px;
  font-weight: 850;
}

.rank-info em {
  display: block;
  margin-top: 4px;
  color: var(--mist-600);
  font-size: 13px;
  font-style: normal;
}

.page-title {
  padding: 54px 0 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--mist-600);
  font-size: 14px;
}

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

.filter-panel {
  margin: 0 0 28px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 210px 180px;
  gap: 14px;
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: var(--fog-700);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  color: var(--fog-800);
  background: var(--white);
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 12px;
  outline: 0;
}

.empty-state {
  margin-top: 14px;
  color: var(--mist-600);
  font-weight: 700;
}

.detail-hero {
  padding: 42px 0 26px;
  background: radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.24), transparent 30%), linear-gradient(135deg, var(--fog-950), var(--fog-900));
  color: var(--white);
}

.detail-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}

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

.player-box {
  position: relative;
  overflow: hidden;
  background: #000;
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  aspect-ratio: 16 / 9;
}

.player-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-position: center;
  background-size: cover;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.28), rgba(7, 17, 31, 0.76));
}

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

.play-trigger {
  position: relative;
  z-index: 2;
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), #2563eb);
  font-size: 30px;
  box-shadow: 0 18px 46px rgba(6, 182, 212, 0.42);
}

.detail-title h1 {
  color: var(--white);
}

.detail-title p {
  margin: 16px 0 20px;
  color: rgba(255, 255, 255, 0.78);
}

.detail-meta,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-meta .meta-pill {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.tag-list span {
  color: #dffaff;
  background: rgba(6, 182, 212, 0.2);
}

.content-card {
  padding: 26px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.content-card h2 {
  margin: 0 0 12px;
  color: var(--fog-900);
  font-size: 26px;
  font-weight: 900;
}

.content-card p {
  margin: 0 0 14px;
  color: var(--mist-700);
}

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

.side-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

.mini-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  padding: 10px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.mini-card img {
  width: 74px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--fog-800);
}

.mini-card strong {
  display: block;
  color: var(--fog-900);
  line-height: 1.3;
}

.mini-card span {
  display: block;
  margin-top: 6px;
  color: var(--mist-600);
  font-size: 13px;
}

.site-footer {
  color: #c9d8e7;
  background: var(--fog-950);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
}

.footer-brand {
  color: var(--white);
  font-size: 20px;
  font-weight: 900;
}

.footer-inner p {
  max-width: 620px;
  margin: 8px 0 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(100px, auto));
  gap: 8px 22px;
}

.footer-links a {
  color: #d8eef4;
  font-weight: 700;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .site-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
  }

  .site-nav.is-open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }

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

  .hero-content {
    min-height: 620px;
    padding-top: 54px;
  }

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

  .category-grid,
  .rank-layout,
  .detail-grid,
  .detail-body {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .header-inner {
    min-height: 64px;
    padding: 0 16px;
  }

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

  .hero-content,
  .main-wrap,
  .detail-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero h1,
  .hero h2 {
    font-size: 42px;
  }

  .hero-search {
    border-radius: 20px;
    flex-direction: column;
    gap: 8px;
  }

  .hero-search input {
    min-height: 42px;
  }

  .hero-controls,
  .hero-dots {
    display: none;
  }

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

  .card-body {
    padding: 13px;
  }

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

  .card-body p {
    min-height: auto;
  }

  .section-head,
  .footer-inner {
    display: block;
  }

  .footer-links {
    margin-top: 18px;
  }

  .rank-row {
    grid-template-columns: 44px 50px 1fr;
  }

  .rank-row img {
    width: 50px;
    height: 68px;
  }

  .content-card {
    padding: 20px;
  }
}
