body {
  font-family: sans-serif;
  margin: 0;
  padding: 20px;
  background: #f4f4f4;
  color: #111;
  transition: 0.3s;
}

input[type=text] {
  width: 60%;
  padding: 10px;
}

button {
  padding: 10px 15px;
  margin-left: 10px;
  cursor: pointer;
}

.video-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  justify-content: center;
}

.video {
  width: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: relative;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
}

.thumb img {
  width: 100%;
  display: block;
}

.info {
  padding: 12px;
}

.info strong {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
  font-weight: bold;
  color: #111;
  cursor: pointer;
}

.info .meta {
  font-size: 13px;
  color: #555;
}

.delete-btn {
  margin-top: 12px;
  background: #ffeded;
  color: #d60000;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: bold;
  font-size: 13px;
  transition: 0.2s;
}

.delete-btn:hover {
  background: #ffe0e0;
}

.colors {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  cursor: pointer;
}

.dot.blue { background: #2196F3; }
.dot.green { background: #4CAF50; }
.dot.yellow { background: #FFEB3B; border: 1px solid #aaa; }

.video[data-bg='#E3F2FD'] strong,
.video[data-bg='#E8F5E9'] strong,
.video[data-bg='#FFF9C4'] strong {
  color: #000 !important;
}

body.dark {
  background: #121212;
  color: #f1f1f1;
}

.video.dark {
  background: #1e1e1e;
}

.info strong.dark { color: #000; }
.meta.dark { color: #bbb; }

.toast {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
}

.toast.dark {
  background: rgba(40, 40, 40, 0.6);
  color: #fff;
}

@media (max-width: 600px) {
  input[type=text] {
    width: 100%;
    margin-bottom: 10px;
  }
}
