/* Video demo gallery */
.demo-hero {
  background: var(--bg-light);
  padding: 120px 0 48px;
  border-bottom: 1px solid var(--border);
}

.demo-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  margin-bottom: 12px;
}

.demo-hero p {
  color: var(--text-light);
  font-size: 18px;
  max-width: 640px;
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  padding: 48px 0 64px;
  align-items: start;
}

/* Player */
.demo-player {
  position: relative;
  padding-bottom: 64.63%;
  height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #111827;
  box-shadow: var(--shadow-lg);
}

.demo-player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.demo-meta {
  padding-top: 24px;
}

.demo-tag {
  display: inline-block;
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
}

.demo-meta h2 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 10px;
}

.demo-meta p {
  color: var(--text-light);
  font-size: 16px;
  max-width: 680px;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.demo-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
}

.demo-copy:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.demo-copy svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Playlist */
.demo-sidebar {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.demo-sidebar-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-lighter);
  margin-bottom: 12px;
}

.demo-playlist-group {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  margin: 16px 0 8px;
}

.demo-playlist-group:first-child {
  margin-top: 0;
}

.demo-playlist-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  transition: background var(--transition);
}

.demo-playlist-item:hover {
  background: var(--bg-light);
}

.demo-playlist-item.active {
  background: rgba(99, 102, 241, 0.08);
}

.demo-playlist-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  color: var(--text-light);
}

.demo-playlist-item.active .demo-playlist-icon {
  background: var(--primary);
  color: #fff;
}

.demo-playlist-icon svg {
  width: 16px;
  height: 16px;
}

.demo-playlist-item-title {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.demo-playlist-item.active .demo-playlist-item-title {
  color: var(--primary);
}

.demo-playlist-item-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-light);
}

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

  .demo-sidebar {
    position: static;
    max-height: none;
  }
}
