body {
  margin: 0;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: row;
  height: 100vh;
}

/* Sidebar styling */
.video-list {
  width: 30%;
  background: rgb(255, 255, 255);
  overflow-y: auto;
  border-right: 1px solid #ddd;
  /* padding: 10px; */
}

.video-list ul {
  list-style: none;
  padding: 0;
  margin: 10px;
}

.video-list li {
  margin-bottom: 10px;
  cursor: pointer;
  padding: 15px 10px;
  background: #e4e4e4;
  /* border: 1px solid #ddd; */
  border-radius: 14px;
  transition: background 0.3s;
}

.video-list li:hover {
  background: #ddd;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  position: fixed;
  background-color: aliceblue;
  width: 30%;
}

/* Video player styling */
.video-player {
  width: 70%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
}

video {
  max-width: 100%;
  max-height: 100%;
}

#videoList {
  padding-top: 80px;
}

.back-button {
  background-color: #004480;
  color: white;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-right: 20px;
}

.back-button:hover {
  background-color: #0056b3;
  /* Slightly darker shade for hover effect */
}

#container {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 687 / 500;
  background: black;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

ruffle-player {
  width: 100%;
  height: 100%;
}

#controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
  width: 100%;
}

.btn {
  background: #333;
  border: none;
  padding: 4px 6px;
  font-size: 16px;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 2px;
}

#videoContainer {
  width: 90%;
}

#youtubePlayer {
  height: 95vh;
  width: 100%;
  border: none;
}

.btn:hover {
  background: #555;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
  body {
    flex-direction: column;
  }

  #videoContainer {
    width: 100%;
  }

  .video-player {
    width: 100%;
    height: 50%;
  }

  .video-list {
    width: 100%;
    height: 50%;
    border-right: none;
    border-top: 1px solid #ddd;
  }


  .header {
    width: 100%;
  }

}