/* === Base Styles === */
body {
  background-color: #0d0d0d;
  color: white;
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
}

h2, h3 {
  margin: 10px 0;
}

/* === Top Bar === */
.top-bar {
  text-align: center;
  margin-bottom: 20px;
}

input[type="text"] {
  padding: 10px;
  width: 200px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
}

button {
  padding: 10px 15px;
  margin-left: 10px;
  font-size: 1rem;
  background-color: #007bff;
  border: none;
  border-radius: 4px;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: #0056b3;
}

/* === Channel List === */
#channel-list {
  text-align: center;
  margin: 10px 0 20px 0;
  font-size: 1rem;
  color: #0ff;
}

#channel-list span {
  margin: 0 8px;
  cursor: pointer;
  color: #0cf;
  text-decoration: underline;
}

#channel-list-display {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #0ff;
}

/* === Main Layout === */
.main-layout {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

/* === Schedule Area === */
.video-dropzone {
  flex: 1;
  min-width: 300px;
  background: #1e1e1e;
  padding: 15px;
  border-radius: 10px;
}

.droppable-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#schedule-list li {
  background: #333;
  margin: 8px 0;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

#schedule-list li:hover {
  background: #444;
}

/* === Preview and Upload Section === */
.preview-box {
  flex: 1;
  min-width: 300px;
  position: relative;
  background: #141414;
  padding: 15px;
  border-radius: 10px;
}

#tv-player {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  margin-top: 10px;
}

.uploaded-box {
  margin-top: 20px;
  text-align: left;
}

#uploaded-videos {
  list-style: none;
  padding: 0;
}

#uploaded-videos li {
  background: #262626;
  padding: 8px;
  margin: 4px 0;
  border-radius: 4px;
  cursor: grab;
  transition: background 0.2s ease;
}

#uploaded-videos li:hover {
  background: #3a3a3a;
}

input[type="file"] {
  margin-top: 15px;
  padding: 5px;
  color: white;
  background: transparent;
  border: 1px solid #333;
  border-radius: 4px;
  cursor: pointer;
}

/* === Watermark === */
.watermark {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
  opacity: 0.7;
  pointer-events: none;
  user-select: none;
}

/* === Responsive === */
@media (max-width: 768px) {
  .main-layout {
    flex-direction: column;
    align-items: center;
  }

  .video-dropzone, .preview-box {
    width: 100%;
  }
}
