:root {
  --bg: #f8fbff;
  --surface: #ffffff;
  --surface-soft: #eef8ff;
  --text: #172033;
  --muted: #657084;
  --line: #e4edf7;
  --brand: #38bdf8;
  --brand-deep: #2563eb;
  --brand-soft: rgba(56, 189, 248, 0.14);
  --gold: #f5b942;
  --shadow: 0 18px 45px rgba(37, 99, 235, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 32rem), linear-gradient(180deg, #f7fbff 0%, #ffffff 42%, #f8fbff 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  backdrop-filter: blur(16px);
}

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

.navbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #7dd3fc, #2563eb);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(56, 189, 248, 0.32);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-name {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 10px 13px;
  border-radius: 12px;
  color: #475569;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-deep);
  background: var(--brand-soft);
}

.header-search {
  position: relative;
  width: min(280px, 24vw);
}

.header-search input {
  width: 100%;
  height: 42px;
  padding: 0 46px 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fbff;
  outline: none;
  color: var(--text);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
}

.header-search button {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: #334155;
}

.mobile-panel {
  display: none;
  padding: 0 0 18px;
}

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

.mobile-panel .nav-link {
  display: block;
  margin: 4px 0;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 46px 0 28px;
}

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

.hero::before {
  width: 320px;
  height: 320px;
  left: -90px;
  top: 30px;
  background: rgba(125, 211, 252, 0.24);
}

.hero::after {
  width: 420px;
  height: 420px;
  right: -160px;
  top: 10px;
  background: rgba(37, 99, 235, 0.12);
}

.hero-stage {
  position: relative;
  z-index: 1;
  min-height: 520px;
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(135deg, #e0f2fe, #ffffff 50%, #eff6ff);
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 34px;
  align-items: center;
  padding: clamp(28px, 4vw, 62px);
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: #0369a1;
  font-size: 13px;
  font-weight: 800;
}

.hero h1,
.hero h2 {
  margin: 20px 0 16px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.gradient-text {
  background: linear-gradient(135deg, #0f172a, #0284c7 58%, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  max-width: 620px;
  margin: 0 0 22px;
  color: #475569;
  font-size: 18px;
  line-height: 1.85;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #334155;
  border: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 13px;
  font-weight: 800;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  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-light {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.hero-art {
  position: relative;
  min-height: 390px;
}

.hero-poster {
  position: absolute;
  inset: 0 0 0 7%;
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(135deg, #dbeafe, #e0f2fe);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.46), transparent 48%);
}

.floating-card {
  position: absolute;
  left: 0;
  bottom: 28px;
  width: min(300px, 74%);
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(18px);
}

.floating-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.floating-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.hero-dots {
  position: absolute;
  left: clamp(28px, 4vw, 62px);
  bottom: 24px;
  z-index: 5;
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.28);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 32px;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
}

.section {
  padding: 44px 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.04em;
}

.section-desc {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0284c7;
  font-weight: 900;
}

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

.category-card {
  min-height: 150px;
  padding: 22px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(239, 246, 255, 0.86));
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px rgba(37, 99, 235, 0.12);
}

.category-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #f0f9ff);
}

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

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

.poster-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.12));
  transition: opacity 0.25s ease;
}

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

.play-badge {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #0284c7;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.corner-tag {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.9);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 18px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.rating {
  color: #d97706;
}

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

.page-card {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.86));
  box-shadow: var(--shadow);
}

.page-card h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.045em;
}

.page-card p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
}

.tools {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  margin: 24px 0 26px;
}

.tools input,
.tools select {
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  padding: 0 14px;
  outline: none;
}

.tools input:focus,
.tools select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 70px 148px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.11);
}

.rank-num {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  font-size: 20px;
  font-weight: 900;
}

.rank-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #dbeafe, #f0f9ff);
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-info h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 6px;
  color: #64748b;
  font-size: 14px;
}

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

.player-card,
.info-card,
.side-card {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.58), rgba(2, 6, 23, 0.2));
  cursor: pointer;
  z-index: 2;
}

.player-shell.is-playing .player-overlay {
  display: none;
}

.player-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #0284c7;
  font-size: 30px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.player-label {
  font-size: 18px;
  font-weight: 900;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.36);
}

.detail-body {
  padding: clamp(22px, 3vw, 34px);
}

.detail-title {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.045em;
}

.detail-intro {
  margin: 0 0 24px;
  color: #475569;
  line-height: 1.85;
  font-size: 17px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 22px 0 10px;
}

.meta-item {
  padding: 13px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid var(--line);
}

.meta-label {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  margin-bottom: 5px;
}

.meta-value {
  display: block;
  color: #0f172a;
  font-weight: 900;
}

.content-block {
  margin-top: 26px;
}

.content-block h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.content-block p {
  margin: 0;
  color: #475569;
  line-height: 1.9;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

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

.side-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side-content {
  padding: 22px;
}

.side-content h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 98px 1fr;
  gap: 12px;
  align-items: center;
}

.related-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #dbeafe, #f0f9ff);
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-item strong {
  display: block;
  margin-bottom: 5px;
  line-height: 1.35;
}

.related-item span {
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  margin-top: 42px;
  padding: 40px 0;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 26px;
}

.footer-title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 900;
}

.footer-text,
.footer-list a {
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
}

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

.empty-state {
  display: none;
  padding: 32px;
  border-radius: 22px;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.empty-state.show {
  display: block;
}

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

  .mobile-toggle {
    display: block;
  }

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

  .hero-stage {
    min-height: 780px;
  }

  .hero-art {
    min-height: 360px;
  }

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

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

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

  .navbar {
    min-height: 68px;
  }

  .logo-mark {
    width: 38px;
    height: 38px;
  }

  .logo-name {
    font-size: 19px;
  }

  .logo-subtitle {
    display: none;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-stage {
    min-height: 720px;
    border-radius: 26px;
  }

  .hero-slide {
    padding: 24px;
    gap: 20px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .hero-art {
    min-height: 300px;
  }

  .hero-poster {
    inset-left: 0;
  }

  .floating-card {
    display: none;
  }

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

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

  .card-body {
    padding: 14px;
  }

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

  .rank-row {
    grid-template-columns: 44px 110px 1fr;
  }

  .rank-row .btn {
    grid-column: 1 / -1;
  }

  .rank-num {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 16px;
  }

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

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

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

  .hero-stage {
    min-height: 760px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .rank-row {
    grid-template-columns: 42px 1fr;
  }

  .rank-thumb {
    display: none;
  }

  .related-item {
    grid-template-columns: 84px 1fr;
  }
}
