.gptv-upload-screen {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: #0A0E11;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  box-sizing: border-box;
}

.gptv-upload-centered-shell {
  width: 100%;
  max-width: 1280px;
}

.gptv-upload-dropzone-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gptv-upload-dropzone {
  position: relative;
  min-height: 78vh;
  border: 4px dashed #5E56FF;
  border-radius: 32px;
  background: transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.gptv-upload-dropzone.is-dragover {
  border-color: #8a83ff;
  box-shadow: 0 0 40px rgba(94, 86, 255, .18);
  background: rgba(94, 86, 255, 0.03);
}

.gptv-upload-dropzone.has-file {
  border-style: solid;
}

.gptv-upload-dropzone-inner {
  width: 100%;
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  box-sizing: border-box;
  text-align: center;
}

.gptv-upload-dropzone-icon-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  margin-bottom: 22px;
}

.gptv-upload-dropzone-icon {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 54px;
  color: #f2f2f2;
  line-height: 1;
}

.gptv-upload-dropzone-plus {
  position: absolute;
  right: 16px;
  bottom: 10px;
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  color: #0A0E11;
  background: #f2f2f2;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gptv-upload-dropzone-title {
  margin: 0 0 12px;
  color: #f5f5f5;
  font-size: 42px;
  line-height: 1.1;
  font-weight: 700;
}

.gptv-upload-dropzone-subtitle {
  margin: 0 0 24px;
  color: rgba(255,255,255,.78);
  font-size: 22px;
  line-height: 1.3;
}

.gptv-upload-dropzone-limit {
  margin-bottom: 38px;
  color: #8f86ff;
  font-size: 22px;
  font-weight: 700;
}

.gptv-upload-select-btn {
  appearance: none;
  border: 0;
  min-height: 64px;
  padding: 0 24px;
  border-radius: 16px;
  background: #5E56FF;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 28px rgba(94, 86, 255, .26);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  text-decoration: none;
}

.gptv-upload-select-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 38px rgba(94, 86, 255, .34);
}

.gptv-upload-select-btn-icon {
  font-size: 20px;
  line-height: 1;
}

.gptv-upload-preview-media {
  width: 100%;
  height: 100%;
  max-height: 78vh;
  object-fit: contain;
  display: block;
  border-radius: 24px;
}

.gptv-upload-file-preview-card,
.gptv-upload-success-state {
  width: min(90%, 520px);
  padding: 32px;
  border-radius: 24px;
  background: rgba(255,255,255,.05);
  box-shadow: 0 0 0 1px rgba(124,105,255,.10);
  color: #fff;
}

.gptv-upload-file-preview-type {
  color: #8f86ff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.gptv-upload-file-preview-name {
  color: #fff;
  font-size: 18px;
  word-break: break-word;
  margin-bottom: 18px;
}

.gptv-upload-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: #5E56FF;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 34px;
  box-shadow: 0 0 30px rgba(94, 86, 255, .28);
}

.gptv-upload-meta-panel {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: opacity .2s ease, transform .2s ease;
}

.gptv-upload-meta-panel-hidden {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.gptv-upload-meta-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gptv-upload-meta-row label {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.gptv-upload-meta-row textarea {
  width: 100%;
  min-height: 120px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(124,105,255,.18);
  background: #151C28 !important;
  color: #ffffff !important;
  caret-color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  resize: vertical;
  box-sizing: border-box;
  outline: none;
}

.gptv-upload-meta-row textarea::placeholder {
  color: rgba(255,255,255,.55) !important;
}

.gptv-upload-meta-row textarea:focus {
  border-color: #5E56FF;
  box-shadow: 0 0 0 1px rgba(94,86,255,.35);
}

.gptv-upload-inline-field {
  margin-top: 4px;
}

.gptv-upload-switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: #fff;
}

.gptv-upload-switch input {
  display: none;
}

.gptv-upload-switch-ui {
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: #2A3140;
  position: relative;
  transition: background .2s ease;
}

.gptv-upload-switch-ui::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  transition: transform .2s ease;
}

.gptv-upload-switch input:checked + .gptv-upload-switch-ui {
  background: #5E56FF;
}

.gptv-upload-switch input:checked + .gptv-upload-switch-ui::after {
  transform: translateX(22px);
}

.gptv-upload-actions-row {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.gptv-upload-submit {
  min-width: 220px;
}

.gptv-upload-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.gptv-upload-message {
  min-height: 24px;
  text-align: center;
  color: rgba(255,255,255,.82);
  font-size: 14px;
}

.gptv-upload-message.is-error {
  color: #ff9494;
}

.gptv-upload-message.is-success {
  color: #8ce8ac;
}

.gptv-hidden-file-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.gptv-upload-guest {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #0A0E11;
}

#gptv_caption {
  color: #ffffff !important;
  background: #151C28 !important;
  caret-color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

#gptv_caption::placeholder {
  color: rgba(255, 255, 255, 0.55) !important;
}

.gptv-upload-dropzone.has-file {
  border-style: solid;
  padding: 36px 32px;
  box-sizing: border-box;
}

.gptv-upload-dropzone.has-file .gptv-upload-dropzone-inner {
  min-height: 0;
  height: auto;
  display: grid;
  grid-template-columns: minmax(280px, 460px) minmax(320px, 1fr);
  align-items: center;
  justify-content: center;
  gap: 56px;
  padding: 0;
  text-align: left;
}

.gptv-upload-dropzone.has-file .gptv-upload-preview-media,
.gptv-upload-dropzone.has-file .gptv-upload-file-preview-card,
.gptv-upload-dropzone.has-file .gptv-upload-success-state {
  width: 100%;
  max-width: 460px;
  max-height: 78vh;
  margin: 0;
  justify-self: center;
}

.gptv-upload-dropzone.has-file .gptv-upload-file-preview-card,
.gptv-upload-dropzone.has-file .gptv-upload-success-state {
  text-align: center;
}

.gptv-upload-meta-panel {
  width: 100%;
  max-width: 620px;
  margin: 0;
  justify-self: start;
}

.gptv-upload-dropzone.has-file .gptv-upload-meta-panel {
  display: flex;
}

.gptv-upload-dropzone.has-file .gptv-upload-meta-panel-hidden {
  display: flex !important;
  opacity: 1;
  pointer-events: auto;
  height: auto;
  overflow: visible;
}

.gptv-upload-meta-row textarea {
  width: 100%;
  min-height: 150px;
  padding: 16px 18px;
  border-radius: 0;
  border: 1px solid rgba(124,105,255,.28);
  background: #101827 !important;
  color: #ffffff !important;
  caret-color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  resize: vertical;
  box-sizing: border-box;
  outline: none;
}

.gptv-upload-meta-row textarea::placeholder {
  color: rgba(255,255,255,.72) !important;
}

.gptv-upload-meta-row textarea:focus {
  border-color: #5E56FF;
  box-shadow: 0 0 0 1px rgba(94,86,255,.30);
}

.gptv-upload-meta-row label,
.gptv-upload-switch-label {
  color: #fff;
  font-weight: 700;
}

.gptv-upload-actions-row {
  display: flex;
  justify-content: flex-start;
  margin-top: 12px;
}

.gptv-upload-submit {
  width: 100%;
  min-width: 0;
}

@media (max-width: 991px) {
  .gptv-upload-screen {
    padding: 18px;
  }

  .gptv-upload-dropzone,
  .gptv-upload-dropzone-inner {
    min-height: 62vh;
  }

  .gptv-upload-dropzone-title {
    font-size: 32px;
  }

  .gptv-upload-dropzone-subtitle,
  .gptv-upload-dropzone-limit {
    font-size: 18px;
  }

  .gptv-upload-dropzone.has-file .gptv-upload-dropzone-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .gptv-upload-meta-panel {
    max-width: none;
    justify-self: stretch;
  }

  .gptv-upload-actions-row {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .gptv-upload-screen {
    padding: 12px;
  }

  .gptv-upload-dropzone {
    border-width: 3px;
    border-radius: 24px;
  }

  .gptv-upload-dropzone-inner {
    padding: 28px 18px;
  }

  .gptv-upload-dropzone-title {
    font-size: 26px;
  }

  .gptv-upload-dropzone-subtitle {
    font-size: 16px;
  }

  .gptv-upload-dropzone-limit {
    font-size: 16px;
    margin-bottom: 28px;
  }

  .gptv-upload-select-btn {
    min-height: 56px;
    font-size: 16px;
  }

  .gptv-upload-preview-media {
    max-height: 62vh;
  }
}