  /* ────────────────────────────────────────
     DEV BY LEXO
  ─────────────────────────────────────────── */

.yt-scroll-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: #6f00ff #1a1a1a;
}
.yt-scroll-wrap::-webkit-scrollbar {
  height: 4px;
}
.yt-scroll-wrap::-webkit-scrollbar-track {
  background: #1a1a1a;
}
.yt-scroll-wrap::-webkit-scrollbar-thumb {
  background: #5c1f6e;
  border-radius: 2px;
}

.yt-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  width: max-content;
  padding: 4px 2px 8px;
}

.yt-card {
  display: flex;
  flex-direction: column;
  width: 220px;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.22s ease;
}
.yt-card:hover {
  transform: translateY(-4px);
}

.yt-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 6px;
  overflow: hidden;
  background: #111;
}
.yt-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.yt-card:hover .yt-thumb {
  transform: scale(1.06);
}

.yt-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.2s;
}
.yt-card:hover .yt-overlay {
  opacity: 1;
}
.yt-play-icon {
  width: 52px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.7));
}

.yt-count-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.82);
  color: #e0e0e0;
  font-size: 11px;
  font-family: 'Share Tech Mono', monospace;
  padding: 3px 7px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.4px;
}

.yt-info {
  margin-top: 8px;
  padding: 0 2px;
}
.yt-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #e8e8e8;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: 0.3px;
}
.yt-view-all {
  margin-top: 4px;
  font-size: 11px;
  color: #666;
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0.2px;
  transition: color 0.2s;
}
.yt-card:hover .yt-view-all {
  color: #461783;
}

.yt-skeleton {
  pointer-events: none;
}
.yt-skel-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 6px;
  background: linear-gradient(90deg, #1c1c1c 25%, #2a2a2a 50%, #1c1c1c 75%);
  background-size: 200% 100%;
  animation: yt-shimmer 1.4s infinite;
}
.yt-skel-line {
  margin-top: 8px;
  height: 13px;
  border-radius: 3px;
  background: linear-gradient(90deg, #1c1c1c 25%, #2a2a2a 50%, #1c1c1c 75%);
  background-size: 200% 100%;
  animation: yt-shimmer 1.4s infinite;
}
.yt-skel-line.short {
  width: 65%;
  margin-top: 6px;
}
@keyframes yt-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 680px) {
  .yt-card { width: 195px; }
  .yt-title { font-size: 13px; }
}

@media (max-width: 480px) {
  .yt-card  { width: 160px; }
  .yt-title { font-size: 12px; }
  .yt-count-badge { font-size: 10px; padding: 2px 5px; }
  .yt-view-all { font-size: 10px; }
}

@media (max-width: 360px) {
  .yt-card { width: 145px; }
}