.panel {
  min-width: 0;
}

.demo-intro {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 2px 1px 12px;
}

.demo-intro span {
  padding: 5px 8px;
  border: 1px solid rgba(88, 216, 207, .25);
  border-radius: 99px;
  background: rgba(88, 216, 207, .07);
  color: var(--cyan);
  font-size: 9px;
  font-weight: 750;
}

.demo-intro p {
  margin: 0;
  color: #778398;
  font-size: 10px;
}

.demo-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #293246 transparent;
}

.demo-card {
  position: relative;
  flex: 0 0 214px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #0d121c;
  scroll-snap-align: start;
  transition: .2s;
}

.demo-card:hover {
  transform: translateY(-2px);
  border-color: rgba(108, 140, 255, .35);
}

.demo-card.active {
  border-color: #6988fa;
  box-shadow: 0 0 0 2px rgba(105, 136, 250, .1);
}

.demo-select {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.demo-cover {
  position: relative;
  height: 108px;
  overflow: hidden;
  background: #080b11;
}

.demo-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .3s;
}

.demo-card:hover .demo-cover img { transform: scale(1.035); }

.demo-cover::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, #0d121c);
}

.demo-type {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 1;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(5, 8, 13, .76);
  color: #dce4ef;
  font-size: 8px;
}

.demo-meta { padding: 9px 10px 7px; }
.demo-meta b { display: block; font-size: 11px; }
.demo-meta p {
  height: 28px;
  margin: 5px 0 0;
  color: #778398;
  font-size: 9px;
  line-height: 1.5;
}

.demo-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px 9px;
}

.demo-badge { color: #88a0ff; font-size: 8px; }
.demo-source {
  max-width: 112px;
  overflow: hidden;
  color: #5e6a7e;
  font-size: 7px;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.demo-source:hover { color: #91a0b8; }

.demo-skeleton {
  flex: 0 0 214px;
  height: 180px;
  border-radius: 13px;
  background: linear-gradient(100deg, #111722 30%, #192131 48%, #111722 66%);
  background-size: 300% 100%;
  animation: demo-shimmer 1.5s infinite;
}

@keyframes demo-shimmer { to { background-position: -150% 0; } }

@media (max-width: 560px) {
  .demo-card, .demo-skeleton { flex-basis: 190px; }
  .demo-cover { height: 100px; }
}
