:root {
  --site-bg: #f8fafc;
  --site-bg-soft: #ecfeff;
  --site-text: #0f172a;
  --site-muted: #64748b;
  --site-border: #e2e8f0;
  --site-card: #ffffff;
  --site-cyan: #0891b2;
  --site-cyan-dark: #0e7490;
  --site-blue: #2563eb;
  --site-dark: #0f172a;
  --site-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --site-radius: 1rem;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--site-text);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.18), transparent 34rem),
    linear-gradient(135deg, #f8fafc 0%, #eff6ff 48%, #ecfeff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.header-inner {
  max-width: 80rem;
  height: 4rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-mark {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-cyan), var(--site-blue));
  box-shadow: 0 12px 28px rgba(8, 145, 178, 0.35);
}

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

.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.desktop-nav a,
.mobile-nav a {
  color: #334155;
  font-weight: 650;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--site-cyan);
}

.nav-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  background: transparent;
  transition: background 0.2s ease;
}

.nav-toggle:hover {
  background: #f1f5f9;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--site-border);
  padding: 0.75rem 1rem 1rem;
  background: rgba(255, 255, 255, 0.96);
}

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

.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 38rem;
  color: #ffffff;
  background: #020617;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 6s linear;
}

.hero-slide.is-active img {
  transform: scale(1.12);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.78) 42%, rgba(15, 23, 42, 0.36) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.88), transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 80rem;
  min-height: 38rem;
  margin: 0 auto;
  padding: 5rem 1rem 4.5rem;
  display: grid;
  align-items: center;
}

.hero-panel {
  max-width: 45rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  color: #cffafe;
  background: rgba(8, 145, 178, 0.32);
  border: 1px solid rgba(103, 232, 249, 0.38);
  backdrop-filter: blur(12px);
  font-size: 0.88rem;
  font-weight: 700;
}

.hero h1 {
  margin: 1.25rem 0 1rem;
  font-size: clamp(2.25rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.hero-intro {
  max-width: 42rem;
  color: #dbeafe;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.85;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.35rem 0 1.75rem;
}

.hero-meta span,
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.68rem;
  border-radius: 999px;
  font-size: 0.82rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button-primary,
.button-secondary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.85rem;
  padding: 0.75rem 1.2rem;
  border-radius: 0.8rem;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-cyan), var(--site-blue));
  box-shadow: 0 14px 30px rgba(8, 145, 178, 0.32);
}

.button-primary:hover,
.button-secondary:hover,
.button-ghost:hover {
  transform: translateY(-2px);
}

.button-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(12px);
}

.button-ghost {
  color: var(--site-cyan);
  background: #ecfeff;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
}

.hero-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 2.2rem;
  background: #ffffff;
}

.hero-rail {
  position: absolute;
  z-index: 3;
  right: max(1rem, calc((100vw - 80rem) / 2));
  bottom: 4.5rem;
  display: none;
  gap: 1rem;
}

.hero-mini {
  width: 12rem;
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26);
}

.hero-mini img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-mini span {
  display: block;
  padding: 0.75rem;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.section {
  padding: 4rem 0;
}

.section-white {
  background: #ffffff;
}

.section-title-row {
  margin-bottom: 2rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.section-title-row h2,
.page-title {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.section-title-row p,
.page-lead {
  margin-top: 0.55rem;
  color: var(--site-muted);
  line-height: 1.75;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--site-radius);
  background: var(--site-card);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-0.35rem);
  box-shadow: var(--site-shadow);
}

.movie-card-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0f172a;
}

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

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

.movie-card-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 62%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.card-badges {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  right: 0.7rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.28rem 0.55rem;
  border-radius: 0.5rem;
  color: #ffffff;
  background: rgba(8, 145, 178, 0.96);
  font-size: 0.72rem;
  font-weight: 800;
}

.badge-dark {
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.play-float {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--site-cyan);
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%) scale(0.72);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-float {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-card-body {
  padding: 1rem;
}

.movie-card h3 {
  color: #0f172a;
  font-size: 1.02rem;
  font-weight: 850;
  margin: 0 0 0.45rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--site-cyan);
}

.movie-card p {
  min-height: 3.05rem;
  margin: 0 0 0.85rem;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.card-tags span,
.filter-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
}

.filter-panel {
  margin: 2rem 0;
  padding: 1rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 0.8rem;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.8rem;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--site-cyan);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.13);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #ffffff, #ecfeff);
  border: 1px solid rgba(8, 145, 178, 0.16);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--site-shadow);
}

.category-card h3 {
  font-size: 1.25rem;
  font-weight: 900;
  margin: 0 0 0.5rem;
}

.category-card p {
  color: var(--site-muted);
  line-height: 1.7;
  margin: 0 0 1rem;
}

.rank-list {
  display: grid;
  gap: 0.9rem;
}

.rank-item {
  display: grid;
  grid-template-columns: auto 7rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-0.2rem);
  box-shadow: var(--site-shadow);
}

.rank-no {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-cyan), var(--site-blue));
  font-weight: 900;
}

.rank-item img {
  width: 7rem;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0.75rem;
}

.rank-item h3 {
  margin: 0 0 0.35rem;
  font-weight: 900;
  color: #0f172a;
}

.rank-item p {
  margin: 0;
  color: var(--site-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-hero {
  padding: 4rem 0 2rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
  color: #64748b;
  font-size: 0.92rem;
}

.breadcrumbs a:hover {
  color: var(--site-cyan);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  color: #ffffff;
  background: #020617;
  box-shadow: var(--site-shadow);
}

.detail-bg {
  position: absolute;
  inset: 0;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(16px);
  transform: scale(1.08);
  opacity: 0.42;
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.78));
}

.detail-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1.5rem;
  padding: 1.2rem;
}

.detail-poster img {
  width: 100%;
  border-radius: 1.1rem;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.detail-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
  font-weight: 950;
}

.detail-copy p {
  color: #dbeafe;
  line-height: 1.85;
  margin: 0 0 1.2rem;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.player-section {
  margin-top: 2rem;
  display: grid;
  gap: 1.25rem;
}

.video-player {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #000000;
  box-shadow: var(--site-shadow);
}

.video-player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.8), rgba(2, 6, 23, 0.35));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-button {
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--site-cyan);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.36);
}

.content-card {
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: #ffffff;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.content-card h2 {
  margin: 0 0 0.85rem;
  padding-left: 0.8rem;
  border-left: 4px solid var(--site-cyan);
  font-size: 1.45rem;
  font-weight: 900;
  color: #0f172a;
}

.content-card p {
  margin: 0;
  color: #475569;
  line-height: 1.9;
}

.detail-layout {
  display: grid;
  gap: 1.5rem;
}

.side-card {
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: #ffffff;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.side-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid #e2e8f0;
  color: #64748b;
}

.side-row strong {
  color: #0f172a;
  text-align: right;
}

.site-footer {
  margin-top: 4rem;
  color: #cbd5e1;
  background: linear-gradient(135deg, #020617, #0f172a 55%, #164e63);
}

.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1rem;
  display: grid;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 850;
}

.footer-col h3 {
  margin: 0 0 1rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 850;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding-top: 1.25rem;
  color: #94a3b8;
  font-size: 0.9rem;
}

.empty-state {
  display: none;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  color: #64748b;
  background: rgba(255, 255, 255, 0.86);
}

.empty-state.is-visible {
  display: block;
}

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

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

  .filter-panel {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    align-items: center;
  }
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .hero-rail {
    display: flex;
  }

  .detail-content {
    grid-template-columns: minmax(18rem, 26rem) 1fr;
    padding: 2rem;
    align-items: center;
  }

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

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

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

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

  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 19rem;
    align-items: start;
  }
}

@media (min-width: 1280px) {
  .movie-grid.compact {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .hero {
    min-height: 34rem;
  }

  .hero-content {
    min-height: 34rem;
    padding-top: 4rem;
  }

  .section-title-row {
    display: block;
  }

  .rank-item {
    grid-template-columns: auto 5.5rem 1fr;
    gap: 0.75rem;
  }

  .rank-item img {
    width: 5.5rem;
  }
}
