* {
  box-sizing: border-box;
}

:root {
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(14, 165, 233, 0.18);
  --cyan: #06b6d4;
  --blue: #2563eb;
  --cyan-soft: rgba(207, 250, 254, 0.55);
  --shadow: 0 24px 60px rgba(14, 116, 144, 0.16);
  --radius-xl: 28px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 8%, rgba(34, 211, 238, 0.25), transparent 32rem),
    radial-gradient(circle at 92% 0%, rgba(59, 130, 246, 0.18), transparent 34rem),
    linear-gradient(135deg, #f8fafc 0%, #ecfeff 48%, #eff6ff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(14, 165, 233, 0.12);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 18px;
}

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

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: #ffffff;
  font-size: 15px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.25);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.main-nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: #475569;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  color: #0891b2;
  background: rgba(207, 250, 254, 0.72);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #0f172a;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(14, 116, 144, 0.12);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 54px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(28px);
  pointer-events: none;
}

.hero::before {
  width: 340px;
  height: 340px;
  top: 38px;
  left: 4%;
  background: rgba(103, 232, 249, 0.34);
  animation: pulseGlow 4.6s ease-in-out infinite;
}

.hero::after {
  width: 430px;
  height: 430px;
  right: -90px;
  bottom: 0;
  background: rgba(147, 197, 253, 0.35);
  animation: pulseGlow 5.8s ease-in-out infinite 0.8s;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 34px;
  align-items: center;
}

.hero-copy {
  text-align: left;
}

.hero-pill,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 999px;
  color: #0e7490;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 30px rgba(14, 116, 144, 0.10);
  backdrop-filter: blur(14px);
  font-size: 13px;
  font-weight: 700;
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  background: linear-gradient(90deg, #0891b2, #2563eb, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description {
  max-width: 660px;
  margin: 0 0 28px;
  color: #475569;
  font-size: 19px;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 640px;
  padding: 10px;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-search input,
.toolbar input,
.toolbar select {
  width: 100%;
  border: 2px solid transparent;
  outline: none;
  border-radius: 14px;
  padding: 14px 16px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.92);
  font-size: 15px;
}

.hero-search input:focus,
.toolbar input:focus,
.toolbar select:focus {
  border-color: rgba(6, 182, 212, 0.45);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 16px;
  padding: 14px 20px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.23);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(37, 99, 235, 0.28);
}

.btn-soft {
  color: #0891b2;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(14, 116, 144, 0.13);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero-showcase {
  position: relative;
  display: grid;
  gap: 16px;
}

.hero-slide {
  display: none;
  position: relative;
  min-height: 548px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 36px;
  box-shadow: var(--shadow);
  background: #0f172a;
}

.hero-slide.is-active {
  display: block;
}

.hero-slide img {
  width: 100%;
  height: 548px;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 24%, rgba(15, 23, 42, 0.88) 100%);
}

.hero-slide-content {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px;
  color: #ffffff;
}

.hero-slide-content h2 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.15;
}

.hero-slide-content p {
  display: -webkit-box;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-dots button {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.22);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.stat-card {
  padding: 18px;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 32px rgba(14, 116, 144, 0.10);
  backdrop-filter: blur(14px);
}

.stat-card strong {
  display: block;
  font-size: 26px;
  color: #0891b2;
}

.stat-card span {
  color: #64748b;
  font-size: 14px;
}

.section {
  padding: 46px 0;
}

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

.section-heading h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.section-heading p {
  max-width: 680px;
  margin: 8px 0 0;
  color: #64748b;
}

.section-more {
  color: #0891b2;
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(14, 165, 233, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 42px rgba(14, 116, 144, 0.10);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 54px rgba(14, 116, 144, 0.17);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 10 / 14;
  background: #dff7fb;
}

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

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

.score,
.rank-badge {
  position: absolute;
  z-index: 1;
  top: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.score {
  right: 12px;
}

.rank-badge {
  left: 12px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

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

.movie-title {
  display: block;
  overflow: hidden;
  color: #0f172a;
  font-size: 18px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-meta {
  margin-top: 5px;
  color: #64748b;
  font-size: 13px;
}

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 10px 0 12px;
  color: #475569;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #0e7490;
  background: rgba(207, 250, 254, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.panel {
  border: 1px solid rgba(14, 165, 233, 0.16);
  border-radius: 28px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.toolbar {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 12px;
  margin-bottom: 24px;
}

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

.category-card {
  display: block;
  min-height: 160px;
  padding: 20px;
  border: 1px solid rgba(14, 165, 233, 0.16);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.90), rgba(207, 250, 254, 0.55));
  box-shadow: 0 18px 38px rgba(14, 116, 144, 0.10);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 50px rgba(14, 116, 144, 0.16);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-card p {
  margin: 0 0 14px;
  color: #64748b;
  font-size: 14px;
}

.category-card strong {
  color: #0891b2;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 26px 0;
  color: #64748b;
  font-size: 14px;
}

.breadcrumb a {
  color: #0891b2;
  font-weight: 700;
}

.detail-hero {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 34px;
  align-items: stretch;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

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

.detail-info h1 {
  margin: 8px 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
}

.detail-line {
  color: #475569;
  font-size: 18px;
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.meta-list div {
  padding: 14px 16px;
  border: 1px solid rgba(14, 165, 233, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.meta-list span {
  display: block;
  color: #64748b;
  font-size: 12px;
}

.meta-list strong {
  color: #0f172a;
}

.player-wrap {
  overflow: hidden;
  border-radius: 28px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.player-stage video {
  width: 100%;
  height: 100%;
  background: #0f172a;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.22), rgba(15, 23, 42, 0.86)),
    var(--poster) center / cover no-repeat;
}

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

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

.player-note {
  padding: 14px 18px;
  color: rgba(255, 255, 255, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

.content-block h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.content-block p {
  color: #475569;
  font-size: 17px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 64px 92px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(14, 165, 233, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 32px rgba(14, 116, 144, 0.08);
}

.rank-num {
  color: #0891b2;
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.rank-item img {
  width: 92px;
  height: 124px;
  object-fit: cover;
  border-radius: 16px;
}

.rank-item h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.rank-item p {
  display: -webkit-box;
  margin: 0;
  color: #64748b;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-views {
  color: #0e7490;
  font-weight: 900;
  white-space: nowrap;
}

.cta {
  margin: 54px 0;
  padding: 42px;
  border-radius: 34px;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 28px 68px rgba(37, 99, 235, 0.24);
}

.cta h2 {
  margin: 0 0 10px;
  font-size: 36px;
}

.cta p {
  margin: 0 auto 20px;
  max-width: 700px;
  color: rgba(255, 255, 255, 0.88);
}

.site-footer {
  margin-top: 60px;
  padding: 46px 0 24px;
  border-top: 1px solid rgba(14, 165, 233, 0.16);
  background: rgba(255, 255, 255, 0.70);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr;
  gap: 28px;
}

.site-footer h3 {
  margin: 0 0 12px;
}

.site-footer p,
.site-footer a,
.site-footer li {
  color: #64748b;
  font-size: 14px;
}

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

.site-footer li + li {
  margin-top: 8px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(14, 165, 233, 0.14);
  color: #64748b;
  font-size: 13px;
}

.hidden-by-filter {
  display: none !important;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.65;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .main-nav {
    position: fixed;
    top: 74px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid rgba(14, 165, 233, 0.16);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
  }

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

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

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

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

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

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .hero {
    padding-top: 50px;
  }

  .hero-search {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-slide,
  .hero-slide img {
    min-height: 430px;
    height: 430px;
  }

  .stats-row,
  .meta-list,
  .category-grid,
  .movie-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 46px 76px minmax(0, 1fr);
  }

  .rank-views {
    grid-column: 3;
  }

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