:root {
  --cyan: #0891b2;
  --cyan-dark: #0e7490;
  --teal: #0d9488;
  --emerald: #059669;
  --text: #1f2937;
  --muted: #64748b;
  --soft: #f8fafc;
  --line: #e2e8f0;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--soft);
  line-height: 1.6;
}

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

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

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

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: #0f172a;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan), var(--teal), var(--emerald));
  box-shadow: 0 10px 25px rgba(8, 145, 178, 0.24);
}

.nav-menu {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: #334155;
  font-weight: 700;
  transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--cyan-dark);
  background: #ecfeff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #ecfeff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--cyan-dark);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 690px;
  color: var(--white);
  overflow: hidden;
  background: linear-gradient(135deg, var(--cyan), var(--teal), var(--emerald));
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
  background-image:
    linear-gradient(115deg, rgba(8, 145, 178, 0.94), rgba(13, 148, 136, 0.86), rgba(5, 150, 105, 0.8)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.22), transparent 28%),
    radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.14), transparent 32%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  min-height: 690px;
  margin: 0 auto;
  padding: 90px 20px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 420px;
  gap: 64px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.06;
  letter-spacing: -2px;
}

.hero-copy h2 {
  margin: 0 0 20px;
  color: #cffafe;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.18;
}

.hero-copy p {
  max-width: 760px;
  margin: 0 0 32px;
  color: #ecfeff;
  font-size: 20px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.13);
  font-weight: 800;
}

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

.primary-btn,
.ghost-btn,
.ghost-dark-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 800;
  transition: 0.22s ease;
}

.primary-btn {
  color: var(--cyan-dark);
  background: var(--white);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.16);
}

.primary-btn:hover {
  transform: translateY(-2px);
  background: #ecfeff;
}

.ghost-btn {
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.78);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.ghost-dark-btn {
  color: var(--cyan-dark);
  border: 2px solid rgba(8, 145, 178, 0.35);
}

.ghost-dark-btn:hover {
  background: #ecfeff;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-chips a {
  padding: 8px 14px;
  border-radius: 999px;
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.14);
  transition: 0.22s ease;
}

.hero-chips a:hover {
  background: rgba(255, 255, 255, 0.24);
}

.hero-poster {
  display: block;
  padding: 12px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  transition: 0.3s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) translateY(-5px);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.16);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 4;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

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

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

.content-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 70px 20px;
}

.soft-bg,
.tint-bg {
  max-width: none;
  padding-left: max(20px, calc((100vw - 1240px) / 2 + 20px));
  padding-right: max(20px, calc((100vw - 1240px) / 2 + 20px));
}

.soft-bg {
  background: #f1f5f9;
}

.tint-bg {
  background: linear-gradient(135deg, #ecfeff, #f0fdfa);
}

.section-heading,
.category-block-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 30px;
}

.section-heading h2,
.category-block-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.6px;
}

.section-heading p,
.category-block-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

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

.category-card,
.category-block,
.detail-card,
.wide-cta {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.category-card {
  padding: 24px;
  transition: 0.24s ease;
}

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

.category-title {
  display: inline-flex;
  margin-bottom: 10px;
  color: #0f172a;
  font-size: 20px;
  font-weight: 900;
}

.category-card p {
  min-height: 76px;
  margin: 0 0 18px;
  color: var(--muted);
}

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

.mini-links a {
  color: var(--cyan-dark);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.six-columns {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: 0.24s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e2e8f0;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: 0.35s ease;
}

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

.year-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
}

.year-badge {
  right: 12px;
  background: var(--cyan);
}

.rank-badge {
  left: 12px;
  background: rgba(15, 23, 42, 0.82);
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 13px;
}

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

.movie-card h3 {
  min-height: 50px;
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.35;
}

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

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

.card-tags {
  color: var(--cyan-dark);
  font-size: 13px;
  font-weight: 800;
}

.movie-card.is-compact h3 {
  min-height: 44px;
  font-size: 15px;
}

.movie-card.is-compact .card-body {
  padding: 14px;
}

.movie-card.is-compact p,
.movie-card.is-compact .card-tags,
.movie-card.is-compact .card-meta {
  display: none;
}

.page-hero {
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan), var(--teal), var(--emerald));
  padding: 72px 20px;
}

.page-hero > div {
  max-width: 1240px;
  margin: 0 auto;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(38px, 5vw, 62px);
  letter-spacing: -1.5px;
}

.page-hero p {
  max-width: 740px;
  margin: 0 0 22px;
  color: #ecfeff;
  font-size: 20px;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(120px, 180px));
  gap: 14px;
  margin-bottom: 26px;
}

.search-box {
  display: grid;
  gap: 8px;
  color: #334155;
  font-weight: 800;
}

.search-box input,
.search-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  background: var(--white);
  color: var(--text);
  outline: none;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.search-box input:focus,
.search-panel select:focus {
  border-color: var(--cyan);
}

.result-line {
  min-height: 24px;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 700;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--cyan-dark);
  font-weight: 800;
}

.category-block {
  padding: 26px;
  margin-bottom: 34px;
}

.detail-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 20px 76px;
}

.detail-card {
  overflow: hidden;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.54));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.player-overlay.is-hidden {
  display: none;
}

.play-icon {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 20px 45px rgba(8, 145, 178, 0.35);
  position: relative;
}

.play-icon::after {
  content: "";
  position: absolute;
  left: 34px;
  top: 26px;
  border-left: 25px solid var(--white);
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
}

.detail-body {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  padding: 30px;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  object-fit: cover;
  background: #e2e8f0;
  box-shadow: var(--shadow-soft);
}

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -1px;
}

.detail-info h2 {
  margin: 26px 0 10px;
  font-size: 22px;
}

.detail-info p {
  margin: 0 0 12px;
  color: #334155;
}

.one-line {
  color: var(--cyan-dark) !important;
  font-size: 18px;
  font-weight: 800;
}

.detail-meta,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.detail-meta span,
.detail-tags span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 800;
}

.detail-meta span {
  color: #334155;
  background: #f1f5f9;
}

.detail-tags span {
  color: var(--cyan-dark);
  background: #ecfeff;
}

.detail-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0 44px;
}

.detail-nav a {
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--cyan-dark);
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.related-section {
  margin-top: 28px;
}

.wide-cta {
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px;
  text-align: center;
}

.wide-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 48px);
}

.wide-cta p {
  max-width: 760px;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: 18px;
}

.wide-cta .cta-actions {
  justify-content: center;
}

.site-footer {
  background: #0f172a;
  color: #cbd5e1;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 20px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.footer-logo {
  color: var(--white);
  margin-bottom: 10px;
}

.footer-inner p {
  margin: 0;
  max-width: 560px;
}

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

.footer-links a {
  color: #e0f2fe;
  font-weight: 700;
}

.is-hidden-card {
  display: none;
}

@media (max-width: 1120px) {
  .category-grid,
  .four-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero-grid {
    grid-template-columns: 1fr 330px;
    gap: 36px;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    padding: 14px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }

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

  .hero,
  .hero-slider {
    min-height: 760px;
  }

  .hero-grid {
    min-height: 760px;
    grid-template-columns: 1fr;
    padding-top: 64px;
  }

  .hero-poster {
    max-width: 260px;
    margin: 0 auto;
  }

  .category-grid,
  .four-columns,
  .six-columns,
  .detail-body,
  .detail-nav,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .category-block-head,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-body {
    padding: 20px;
  }

  .detail-poster {
    max-width: 220px;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .content-section,
  .detail-wrap {
    padding-left: 14px;
    padding-right: 14px;
  }

  .site-logo {
    font-size: 17px;
  }

  .hero-copy p,
  .page-hero p {
    font-size: 16px;
  }

  .hero-actions,
  .cta-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-btn,
  .ghost-btn,
  .ghost-dark-btn {
    width: 100%;
  }

  .category-block,
  .wide-cta {
    padding: 22px;
  }
}
