:root {
  --site-blue: #0ea5e9;
  --site-blue-dark: #0369a1;
  --site-cyan: #06b6d4;
  --site-ink: #111827;
  --site-muted: #6b7280;
  --site-soft: #f0f9ff;
  --site-line: #e5e7eb;
  --site-radius: 1rem;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: #f8fafc;
  color: var(--site-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

.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.95);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.header-inner {
  height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 14px 24px rgba(14, 165, 233, 0.24);
}

.logo-title {
  display: block;
  font-size: 1.35rem;
  line-height: 1.1;
  font-weight: 800;
}

.logo-subtitle {
  display: block;
  margin-top: 0.2rem;
  color: var(--site-muted);
  font-size: 0.75rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 0.75rem;
  padding: 0.65rem 0.9rem;
  color: #374151;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: #e0f2fe;
  color: var(--site-blue-dark);
}

.mobile-toggle {
  display: none;
  border: 0;
  border-radius: 0.75rem;
  background: #f1f5f9;
  color: #334155;
  padding: 0.65rem;
}

.mobile-menu {
  display: none;
  padding: 0 0 1rem;
}

.mobile-menu.is-open {
  display: grid;
  gap: 0.45rem;
}

.mobile-menu .nav-link {
  width: 100%;
}

.hero-section {
  position: relative;
  min-height: 34rem;
  overflow: hidden;
  background: #0f172a;
}

.hero-carousel {
  position: relative;
  min-height: 34rem;
}

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

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

.hero-image-wrap {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, rgba(14, 165, 233, 0.5), transparent 35%), linear-gradient(135deg, #082f49, #0f172a 58%, #111827);
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transform: scale(1.02);
}

.hero-slide.is-active .hero-image-wrap img {
  animation: heroZoom 8s ease forwards;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.66) 43%, rgba(2, 6, 23, 0.20) 100%), linear-gradient(0deg, rgba(2, 6, 23, 0.9) 0%, transparent 42%);
}

.hero-content {
  position: relative;
  min-height: 34rem;
  display: flex;
  align-items: flex-end;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.hero-copy {
  width: min(100%, 48rem);
  color: #ffffff;
}

.hero-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 4.25rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
}

.hero-description {
  max-width: 44rem;
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.38);
  color: #ffffff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(14, 165, 233, 0.88);
  transform: translateY(-1px);
}

.hero-arrow.prev {
  left: max(1rem, calc((100vw - 80rem) / 2));
}

.hero-arrow.next {
  right: max(1rem, calc((100vw - 80rem) / 2));
}

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

.hero-dot {
  width: 0.7rem;
  height: 0.7rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-dot.is-active {
  width: 2.1rem;
  background: #38bdf8;
}

.quick-search-panel {
  position: relative;
  z-index: 6;
  margin-top: -2rem;
}

.search-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.10);
}

.search-input,
.filter-select {
  width: 100%;
  min-height: 2.9rem;
  border: 1px solid #dbeafe;
  border-radius: 0.75rem;
  background: #f8fafc;
  color: #0f172a;
  padding: 0 0.95rem;
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus,
.filter-select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.section-block {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

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

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
  color: var(--site-blue-dark);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title-main {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-desc {
  margin: 0.45rem 0 0;
  color: var(--site-muted);
  line-height: 1.7;
}

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

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

.movie-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.movie-card .poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 0.75rem 0.75rem 0 0;
  background: radial-gradient(circle at 20% 10%, rgba(14, 165, 233, 0.36), transparent 34%), linear-gradient(135deg, #0f172a, #075985);
}

.movie-card.movie-card-large .poster-frame {
  aspect-ratio: 16 / 9;
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.2s ease;
}

.image-missing {
  opacity: 0;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.76), rgba(2, 6, 23, 0.05));
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.play-bubble {
  width: 3.25rem;
  height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--site-blue-dark);
  transform: scale(0.78);
  transition: transform 0.25s ease;
}

.movie-card:hover .play-bubble {
  transform: scale(1);
}

.card-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  background: rgba(2, 6, 23, 0.72);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.movie-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.movie-title {
  margin: 0 0 0.65rem;
  color: #111827;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 800;
}

.movie-card-large .movie-title {
  font-size: 1.25rem;
}

.movie-card:hover .movie-title {
  color: var(--site-blue-dark);
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  margin-bottom: 0.7rem;
  color: #64748b;
  font-size: 0.82rem;
}

.movie-desc {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.65;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 12rem;
  padding: 1.4rem;
  border-radius: 1.25rem;
  color: #ffffff;
  background: linear-gradient(135deg, #0284c7, #0f172a);
  box-shadow: 0 16px 36px rgba(14, 165, 233, 0.18);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -3rem;
  width: 9rem;
  height: 9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 0.7rem;
  font-size: 1.35rem;
  font-weight: 900;
}

.category-card p,
.category-card span {
  position: relative;
  z-index: 1;
}

.category-card p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.category-count {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 1.5rem 0;
  color: #64748b;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--site-blue-dark);
  font-weight: 700;
}

.page-hero {
  padding: 3.5rem 0;
  color: #ffffff;
  background: radial-gradient(circle at 12% 18%, rgba(125, 211, 252, 0.28), transparent 32%), linear-gradient(135deg, #0f172a 0%, #075985 58%, #0891b2 100%);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.page-hero p {
  max-width: 48rem;
  margin: 0.8rem 0 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.8;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12rem 12rem;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--site-line);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.search-filter-bar {
  grid-template-columns: minmax(0, 1fr) 11rem 11rem 11rem;
}

.result-count {
  margin: 0 0 1rem;
  color: #64748b;
  font-size: 0.92rem;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 4rem 12rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
}

.rank-number {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: #e0f2fe;
  color: var(--site-blue-dark);
  font-size: 1.25rem;
  font-weight: 900;
}

.rank-item:nth-child(-n + 3) .rank-number {
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: #ffffff;
}

.rank-cover {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #0f172a, #075985);
}

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

.rank-title {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  font-weight: 900;
}

.rank-desc {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(18rem, 0.8fr);
  gap: 1.5rem;
  align-items: start;
}

.player-card {
  overflow: hidden;
  border-radius: 1.1rem;
  background: #020617;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.28);
}

.video-player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.video-player-shell video {
  width: 100%;
  height: 100%;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.18));
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-button {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  background: rgba(14, 165, 233, 0.88);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 18px 32px rgba(14, 165, 233, 0.28);
}

.player-message {
  display: none;
  padding: 0.75rem 1rem;
  background: #fff7ed;
  color: #9a3412;
  font-size: 0.92rem;
}

.player-message.is-visible {
  display: block;
}

.detail-card {
  padding: 1.35rem;
}

.detail-card h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.detail-section {
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--site-line);
}

.detail-section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 900;
}

.detail-section p {
  margin: 0;
  color: #374151;
  line-height: 1.9;
}

.info-list {
  display: grid;
  gap: 1rem;
}

.info-list dt {
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 800;
}

.info-list dd {
  margin: 0.25rem 0 0;
  color: #111827;
  line-height: 1.65;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.site-footer {
  margin-top: 4rem;
  background: #0f172a;
  color: #cbd5e1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem 0;
}

.footer-title {
  margin: 0 0 0.75rem;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 900;
}

.footer-text {
  margin: 0;
  color: #94a3b8;
  line-height: 1.8;
}

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

.footer-links a:hover {
  color: #38bdf8;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  color: #94a3b8;
  font-size: 0.9rem;
}

.empty-state {
  display: none;
  padding: 2rem;
  border: 1px dashed #bae6fd;
  border-radius: 1rem;
  background: #f0f9ff;
  color: #0369a1;
  text-align: center;
}

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

@keyframes heroZoom {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.09);
  }
}

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

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

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

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

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

  .header-inner {
    height: 4.25rem;
  }

  .logo-mark {
    width: 2.5rem;
    height: 2.5rem;
  }

  .logo-title {
    font-size: 1.1rem;
  }

  .hero-section,
  .hero-carousel,
  .hero-content {
    min-height: 31rem;
  }

  .hero-content {
    padding-bottom: 4.25rem;
  }

  .hero-arrow {
    display: none;
  }

  .quick-search-panel {
    margin-top: 1rem;
  }

  .search-card,
  .filter-bar,
  .search-filter-bar {
    grid-template-columns: 1fr;
  }

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

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

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

  .rank-item {
    grid-template-columns: 3.5rem minmax(0, 1fr);
  }

  .rank-cover,
  .rank-score {
    display: none;
  }

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

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

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .container-custom {
    padding-left: 1rem;
    padding-right: 1rem;
  }

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

  .movie-card .poster-frame {
    aspect-ratio: 16 / 9;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
