.video-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.video-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 20px rgba(var(--color-primary-rgb), 0.2);
  text-decoration: none;
  color: inherit;
}
.video-card:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.video-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.video-card:hover img {
  transform: scale(1.05);
}
.video-card .video-card-body {
  padding: 1rem;
  flex-grow: 1;
  min-height: 64px;
}
.video-card .video-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}
.video-card:hover .video-title {
  color: var(--color-primary);
}
.video-card .video-description {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.playlist-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.playlist-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 20px rgba(var(--color-primary-rgb), 0.2);
  text-decoration: none;
  color: inherit;
}
.playlist-card:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.playlist-card.loading {
  pointer-events: none;
  opacity: 0.6;
}
.playlist-card .playlist-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  overflow: hidden;
  word-wrap: break-word;
}
.playlist-card .video-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}
.playlist-card:hover .video-title {
  color: var(--color-primary);
}

.playlist-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
}
.playlist-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.playlist-card:hover .playlist-thumbnail img {
  transform: scale(1.05);
}

.playlist-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.95;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  width: 32px;
  height: 32px;
  z-index: 10;
  color: #fff;
}
.playlist-play-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.8));
}
.playlist-card:hover .playlist-play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.15);
}

.playlist-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-text);
  transition: color 0.3s ease;
}
.playlist-card:hover .playlist-title {
  color: var(--color-primary);
}

.placeholder-shimmer {
  background: linear-gradient(90deg, var(--color-surface) 0%, var(--glass-border) 50%, var(--color-surface) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
.playlist-card.loading .playlist-thumbnail {
  height: 180px;
  background: var(--color-surface);
}

.playlist-grid > [class*=col-] {
  margin-bottom: 1.5rem;
  overflow: hidden;
  display: flex;
}
.playlist-grid .playlist-card {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.playlist-card {
  background: rgba(0, 0, 0, 0.6) !important;
  border: 1px solid rgba(255, 107, 0, 0.3) !important;
  backdrop-filter: blur(10px);
}
.playlist-card .playlist-title {
  color: #FFFFFF !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
.playlist-card:hover {
  border-color: var(--color-primary) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(var(--color-primary-rgb), 0.2) !important;
  background: rgba(0, 0, 0, 0.7) !important;
}
.playlist-card:hover .playlist-title {
  color: var(--color-primary) !important;
}

.video-card {
  background: rgba(0, 0, 0, 0.6) !important;
  border: 1px solid rgba(255, 107, 0, 0.3) !important;
  backdrop-filter: blur(10px);
}
.video-card .video-title {
  color: #FFFFFF !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
.video-card .video-description {
  color: rgba(255, 255, 255, 0.7) !important;
}
.video-card:hover {
  border-color: var(--color-primary) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(var(--color-primary-rgb), 0.2) !important;
  background: rgba(0, 0, 0, 0.7) !important;
}
.video-card:hover .video-title {
  color: var(--color-primary) !important;
}

[data-bs-theme=light] .placeholder-shimmer {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 100%);
}

[data-bs-theme=dark] .placeholder-shimmer {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .playlist-card,
  .playlist-thumbnail img,
  .playlist-play-icon,
  .playlist-title {
    transition: none;
  }
  .playlist-card:hover {
    transform: none;
  }
  .placeholder-shimmer {
    animation: none;
    background: var(--color-surface);
  }
}
.playlist-card:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
