:root {
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --teal: #14b8a6;
  --blue-soft: #e0f2fe;
  --cyan-soft: #ecfeff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #d7eef2;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(14, 116, 144, 0.13);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.18), transparent 34rem),
    linear-gradient(180deg, #ecfeff 0%, #ffffff 42%, #eff6ff 100%);
  min-height: 100vh;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(240, 253, 250, 0.92);
  border-bottom: 1px solid rgba(14, 165, 233, 0.16);
  box-shadow: 0 10px 30px rgba(8, 145, 178, 0.12);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1240px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 900;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 12px 24px rgba(6, 182, 212, 0.32);
}

.brand-text {
  font-size: 24px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #0891b2, #0f766e);
  -webkit-background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.desktop-nav a {
  position: relative;
  color: #374151;
  font-weight: 700;
  font-size: 15px;
  padding: 8px 0;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--teal));
  transition: width 0.25s ease;
}

.desktop-nav a:hover {
  color: var(--cyan-dark);
}

.desktop-nav a:hover::after {
  width: 100%;
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.header-search input,
.mobile-search input,
.filter-input,
.filter-select {
  border: 1px solid #bae6fd;
  border-radius: 999px;
  outline: none;
  background: rgba(255, 255, 255, 0.86);
  color: #1f2937;
  padding: 11px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 230px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.16);
}

.header-search button,
.mobile-search button,
.primary-button,
.secondary-button,
.small-button {
  border: 0;
  cursor: pointer;
  font-weight: 800;
  border-radius: 999px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.header-search button,
.mobile-search button,
.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 14px 28px rgba(6, 182, 212, 0.24);
}

.header-search button,
.mobile-search button {
  padding: 11px 16px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #075985;
  background: rgba(255, 255, 255, 0.86);
  padding: 13px 22px;
  border: 1px solid rgba(186, 230, 253, 0.9);
}

.small-button {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  color: #075985;
  background: #ecfeff;
  border: 1px solid #bae6fd;
}

.header-search button:hover,
.mobile-search button:hover,
.primary-button:hover,
.secondary-button:hover,
.small-button:hover {
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.mobile-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #0f766e;
  border-radius: 999px;
}

.mobile-panel {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border: 1px solid #bae6fd;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.mobile-panel a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 800;
  color: #0f766e;
}

.mobile-panel a:hover {
  background: #ecfeff;
}

.hero {
  position: relative;
  height: min(620px, calc(100vh - 74px));
  min-height: 520px;
  overflow: hidden;
  background: #0f172a;
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.62), rgba(15, 118, 110, 0.08)),
    radial-gradient(circle at 22% 32%, rgba(6, 182, 212, 0.38), transparent 28rem);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  color: #ffffff;
}

.hero-copy {
  width: min(690px, 100%);
  animation: fadeUp 0.7s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #facc15;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.32);
}

.hero p {
  max-width: 630px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
  line-height: 1.8;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.hero-meta span {
  padding: 8px 13px;
  border-radius: 999px;
  color: #ecfeff;
  background: rgba(8, 145, 178, 0.72);
  border: 1px solid rgba(125, 211, 252, 0.38);
  backdrop-filter: blur(8px);
  font-weight: 800;
}

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

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 36px;
  background: var(--cyan);
}

.section,
.page-hero,
.detail-wrap,
.search-wrap {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero {
  padding: 58px 0 34px;
}

.page-hero-card {
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(28px, 5vw, 54px);
  color: #0f172a;
  background:
    linear-gradient(135deg, rgba(236, 254, 255, 0.96), rgba(255, 255, 255, 0.94)),
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.22), transparent 22rem);
  border: 1px solid rgba(125, 211, 252, 0.42);
  box-shadow: var(--shadow);
}

.page-hero-card h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-hero-card p {
  max-width: 820px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.stat-item {
  padding: 12px 16px;
  border: 1px solid #bae6fd;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  color: #0f766e;
  font-weight: 900;
}

.section {
  padding: 30px 0 58px;
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: "";
  width: 5px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), var(--teal));
}

.section h2 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.03em;
}

.section-note {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  border: 1px solid rgba(186, 230, 253, 0.64);
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 62px rgba(14, 116, 144, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(8, 145, 178, 0.18), rgba(20, 184, 166, 0.16)),
    #e0f2fe;
}

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

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

.poster-badge,
.poster-play {
  position: absolute;
  z-index: 2;
  font-weight: 900;
}

.poster-badge {
  left: 12px;
  top: 12px;
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.86);
  backdrop-filter: blur(8px);
}

.poster-play {
  right: 12px;
  bottom: 12px;
  color: #075985;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #0891b2;
  font-size: 13px;
  font-weight: 800;
}

.card-meta span,
.card-meta a {
  padding: 4px 8px;
  border-radius: 999px;
  background: #ecfeff;
}

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

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

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

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

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  color: #0f766e;
  background: rgba(204, 251, 241, 0.58);
  font-size: 12px;
  font-weight: 800;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  border-radius: 24px;
  color: #ffffff;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.category-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.25), rgba(8, 47, 73, 0.88));
}

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

.category-card-content {
  position: absolute;
  inset: auto 0 0;
  padding: 20px;
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
  font-size: 14px;
}

.rank-panel {
  overflow: hidden;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid rgba(186, 230, 253, 0.7);
  box-shadow: var(--shadow);
}

.rank-row {
  display: grid;
  grid-template-columns: 58px 96px minmax(0, 1fr) 68px;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #edf7fb;
  transition: background 0.2s ease;
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-row:hover {
  background: #ecfeff;
}

.rank-index {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #475569;
  background: #e5e7eb;
  font-size: 19px;
  font-weight: 900;
}

.rank-gold {
  color: #ffffff;
  background: #eab308;
}

.rank-silver {
  color: #ffffff;
  background: #94a3b8;
}

.rank-bronze {
  color: #ffffff;
  background: #ea580c;
}

.rank-row img {
  width: 96px;
  height: 62px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-info {
  min-width: 0;
}

.rank-info strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
}

.rank-info small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.rank-score {
  color: #eab308;
  font-size: 20px;
  font-weight: 900;
  text-align: right;
}

.cta-band {
  width: min(1240px, calc(100% - 32px));
  margin: 24px auto 66px;
  padding: 36px;
  border-radius: 28px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(6, 182, 212, 0.96), rgba(20, 184, 166, 0.96)),
    radial-gradient(circle at right, rgba(255, 255, 255, 0.28), transparent 22rem);
  box-shadow: var(--shadow);
}

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

.cta-band p {
  max-width: 820px;
  margin: 12px 0 22px;
  line-height: 1.75;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0;
}

.filter-input {
  min-width: min(420px, 100%);
  flex: 1 1 320px;
}

.filter-select {
  min-width: 180px;
}

.no-results {
  display: none;
  padding: 22px;
  border-radius: 18px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 800;
}

.detail-wrap {
  padding: 42px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #0f766e;
  font-weight: 800;
  margin-bottom: 18px;
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  min-height: 420px;
  box-shadow: var(--shadow);
  background: #e0f2fe;
}

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

.detail-info {
  padding: clamp(26px, 4vw, 44px);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(186, 230, 253, 0.76);
  box-shadow: var(--shadow);
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-info .lead {
  color: #475569;
  margin: 18px 0;
  font-size: 18px;
  line-height: 1.85;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-meta span {
  padding: 8px 12px;
  color: #0f766e;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  background: #ecfeff;
  font-weight: 900;
}

.player-section,
.content-section {
  margin-top: 30px;
  border-radius: 28px;
  padding: clamp(20px, 4vw, 34px);
  background: #ffffff;
  border: 1px solid rgba(186, 230, 253, 0.76);
  box-shadow: var(--shadow);
}

.player-section h2,
.content-section h2 {
  margin: 0 0 18px;
  font-size: 28px;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.82)),
    radial-gradient(circle at center, rgba(6, 182, 212, 0.2), transparent 20rem);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.static-player.is-playing .player-overlay {
  opacity: 0;
  visibility: hidden;
}

.play-trigger {
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #ffffff;
  background: transparent;
  font-weight: 900;
  font-size: 18px;
}

.play-circle {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 20px 45px rgba(6, 182, 212, 0.34);
  font-size: 34px;
}

.player-message {
  margin-top: 12px;
  color: #bae6fd;
  text-align: center;
  font-weight: 700;
}

.content-section p {
  color: #475569;
  line-height: 1.95;
  font-size: 17px;
}

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

.info-table div {
  padding: 14px;
  border-radius: 16px;
  background: #f8fdff;
  border: 1px solid #e0f2fe;
}

.info-table strong {
  display: block;
  color: #0f766e;
  margin-bottom: 6px;
}

.site-footer {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 48px;
}

.footer-grid {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 1.2fr;
  gap: 28px;
  padding: 44px 0;
}

.footer-brand {
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 12px;
}

.site-footer h3 {
  color: #ffffff;
  margin: 0 0 12px;
}

.site-footer a {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  margin: 8px 0;
}

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

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-tags a {
  margin: 0;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

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

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

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

  .header-search {
    margin-left: auto;
  }

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

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

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

  .detail-poster {
    min-height: 360px;
  }
}

@media (max-width: 760px) {
  .nav-shell {
    height: 66px;
  }

  .brand-text {
    font-size: 20px;
  }

  .header-search {
    display: none;
  }

  .mobile-toggle {
    display: block;
    margin-left: auto;
  }

  .hero {
    height: auto;
    min-height: 590px;
  }

  .hero h1 {
    font-size: 42px;
  }

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

  .section-head {
    display: block;
  }

  .rank-row {
    grid-template-columns: 44px 76px minmax(0, 1fr);
  }

  .rank-row img {
    width: 76px;
    height: 54px;
  }

  .rank-score {
    display: none;
  }

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

  .page-hero {
    padding-top: 34px;
  }

  .detail-poster {
    min-height: 260px;
  }
}
