:root {
  --page-bg: #f8fbff;
  --text: #101827;
  --muted: #5f6d7e;
  --soft: #e7f0ff;
  --line: rgba(15, 23, 42, 0.08);
  --blue: #2563eb;
  --cyan: #0891b2;
  --dark: #0f172a;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #f8fbff 0%, #eff6ff 52%, #ecfeff 100%);
  min-height: 100vh;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 13px;
  color: #fff;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.nav-links a {
  position: relative;
  font-size: 15px;
  font-weight: 650;
  color: #334155;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--blue);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--blue);
  background: #eff6ff;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.mobile-panel a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #334155;
  font-weight: 700;
}

.mobile-panel a:hover {
  background: #eff6ff;
  color: var(--blue);
}

.hero {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  color: #fff;
  background: #0f172a;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 18%, rgba(8, 145, 178, 0.38), transparent 28%),
    radial-gradient(circle at 22% 78%, rgba(37, 99, 235, 0.35), transparent 32%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.68) 42%, rgba(15, 23, 42, 0.2) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 700px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 46px;
  padding: 88px 0 86px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #dff9ff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  font-weight: 700;
  margin-bottom: 22px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 900;
  text-shadow: 0 20px 55px rgba(0, 0, 0, 0.35);
}

.hero p {
  margin: 24px 0 0;
  width: min(740px, 100%);
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.65;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 760;
  color: #dff9ff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-primary {
  color: var(--blue);
  background: #fff;
  box-shadow: 0 18px 36px rgba(255, 255, 255, 0.24);
}

.btn-glass {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(14px);
}

.hero-card {
  position: relative;
  min-height: 430px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  transform: translateY(16px);
}

.hero-card img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.hero-card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.92), transparent);
}

.hero-card-overlay strong {
  display: block;
  font-size: 24px;
  font-weight: 900;
}

.hero-card-overlay span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 6px;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-dots {
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

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

.hero-dot.is-active {
  background: #fff;
}

.hero-arrows {
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 22px;
}

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

.section:last-child {
  padding-bottom: 72px;
}

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

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 900;
  color: #0f172a;
}

.section-desc {
  margin: 9px 0 0;
  max-width: 740px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.link-more {
  color: var(--blue);
  font-weight: 850;
  white-space: nowrap;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.18);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #e2e8f0;
}

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

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.1) 58%, transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.24);
}

.card-body {
  padding: 15px 15px 17px;
}

.card-body h3 {
  margin: 0;
  color: #0f172a;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 850;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
}

.card-text {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.65;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.feature-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: #0f172a;
  color: #fff;
}

.feature-card img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 0.48s ease, opacity 0.48s ease;
}

.feature-card:hover img {
  transform: scale(1.08);
  opacity: 0.58;
}

.feature-content {
  position: absolute;
  inset: auto 0 0;
  padding: 24px;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.92), transparent);
}

.feature-content h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.feature-content p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

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

.category-card {
  display: block;
  min-height: 166px;
  padding: 24px;
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.28), transparent 28%),
    linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.18);
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(37, 99, 235, 0.27);
}

.category-card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  line-height: 1.65;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 74px 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 86px;
  padding: 12px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, background 0.22s ease;
}

.rank-row:hover {
  transform: translateX(5px);
  background: #fff;
}

.rank-no {
  font-size: 21px;
  font-weight: 950;
  color: var(--blue);
}

.rank-poster {
  width: 54px;
  height: 72px;
  overflow: hidden;
  border-radius: 12px;
  background: #e2e8f0;
}

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

.rank-info h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 850;
  color: #0f172a;
}

.rank-info p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
}

.rank-hot {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-size: 12px;
  font-weight: 850;
}

.page-hero {
  padding: 74px 0 34px;
  background:
    radial-gradient(circle at 78% 20%, rgba(8, 145, 178, 0.18), transparent 27%),
    linear-gradient(135deg, #f8fbff, #eff6ff 50%, #ecfeff);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
}

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

.page-title {
  margin: 0;
  max-width: 980px;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 950;
  letter-spacing: -0.05em;
  line-height: 1.06;
  color: #0f172a;
}

.page-desc {
  margin: 18px 0 0;
  max-width: 840px;
  color: #5f6d7e;
  font-size: 18px;
  line-height: 1.78;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 190px;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  padding: 0 15px;
  color: #0f172a;
  background: #f8fbff;
  outline: none;
}

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

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 28px;
}

.player-card,
.detail-card,
.side-card {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #05070d;
}

.player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(5, 7, 13, 0.62), rgba(5, 7, 13, 0.12));
  pointer-events: auto;
}

.player-layer.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 999px;
  color: var(--blue);
  background: #fff;
  font-size: 32px;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.28);
}

.detail-card {
  margin-top: 22px;
  padding: 30px;
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
}

.detail-card p {
  color: #475569;
  font-size: 16px;
  line-height: 1.9;
  margin: 0 0 18px;
}

.info-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.info-tag {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--blue);
  background: #eff6ff;
  font-size: 13px;
  font-weight: 800;
}

.side-card {
  padding: 22px;
}

.side-list {
  display: grid;
  gap: 14px;
}

.side-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #f8fbff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.side-item:hover {
  background: #eff6ff;
  transform: translateX(3px);
}

.side-thumb {
  width: 76px;
  height: 102px;
  border-radius: 13px;
  overflow: hidden;
  background: #e2e8f0;
}

.side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side-item h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 850;
  color: #0f172a;
}

.side-item p {
  margin: 7px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, #111827 0%, #0f172a 52%, #0e2430 100%);
  margin-top: 40px;
}

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

.footer-title {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 16px;
}

.footer-inner p,
.footer-inner a {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.8;
}

.footer-inner a {
  display: block;
  margin: 7px 0;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 34px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  font-size: 13px;
}

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

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

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

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

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

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

  .mobile-panel.is-open {
    display: block;
  }

  .hero,
  .hero-inner {
    min-height: 760px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 68px;
    gap: 28px;
  }

  .hero-card,
  .hero-card img {
    min-height: 300px;
  }

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

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

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

  .rank-row {
    grid-template-columns: 50px 58px minmax(0, 1fr);
  }

  .rank-hot {
    display: none;
  }
}

@media (max-width: 560px) {
  .nav-shell {
    width: min(100% - 22px, 1180px);
  }

  .logo {
    font-size: 19px;
  }

  .hero,
  .hero-inner {
    min-height: 690px;
  }

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

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

  .hero-card {
    display: none;
  }

  .hero-controls {
    bottom: 18px;
  }

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

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

  .section {
    padding-top: 48px;
  }

  .section-head {
    display: block;
  }

  .link-more {
    display: inline-flex;
    margin-top: 14px;
  }

  .detail-card {
    padding: 22px;
  }

  .play-button {
    width: 68px;
    height: 68px;
    font-size: 26px;
  }

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