:root {
  --bg: #f8fbff;
  --panel: #ffffff;
  --text: #172033;
  --muted: #68758a;
  --line: #e7edf6;
  --sky: #38bdf8;
  --blue: #2563eb;
  --deep: #0f172a;
  --soft: #eef8ff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 32rem), var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.brand-text {
  font-size: 20px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #42516a;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #0369a1;
  background: #e0f2fe;
}

.header-search {
  display: flex;
  align-items: center;
  width: min(320px, 28vw);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
}

.header-search input,
.quick-search input,
.page-search input,
.filter-bar input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 12px 16px;
  color: var(--text);
  background: transparent;
}

.header-search button,
.quick-search button,
.page-search button {
  border: 0;
  padding: 12px 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  cursor: pointer;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #e0f2fe;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #0369a1;
}

.hero {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  min-height: 620px;
  margin: 28px auto 0;
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(135deg, #0f172a 0%, #0c4a6e 44%, #2563eb 100%);
  box-shadow: var(--shadow);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(56, 189, 248, 0.35), transparent 28rem),
    radial-gradient(circle at 75% 8%, rgba(125, 211, 252, 0.22), transparent 24rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.22));
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  align-items: center;
  gap: 52px;
  padding: 70px;
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero-eyebrow,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  color: #0369a1;
  background: #e0f2fe;
  font-size: 14px;
  font-weight: 800;
}

.hero-eyebrow {
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-copy h1 {
  margin: 18px 0 16px;
  max-width: 720px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

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

.hero-tags {
  margin: 24px 0;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #075985;
  background: #e0f2fe;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.hero-actions,
.section-head,
.card-meta,
.breadcrumbs,
.detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
}

.btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
}

.hero-art {
  position: relative;
  display: block;
  height: 500px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
}

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

.hero-art span {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1;
  color: #ffffff;
  font-weight: 800;
}

.hero-controls {
  position: absolute;
  left: 70px;
  bottom: 44px;
  display: flex;
  gap: 10px;
  z-index: 2;
}

.hero-dot {
  width: 36px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

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

.quick-panel,
.section-block,
.page-main {
  margin-top: 42px;
}

.quick-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 24px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.quick-title h2,
.section-head h2,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.quick-title p,
.page-hero p,
.side-copy p,
.detail-one,
.detail-content p,
.site-footer p {
  color: var(--muted);
}

.quick-search,
.page-search {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.section-head {
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-head a {
  color: #0284c7;
  font-weight: 800;
}

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

.category-card,
.category-overview-card,
.movie-card,
.rank-panel,
.side-recommend,
.side-copy,
.detail-hero,
.detail-content article,
.player-section,
.search-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.category-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
}

.category-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.82));
}

.category-card span,
.category-card small {
  position: relative;
  z-index: 2;
}

.category-card span {
  font-size: 18px;
  font-weight: 900;
}

.category-card small {
  color: rgba(255, 255, 255, 0.76);
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
  gap: 24px;
}

.rank-layout.wide {
  display: block;
}

.rank-panel,
.side-recommend,
.side-copy,
.player-section {
  padding: 24px;
}

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

.rank-list.large {
  grid-template-columns: repeat(2, 1fr);
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: #f8fbff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: #e0f2fe;
  transform: translateX(4px);
}

.rank-no {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--sky), var(--blue));
}

.rank-main {
  display: grid;
  min-width: 0;
}

.rank-main strong,
.movie-card h2,
.compact-card span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-main small,
.card-meta,
.card-body p {
  color: var(--muted);
}

.rank-score {
  margin-left: auto;
  color: #0369a1;
  font-weight: 900;
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.compact-grid.mini {
  grid-template-columns: repeat(4, 1fr);
}

.compact-card {
  display: grid;
  gap: 8px;
}

.compact-card img {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  background: #dbeafe;
}

.compact-card span {
  font-size: 14px;
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 54px rgba(15, 23, 42, 0.16);
}

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #dbeafe;
}

.card-poster img {
  transition: transform 0.4s ease;
}

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

.card-badge,
.card-play {
  position: absolute;
  z-index: 1;
}

.card-badge {
  left: 12px;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #075985;
  background: rgba(224, 242, 254, 0.94);
  font-size: 12px;
  font-weight: 900;
}

.card-play {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.88);
}

.card-body {
  padding: 16px;
}

.card-body h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card-body p {
  min-height: 48px;
  margin: 0 0 12px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}

.tag-row {
  margin-top: 12px;
}

.page-main {
  padding-bottom: 56px;
}

.page-hero {
  padding: 38px;
  border-radius: 32px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #075985 52%, #2563eb);
  box-shadow: var(--shadow);
}

.page-hero.small {
  min-height: 220px;
  display: grid;
  align-content: center;
}

.page-hero p {
  max-width: 800px;
  color: rgba(255, 255, 255, 0.78);
}

.category-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.category-overview-grid {
  display: grid;
  gap: 18px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 20px;
  padding: 22px;
}

.category-overview-main h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.category-overview-main p {
  color: var(--muted);
}

.category-overview-main span {
  display: inline-flex;
  margin-top: 16px;
  color: #0284c7;
  font-weight: 900;
}

.filter-bar {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.breadcrumbs {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: #0284c7;
  font-weight: 700;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 32px;
  padding: 28px;
}

.detail-cover {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 3 / 4;
  background: #dbeafe;
}

.detail-info {
  align-self: center;
}

.detail-info h1 {
  margin: 18px 0 12px;
}

.detail-one {
  font-size: 18px;
}

.detail-tags {
  margin: 18px 0 22px;
}

.player-section,
.detail-content {
  margin-top: 28px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  aspect-ratio: 16 / 9;
}

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

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.55));
  cursor: pointer;
}

.play-cover span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  padding-left: 4px;
  font-size: 30px;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.38);
}

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

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.detail-content article {
  padding: 24px;
}

.detail-content h2,
.side-recommend h2,
.side-copy h2 {
  margin: 0 0 12px;
}

.search-results {
  display: grid;
  gap: 14px;
}

.search-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
}

.search-card img {
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  background: #dbeafe;
}

.search-card h2 {
  margin: 0 0 8px;
}

.search-card p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  margin-top: 56px;
  padding: 42px 0;
  background: #0f172a;
  color: #ffffff;
}

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

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

.site-footer a {
  display: block;
  margin: 6px 0;
  color: #bae6fd;
}

.footer-brand {
  font-size: 22px;
  color: #ffffff;
}

@media (max-width: 1024px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

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

  .main-nav,
  .header-search {
    display: none;
    width: 100%;
  }

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

  .main-nav {
    order: 3;
    flex-wrap: wrap;
    margin-left: 0;
  }

  .header-search {
    order: 4;
  }

  .hero {
    min-height: 780px;
  }

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

  .hero-art {
    height: 360px;
  }

  .quick-panel,
  .rank-layout,
  .detail-hero,
  .detail-content,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

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

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

  .hero {
    width: min(100% - 22px, 1240px);
    min-height: 760px;
    border-radius: 24px;
  }

  .hero-slide {
    padding: 26px;
    gap: 28px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-actions,
  .quick-search,
  .page-search,
  .category-hero {
    flex-direction: column;
    align-items: stretch;
  }

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

  .quick-panel,
  .page-hero,
  .detail-hero,
  .rank-panel,
  .side-recommend,
  .side-copy,
  .player-section {
    padding: 20px;
    border-radius: 22px;
  }

  .category-grid,
  .movie-grid,
  .rank-list.large,
  .compact-grid,
  .compact-grid.mini,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .detail-cover {
    width: min(280px, 100%);
  }

  .search-card {
    grid-template-columns: 78px minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .category-grid,
  .movie-grid,
  .compact-grid,
  .compact-grid.mini,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    height: 320px;
  }

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