/* ========================================================
   SECTION: STUDENT VIDEO FEEDBACK & VIDEO MODAL PLAYER
   ======================================================== */
.video-feedback-section {
  margin-top: 52px;
  padding-top: 48px;
  border-top: 1px solid var(--border-color);
}

.video-feedback-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.video-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px -2px rgba(16, 42, 107, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -4px rgba(16, 42, 107, 0.16);
  border-color: var(--primary-cyan);
}

.video-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 13;
  background: #0A1C47;
  cursor: pointer;
  overflow: hidden;
}

.video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.96;
  display: block;
}

.video-card:hover .video-thumb-img {
  transform: scale(1.04);
  opacity: 1;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(0, 163, 255, 0.92);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 163, 255, 0.5);
  transition: all 0.2s ease;
}

.video-card:hover .video-play-btn {
  background: #008be0;
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 24px rgba(0, 163, 255, 0.7);
}

.video-duration-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  backdrop-filter: blur(4px);
}

.video-card-body {
  padding: 14px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #FFFFFF;
}

.video-student-name {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--primary-navy);
  margin: 0;
  text-align: center;
  letter-spacing: -0.01em;
}

/* VIDEO MODAL PLAYER */
.video-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 25, 47, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1010;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.video-modal-overlay.open {
  display: flex;
}

.video-modal-dialog {
  background: #0A1C47;
  border-radius: 16px;
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow: hidden;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.5);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
}

.video-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  transition: background 0.2s;
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

.video-player-container {
  width: 100%;
  height: 62vh;
  max-height: 520px;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.video-player-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.video-modal-info {
  padding: 14px 18px;
  color: #FFFFFF;
  background: #0A1C47;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 1024px) {
  .video-feedback-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    max-width: 640px;
    margin: 28px auto 0;
  }
}

@media (max-width: 560px) {
  .video-feedback-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin: 28px auto 0;
  }
}
