/* RPL Video Card Component Styles */
.rpl-video-card {
  position: relative;
  height: 100%;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  background: linear-gradient(135deg, #1a5276 0%, #2c3e50 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  z-index: 1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.rpl-video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(52, 152, 219, 0.2);
}

.video-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("/assets/templates/basic/images/imigongo-pattern.svg");
  opacity: 0.15;
  z-index: -1;
  transform: rotate(5deg) scale(1.2);
  transition: all 0.5s ease;
}

.rpl-video-card:hover .video-pattern {
  opacity: 0.08;
  transform: rotate(0deg) scale(1);
}

/* Video Card Thumbnail */
.video-card__thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.video-card__thumb::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  z-index: 1;
}

.video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.7s ease;
}

.rpl-video-card:hover .video-card__thumb img {
  transform: scale(1.08);
}

/* Video Play Button */
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 60px;
  height: 60px;
  background: rgba(52, 152, 219, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  z-index: 3;
  opacity: 0.9;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.rpl-video-card:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  background: rgba(52, 152, 219, 1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.video-play-btn::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.15);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* Video Match Teams */
.video-match-teams {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(41, 128, 185, 0.95);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Live Badge */
.video-live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(231, 76, 60, 0.95);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.video-live-badge .pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  animation: live-pulse 1.5s infinite;
}

@keyframes live-pulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Video Card Content */
.video-card__content {
  padding: 20px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.rpl-video-card:hover .video-card__content {
  background: rgba(255, 255, 255, 0.03);
}

/* Video Title */
.video-card__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
  position: relative;
  padding-bottom: 12px;
  z-index: 2;
}

.video-card__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(135deg, #1a5276 0%, #2980b9 100%);
  transition: all 0.4s ease;
}

.rpl-video-card:hover .video-card__title::after {
  width: 80px;
}

.video-card__title a {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.video-card__title a:hover {
  color: #3498db;
  transform: translateX(3px);
}

/* Video Meta */
.video-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.meta-item {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 20px;
  transition: all 0.3s;
}

.meta-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Video Description */
.video-card__description {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 15px;
  font-size: 14px;
  line-height: 1.6;
}

/* Watch Now Button */
.btn-watch-now {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3498db;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 8px 16px;
  border-radius: 30px;
  background: rgba(52, 152, 219, 0.1);
  border: 1px solid rgba(52, 152, 219, 0.3);
  position: relative;
  overflow: hidden;
  margin-top: auto;
  align-self: flex-start;
}

.btn-watch-now::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: all 0.4s ease;
}

.btn-watch-now:hover {
  color: white;
  background: #2980b9;
  transform: translateX(5px);
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(41, 128, 185, 0.4);
}

.btn-watch-now:hover::after {
  left: 100%;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .video-card__thumb {
    height: 180px;
  }

  .video-play-btn {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }

  .video-card__content {
    padding: 15px;
  }

  .video-card__title {
    font-size: 15px;
  }
}

@media (max-width: 576px) {
  .video-card__thumb {
    height: 160px;
  }
}
