/* --------------- VIDEOS PAGE --------------- */

.videos-page .container {
  width: min(1280px, 95vw);
}

.videos-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .videos-layout {
    grid-template-columns: 1fr;
  }
}

.video-featured {
  background: var(--panel);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-featured .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.video-featured .card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
}

.video-featured .video-embed {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
}

.video-featured .video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-browse .section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 20px;
}

.video-browse-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.video-item {
  background: var(--panel);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease;
}

.video-item:hover {
  box-shadow: var(--shadow-lg);
}

.video-item .video-embed {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
}

.video-item .video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-item .video-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.video-item .video-title {
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.video-item .btn {
  flex-shrink: 0;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
  border: none;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.video-item .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

@media (max-width: 600px) {
  .video-browse-grid {
    grid-template-columns: 1fr;
  }
}
