
:root {
  --bg: #f1f5f9;
  --bg-soft: #f8fafc;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(148, 163, 184, 0.22);
  --brand: #06b6d4;
  --brand-2: #22c55e;
  --accent: #f97316;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.12), transparent 34%),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.10), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

::selection {
  background: rgba(6, 182, 212, 0.18);
  color: #082f49;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(20px);
  background: rgba(15, 23, 42, 0.82);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 45%, #22c55e 100%);
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.35);
}

.brand-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.brand-name {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.2;
}

.brand-sub {
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}

.nav-links a,
.nav-links button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(226, 232, 240, 0.9);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all .2s ease;
}

.nav-links a:hover,
.nav-links button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.10);
}

.nav-links a.is-active {
  color: #082f49;
  background: linear-gradient(135deg, #67e8f9, #a5f3fc);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.nav-panel {
  display: none;
  padding: 0 0 16px;
}

.nav-panel .nav-links {
  margin-left: 0;
}

.page {
  padding: 22px 0 60px;
}

.page-banner,
.hero-banner {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, rgba(8, 47, 73, 0.94), rgba(15, 23, 42, 0.94));
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity .6s ease, transform .8s ease;
  pointer-events: none;
}

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

.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.02) contrast(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.18) 0%, rgba(2, 6, 23, 0.56) 42%, rgba(2, 6, 23, 0.94) 100%),
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.30), transparent 30%),
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.24), transparent 28%);
}

.hero-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 38px;
  color: #fff;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #cffafe;
  background: rgba(15, 23, 42, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.hero-title {
  margin: 18px 0 12px;
  max-width: 14ch;
  font-size: clamp(2.3rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-subtitle {
  max-width: 780px;
  margin: 0 0 22px;
  color: rgba(226, 232, 240, 0.88);
  font-size: clamp(1rem, 2vw, 1.16rem);
}

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

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

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

.btn-primary {
  color: #082f49;
  background: linear-gradient(135deg, #67e8f9 0%, #a7f3d0 100%);
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.22);
}

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.hero-nav {
  position: absolute;
  inset: auto 22px 24px auto;
  display: flex;
  gap: 10px;
  z-index: 2;
}

.hero-arrow {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.5);
  color: white;
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.hero-dot {
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
  border: 0;
  cursor: pointer;
  transition: all .2s ease;
}

.hero-dot.is-active {
  width: 54px;
  background: linear-gradient(90deg, #67e8f9, #a7f3d0);
}

.section {
  margin-top: 28px;
}

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

.section-title {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.2;
}

.section-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(100%, 420px);
  padding: 10px 14px;
  border-radius: 18px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

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

.search-bar svg,
.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.select {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat-card {
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.stat-num {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 900;
  color: #0f172a;
}

.stat-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(6, 182, 212, 0.34);
}

.movie-link {
  display: block;
  height: 100%;
}

.movie-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #cbd5e1;
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

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

.movie-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.movie-rate {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.86);
  color: #082f49;
  font-size: 0.75rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.movie-info {
  padding: 14px 14px 16px;
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.movie-desc {
  margin: 10px 0 0;
  color: #475569;
  font-size: 0.84rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.82);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.chip.is-active {
  border-color: rgba(6, 182, 212, 0.35);
  background: linear-gradient(135deg, rgba(103, 232, 249, 0.26), rgba(167, 243, 208, 0.22));
}

.category-card,
.link-card {
  padding: 18px;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}

.category-card:hover,
.link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.category-title {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 800;
}

.category-count {
  color: var(--muted);
  font-size: 0.84rem;
}

.category-text {
  margin: 0;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.75;
}

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

.rank-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.rank-num {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #082f49;
  background: linear-gradient(135deg, #67e8f9, #a7f3d0);
}

.rank-title {
  margin: 0;
  font-weight: 800;
}

.rank-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.rank-score {
  color: #0f172a;
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: 22px;
  align-items: start;
}

.detail-card,
.player-box {
  overflow: hidden;
  border-radius: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.detail-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: end;
  background: linear-gradient(180deg, rgba(15,23,42,.10), rgba(15,23,42,.72));
}

.detail-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.12) 0%, rgba(2, 6, 23, 0.58) 55%, rgba(2, 6, 23, 0.94) 100%);
}

.detail-hero-body {
  position: relative;
  z-index: 1;
  padding: 26px;
  color: #fff;
}

.detail-title {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.detail-lead {
  margin: 0;
  max-width: 760px;
  color: rgba(226, 232, 240, 0.92);
  font-size: 1rem;
  line-height: 1.85;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.detail-body {
  padding: 24px;
}

.panel {
  padding: 22px;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.panel + .panel {
  margin-top: 18px;
}

.panel-title {
  margin: 0 0 14px;
  font-size: 1.08rem;
  font-weight: 800;
}

.player-wrap {
  padding: 16px;
  background: linear-gradient(180deg, rgba(15,23,42,0.98), rgba(15,23,42,0.90));
}

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

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.player-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.player-note {
  margin-top: 12px;
  color: rgba(226, 232, 240, 0.76);
  font-size: 0.86rem;
}

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

.side-card {
  padding: 14px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.side-card h4 {
  margin: 0 0 8px;
  font-size: 0.98rem;
}

.side-card p {
  margin: 0;
  color: #475569;
  font-size: 0.86rem;
  line-height: 1.65;
}

.footer {
  padding: 36px 0 54px;
  color: var(--muted);
}

.footer-box {
  padding: 24px;
  border-radius: 26px;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 20px;
}

.footer h4 {
  margin: 0 0 12px;
  color: var(--text);
}

.footer a {
  color: inherit;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.86rem;
}

.hidden {
  display: none !important;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.filter-status {
  font-size: 0.9rem;
  color: var(--muted);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.88rem;
}

.breadcrumb a {
  color: var(--text);
}

@media (max-width: 1080px) {
  .grid-5 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .stat-strip,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .header-row {
    flex-wrap: wrap;
  }
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav-panel.is-open {
    display: block;
  }
  .hero-carousel {
    min-height: 560px;
  }
  .hero-content {
    padding: 24px;
  }
  .grid-4,
  .grid-5,
  .grid-3,
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section-head,
  .category-head {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 20px, 1200px);
  }
  .page {
    padding-top: 16px;
  }
  .hero-carousel {
    min-height: 520px;
  }
  .hero-title {
    max-width: 100%;
  }
  .stat-strip,
  .grid-4,
  .grid-5,
  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .movie-title {
    font-size: 0.96rem;
  }
}
