:root {
  --top10-card-w: 220px;
  --top10-card-h: 140px;
  --top10-radius: 340px;
}

.top10-carousel {
  position: relative;
  padding: 18px 18px 26px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 90%, transparent);
  overflow: hidden;
}

.top10-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.top10-controls .top10-title {
  font-weight: 600;
  color: var(--text);
}

.top10-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 85%, transparent);
  color: var(--text);
  cursor: pointer;
}

.top10-stage {
  position: relative;
  height: 260px;
  perspective: 1200px;
  overflow: hidden;
}

.top10-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.top10-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--top10-card-w);
  height: var(--top10-card-h);
  border-radius: 16px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: box-shadow 0.3s ease, opacity 0.3s ease;
}

.top10-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.top10-card .top10-meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 12px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.6));
  color: #fff;
  font-size: 12px;
}

.top10-card .top10-meta strong {
  display: block;
  font-size: 13px;
}

.top10-card.is-active {
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
}

.top10-carousel.is-2d .top10-stage {
  height: auto;
}

.top10-carousel.is-2d .top10-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.top10-carousel.is-2d .top10-card {
  position: relative;
  top: auto;
  left: auto;
  flex: 0 0 auto;
  transform: none;
}

.top10-empty {
  padding: 18px;
  color: var(--muted);
  border-radius: 12px;
  border: 1px dashed var(--border);
  text-align: center;
}

@media (max-width: 900px) {
  :root {
    --top10-card-w: 200px;
    --top10-card-h: 130px;
  }

  .top10-stage {
    height: 220px;
  }
}
