:root {
  color-scheme: light;
  --site-sky: #0284c7;
  --site-sky-dark: #0369a1;
  --site-ink: #0f172a;
  --site-muted: #64748b;
  --site-soft: #f0f9ff;
  --site-line: #e2e8f0;
}

body {
  background: #f8fafc;
  color: var(--site-ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

.site-header {
  backdrop-filter: blur(12px);
}

.brand-link,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  color: #111827;
}

.brand-mark {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #fff;
  font-size: 0.82rem;
  box-shadow: 0 12px 25px rgba(2, 132, 199, 0.24);
}

.brand-mark.small {
  width: 1.75rem;
  height: 1.75rem;
}

.brand-name {
  font-size: 1.25rem;
}

.nav-link {
  border-radius: 0.75rem;
  color: #374151;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.55rem 0.95rem;
  transition: all 0.2s ease;
}

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

.menu-button {
  border-radius: 0.75rem;
  color: #374151;
  font-size: 1.35rem;
  padding: 0.45rem 0.7rem;
}

.mobile-panel {
  border-top: 1px solid #e5e7eb;
  display: none;
  padding: 0.7rem 0 1rem;
}

.mobile-panel.open {
  display: grid;
  gap: 0.35rem;
}

.mobile-link {
  border-radius: 0.75rem;
  color: #374151;
  font-weight: 700;
  padding: 0.75rem 0.85rem;
}

.mobile-link:hover {
  background: #f1f5f9;
  color: var(--site-sky-dark);
}

.hero-carousel {
  height: 600px;
  overflow: hidden;
  position: relative;
}

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

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

.hero-bg,
.hero-bg img,
.hero-bg div {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.hero-bg img {
  object-fit: cover;
  transform: scale(1.02);
}

.hero-bg div {
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.86) 0%, rgba(15, 23, 42, 0.63) 48%, rgba(15, 23, 42, 0.08) 100%);
}

.hero-content {
  align-items: center;
  display: flex;
  height: 100%;
  position: relative;
}

.hero-copy {
  color: #fff;
  max-width: 44rem;
}

.hero-badge {
  background: var(--site-sky);
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(14, 165, 233, 0.28);
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  padding: 0.55rem 1rem;
}

.hero-copy h1,
.hero-copy h2 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.hero-copy p {
  color: #e5e7eb;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.8;
  margin-bottom: 1.35rem;
}

.hero-meta,
.detail-meta,
.card-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-meta span,
.detail-meta span {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #f8fafc;
  font-size: 0.9rem;
  padding: 0.35rem 0.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.primary-btn,
.ghost-btn {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.8rem 1.4rem;
  transition: all 0.2s ease;
}

.primary-btn {
  background: #fff;
  color: var(--site-sky-dark);
  box-shadow: 0 18px 35px rgba(255, 255, 255, 0.15);
}

.detail-info .primary-btn {
  background: var(--site-sky);
  color: #fff;
}

.primary-btn:hover {
  transform: translateY(-1px);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}

.hero-arrow {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  font-size: 2rem;
  height: 3rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.2s ease;
  width: 3rem;
  z-index: 5;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.32);
}

.hero-arrow.left {
  left: 1rem;
}

.hero-arrow.right {
  right: 1rem;
}

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

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

.hero-dot.active {
  background: #fff;
  width: 2rem;
}

.hero-search {
  bottom: 5.5rem;
  left: 0;
  position: absolute;
  right: 0;
  z-index: 4;
}

.hero-search-box {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 1.25rem;
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.22);
  display: flex;
  max-width: 32rem;
  overflow: hidden;
}

.hero-search-box input {
  color: #0f172a;
  flex: 1;
  outline: none;
  padding: 1rem 1.1rem;
}

.hero-search-box button {
  background: var(--site-sky);
  color: #fff;
  font-weight: 800;
  padding: 0 1.35rem;
}

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

.section-title {
  align-items: center;
  display: flex;
  gap: 0.8rem;
}

.section-title span {
  color: var(--site-sky);
  font-size: 1.55rem;
}

.section-title h2 {
  color: #111827;
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  font-weight: 900;
}

.section-more {
  color: var(--site-sky-dark);
  font-weight: 800;
}

.feature-band {
  background: linear-gradient(90deg, #e0f2fe, #eff6ff);
}

.grid-cards {
  display: grid;
  gap: 1.5rem;
}

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

.grid-cards.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.movie-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  color: inherit;
  overflow: hidden;
  transition: all 0.25s ease;
}

.movie-card:hover {
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.14);
  transform: translateY(-4px);
}

.card-cover {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0f172a, #0ea5e9);
  overflow: hidden;
  position: relative;
}

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

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

.year-badge,
.type-badge {
  border-radius: 999px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  position: absolute;
  top: 0.75rem;
}

.year-badge {
  background: var(--site-sky);
  right: 0.75rem;
}

.type-badge {
  background: rgba(15, 23, 42, 0.68);
  left: 0.75rem;
}

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

.movie-card:hover .play-layer {
  opacity: 1;
}

.play-layer span {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  color: var(--site-sky-dark);
  display: grid;
  font-size: 1.15rem;
  height: 3.2rem;
  place-items: center;
  width: 3.2rem;
}

.card-body {
  padding: 1rem;
}

.card-body h3 {
  color: #111827;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 0.55rem;
}

.card-body p {
  color: var(--site-muted);
  display: -webkit-box;
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 0.9rem;
  min-height: 2.9rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  color: #64748b;
  font-size: 0.78rem;
  justify-content: space-between;
}

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

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

.category-tile,
.category-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.1rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  color: inherit;
  display: block;
  padding: 1.25rem;
  transition: all 0.2s ease;
}

.category-tile:hover,
.category-panel:hover {
  border-color: #7dd3fc;
  box-shadow: 0 18px 40px rgba(2, 132, 199, 0.14);
  transform: translateY(-3px);
}

.category-tile span,
.category-panel h2 {
  color: #0f172a;
  display: block;
  font-size: 1.15rem;
  font-weight: 900;
  margin-bottom: 0.55rem;
}

.category-tile p,
.category-panel p {
  color: var(--site-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.category-tile small,
.category-panel div {
  color: var(--site-sky-dark);
  display: block;
  font-size: 0.78rem;
  line-height: 1.7;
  margin-top: 0.7rem;
}

.category-panel div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.category-panel div span {
  background: #e0f2fe;
  border-radius: 999px;
  color: var(--site-sky-dark);
  padding: 0.28rem 0.62rem;
}

.hot-rank-block {
  padding-top: 2rem;
}

.ranking-list,
.ranking-page-list {
  display: grid;
  gap: 0.8rem;
}

.ranking-item,
.ranking-row {
  align-items: center;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  color: inherit;
  display: grid;
  gap: 1rem;
  grid-template-columns: 3rem 6rem 1fr auto;
  padding: 0.85rem;
  transition: all 0.2s ease;
}

.ranking-row {
  grid-template-columns: 3rem 8rem 1fr;
  padding: 1rem;
}

.ranking-item:hover,
.ranking-row:hover {
  box-shadow: 0 16px 36px rgba(2, 132, 199, 0.13);
  transform: translateY(-2px);
}

.rank-num {
  color: var(--site-sky-dark);
  font-size: 1.35rem;
  font-weight: 900;
  text-align: center;
}

.ranking-item img,
.ranking-row img {
  aspect-ratio: 16 / 9;
  border-radius: 0.75rem;
  object-fit: cover;
  width: 100%;
}

.ranking-item strong,
.ranking-row h2 {
  color: #111827;
  font-weight: 900;
}

.ranking-item p,
.ranking-row p {
  color: var(--site-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 0.25rem;
}

.ranking-row small {
  color: var(--site-sky-dark);
  display: block;
  margin-top: 0.4rem;
}

.page-hero {
  background: linear-gradient(120deg, #0284c7, #1d4ed8);
  color: #fff;
  padding: 3rem 0;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 900;
  margin-top: 0.7rem;
}

.page-hero p {
  color: #dbeafe;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-top: 0.7rem;
  max-width: 48rem;
}

.breadcrumb {
  align-items: center;
  color: rgba(255, 255, 255, 0.86);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.breadcrumb a:hover {
  color: #fff;
}

.filter-panel {
  background: #fff;
  border-radius: 1.1rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  padding: 1.25rem;
}

.filter-controls {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 1fr 12rem 12rem;
  margin-bottom: 1.25rem;
}

.search-box {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  display: flex;
  gap: 0.5rem;
  padding: 0 0.9rem;
}

.search-box input,
.filter-controls select {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  color: #0f172a;
  min-height: 2.8rem;
  outline: none;
  padding: 0 0.9rem;
  width: 100%;
}

.search-box input {
  border: none;
  padding: 0;
}

.no-result {
  color: #64748b;
  display: none;
  padding: 2rem 0;
  text-align: center;
}

.no-result.show {
  display: block;
}

.is-hidden {
  display: none !important;
}

.detail-hero {
  background: linear-gradient(135deg, #0f172a, #075985);
  color: #fff;
  padding: 2rem 0 3rem;
}

.detail-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: 20rem 1fr;
  margin-top: 1.5rem;
}

.detail-cover {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #0f172a, #0ea5e9);
  border-radius: 1.1rem;
  overflow: hidden;
  box-shadow: 0 22px 48px rgba(2, 6, 23, 0.28);
}

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

.detail-info h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.detail-info .lead {
  color: #e0f2fe;
  font-size: 1.08rem;
  line-height: 1.85;
  margin-bottom: 1rem;
  max-width: 56rem;
}

.detail-info .detail-meta {
  margin-bottom: 1rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 1.5rem;
}

.tag-pill {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: #f8fafc;
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
}

.detail-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 2fr) minmax(18rem, 0.9fr);
}

.player-wrap {
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 1.1rem;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.22);
  overflow: hidden;
  position: relative;
}

.movie-player {
  height: 100%;
  width: 100%;
}

.player-cover {
  align-items: center;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.15));
  cursor: pointer;
  display: flex;
  inset: 0;
  justify-content: center;
  position: absolute;
  transition: opacity 0.2s ease;
  z-index: 2;
}

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

.player-cover span {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  color: var(--site-sky-dark);
  display: grid;
  font-size: 2rem;
  height: 5rem;
  place-items: center;
  width: 5rem;
}

.content-card,
.side-card {
  background: #fff;
  border-radius: 1.1rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  margin-top: 1.25rem;
  padding: 1.4rem;
}

.content-card h2,
.side-card h2 {
  color: #111827;
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.content-card h2:not(:first-child) {
  margin-top: 1.4rem;
}

.content-card p {
  color: #334155;
  font-size: 1rem;
  line-height: 1.9;
}

.side-list {
  display: grid;
  gap: 0.8rem;
}

.side-item {
  align-items: center;
  border-radius: 0.85rem;
  color: inherit;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 6rem 1fr;
  padding: 0.5rem;
  transition: background 0.2s ease;
}

.side-item:hover {
  background: #f0f9ff;
}

.side-item img {
  aspect-ratio: 16 / 9;
  border-radius: 0.7rem;
  object-fit: cover;
  width: 100%;
}

.side-item strong {
  color: #111827;
  display: block;
  font-weight: 900;
  line-height: 1.35;
}

.side-item span {
  color: #64748b;
  display: block;
  font-size: 0.82rem;
  margin-top: 0.25rem;
}

.site-footer h3 {
  color: #fff;
  font-weight: 900;
  margin-bottom: 1rem;
}

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

.footer-text {
  color: #9ca3af;
  font-size: 0.92rem;
  line-height: 1.8;
  margin-top: 1rem;
}

.site-footer li {
  margin-bottom: 0.55rem;
}

.site-footer a {
  color: #d1d5db;
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: #7dd3fc;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9ca3af;
  font-size: 0.9rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
}

@media (max-width: 1024px) {
  .grid-cards.three,
  .grid-cards.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .detail-cover {
    max-width: 24rem;
  }
}

@media (max-width: 720px) {
  .hero-carousel {
    height: 620px;
  }

  .hero-copy {
    padding-top: 2rem;
  }

  .hero-arrow {
    display: none;
  }

  .hero-search {
    bottom: 4.5rem;
  }

  .hero-search-box {
    max-width: none;
  }

  .grid-cards.three,
  .grid-cards.four,
  .category-grid,
  .category-grid.large,
  .filter-controls,
  .ranking-item,
  .ranking-row {
    grid-template-columns: 1fr;
  }

  .ranking-item img,
  .ranking-row img {
    width: 100%;
  }

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