/* Videos Listing Widget — Mobile First */

.vid-widget {
  padding: 0 0 40px;
}

/* Header */
.vid-header {
  margin-bottom: 32px;
}

.vid-heading {
  font-size: 2.25rem;
  font-weight: 700;
  color: #101828;
  margin: 0 0 8px;
  line-height: 1.1;
}

.vid-description {
  font-size: 1rem;
  line-height: 1.5;
  color: #4a5565;
  margin: 0;
  max-width: 700px;
}

/* Category Tabs */
.vid-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 16px;
}

.vid-tab {
  padding: 8px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4a5565;
  background: #f3f4f6;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  line-height: 20px;
}

.vid-tab:hover {
  background: #e5e7eb;
  color: #101828;
}

.vid-tab--active {
  background: var(--accent, #155dfc);
  color: #fff;
}

.vid-tab--active:hover {
  background: var(--accent, #155dfc);
  opacity: 0.9;
  color: #fff;
}

.vid-empty {
  color: #4a5565;
  font-style: italic;
  padding: 60px 0;
  text-align: center;
}

/* Card Grid */
.vid-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 769px) {
  .vid-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .vid-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card */
.vid-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.vid-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* Thumbnail */
.vid-card-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #1a1a2e;
}

.vid-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.vid-card:hover .vid-card-thumb img {
  transform: scale(1.03);
}

/* Play button overlay */
.vid-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  pointer-events: none;
}

.vid-card:hover .vid-card-play {
  background: var(--accent, #155dfc);
}

.vid-card-play svg {
  width: 24px;
  height: 24px;
  color: #fff;
  margin-left: 3px;
}

/* Duration badge */
.vid-card-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  line-height: 18px;
}

/* Card Body */
.vid-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

/* Category tag */
.vid-card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent, #155dfc);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 16px;
}

/* Title */
.vid-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  color: #101828;
  margin: 0;
}

.vid-card-title a {
  color: inherit;
  text-decoration: none;
}

.vid-card-title a:hover {
  color: var(--accent, #155dfc);
}

/* Description */
.vid-card-desc {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #4a5565;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* View count */
.vid-card-views {
  font-size: 0.8125rem;
  color: #9ca3af;
  line-height: 18px;
}

/* Load More */
.vid-load-more {
  text-align: center;
  margin-top: 40px;
}

.vid-load-more button {
  background: var(--accent, #155dfc);
  color: #fff;
  border: none;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.vid-load-more button:hover {
  opacity: 0.9;
}

/* Subscribe CTA */
.vid-subscribe {
  margin-top: 48px;
  background: #101828;
  border-radius: 14px;
  padding: 40px 32px;
  text-align: center;
  color: #fff;
}

.vid-subscribe-heading {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: #fff;
}

.vid-subscribe-text {
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.vid-subscribe-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ff0000;
  color: #fff;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.vid-subscribe-btn:hover {
  opacity: 0.9;
  color: #fff;
}

.vid-subscribe-btn svg {
  width: 20px;
  height: 20px;
}
