:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --panel-soft: #ecfeff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #dbeafe;
  --teal: #14b8a6;
  --cyan: #0891b2;
  --cyan-dark: #0e7490;
  --blue-soft: #eff6ff;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(219, 234, 254, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 12px 26px rgba(20, 184, 166, 0.35);
}

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

.brand-text strong {
  font-size: 22px;
  color: #1e293b;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

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

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #334155;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 16px;
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: #0f172a;
  border-radius: 2px;
}

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

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 12px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  padding: 74px 0 62px;
  background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 52%, #eff6ff 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(20px);
  opacity: 0.36;
  pointer-events: none;
}

.hero-glow-left {
  top: 80px;
  left: 5%;
  width: 290px;
  height: 290px;
  background: #2dd4bf;
}

.hero-glow-right {
  right: 4%;
  bottom: 90px;
  width: 380px;
  height: 380px;
  background: #22d3ee;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.82fr);
  gap: 56px;
  align-items: center;
}

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

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

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--cyan-dark);
  background: #ccfbf1;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-copy h1 {
  margin: 22px 0 20px;
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #111827;
}

.hero-subtitle {
  width: min(680px, 100%);
  margin: 0 0 28px;
  color: #475569;
  font-size: 20px;
}

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

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 5px 11px;
  color: #0f766e;
  background: #d9fff7;
  font-size: 13px;
  font-weight: 700;
}

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

.primary-button,
.ghost-button,
.text-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  padding: 14px 26px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 18px 36px rgba(8, 145, 178, 0.25);
}

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

.ghost-button {
  padding: 13px 24px;
  color: var(--cyan-dark);
  background: #ffffff;
  border: 1px solid #99f6e4;
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 450px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #cffafe, #ffffff);
  box-shadow: var(--shadow);
  transform: rotate(1deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) scale(1.025);
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.18);
}

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

.hero-poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.86));
}

.hero-poster-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  color: #ffffff;
}

.hero-poster-caption strong {
  display: block;
  font-size: 28px;
  line-height: 1.2;
}

.hero-poster-caption small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
}

.hero-dots {
  display: flex;
  gap: 9px;
  margin-top: 34px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #99f6e4;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.feature-strip {
  background: #ffffff;
  padding: 34px 0;
}

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

.feature-card {
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, #f0fdfa, #eff6ff);
  box-shadow: var(--soft-shadow);
}

.feature-card strong {
  display: block;
  color: #0f172a;
  font-size: 20px;
}

.feature-card span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.content-section {
  padding: 70px 0;
  background: #ffffff;
}

.muted-section {
  background: #f8fafc;
}

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

.section-heading h2 {
  margin: 10px 0 8px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

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

.section-link,
.text-button {
  color: var(--cyan-dark);
  background: #ccfbf1;
  padding: 10px 17px;
}

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

.compact-grid,
.listing-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(219, 234, 254, 0.9);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: #99f6e4;
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.12);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
}

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

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

.play-pill {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  background: rgba(20, 184, 166, 0.92);
  backdrop-filter: blur(10px);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 900;
  font-style: normal;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.25);
}

.movie-card-body {
  padding: 16px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.movie-card h3 {
  margin: 8px 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

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

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

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

.category-tile,
.collection-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid rgba(219, 234, 254, 0.9);
  box-shadow: var(--soft-shadow);
}

.category-tile {
  display: block;
  padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.tile-images,
.collection-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 15px;
}

.tile-images img,
.collection-covers img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  background: #ecfeff;
}

.category-tile strong,
.collection-card h2 {
  display: block;
  margin: 0 0 8px;
  font-size: 20px;
}

.category-tile small,
.collection-card p {
  color: var(--muted);
}

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

.collection-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.collection-covers {
  margin: 0;
  grid-template-columns: repeat(5, 1fr);
}

.sub-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0;
  background: linear-gradient(135deg, #f0fdfa, #eff6ff);
}

.sub-hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.sub-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(150px, 210px));
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 12px 14px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.hidden-by-filter {
  display: none;
}

.detail-hero {
  padding: 68px 0;
  background: linear-gradient(135deg, #ecfeff, #f8fafc 55%, #eff6ff);
}

.detail-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 44px;
  align-items: center;
}

.detail-poster-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #e0f2fe;
  box-shadow: var(--shadow);
}

.detail-poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

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

.detail-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-line {
  margin: 0 0 22px;
  color: #475569;
  font-size: 20px;
}

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

.detail-meta span {
  border-radius: 999px;
  padding: 7px 13px;
  color: #0f766e;
  background: #ccfbf1;
  font-weight: 800;
}

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

.player-section {
  padding: 50px 0;
  background: #020617;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000000;
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.45);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: radial-gradient(circle, rgba(8, 145, 178, 0.28), rgba(2, 6, 23, 0.4));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 18px 48px rgba(20, 184, 166, 0.35);
}

.play-overlay span::before {
  content: "";
  display: block;
  margin-left: 6px;
  width: 0;
  height: 0;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 26px solid #ffffff;
}

.player-shell.playing .play-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.prose-card,
.narrow-content .prose-card {
  padding: 28px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}

.prose-card h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.prose-card p {
  margin: 0 0 14px;
  color: #475569;
  font-size: 17px;
}

.rank-list {
  display: grid;
  gap: 10px;
  margin-top: 34px;
}

.rank-row {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  border-color: #99f6e4;
}

.rank-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  font-weight: 900;
}

.rank-row em {
  color: var(--muted);
  font-style: normal;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer-brand .brand-text strong {
  color: #ffffff;
}

.site-footer p {
  max-width: 520px;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}

.footer-links a:hover {
  color: #5eead4;
}

.footer-bottom {
  margin-top: 34px;
  padding: 18px;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
}

.narrow-content {
  max-width: 860px;
}

@media (max-width: 1180px) {
  .movie-grid,
  .compact-grid,
  .listing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

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

  .hero-slide,
  .hero-slide.active,
  .detail-layout,
  .prose-grid,
  .footer-grid,
  .collection-grid,
  .collection-card {
    grid-template-columns: 1fr;
  }

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

  .feature-grid,
  .movie-grid,
  .compact-grid,
  .listing-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .section-heading {
    display: grid;
    align-items: start;
  }

  .detail-poster-card {
    max-width: 360px;
  }

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

  .rank-row em {
    grid-column: 2;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

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

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

  .brand-text small {
    display: none;
  }

  .hero-copy h1,
  .sub-hero h1,
  .detail-copy h1 {
    font-size: 34px;
  }

  .hero-subtitle,
  .detail-line {
    font-size: 17px;
  }

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

  .movie-card {
    display: grid;
    grid-template-columns: 120px 1fr;
  }

  .poster-link {
    height: 100%;
    aspect-ratio: auto;
  }

  .play-pill {
    display: none;
  }

  .movie-card p {
    -webkit-line-clamp: 3;
  }

  .hero-actions {
    gap: 10px;
  }

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