.translator-body {
  padding: 20px 24px max(22px, env(safe-area-inset-bottom));
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.translator-shell,
.translator-body .top-bar {
  width: 100%;
  max-width: min(1240px, 94vw);
}

.translator-shell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  gap: 16px;
}

.main-card {
  border-radius: 24px;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
  gap: 28px;
  min-height: clamp(460px, 68vh, 680px);
}

.translator-controls-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  min-width: 0;
}

/* Drag & Drop Zone */
.drop-zone {
  border: 2.5px dashed var(--accent-pink);
  border-radius: var(--radius-lg);
  padding: 36px 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 360px;
  height: 100%;
  transition: all 0.2s ease;
  cursor: pointer;
  outline: none;
}

.drop-zone:hover,
.drop-zone:focus-visible,
.drop-zone.drag-over {
  background: #fff2f8;
  border-color: var(--accent-hover);
  transform: scale(1.005);
  box-shadow: 0 0 0 4px rgba(255, 92, 147, 0.12);
}

.drop-zone.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.drop-icon {
  font-size: 46px;
  line-height: 1;
}

.drop-heading {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
}

.drop-subtext {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 420px;
  line-height: 1.45;
}

.or-divider {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.drop-cta {
  pointer-events: none;
}

/* Loaded File Pill */
.loaded-file-pill {
  display: none;
  width: 100%;
  max-width: 460px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  text-align: left;
  cursor: default;
}

.loaded-file-pill.visible {
  display: flex;
}

.loaded-file-details {
  min-width: 0;
  flex: 1 1 180px;
}

.loaded-file-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.loaded-file-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Destination Language Row */
.lang-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 50;
}

.lang-label {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.lang-row .custom-dropdown {
  flex: 1;
  max-width: 300px;
  min-width: 140px;
}

/* Progress Section */
.progress-section {
  display: none;
  flex-direction: column;
  gap: 8px;
}

.progress-section.visible {
  display: flex;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
}

.progress-section .progress-track {
  height: 14px;
}

/* Success Box */
.success-box {
  display: none;
  background: var(--success-bg);
  border: 1.5px solid var(--success-border);
  border-radius: var(--radius-md);
  padding: 13px 15px;
  color: var(--success-text);
  flex-direction: column;
  gap: 8px;
}

.success-box.visible {
  display: flex;
}

.success-title {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
}

.success-tip {
  font-size: 12.5px;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  padding: 9px 12px;
  border: 1px dashed var(--success-border);
}

.download-filename-hint {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: -6px;
  word-break: break-word;
}

/* Tablet & Compact Screens: Top half selection, bottom half controls */
@media (max-width: 899px) {
  .translator-shell,
  .translator-body .top-bar {
    max-width: 760px;
  }

  .main-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px;
    min-height: clamp(460px, 72vh, 720px);
  }

  .drop-zone {
    min-height: 240px;
    height: auto;
  }

  .lang-row .custom-dropdown {
    max-width: 340px;
  }
}

/* Mobile Phones */
@media (max-width: 600px) {
  .translator-body {
    padding: 12px;
    gap: 12px;
  }

  .main-card {
    padding: 16px;
    border-radius: var(--radius-lg);
    gap: 14px;
    min-height: 0;
  }

  .translator-controls-col {
    gap: 12px;
  }

  .drop-zone {
    min-height: 190px;
    padding: 22px 14px;
  }

  .drop-icon {
    font-size: 38px;
  }

  .drop-heading {
    font-size: 16px;
  }

  .lang-row {
    flex-direction: column;
    align-items: stretch;
  }

  .lang-row .custom-dropdown,
  .loaded-file-pill .btn {
    max-width: 100%;
    width: 100%;
  }
}
