/* Clean, modern, and fully separated video section styles */

#video-section-root {
  width: 100%;
  margin: 0 auto;
}

#video-section-root .video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px 20px;
  margin: 40px 0 0 0;
}

#video-section-root .video-card {
  background: #181818;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0s;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 2px solid #222;
}
#video-section-root .video-card:hover {
  box-shadow: 0 4px 24px rgba(255,215,0,0.08);
  border-color: #FFD700;
}

#video-section-root .video-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

#video-section-root .video-category {
  position: absolute;
  top: 8px;
  left: 12px;
  background: #FFD700;
  color: #222;
  font-size: 0.85rem;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 6px;
  z-index: 3;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px #000a;
}

/* Remove any default label overlay */
#video-section-root .thumbnail-img[alt*="thumbnail"] {
  /* No label overlay */
}

#video-section-root .play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  background: rgba(0,0,0,0.7);
  border-radius: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #FFD700;
  pointer-events: none;
  z-index: 4;
  transition: background 0.1s;
}
#video-section-root .video-card:hover .play-button {
  background: #FFD700;
  color: #222;
}

#video-section-root .video-modal {
  z-index: 99999;
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.95);
  justify-content: center;
  align-items: center;
  pointer-events: none;
  /* Fix for video overlays */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

#video-section-root .video-modal.active {
  display: flex !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}


#video-section-root .video-modal-content {
  position: static;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  box-sizing: border-box;
  display: block;
  pointer-events: auto;
  margin: 0;
  max-width: none;
  max-height: none;
}

.video-modal-content {
  background: transparent !important;
}

#video-section-root .video-modal-content video {
  outline: 2px solid #FFD700;
  background: transparent !important;
  position: relative;
  z-index: 10000;
  width: auto;
  height: auto;
  max-width: 96vw;
  max-height: 90vh;
  border: none;
  border-radius: 0;
  display: block;
  margin: 0 auto;
}

/* Force the video to have no overlay */
#video-section-root .video-modal-content video::after,
#video-section-root .video-modal-content video::before {
  display: none !important;
  background: transparent;
}

.video-modal .close-video:hover {
    background: #ff3333;
}

.video-modal .video-modal-title {
    color: #fff;
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.2rem;
    text-shadow: 1px 1px 4px #000;
}
