/* Moved video-specific styles from application.css */
.videos-page {
  /* Remove width constraints to allow full background coverage */
}

.video-show,
.video-form {
  max-width: 1200px;
  margin: 0 auto;
}

.video-form {
  max-width: 900px;
}

/* Web Awesome grid configuration for videos */
.videos-page .wa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: start;
}

.featured-videos .wa-grid {
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
}

/* All Videos section - 3 videos per row */
.all-videos .wa-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  .all-videos .wa-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .all-videos .wa-grid {
    grid-template-columns: 1fr;
  }
}

/* Web Awesome card styling for videos */
wa-card.video-card {
  max-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

wa-card.video-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.video-link {
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
}

.video-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.video-info h3,
.video-info h4 {
  color: var(--wa-color-neutral-050);
  font-weight: 600;
}

.video-info h3 a {
  color: inherit;
  text-decoration: none;
}

.video-info h3 a:hover {
  color: var(--wa-color-blue-60);
}

.video-info .video-description,
.video-info .video-duration {
  color: var(--wa-color-neutral-400);
  font-weight: 500;
}

.video-duration {
  font-size: 0.875rem;
}

.video-actions {
  margin-top: auto;
}

/* Media slot styling for Web Awesome cards */
wa-card.video-card img[slot="media"] {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.video-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
}

.video-player-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

.video-player-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}