:root {
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --blue: #3b82f6;
  --teal: #14b8a6;
  --text: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  font-weight: 800;
  white-space: nowrap;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.14), rgba(59, 130, 246, 0.14));
  color: var(--cyan-dark);
  font-size: 15px;
}

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

.nav-link {
  position: relative;
  font-weight: 700;
  color: #374151;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

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

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

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  padding: 10px 12px;
  color: #334155;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 10px 16px 16px;
}

.mobile-nav a {
  display: block;
  padding: 12px 8px;
  border-radius: 10px;
  color: #334155;
  font-weight: 700;
}

.mobile-nav a:hover {
  background: #ecfeff;
  color: var(--cyan-dark);
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 58px 0 42px;
  min-height: 660px;
  background: linear-gradient(135deg, #ecfeff 0%, #eff6ff 50%, #f0fdfa 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.22), transparent 26%),
    radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.18), transparent 28%),
    radial-gradient(circle at 70% 80%, rgba(20, 184, 166, 0.16), transparent 30%);
}

.hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 32px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 34px;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.12);
  color: var(--cyan-dark);
  font-weight: 800;
  font-size: 14px;
}

.hero-copy h1 {
  margin: 20px 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

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

.hero-tags,
.detail-meta,
.meta-row,
.tag-row,
.category-pills,
.filter-chips,
.mini-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-meta span,
.meta-row span,
.tag-row span,
.category-pills a,
.filter-chips button,
.mini-chips span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(6, 182, 212, 0.16);
  color: #0f766e;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 700;
}

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

.btn-primary,
.btn-secondary,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  padding: 12px 24px;
  color: #fff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 24px rgba(6, 182, 212, 0.24);
}

.btn-secondary {
  padding: 11px 22px;
  color: #334155;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(6, 182, 212, 0.26);
}

.btn-primary:hover,
.btn-secondary:hover,
.text-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
  min-height: 440px;
  background: linear-gradient(135deg, #cffafe, #dbeafe);
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  border-radius: 18px;
  padding: 14px 16px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(12px);
}

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

.hero-dot {
  width: 38px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.14);
  cursor: pointer;
}

.hero-dot.active {
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.hero-rail {
  display: grid;
  gap: 16px;
}

.hero-rail a {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-rail a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.hero-rail img {
  width: 88px;
  height: 112px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #cffafe, #dbeafe);
}

.hero-rail span {
  color: #1e293b;
  font-weight: 800;
}

.stats-section {
  background: #fff;
  padding: 28px 0;
}

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

.stats-grid div,
.category-tile,
.movie-card,
.filter-panel,
.story-card,
.side-card,
.category-card-large {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
}

.stats-grid div {
  padding: 24px;
  text-align: center;
}

.stats-grid strong {
  display: block;
  color: #0f172a;
  font-size: 28px;
  line-height: 1.1;
}

.stats-grid span {
  color: var(--muted);
  font-size: 14px;
}

.section-block {
  padding: 72px 0;
}

.soft-bg {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

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

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
}

.section-head p,
.page-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

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

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

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

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

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

.poster-link {
  position: relative;
  display: block;
  height: 260px;
  overflow: hidden;
  background: linear-gradient(135deg, #cffafe, #dbeafe);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.64));
}

.play-float {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(6, 182, 212, 0.86);
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-float {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.25);
}

.movie-info {
  padding: 16px;
}

.meta-row {
  gap: 6px;
  margin-bottom: 10px;
}

.meta-row span {
  padding: 4px 8px;
  font-size: 12px;
}

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

.movie-info p {
  min-height: 52px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row span {
  background: #f0fdfa;
  padding: 4px 8px;
  font-size: 12px;
}

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

.category-tile {
  padding: 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.38);
  box-shadow: var(--shadow);
}

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

.category-tile span {
  color: var(--muted);
  font-size: 14px;
}

.page-main {
  background: #fff;
}

.page-hero {
  position: relative;
  padding: 72px 0;
  background: linear-gradient(135deg, #ecfeff, #eff6ff 52%, #f0fdfa);
}

.small-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 6vw, 58px);
  line-height: 1.1;
}

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

.category-card-large {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  padding: 18px;
  align-items: center;
}

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

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

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.category-cover-stack img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #cffafe, #dbeafe);
}

.category-pills {
  margin-top: 22px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 14px;
  padding: 18px;
  margin-bottom: 22px;
}

.wide-filter {
  grid-template-columns: 1fr 260px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  padding: 13px 14px;
  color: #1e293b;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.filter-chips {
  margin-bottom: 24px;
}

.filter-chips button {
  cursor: pointer;
}

.filter-chips button.active {
  color: #fff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.detail-main {
  background: #fff;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0;
  min-height: 560px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}

.detail-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
  background: linear-gradient(135deg, #cffafe, #dbeafe);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--cyan-dark);
  font-weight: 800;
  margin-bottom: 16px;
}

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 6vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.one-line {
  max-width: 860px;
  margin: 0 0 22px;
  color: #334155;
  font-size: 21px;
}

.detail-meta {
  margin-bottom: 18px;
}

.detail-tags {
  margin-bottom: 28px;
}

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

.player-box {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #020617;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.06), rgba(2, 6, 23, 0.45));
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-size: 32px;
  box-shadow: 0 18px 50px rgba(6, 182, 212, 0.35);
}

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

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

.story-card,
.side-card {
  padding: 28px;
}

.story-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 27px;
}

.story-card p {
  margin: 0 0 24px;
  color: #334155;
  font-size: 17px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 10px 14px;
  margin: 0;
}

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

.side-card dd {
  margin: 0;
  color: #0f172a;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 14px;
}

.related-card {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.related-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: linear-gradient(135deg, #cffafe, #dbeafe);
}

.related-card span {
  display: block;
  padding: 10px;
  font-weight: 800;
  color: #1e293b;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

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

.footer-logo {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 10px;
}

.site-footer h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.site-footer p,
.site-footer a {
  color: #64748b;
  font-size: 14px;
}

.site-footer a {
  display: block;
  margin: 7px 0;
}

.site-footer a:hover {
  color: var(--cyan-dark);
}

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

@media (max-width: 1100px) {
  .hero-shell,
  .hero-slide,
  .detail-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-rail {
    grid-template-columns: repeat(4, 1fr);
  }

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

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

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

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

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

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

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

  .logo {
    font-size: 21px;
  }

  .hero-section {
    min-height: 760px;
    padding-top: 36px;
  }

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

  .hero-slide {
    gap: 22px;
  }

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

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

  .hero-poster,
  .hero-poster img {
    min-height: 320px;
    height: 320px;
  }

  .hero-dots {
    bottom: -8px;
  }

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

  .stats-grid,
  .movie-grid,
  .featured-grid,
  .category-grid,
  .category-list-large,
  .footer-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

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

  .category-card-large {
    grid-template-columns: 1fr;
  }

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

  .poster-link {
    height: 320px;
  }

  .detail-poster img {
    height: 420px;
  }

  .section-block {
    padding: 48px 0;
  }
}
