body {
  font-family: Arial, sans-serif;
  background: #111;
  color: #eee;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

button#backBtn {
  background: #333;
  color: #eee;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
}

button#backBtn:hover {
  background: #444;
}

h1 {
  margin: 0;
  font-size: 26px;
}

.library .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.library .item {
  background: #222;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
}

.library .item:hover {
  transform: scale(1.03);
}

.library .item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.library .item h2 {
  margin: 10px;
  font-size: 18px;
  text-align: center;
}

.episode-list {
  width: 250px;
  background: #222;
  border-radius: 10px;
  padding: 10px;
  overflow-y: auto;
  max-height: 80vh;
}

.episode-list li {
  list-style: none;
  padding: 10px;
  border-bottom: 1px solid #333;
  cursor: pointer;
}

.episode-list li:hover,
.episode-list li.active {
  background: #333;
}

.player-section {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

video {
  width: 100%;
  border-radius: 10px;
  background: black;
}
