/* =====================================
   TAMILAI VIDEO STUDIO
===================================== */
#videoStudioPopup {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  z-index: 999999;
}
/* CARD */
.video-studio-popup {
  width: 720px;
  max-width: 92%;
  background: linear-gradient(
    145deg,
    rgba(5, 15, 35, 0.98),
    rgba(5, 25, 55, 0.98)
  );
  border: 1px solid rgba(0, 229, 255, 0.7);
  border-radius: 24px;
  padding: 22px;
  position: relative;
  box-shadow:
    0 0 20px rgba(0, 229, 255, 0.35),
    0 0 60px rgba(0, 229, 255, 0.15);
}
/* GLOW */
.video-studio-popup::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.55);
  pointer-events: none;
}
.video-studio-popup h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 18px;
  text-shadow:
    0 0 10px var(--primary),
    0 0 25px var(--primary);
}
/* INPUT */
#videoPrompt {
  width: 100%;
  min-height: 120px;
  resize: none;
  border: none;
  outline: none;
  border-radius: 18px;
  padding: 15px;
  color: var(--text-primary);
  background: #08244c;
  border: 1px solid rgba(0, 229, 255, 0.5);
  box-sizing: border-box;
}
#videoStyle,
#videoResolution,
#videoDuration {
  width: 100%;
  height: 48px;
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 229, 255, 0.5);
  background: #08244c;
  color: var(--text-primary);
  padding: 0 12px;
}
/* BUTTONS */
.video-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}
.video-buttons button {
  flex: 1;
  height: 50px;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
}
#generateVideoBtn {
  background: #00d9ff;
  color: #00111f;
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.4);
}
#closeVideoStudioBtn {
  background: #1a2f5f;
  color: var(--text-primary);
}
/* RESULTS */
.video-results {
  margin-top: 18px;
  min-height: 250px;
  max-height: 380px;
  overflow-y: auto;
  border-radius: 18px;
  background: #071f40;
  border: 1px solid var(--border);
  padding: 15px;
}
.video-placeholder {
  text-align: center;
  color: #9fefff;
  padding-top: 90px;
}
.generated-video {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--primary);
}
/* MOBILE */
@media (max-width: 768px) {
  .video-studio-popup {
    width: 88%;
    padding: 14px;
    border-radius: 18px;
  }
  .video-studio-popup h2 {
    font-size: 18px;
  }
  #videoPrompt {
    min-height: 80px;
    font-size: 13px;
  }
  #videoStyle,
  #videoResolution,
  #videoDuration {
    height: 40px;
    font-size: 13px;
  }
  .video-buttons {
    flex-direction: column;
  }
  .video-buttons button {
    height: 42px;
    font-size: 13px;
  }
  .video-results {
    min-height: 140px;
    max-height: 220px;
  }
  .video-placeholder {
    padding-top: 35px;
    font-size: 13px;
  }
}
