/* slider.css */
.slider-container {
  width: 80%;
  padding-top: 10px;
  margin: auto;
  position: relative;
  overflow: hidden;
}

.slider {
  display: flex;
  gap: 10px;
  transition: transform 0.3s ease;
}

.slider-item {
  flex: 0 0 190px;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s;
}

.slider-item:hover {
  transform: scale(1.2);
  z-index: 2;
}

.preview {
  width: 100%;
  height: 150px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.play-icon {
  position: absolute;
  font-size: 3em;
  color: white;
  text-shadow: 0 0 10px #000;
  pointer-events: none;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3em;
  color: #fff;
  background: rgba(0,0,0,0.5);
  width: 50px;
  height: 50px;
  text-align: center;
  line-height: 40px;
  cursor: pointer;
  border-radius: 50%;
  user-select: none;
  z-index: 3;
}

.arrow.left { left: 0; }
.arrow.right { right: 0; }

.modal {
  display: none;
  position: fixed;
  top:0; left:0; width:100%; height:100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 2147483647;
}

.modal iframe {
  pointer-events: auto;
  width: 80%;
  height: 80%;
  border: none;
  border-radius: 8px;
}

.modal.active {
  display: flex;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2em;
  color: white;
  cursor: pointer;
  z-index: 2147483647;
  user-select: none;
}

@media (max-width: 600px) {
  .arrow { display: none; }
  .slider-item { flex: 0 0 150px; }
  .preview { height: 100px; }
}
