:root {
  --color-cyan: #06b6d4;
  --color-cyan-dark: #0891b2;
  --color-blue: #2563eb;
  --color-sky: #eff6ff;
  --color-ink: #111827;
  --color-muted: #6b7280;
  --color-soft: #f8fafc;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 12px 28px rgba(15, 23, 42, 0.10);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--color-ink);
  background: linear-gradient(180deg, #ecfeff 0%, #f8fafc 32%, #ffffff 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(236, 254, 255, 0.96), rgba(239, 246, 255, 0.96));
  border-bottom: 1px solid rgba(14, 165, 233, 0.14);
  box-shadow: 0 10px 28px rgba(8, 145, 178, 0.12);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(var(--max-width), calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-blue));
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--color-cyan-dark), var(--color-blue));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text em {
  font-size: 12px;
  color: var(--color-muted);
  font-style: normal;
}

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

.nav-link {
  padding: 10px 15px;
  border-radius: 14px;
  color: #374151;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-blue));
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.18);
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(320px, 26vw);
  border: 2px solid rgba(8, 145, 178, 0.16);
  border-radius: 999px;
  background: #ffffff;
  overflow: hidden;
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 11px 12px 11px 18px;
  background: transparent;
}

.header-search button {
  border: 0;
  padding: 10px 16px;
  color: #ffffff;
  background: var(--color-cyan-dark);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--color-cyan-dark);
  background: transparent;
  font-size: 28px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 20% 25%, rgba(125, 211, 252, 0.9), transparent 32%), linear-gradient(135deg, #06b6d4 0%, #2563eb 54%, #1d4ed8 100%);
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 150px;
  background: linear-gradient(180deg, transparent, rgba(248, 250, 252, 0.95));
  pointer-events: none;
}

.hero-bg-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(4px);
  opacity: 0.32;
}

.hero-bg-one {
  width: 320px;
  height: 320px;
  right: 6%;
  top: 8%;
  background: #ffffff;
}

.hero-bg-two {
  width: 220px;
  height: 220px;
  left: 5%;
  bottom: 8%;
  background: #67e8f9;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max-width), calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 70px 0 110px;
}

.hero-slide {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-slide.active {
  display: flex;
  animation: fadeUp 0.6s ease both;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.16);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-copy h1 {
  margin: 0 0 8px;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.12;
}

.hero-copy p {
  max-width: 620px;
  margin: 0 0 22px;
  color: #e0f2fe;
  font-size: 19px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #0e7490;
  background: rgba(236, 254, 255, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

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

.primary-button {
  color: var(--color-cyan-dark);
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.ghost-button {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.hero-poster {
  position: relative;
  flex: 0 0 min(360px, 32vw);
  aspect-ratio: 3 / 4.25;
  border: 10px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.18);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.35);
  transform: rotate(2deg);
}

.hero-poster img,
.card-media img,
.category-card img,
.detail-poster,
.detail-backdrop,
.category-overview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 14px;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.86);
  font-weight: 800;
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 62px;
  display: flex;
  gap: 10px;
}

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

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

.stats-section,
.content-section,
.wide-cta {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.stats-section {
  position: relative;
  z-index: 2;
  margin-top: -54px;
}

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

.stat-card,
.movie-card,
.category-card,
.category-overview-card,
.article-card,
.info-card,
.filter-panel,
.search-large {
  background: #ffffff;
  border: 1px solid rgba(14, 165, 233, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.stat-card {
  padding: 24px;
  text-align: center;
}

.stat-card strong {
  display: block;
  color: var(--color-cyan-dark);
  font-size: 32px;
  line-height: 1;
}

.stat-card span {
  color: var(--color-muted);
  font-weight: 700;
}

.content-section {
  padding: 74px 0 0;
}

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

.section-heading h2 {
  margin: 0 0 6px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
}

.section-heading p {
  margin: 0;
  color: var(--color-muted);
}

.section-more,
.text-link {
  color: var(--color-cyan-dark);
  font-weight: 800;
}

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

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

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

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

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #cffafe, #dbeafe);
}

.movie-card-compact .card-media {
  aspect-ratio: 3 / 4;
}

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

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

.year-badge,
.type-badge,
.rank-badge {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.year-badge {
  left: 12px;
  top: 12px;
}

.type-badge {
  right: 12px;
  bottom: 12px;
  background: rgba(8, 145, 178, 0.86);
}

.rank-badge {
  right: 12px;
  top: 12px;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--color-cyan-dark);
  font-size: 13px;
  font-weight: 800;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.card-body h3 a:hover {
  color: var(--color-cyan-dark);
}

.card-body p {
  min-height: 54px;
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 14px;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 800;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.category-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card img {
  min-height: 170px;
}

.category-card div {
  padding: 22px;
}

.category-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 22px;
}

.category-card span {
  color: var(--color-cyan-dark);
  font-weight: 800;
}

.category-card p {
  margin: 12px 0 0;
  color: var(--color-muted);
}

.wide-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 78px;
  padding: 34px;
  color: #ffffff;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-blue));
  box-shadow: var(--shadow-soft);
}

.wide-cta h2 {
  margin: 0 0 8px;
  font-size: 34px;
}

.wide-cta p {
  margin: 0;
  color: #dff8ff;
}

.page-hero {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-blue));
}

.page-hero > div {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.05;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #e0f2fe;
  font-size: 19px;
}

.compact-hero,
.category-hero,
.ranking-hero {
  position: relative;
  overflow: hidden;
}

.compact-hero::after,
.category-hero::after,
.ranking-hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: 10%;
  top: -90px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.breadcrumb {
  display: inline-flex;
  margin-bottom: 14px;
  color: #e0f2fe;
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 220px 180px auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
  padding: 16px;
}

.filter-panel input,
.filter-panel select,
.search-large input {
  width: 100%;
  border: 2px solid rgba(14, 165, 233, 0.14);
  border-radius: 16px;
  outline: 0;
  padding: 12px 14px;
  background: #f8fafc;
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-large input:focus {
  border-color: var(--color-cyan);
  background: #ffffff;
}

.filter-count {
  min-width: 90px;
  color: var(--color-cyan-dark);
  font-weight: 900;
  text-align: right;
}

.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  overflow: hidden;
}

.category-overview-media {
  min-height: 260px;
  background: #dbeafe;
}

.category-overview-card > div {
  padding: 24px;
}

.category-overview-card span {
  color: var(--color-cyan-dark);
  font-weight: 900;
}

.category-overview-card h2 {
  margin: 8px 0 10px;
  font-size: 26px;
}

.category-overview-card p {
  margin: 0 0 14px;
  color: var(--color-muted);
}

.mini-list {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.mini-list a {
  color: #374151;
  font-weight: 700;
}

.detail-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.24;
  filter: blur(2px) saturate(1.1);
}

.detail-overlay {
  position: relative;
  z-index: 1;
  min-height: 560px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.58), rgba(8, 145, 178, 0.48));
}

.detail-breadcrumb,
.detail-intro {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 34px;
  color: #bae6fd;
  font-weight: 700;
}

.detail-intro {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 36px;
  align-items: center;
  padding: 44px 0 80px;
}

.detail-poster {
  aspect-ratio: 3 / 4.2;
  border-radius: 28px;
  border: 8px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.06;
}

.detail-copy p {
  max-width: 800px;
  margin: 0 0 20px;
  color: #dff8ff;
  font-size: 20px;
}

.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.detail-stats span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 800;
}

.player-section {
  padding-top: 54px;
}

.player-panel {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: var(--shadow-soft);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.62));
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.player-panel.is-playing .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.play-circle {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--color-cyan-dark);
  background: #ffffff;
  font-size: 32px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.player-overlay strong {
  font-size: 28px;
}

.player-overlay em {
  color: #cffafe;
  font-style: normal;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
}

.article-card,
.info-card {
  padding: 28px;
}

.article-card h2,
.info-card h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.article-card h2:not(:first-child) {
  margin-top: 28px;
}

.article-card p {
  margin: 0;
  color: #374151;
  font-size: 17px;
}

.info-card dl {
  margin: 0;
}

.info-card dl div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

.info-card dt {
  color: var(--color-muted);
  font-weight: 800;
}

.info-card dd {
  margin: 0;
  font-weight: 700;
}

.info-card a {
  color: var(--color-cyan-dark);
}

.detail-nav-links {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.detail-nav-links a {
  display: block;
  padding: 12px;
  border-radius: 14px;
  color: var(--color-cyan-dark);
  background: #ecfeff;
  font-weight: 800;
}

.search-page {
  padding-bottom: 70px;
}

.search-large {
  display: flex;
  gap: 12px;
  padding: 16px;
  margin-bottom: 22px;
}

.search-large .primary-button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-blue));
  cursor: pointer;
}

.search-summary {
  margin-bottom: 24px;
  color: var(--color-muted);
  font-weight: 800;
}

.site-footer {
  margin-top: 82px;
  color: #d1d5db;
  background: linear-gradient(180deg, #1f2937, #111827);
}

.footer-inner {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 22px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a:hover {
  color: #67e8f9;
}

.footer-inner p {
  margin: 0;
  color: #9ca3af;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .hero-slide {
    gap: 32px;
  }

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

  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .header-inner {
    min-height: 66px;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
  }

  .site-nav.is-open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .hero-inner {
    min-height: auto;
    padding: 48px 0 92px;
  }

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

  .hero-poster {
    width: min(340px, 86vw);
    flex-basis: auto;
    justify-self: center;
  }

  .hero-dots {
    bottom: 42px;
  }

  .stats-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .category-card,
  .category-overview-card,
  .detail-intro {
    grid-template-columns: 1fr;
  }

  .category-card img,
  .category-overview-media {
    min-height: 230px;
  }

  .detail-poster {
    width: min(280px, 80vw);
  }

  .wide-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .content-section {
    padding-top: 52px;
  }

  .section-heading {
    display: grid;
  }

  .filter-panel,
  .search-large {
    grid-template-columns: 1fr;
    display: grid;
  }

  .filter-count {
    text-align: left;
  }

  .page-hero > div {
    padding: 54px 0;
  }

  .detail-copy p,
  .hero-copy p {
    font-size: 17px;
  }

  .player-overlay strong {
    font-size: 22px;
  }
}
