.videos-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
  padding-top: 0;
}
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.video-card {
  text-decoration: none;
  color: inherit;
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.video-card:hover {
  box-shadow: var(--shadow-lg);
}
.video-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  background: #1a1a1a;
  overflow: hidden;
}
.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.video-card:hover .hover-overlay { opacity: 1; }
.play-icon-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.65);
  border-radius: 50%;
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: 0.25s;
  z-index: 2;
}
.video-card:hover .play-icon-overlay {
  opacity: 1;
  background: var(--colorofdetails);
  transform: translate(-50%, -50%) scale(1.08);
}
.video-duration {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.8);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 3;
}
.video-info { padding: 14px 16px; flex-grow: 1; }
.video-title {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-meta {
  font-size: 0.85rem;
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 32px;
}
.page-btn {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-color);
  transition: 0.2s;
  box-shadow: var(--shadow);
}
.page-btn:hover:not(:disabled) {
  background: var(--colorofdetails);
  color: white;
  border-color: var(--colorofdetails);
}
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-indicator { font-weight: 600; }
