/* ===========================
MAIN CONTENT / VIDEO CARDS
=========================== */

.my-title {
  margin: 0 0 22px;
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
}

.card-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin: 36px 0 40px;
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.video-thumbnail,
.video-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
}

.video-thumbnail img,
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.video-thumbnail:hover img {
  transform: scale(1.04);
}

.video-info {
  padding-top: 12px;
}

.video-title {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.video-meta {
  margin-top: 8px;
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.video-card:hover .video-title a {
  color: var(--accent);
}

.video-thumb {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.video-thumb img {
  pointer-events: none;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
  z-index: 1300;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-hover);
}
