/* Reset & body */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  display: flex;
  min-height: 100vh;
  background: #0d0d1a;
  color: #fff;
}

/* Sidebar */
.sidebar {
  width: 180px;
  background: #111122;
  padding: 15px;
}

.sidebar nav li {
  cursor: pointer;
  padding: 10px;
  list-style: none;
  margin-bottom: 5px;
  border-radius: 5px;
  transition: 0.2s;
}

.sidebar nav li:hover {
  background: #00f5ff22;
}

.sidebar nav li.active {
  background: #00f5ff44;
}

/* Main content */
.main {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.section {
  display: none;
}

.section.active {
  display: block;
}

/* Search results cards */
.result-card {
  display: flex;
  align-items: center;
  background: #141420;
  border: 1px solid #00f5ff22;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
}

.result-card img {
  width: 80px;
  height: 120px;
  border-radius: 5px;
  margin-right: 10px;
  object-fit: cover;
}

.result-card h4 {
  margin-bottom: 5px;
}

.result-card button {
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  background: #00f5ff22;
  border: 1px solid #00f5ff44;
  color: #00f5ff;
}

.result-card button:hover {
  background: #00f5ff44;
}

/* Modals */
.upload-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-content {
  background: #111522;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #00f5ff44;
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
}

.modal-content .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 20px;
}

.modal-content img.upload-poster {
  width: 150px;
  border-radius: 8px;
  margin: 10px auto;
}

textarea, input, select {
  width: 100%;
  margin: 5px 0;
  border-radius: 5px;
  padding: 6px;
  background: #1b1b25;
  color: #fff;
  border: 1px solid #00f5ff22;
}

/* Buttons */
button {
  padding: 6px 10px;
  border-radius: 5px;
  cursor: pointer;
  background: #00f5ff22;
  border: 1px solid #00f5ff44;
  color: #00f5ff;
}

button:hover {
  background: #00f5ff44;
}

/* Season & Episodes */
.season-card {
  background: #161622;
  border: 1px solid #00f5ff33;
  border-radius: 10px;
  margin: 15px 0;
  padding: 15px;
}

.episodes {
  margin-top: 10px;
}

.episode-item {
  display: grid;
  grid-template-columns: 1fr 1fr 100px 100px;
  gap: 8px;
  margin-bottom: 10px;
}

.episode-item input {
  width: 100%;
}

.episode-item button {
  width: 100%;
}
