body.no-scroll {
  overflow: hidden;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
}

.popup-overlay.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.popup {
  width: min(560px, 92vw);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 22px;
  padding: 26px 24px 22px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
  position: absolute;
  border: 1px solid rgba(148, 163, 184, 0.2);
  
}


.popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #eef2ff;
  color: #312e81;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: 0.2s ease;
}

.popup-close:hover {
  background: #e0e7ff;
  transform: scale(1.05);
}

.name {
  margin: 6px 0 18px;
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.02em;
}

.add-video-form {
  display: grid;
  gap: 14px;
}

.add-video-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
}

.add-video-form input[type="url"],
.add-video-form input[type="text"] {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid #dbe3ee;
  background: #ffffff;
  outline: none;
  font-size: 15px;
  color: #0f172a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.add-video-form input[type="url"]:focus,
.add-video-form input[type="text"]:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
  transform: translateY(-1px);
}

.tags-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.tags-box p {
  width: 100%;
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
}

.tags-box label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  white-space: nowrap;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s ease;
}

.tags-box label:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
  transform: translateY(-1px);
}

.tags-box input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 2px solid #94a3b8;
  border-radius: 50%;
  background: #fff;
  position: relative;
  cursor: pointer;
  transition: 0.2s ease;
}

.tags-box input[type="checkbox"]:checked {
  border-color: #6366f1;
  background: #6366f1;
}

.tags-box input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

.submit-btn {
  margin-top: 8px;
  border: none;
  border-radius: 14px;
  padding: 14px 18px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  color: white;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(99, 102, 241, 0.34);
}

.submit-btn:active {
  transform: translateY(0);
}