/* ✅ Ne vágja le a videót tartalmazó szülő div */
#page-content-wrapper {
  overflow: visible !important;
}

/* 🎥 Videó befoglaló szekció – fix arányban tartja, nem nyomja szét a tartalmat */
#dynamic {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000;
  position: relative;
  overflow: hidden;
}

/* 🎬 Videó lejátszó – nem vágódik le, arányosan illeszkedik, nem nyomja szét a layoutot */
#videoplaylist {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  background-color: #000;
}

/* 🔲 Bootstrap 5 ratio fix (ha használod) */
.ratio {
  position: relative;
  width: 100%;
}

.ratio-16x9 {
  aspect-ratio: 16 / 9;
}

/* 👁 Watched ikonhoz (megnézett epizódok jelölése) */
.ep-image-wrapper {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.ep-image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
}

.watched-icon {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 18px;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  padding: 2px 5px;
  border-radius: 4px;
  display: none;
  z-index: 10;
}

#playlist li.active {
  background: rgba(255, 255, 255, 0.08); /* vagy: #2d2d2d */
  border-left: 4px solid #00ccff;
  transition: background 0.3s ease;
}

#playlist li.active .videofile {
  font-weight: bold;
  color: #00ccff;
}


#video-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: sans-serif;
  color: white;
  background-color: rgba(0,0,0,0.6);
}

#video-loading-overlay .spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #3498db;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  animation: spin 1.2s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.video-pause-icon,
.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  padding: 20px;
  display: none;
  z-index: 9999;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* Pause csíkok */
.pause-bars {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pause-bars span {
  display: inline-block;
  width: 8px;
  height: 30px;
  margin: 0 4px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
}

/* Play háromszög */
.play-triangle {
  width: 0;
  height: 0;
  border-left: 22px solid rgba(255, 255, 255, 0.9);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
}
