:root {
  --bg: #f8fbff;
  --panel: rgba(255, 255, 255, 0.88);
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(148, 163, 184, 0.35);
  --brand: #0284c7;
  --brand-strong: #2563eb;
  --soft: #e0f2fe;
  --shadow: 0 20px 55px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 5%, rgba(14, 165, 233, 0.14), transparent 34%),
    radial-gradient(circle at 82% 8%, rgba(37, 99, 235, 0.12), transparent 32%),
    linear-gradient(180deg, #f0f9ff 0%, #ffffff 46%, #f8fafc 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

img {
  display: block;
  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(125, 211, 252, 0.35);
  background: linear-gradient(90deg, rgba(240, 249, 255, 0.92), rgba(248, 250, 252, 0.94));
  backdrop-filter: blur(18px);
}

.nav-shell {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  border-radius: 14px;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.24);
}

.brand-text,
.footer-brand {
  font-size: 1.2rem;
  background: linear-gradient(90deg, #0284c7, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 9px 13px;
  color: #334155;
  font-weight: 650;
  border-radius: 999px;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #0369a1;
  background: rgba(186, 230, 253, 0.65);
}

.top-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(125, 211, 252, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.top-search input {
  width: 210px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 8px 10px;
}

.top-search button,
.primary-btn,
.secondary-btn,
.filter-btn,
.player-button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 750;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search button,
.primary-btn,
.filter-btn,
.player-button {
  color: white;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.22);
}

.top-search button {
  padding: 8px 16px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
}

.secondary-btn {
  color: #075985;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(125, 211, 252, 0.55);
}

.top-search button:hover,
.primary-btn:hover,
.secondary-btn:hover,
.filter-btn:hover,
.player-button:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #0f172a;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(125, 211, 252, 0.35);
  background: rgba(255, 255, 255, 0.9);
}

.mobile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 0;
}

.mobile-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f0f9ff;
  color: #075985;
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 38px 0 22px;
}

.hero-shell {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow);
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

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

.hero-media {
  position: relative;
  min-height: 620px;
}

.hero-media img {
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.28), transparent),
    linear-gradient(0deg, rgba(15, 23, 42, 0.62), transparent 52%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 58px 64px 18px;
  color: white;
  background:
    radial-gradient(circle at 18% 18%, rgba(56, 189, 248, 0.28), transparent 30%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.98));
}

.hero-content h1 {
  margin: 14px 0 18px;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 620px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.hero-tags,
.tag-list,
.detail-tags,
.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-list span,
.detail-tags span,
.category-tags a,
.category-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(224, 242, 254, 0.9);
  color: #0369a1;
  font-size: 0.8rem;
  font-weight: 700;
}

.hero .hero-tags span {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.hero-controls {
  position: absolute;
  left: 34px;
  bottom: 30px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 42px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.32);
}

.hero-dot.is-active {
  background: white;
}

.hero-aside {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 5;
  width: min(360px, 36vw);
  padding: 18px;
  border-radius: 22px;
  color: white;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.hero-aside strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.hero-aside a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  color: rgba(255, 255, 255, 0.84);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-main,
.detail-main {
  padding: 34px 0 70px;
}

.section-block {
  margin-top: 58px;
}

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

.eyebrow {
  margin: 0 0 6px;
  color: var(--brand);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-more {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  color: #0369a1;
  border-radius: 999px;
  background: #e0f2fe;
  font-weight: 800;
}

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

.movie-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 260px);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scroll-snap-type: x mandatory;
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #e0f2fe);
}

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

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

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

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

.play-dot {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  background: rgba(14, 165, 233, 0.94);
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.28);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  border-radius: 12px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 12px 22px rgba(239, 68, 68, 0.25);
}

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

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.movie-card p {
  margin: 0 0 12px;
  min-height: 44px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.category-card {
  padding: 20px;
  min-height: 154px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(240, 249, 255, 0.96), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(125, 211, 252, 0.38);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 1.22rem;
}

.category-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.page-title {
  padding: 48px 0 22px;
}

.page-title p,
.detail-title p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
}

.filter-panel,
.search-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px auto;
  gap: 12px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  margin-bottom: 26px;
}

.filter-panel input,
.filter-panel select,
.search-panel input,
.search-panel select {
  min-height: 44px;
  width: 100%;
  border: 1px solid rgba(203, 213, 225, 0.86);
  border-radius: 14px;
  padding: 0 14px;
  outline: 0;
  background: white;
  color: var(--text);
}

.filter-btn {
  min-height: 44px;
  padding: 0 18px;
}

.no-result {
  display: none;
  padding: 36px;
  text-align: center;
  color: var(--muted);
  border-radius: 24px;
  background: white;
}

.no-result.is-visible {
  display: block;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: #0369a1;
  font-weight: 750;
}

.detail-hero {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 34px;
  align-items: stretch;
  padding: 26px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: var(--shadow);
}

.detail-cover {
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(135deg, #dbeafe, #e0f2fe);
}

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

.detail-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: #f0f9ff;
  color: #0369a1;
  font-weight: 760;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.player-card {
  margin-top: 34px;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: var(--shadow);
}

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

.player-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.player-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.2), rgba(2, 6, 23, 0.74));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-button {
  width: 96px;
  height: 96px;
  font-size: 2rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  margin-top: 34px;
}

.article-panel,
.side-panel {
  padding: 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.article-panel h2,
.side-panel h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.article-panel p {
  margin: 0 0 18px;
  color: #334155;
}

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

.side-list a {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
}

.side-list img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: #e0f2fe;
}

.side-list strong {
  display: block;
  line-height: 1.25;
}

.side-list span {
  color: var(--muted);
  font-size: 0.84rem;
}

.result-summary {
  color: var(--muted);
  margin: 0 0 18px;
}

.site-footer {
  margin-top: 70px;
  padding: 46px 0 28px;
  background: linear-gradient(180deg, #f8fafc, #e0f2fe);
  border-top: 1px solid rgba(125, 211, 252, 0.4);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.7fr;
  gap: 28px;
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.site-footer p,
.copyright {
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #075985;
  font-weight: 700;
}

.copyright {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
}

@media (max-width: 1024px) {
  .main-nav,
  .top-search {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
    margin-left: auto;
  }

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

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

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

  .hero-content {
    min-height: 620px;
    padding: 56px 32px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.72));
  }

  .hero-aside {
    display: none;
  }

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

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

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

  .detail-cover img {
    max-height: 620px;
  }
}

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

  .hero {
    padding-top: 16px;
  }

  .hero-shell,
  .hero-content,
  .hero-media {
    min-height: 560px;
    border-radius: 24px;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  .hero-controls {
    left: 24px;
    bottom: 22px;
  }

  .section-head,
  .footer-grid {
    display: block;
  }

  .section-more {
    margin-top: 12px;
  }

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

  .movie-card p {
    display: none;
  }

  .card-body {
    padding: 13px;
  }

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

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

  .detail-hero {
    padding: 16px;
    gap: 20px;
    border-radius: 24px;
  }

  .detail-cover img {
    min-height: 360px;
  }

  .player-button {
    width: 78px;
    height: 78px;
  }
}
