.playlist-container {
  max-width: 80%;
  margin: auto;
  padding: 0px;
  text-align: center;
}

#video-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.video-thumb {
  cursor: pointer;
  transition: transform 0.2s;
  background-color: white;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.video-thumb:hover {
  transform: scale(1.03);
}

.video-thumb img {
  width: 100%;
  border-radius: 4px;
}

.video-title {
  margin-top: 8px;
  font-size: 14px;
  color: #333;
}

#pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.page-btn {
  padding: 8px 14px;
  background-color: #036;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.page-btn:hover {
  background-color: #999999;
}

.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  position: relative;
  background: #000;
  padding: 10px;
  max-width: 90%;
  max-height: 80%;
}

.modal-content iframe {
  width: 100%;
  height: 300px;
}

#close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 28px;
  color: white;
  cursor: pointer;
}
