:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --blue-600: #2563eb;
  --purple-500: #8b5cf6;
  --orange-500: #f97316;
  --amber-500: #f59e0b;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 10px 30px rgba(2, 132, 199, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 48%, #f0f9ff 100%);
  color: var(--text-main);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.05);
}

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

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky-500), var(--cyan-500));
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.35);
}

.logo-text {
  background: linear-gradient(90deg, var(--sky-500), var(--cyan-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #334155;
  font-weight: 650;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--sky-500), var(--cyan-500));
  transition: transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--sky-600);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.header-search {
  position: relative;
  width: 250px;
}

.header-search input,
.search-panel input,
.filter-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 11px 46px 11px 16px;
  outline: none;
  background: #ffffff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search input:focus,
.search-panel input:focus,
.filter-input:focus {
  border-color: var(--sky-500);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16);
}

.search-button {
  position: absolute;
  top: 50%;
  right: 9px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--sky-500), var(--cyan-500));
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  color: #0f172a;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.98);
}

.mobile-menu-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 20px;
  display: grid;
  gap: 12px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  background:
    radial-gradient(circle at 12% 18%, rgba(34, 211, 238, 0.35), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(14, 165, 233, 0.35), transparent 32%),
    linear-gradient(135deg, #ecfeff 0%, #f0f9ff 38%, #eff6ff 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -140px -80px auto auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.16);
  filter: blur(10px);
}

.hero::after {
  content: "";
  position: absolute;
  left: 6%;
  bottom: 60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.16);
  filter: blur(18px);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 46px;
  align-items: center;
  padding: 78px 0 72px;
}

.hero-copy {
  display: grid;
  gap: 22px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--sky-600);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(14, 165, 233, 0.18);
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.08);
}

.hero-title {
  margin: 0;
  font-size: clamp(2.8rem, 6.8vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.08em;
}

.hero-title span {
  display: block;
  background: linear-gradient(90deg, #0284c7 0%, #06b6d4 52%, #2563eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  margin: 0;
  max-width: 650px;
  color: #475569;
  font-size: 1.08rem;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 19px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  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, var(--sky-500), var(--cyan-500));
  box-shadow: 0 14px 32px rgba(14, 165, 233, 0.32);
}

.btn-secondary {
  color: var(--sky-600);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(14, 165, 233, 0.24);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 620px;
}

.stat-card {
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.06);
}

.stat-card strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1.1;
}

.stat-card span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.hero-slider {
  position: relative;
  min-height: 540px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(210px, 0.72fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  padding: 18px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateX(24px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  min-height: 490px;
  background: linear-gradient(135deg, #bae6fd, #e0f2fe);
}

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

.hero-slide:hover .hero-poster img {
  transform: scale(1.05);
}

.hero-poster::after,
.poster-frame::after,
.card-poster::after {
  content: attr(data-fallback);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  color: rgba(2, 132, 199, 0.76);
  font-weight: 900;
  background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
  opacity: 0;
  transition: opacity 0.2s ease;
}

img.is-missing {
  opacity: 0;
}

.hero-poster:has(img.is-missing)::after,
.poster-frame:has(img.is-missing)::after,
.card-poster:has(img.is-missing)::after {
  opacity: 1;
}

.hero-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 17px;
  padding: 18px 14px;
}

.hero-info h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-info p {
  margin: 0;
  color: #475569;
}

.meta-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.badge,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 750;
  color: #0369a1;
  background: #e0f2fe;
}

.badge-purple {
  color: #6d28d9;
  background: #ede9fe;
}

.badge-dark {
  color: #ffffff;
  background: rgba(15, 23, 42, 0.78);
}

.tag {
  color: #475569;
  background: #f1f5f9;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: -28px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: #bae6fd;
  cursor: pointer;
}

.hero-dot.active {
  width: 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sky-500), var(--cyan-500));
}

section,
.page-section {
  padding: 64px 0;
}

.section-soft {
  background: linear-gradient(90deg, #f0f9ff, #ecfeff);
}

.section-warm {
  background: linear-gradient(90deg, #fff7ed, #fffbeb);
}

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

.section-title {
  margin: 10px 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.section-desc {
  margin: 8px 0 0;
  color: var(--text-muted);
  max-width: 760px;
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 22px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.card-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

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

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

.card-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, transparent 10%, rgba(2, 6, 23, 0.7) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .card-overlay {
  opacity: 1;
}

.play-bubble {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--sky-500);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.24);
}

.card-badge-left,
.card-badge-right,
.card-year {
  position: absolute;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
}

.card-badge-left {
  top: 10px;
  left: 10px;
  background: var(--sky-500);
}

.card-badge-right {
  top: 10px;
  right: 10px;
  background: var(--purple-500);
}

.card-year {
  left: 10px;
  bottom: 10px;
  background: rgba(15, 23, 42, 0.72);
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.card-title {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.28;
}

.card-title a:hover {
  color: var(--sky-600);
}

.card-line {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  color: #64748b;
  font-size: 0.82rem;
}

.list-stack {
  display: grid;
  gap: 16px;
}

.list-card {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.list-card .card-poster {
  border-radius: 16px;
  aspect-ratio: 3 / 4;
}

.list-rank {
  min-width: 64px;
  text-align: right;
  color: var(--sky-600);
  font-size: 1.2rem;
  font-weight: 900;
}

.category-card {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  color: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 42px rgba(14, 165, 233, 0.18);
}

.category-card strong {
  display: block;
  font-size: 1.22rem;
}

.category-card span {
  color: #475569;
  font-size: 0.92rem;
}

.category-icon {
  font-size: 2rem;
}

.tone-sky {
  background: linear-gradient(135deg, #e0f2fe, #cffafe);
}

.tone-cyan {
  background: linear-gradient(135deg, #cffafe, #ccfbf1);
}

.tone-indigo {
  background: linear-gradient(135deg, #e0e7ff, #dbeafe);
}

.tone-violet {
  background: linear-gradient(135deg, #ede9fe, #f5d0fe);
}

.tone-amber {
  background: linear-gradient(135deg, #fef3c7, #ffedd5);
}

.tone-orange {
  background: linear-gradient(135deg, #ffedd5, #fee2e2);
}

.tone-emerald {
  background: linear-gradient(135deg, #d1fae5, #dcfce7);
}

.tone-stone {
  background: linear-gradient(135deg, #f5f5f4, #e7e5e4);
}

.tone-pink {
  background: linear-gradient(135deg, #fce7f3, #ffe4e6);
}

.tone-blue {
  background: linear-gradient(135deg, #dbeafe, #e0f2fe);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0;
  background:
    radial-gradient(circle at 84% 14%, rgba(14, 165, 233, 0.25), transparent 28%),
    linear-gradient(135deg, #f0f9ff, #ecfeff);
}

.page-hero h1 {
  margin: 10px 0 8px;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.page-hero p {
  margin: 0;
  max-width: 780px;
  color: var(--text-muted);
  font-size: 1.04rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 0.92rem;
  margin-bottom: 22px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 28px;
  align-items: start;
}

.player-card,
.detail-card,
.sidebar-card,
.search-panel {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #020617;
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.72), rgba(14, 165, 233, 0.46));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.player-cover-inner {
  text-align: center;
  color: #ffffff;
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 22px;
}

.player-cover-inner .play-bubble {
  width: 72px;
  height: 72px;
  color: var(--sky-600);
}

.player-note {
  padding: 12px 16px;
  color: #cbd5e1;
  background: #020617;
  font-size: 0.9rem;
}

.detail-card,
.sidebar-card,
.search-panel {
  padding: 24px;
}

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

.detail-card h2,
.sidebar-card h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.detail-card p {
  color: #334155;
}

.poster-frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
}

.poster-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

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

.related-item {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

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

.related-item img {
  width: 66px;
  height: 88px;
  border-radius: 12px;
  object-fit: cover;
  background: #e0f2fe;
}

.pagination-note,
.empty-state {
  padding: 18px;
  border-radius: 18px;
  color: #475569;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
}

.filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  margin-bottom: 26px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-pill {
  padding: 9px 13px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  cursor: pointer;
  font-weight: 750;
}

.filter-pill.active,
.filter-pill:hover {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--sky-500), var(--cyan-500));
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 42px 0;
}

.footer-grid h3 {
  margin: 0 0 12px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: #64748b;
  font-size: 0.94rem;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 32px;
  border-top: 1px solid #cbd5e1;
}

@media (max-width: 1080px) {
  .header-search {
    display: none;
  }

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

  .hero-slider {
    min-height: 520px;
  }

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

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

@media (max-width: 760px) {
  .main-nav {
    display: none;
  }

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

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

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding: 44px 0 54px;
  }

  .hero-slide {
    position: relative;
    display: none;
    grid-template-columns: 1fr;
  }

  .hero-slide.active {
    display: grid;
  }

  .hero-slider {
    min-height: auto;
  }

  .hero-poster {
    min-height: 330px;
  }

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

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

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

  .list-card {
    grid-template-columns: 86px 1fr;
  }

  .list-rank {
    grid-column: 1 / -1;
    text-align: left;
  }

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

  .filters {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .grid-cards,
  .grid-categories {
    grid-template-columns: 1fr;
  }

  .logo {
    font-size: 1.18rem;
  }

  .card-poster {
    aspect-ratio: 16 / 11;
  }
}
