.demo-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 8%, rgba(70, 123, 240, 0.1), transparent 27rem),
    #f8fafc;
}

.demo-hero {
  padding: 9rem 1rem 5rem;
}

.demo-shell {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.demo-intro {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}

.demo-intro h1 {
  color: #0f172a;
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.demo-intro p {
  max-width: 680px;
  margin: 1.25rem auto 0;
  color: #64748b;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(310px, 0.8fr);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 1.75rem;
  background: #fff;
  box-shadow: 0 32px 80px -40px rgba(15, 23, 42, 0.35);
}

.demo-stage {
  min-width: 0;
  padding: 1rem;
  background: #0f172a;
}

.demo-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  background: #020617;
  object-fit: contain;
}

.demo-caption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0.25rem 0.25rem;
  color: #fff;
}

.demo-caption h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.demo-caption p {
  margin-top: 0.35rem;
  color: #94a3b8;
  font-size: 0.925rem;
  line-height: 1.55;
}

.demo-count {
  flex: none;
  padding-top: 0.25rem;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.demo-playlist {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: #fff;
}

.demo-playlist-header {
  padding: 1.5rem 1.5rem 1.1rem;
  border-bottom: 1px solid #e2e8f0;
}

.demo-playlist-header h2 {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
}

.demo-playlist-header p {
  margin-top: 0.35rem;
  color: #64748b;
  font-size: 0.875rem;
}

.demo-chapter {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  width: 100%;
  padding: 1.15rem 1.25rem;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  border-left: 3px solid transparent;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.demo-chapter:last-child {
  border-bottom: 0;
}

.demo-chapter:hover {
  background: #f8fafc;
}

.demo-chapter[aria-current='true'] {
  border-left-color: #467bf0;
  background: #eef4ff;
}

.demo-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 0.7rem;
  background: #e2e8f0;
}

.demo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-thumb-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
}

.demo-thumb-icon svg {
  width: 0.9rem;
  height: 0.9rem;
  margin-left: 0.1rem;
  fill: currentColor;
}

.demo-chapter-copy {
  align-self: center;
  min-width: 0;
}

.demo-chapter-title {
  display: block;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.demo-chapter[aria-current='true'] .demo-chapter-title {
  color: #1e40d6;
}

.demo-chapter-meta {
  display: block;
  margin-top: 0.45rem;
  color: #64748b;
  font-size: 0.82rem;
}

.demo-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
  padding: 2rem 2.25rem;
  border: 1px solid #c7d9fe;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, #eef4ff 100%);
}

.demo-cta h2 {
  color: #0f172a;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.demo-cta p {
  margin-top: 0.45rem;
  color: #64748b;
}

.demo-cta-actions {
  flex: none;
  text-align: center;
}

.demo-cta-actions small {
  display: block;
  margin-top: 0.65rem;
  color: #64748b;
}

@media (max-width: 960px) {
  .demo-layout {
    grid-template-columns: 1fr;
  }

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

  .demo-playlist-header {
    grid-column: 1 / -1;
  }

  .demo-chapter {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .demo-hero {
    padding-top: 7.5rem;
    padding-bottom: 3.5rem;
  }

  .demo-intro {
    margin-bottom: 2rem;
  }

  .demo-layout {
    border-radius: 1.25rem;
  }

  .demo-stage {
    padding: 0.5rem;
  }

  .demo-player {
    border-radius: 0.85rem;
  }

  .demo-caption {
    padding: 1rem 0.5rem 0.5rem;
  }

  .demo-count {
    display: none;
  }

  .demo-playlist {
    display: flex;
  }

  .demo-chapter {
    grid-template-columns: 6.5rem minmax(0, 1fr);
  }

  .demo-chapter:nth-last-child(2) {
    border-bottom: 1px solid #e2e8f0;
  }

  .demo-chapter:first-of-type {
    border-bottom: 1px solid #e2e8f0;
  }

  .demo-cta {
    align-items: stretch;
    flex-direction: column;
    padding: 1.5rem;
    text-align: center;
  }

  .demo-cta-actions a {
    width: 100%;
  }
}
