
:root {
  --bg: #f4f8ff;
  --bg-soft: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(148, 163, 184, 0.18);
  --brand1: #38bdf8;
  --brand2: #06b6d4;
  --brand3: #0f766e;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
  --container: min(1280px, calc(100% - 32px));
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.13), transparent 28%),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.11), transparent 25%),
    linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
  color: var(--text);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(22px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.site-header__inner {
  width: var(--container);
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 26px rgba(14, 165, 233, 0.32);
  flex: 0 0 auto;
}

.brand__text {
  font-size: 1.05rem;
}

.brand__sub {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.nav__links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__links a,
.nav__toggle {
  color: #1e293b;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 999px;
  transition: all 0.22s ease;
}

.nav__links a:hover,
.nav__links a.is-active,
.nav__toggle:hover {
  background: rgba(56, 189, 248, 0.12);
  color: #0284c7;
}

.nav__toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.search-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 290px;
  padding: 10px 14px;
  border-radius: 999px;
  background: white;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--shadow-soft);
}

.search-pill input {
  border: 0;
  outline: none;
  background: transparent;
  width: 100%;
  color: var(--text);
}

.search-pill input::placeholder {
  color: #94a3b8;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 38px 38px;
  background: linear-gradient(135deg, #0f172a 0%, #082f49 42%, #0369a1 100%);
  color: white;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  filter: blur(10px);
  pointer-events: none;
}

.hero::before {
  width: 420px;
  height: 420px;
  right: -140px;
  top: -120px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.45), transparent 62%);
}

.hero::after {
  width: 380px;
  height: 380px;
  left: -140px;
  bottom: -180px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent 64%);
}

.hero__inner {
  width: var(--container);
  margin: 0 auto;
  padding: 54px 0 38px;
  position: relative;
  z-index: 1;
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  align-items: center;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.16);
}

.hero__title {
  margin: 16px 0 14px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero__desc {
  max-width: 48rem;
  color: rgba(255,255,255,0.86);
  font-size: 1.02rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 1px solid transparent;
}

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

.btn--primary {
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  color: white;
  box-shadow: 0 14px 28px rgba(14, 165, 233, 0.3);
}

.btn--ghost {
  background: rgba(255,255,255,0.12);
  color: white;
  border-color: rgba(255,255,255,0.18);
}

.btn--light {
  background: white;
  color: #0f172a;
  box-shadow: var(--shadow-soft);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.stat-chip {
  min-width: 110px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(14px);
}

.stat-chip strong {
  display: block;
  font-size: 1.2rem;
}

.stat-chip span {
  color: rgba(255,255,255,0.76);
  font-size: 0.86rem;
}

.hero__panel {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.32);
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.hero__panel-head {
  padding: 18px 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero__panel-title {
  font-size: 1rem;
  font-weight: 800;
}

.hero__panel-sub {
  color: rgba(255,255,255,0.78);
  font-size: 0.86rem;
}

.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(186px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding: 18px;
  scroll-snap-type: x mandatory;
}

.carousel::-webkit-scrollbar,
.scrollbar-hide::-webkit-scrollbar {
  height: 8px;
}

.carousel::-webkit-scrollbar-thumb,
.scrollbar-hide::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.34);
  border-radius: 999px;
}

.film-mini {
  scroll-snap-align: start;
  min-height: 246px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  background: linear-gradient(135deg, hsl(var(--h1) 78% 55%), hsl(var(--h2) 74% 42%));
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.28);
  isolation: isolate;
}

.film-mini::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.22), transparent 26%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.06), rgba(15, 23, 42, 0.65));
  z-index: -1;
}

.film-mini__body {
  width: 100%;
}

.film-mini__title {
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.25;
}

.film-mini__meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255,255,255,0.82);
  font-size: 0.82rem;
}

.section {
  padding: 34px 0;
}

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

.section__title {
  font-size: 1.75rem;
  line-height: 1.15;
  margin: 0;
}

.section__desc {
  color: var(--muted);
  margin: 8px 0 0;
  max-width: 60rem;
}

.section__link {
  color: #0284c7;
  font-weight: 700;
  white-space: nowrap;
}

.card-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(56, 189, 248, 0.28);
}

.movie-card__poster {
  aspect-ratio: 2 / 3;
  position: relative;
  background: linear-gradient(135deg, hsl(var(--h1) 78% 58%), hsl(var(--h2) 74% 43%));
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  isolation: isolate;
}

.movie-card__poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.22), transparent 25%),
    radial-gradient(circle at 80% 10%, rgba(255,255,255,0.18), transparent 16%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.78));
  z-index: -1;
}

.movie-card__poster-inner {
  width: 100%;
}

.movie-card__initial {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
}

.movie-card__poster-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.82);
}

.movie-card__body {
  padding: 14px 14px 16px;
  display: grid;
  gap: 10px;
}

.movie-card__title {
  font-weight: 800;
  line-height: 1.28;
  font-size: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card__desc {
  color: var(--muted);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.7em * 2);
}

.meta-row,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.76);
  color: #334155;
  font-size: 0.8rem;
  font-weight: 700;
}

.chip--brand {
  background: rgba(56, 189, 248, 0.12);
  color: #0369a1;
}

.chip--dark {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

.panel {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  padding: 22px;
}

.grid-two {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.05fr 0.95fr;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(241, 247, 255, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.rank-item__no {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  color: white;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.05rem;
  box-shadow: 0 12px 22px rgba(14, 165, 233, 0.24);
}

.rank-item__title {
  font-weight: 800;
  margin: 0 0 3px;
}

.rank-item__sub {
  color: var(--muted);
  font-size: 0.88rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.field {
  min-width: 168px;
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 700;
}

.field input,
.field select,
.search-box input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255,255,255,0.94);
  border-radius: 16px;
  padding: 12px 14px;
  outline: none;
  color: var(--text);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.03);
}

.field input:focus,
.field select:focus,
.search-box input:focus {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

.search-box {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.search-box input {
  min-width: 280px;
  flex: 1 1 360px;
}

.page-hero {
  padding: 28px 0 10px;
}

.page-hero__panel {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 30px;
  color: white;
  background: linear-gradient(135deg, #0f172a 0%, #075985 55%, #06b6d4 100%);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.2);
}

.page-hero__panel::after {
  content: "";
  position: absolute;
  inset: auto -60px -70px auto;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,0.14), transparent 65%);
}

.page-hero__title {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.1;
}

.page-hero__desc {
  margin: 0;
  color: rgba(255,255,255,0.84);
  max-width: 62rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 16px;
}

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

.detail-hero {
  display: grid;
  gap: 18px;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: stretch;
}

.detail-cover {
  border-radius: 30px;
  overflow: hidden;
  min-height: 420px;
  background: linear-gradient(135deg, hsl(var(--h1) 76% 55%), hsl(var(--h2) 74% 42%));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  color: white;
  box-shadow: var(--shadow);
  position: relative;
}

.detail-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.26), transparent 24%),
    linear-gradient(180deg, rgba(15,23,42,0.04), rgba(15,23,42,0.74));
}

.detail-cover__body {
  position: relative;
  z-index: 1;
}

.detail-cover__initial {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
}

.detail-cover__meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.86);
}

.detail-info {
  display: grid;
  gap: 16px;
}

.detail-title {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.1;
}

.detail-copy {
  color: var(--muted);
  font-size: 1rem;
}

.detail-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.metric {
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow-soft);
  font-weight: 700;
}

.player-shell {
  padding: 18px;
  border-radius: 30px;
  background: rgba(2, 6, 23, 0.96);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.player-shell video {
  width: 100%;
  border-radius: 22px;
  aspect-ratio: 16 / 9;
  background: #000;
}

.copy-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
}

.detail-section {
  padding: 18px 0;
}

.detail-section__title {
  font-size: 1.45rem;
  margin: 0 0 14px;
}

.prose {
  color: #334155;
}

.prose p {
  margin: 0 0 14px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list .chip {
  background: rgba(56, 189, 248, 0.12);
  color: #0369a1;
}

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

.footer {
  margin-top: 24px;
  padding: 34px 0 40px;
  color: #475569;
}

.footer__panel {
  border-radius: 30px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

.footer__grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
}

.footer h4 {
  margin: 0 0 12px;
  color: #0f172a;
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer li + li {
  margin-top: 8px;
}

.footer a:hover {
  color: #0284c7;
}

.footer__bottom {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: #64748b;
}

.empty-state {
  padding: 34px;
  text-align: center;
  color: var(--muted);
}

.hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  .card-grid,
  .related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .grid-two {
    grid-template-columns: 1fr;
  }
  .detail-hero {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .site-header__inner {
    min-height: 68px;
    gap: 12px;
  }
  .nav {
    margin-left: auto;
  }
  .nav__links {
    display: none;
  }
  .nav__toggle {
    display: inline-flex;
  }
  .search-pill {
    min-width: 0;
    flex: 1;
  }
  .hero__inner,
  .detail-hero,
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .hero__inner {
    padding-top: 32px;
  }
  .carousel {
    grid-auto-columns: minmax(170px, 72vw);
  }
  .section__head {
    flex-direction: column;
    align-items: start;
  }
  .card-grid,
  .card-grid--wide,
  .card-grid--three,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-cover {
    min-height: 320px;
  }
  .search-box input {
    min-width: 0;
    flex-basis: 100%;
  }
  .field {
    min-width: 0;
    flex: 1 1 100%;
  }
}

@media (max-width: 640px) {
  .container,
  .site-header__inner,
  .hero__inner {
    width: min(100%, calc(100% - 24px));
  }
  .hero {
    border-radius: 0 0 26px 26px;
  }
  .hero__title,
  .page-hero__title {
    font-size: 1.9rem;
  }
  .card-grid,
  .card-grid--wide,
  .card-grid--three,
  .related-grid {
    grid-template-columns: 1fr;
  }
  .rank-item {
    grid-template-columns: 1fr;
  }
}


.mobile-nav {
  display: none;
}

.mobile-nav__panel {
  width: var(--container);
  margin: 0 auto 16px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow-soft);
}

.mobile-nav__links {
  display: grid;
  gap: 8px;
}

.mobile-nav__links a {
  padding: 12px 14px;
  border-radius: 16px;
  font-weight: 700;
  color: #0f172a;
  background: rgba(241, 245, 249, 0.92);
}

.mobile-nav__links a.is-active {
  background: rgba(56, 189, 248, 0.14);
  color: #0284c7;
}

@media (max-width: 900px) {
  .mobile-nav {
    display: block;
  }

  .nav__links {
    display: none;
  }
}
