/* ═══════════════════════════════════════════════════════════════
   VoiceTranslate — Premium Dark Glassmorphism UI
   ═══════════════════════════════════════════════════════════════ */

/* ── Design Tokens ────────────────────────────────────────────── */
:root {
  color-scheme: dark;
  --bg-deep:       #080a12;
  --bg-surface:    #0d1020;
  --glass-bg:      rgba(255, 255, 255, 0.04);
  --glass-border:  rgba(255, 255, 255, 0.08);
  --glass-hover:   rgba(255, 255, 255, 0.07);

  --accent-primary:  #6c63ff;
  --accent-glow:     rgba(108, 99, 255, 0.35);
  --accent-secondary: #00d4aa;
  --accent-red:      #ff4757;
  --accent-amber:    #ffa502;

  --text-primary:   #f0f2ff;
  --text-secondary: #8892b0;
  --text-muted:     #4a5580;

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans JP', system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ── Background Orbs ──────────────────────────────────────────── */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 12s ease-in-out infinite;
}

.bg-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(108,99,255,0.12) 0%, transparent 70%);
  top: -200px; left: -200px;
  animation-delay: 0s;
}
.bg-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,212,170,0.08) 0%, transparent 70%);
  bottom: -100px; right: -100px;
  animation-delay: -4s;
}
.bg-orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,71,87,0.06) 0%, transparent 70%);
  top: 50%; left: 60%;
  animation-delay: -8s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -40px) scale(1.05); }
  66%       { transform: translate(-20px, 20px) scale(0.97); }
}

/* ── Glassmorphism Card ───────────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
}

/* ── App Container ────────────────────────────────────────────── */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Header ───────────────────────────────────────────────────── */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  padding: 7px;
}

.logo-icon svg { width: 100%; height: 100%; }

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Status Badge */
.status-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: var(--transition);
}

.status-badge.status-ready    .status-dot { background: var(--accent-secondary); box-shadow: 0 0 8px var(--accent-secondary); }
.status-badge.status-listening .status-dot { background: var(--accent-primary); box-shadow: 0 0 8px var(--accent-primary); animation: pulse 1s ease-in-out infinite; }
.status-badge.status-translating .status-dot { background: var(--accent-amber); box-shadow: 0 0 8px var(--accent-amber); animation: pulse 0.7s ease-in-out infinite; }
.status-badge.status-speaking  .status-dot { background: var(--accent-secondary); box-shadow: 0 0 8px var(--accent-secondary); animation: pulse 0.5s ease-in-out infinite; }
.status-badge.status-error     .status-dot { background: var(--accent-red); box-shadow: 0 0 8px var(--accent-red); }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* ── Language Selector ────────────────────────────────────────── */
.lang-section {
  padding: 22px 24px;
}

.section-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.lang-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  color: var(--text-secondary);
  position: relative;
  overflow: hidden;
}

.lang-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  opacity: 0;
  transition: var(--transition);
}

.lang-card:hover {
  border-color: rgba(108, 99, 255, 0.4);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.lang-card:hover::before { opacity: 0.06; }

.lang-card.active {
  border-color: var(--accent-primary);
  background: rgba(108, 99, 255, 0.08);
  color: var(--text-primary);
}

.lang-card.active::before { opacity: 0.1; }

.lang-card-flags {
  font-size: 1.6rem;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
  line-height: 1;
}

.lang-card-arrow {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.lang-card-labels {
  font-size: 0.78rem;
  font-weight: 500;
  position: relative;
  z-index: 1;
  line-height: 1.4;
}

.lang-card.active .lang-card-labels {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Controls Section ─────────────────────────────────────────── */
.controls-section {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

/* Waveform */
.waveform-container {
  flex: 1;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 140px;
}

.waveform-label, .waveform-output-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  min-height: 18px;
}

.waveform-output-label {
  color: var(--accent-secondary);
}

.waveform {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.waveform-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 56px;
}

.wave-bar {
  width: 4px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
  transition: height 0.08s ease-out;
  opacity: 0.3;
  height: 6px;
}

.wave-bar.active {
  opacity: 1;
  animation: none;
}

/* Idle state animation */
.wave-bar.idle {
  animation: idleWave 2.5s ease-in-out infinite;
}

@keyframes idleWave {
  0%, 100% { height: 6px; opacity: 0.15; }
  50%       { height: 18px; opacity: 0.25; }
}

/* Mic Button */
.mic-control {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  justify-content: center;
  padding: 20px;
}

.mic-btn {
  position: relative;
  width: 90px; height: 90px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent-primary), #8b84ff);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: var(--transition);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.mic-btn:disabled {
  background: rgba(255,255,255,0.06);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.5;
}

.mic-btn:not(:disabled):hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px var(--accent-glow);
}

.mic-btn:not(:disabled):active,
.mic-btn.recording {
  transform: scale(0.96);
  background: linear-gradient(135deg, var(--accent-red), #ff6b7a);
  box-shadow: 0 8px 32px rgba(255, 71, 87, 0.4);
}

.mic-btn-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
  opacity: 0;
  transition: var(--transition);
}

.mic-btn.recording .mic-btn-ring {
  opacity: 1;
  animation: ringPulse 1.2s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%       { transform: scale(1.15); opacity: 0; }
}

.mic-icon { width: 28px; height: 28px; }
.mic-icon svg { width: 100%; height: 100%; }

.mic-btn-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Mode Toggle */
.mode-toggle {
  display: flex;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.mode-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.mode-btn svg { width: 13px; height: 13px; }

.mode-btn.active {
  background: rgba(108, 99, 255, 0.2);
  color: var(--accent-primary);
}

.mode-btn:hover:not(.active) {
  background: var(--glass-hover);
  color: var(--text-secondary);
}

/* ── Transcript Section ───────────────────────────────────────── */
.transcript-section {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: start;
}

.transcript-panel {
  display: flex;
  flex-direction: column;
  min-height: 180px;
  overflow: hidden;
}

.transcript-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--glass-border);
}

.transcript-lang-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(108, 99, 255, 0.15);
  color: var(--accent-primary);
  text-transform: uppercase;
}

.transcript-title {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  flex: 1;
}

.copy-btn {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  padding: 5px;
}

.copy-btn:not(:disabled):hover {
  background: var(--glass-hover);
  color: var(--text-secondary);
}

.copy-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.copy-btn svg { width: 100%; height: 100%; }

.transcript-body {
  flex: 1;
  padding: 16px 18px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-primary);
  overflow-y: auto;
  max-height: 240px;
}

.transcript-body::-webkit-scrollbar { width: 4px; }
.transcript-body::-webkit-scrollbar-track { background: transparent; }
.transcript-body::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 4px; }

.placeholder-text {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.85rem;
}

.transcript-entry {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  animation: fadeInUp 0.25s ease-out;
}

.transcript-entry:last-child { border-bottom: none; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Divider Arrow */
.transcript-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
}

.divider-arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  padding: 9px;
}

.divider-arrow svg { width: 100%; height: 100%; }

/* ── Footer ───────────────────────────────────────────────────── */
.app-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-top: 8px;
}

.footer-dot { opacity: 0.4; }

.latency-display {
  color: var(--accent-secondary);
  font-weight: 500;
}

/* ── Dropdown Selectors & Directional Mic Controls ────────────── */
.lang-section {
  position: relative;
  z-index: 10;
}

.dropdown-selector-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  width: 100%;
}

.lang-selector-group {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  transition: var(--transition);
}

.lang-selector-group:focus-within {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px rgba(108, 99, 255, 0.15);
}

.select-wrapper {
  flex: 1;
  position: relative;
}

.custom-select-container {
  position: relative;
  width: 100%;
  user-select: none;
}

.custom-select-trigger {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.custom-select-trigger:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background-color: var(--glass-hover);
}

.custom-select-arrow {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-secondary);
  border-bottom: 2px solid var(--text-secondary);
  transform: rotate(45deg);
  margin-top: -3px;
  margin-right: 4px;
  transition: var(--transition);
}

.custom-select-container.open .custom-select-arrow {
  transform: rotate(-135deg);
  margin-top: 3px;
}

.custom-select-options {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  max-height: 320px;
  overflow-y: auto;
  background: #0d1020;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: selectFadeIn 0.12s ease-out;
}

/* Scrollbar for language dropdown */
.custom-select-options::-webkit-scrollbar { width: 4px; }
.custom-select-options::-webkit-scrollbar-track { background: transparent; }
.custom-select-options::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 4px; }

@keyframes selectFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.custom-select-container.open .custom-select-options {
  display: block;
}

.custom-select-option {
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.custom-select-option:hover {
  background: var(--accent-primary);
  color: #ffffff;
}

.custom-select-option.selected {
  background: rgba(108, 99, 255, 0.15);
  color: var(--text-primary);
  font-weight: 600;
}

.directional-mic-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(108, 99, 255, 0.3);
}

.directional-mic-btn .mic-btn-label {
  display: none;
}

.directional-mic-btn .mic-svg-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.directional-mic-btn .mic-svg-icon svg {
  width: 100%;
  height: 100%;
}

.directional-mic-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(108, 99, 255, 0.45);
}

.directional-mic-btn:active {
  transform: translateY(1px);
}

.directional-mic-btn.recording {
  background: var(--accent-red) !important;
  box-shadow: 0 0 16px var(--accent-red) !important;
  animation: pulseRecording 1.5s infinite;
}

@keyframes pulseRecording {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.6); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 71, 87, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}

.directional-mic-ring {
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
  opacity: 0;
  transition: var(--transition);
}

.directional-mic-btn.recording .directional-mic-ring {
  border-color: var(--accent-red);
  opacity: 1;
  transform: scale(1.15);
}

.swap-icon-container {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.swap-icon-container:hover {
  background: var(--glass-hover);
  color: var(--accent-secondary);
  border-color: var(--accent-secondary);
  transform: rotate(180deg);
}

.swap-icon-container svg {
  width: 18px;
  height: 18px;
}

/* Controls row and alignment */
.controls-row {
  display: none;
  justify-content: center;
  margin-top: 12px;
}

/* ── Header Actions and Replay Button ──────────────────────────── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.replay-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--accent-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  transition: var(--transition);
}

.replay-btn:hover:not(:disabled) {
  background: var(--glass-hover);
  transform: scale(1.1);
  color: #fff;
  border-color: var(--accent-secondary);
}

.replay-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.replay-btn svg {
  width: 100%;
  height: 100%;
}

/* ── Translation History Section ──────────────────────────────── */
.history-section {
  display: flex;
  flex-direction: column;
  padding: 20px;
  margin-top: 10px;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 8px;
}

.history-header .section-title {
  margin-bottom: 0;
}

.clear-history-btn {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.clear-history-btn:hover {
  background: rgba(255, 71, 87, 0.1);
  color: var(--accent-red);
  border-color: var(--accent-red);
}

.clear-history-btn svg {
  width: 14px;
  height: 14px;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 6px;
}

.history-list::-webkit-scrollbar { width: 4px; }
.history-list::-webkit-scrollbar-track { background: transparent; }
.history-list::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 4px; }

.history-item {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  gap: 8px;
  animation: fadeInUp 0.3s ease-out;
  position: relative;
  transition: var(--transition);
}

.history-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
}

.history-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-item-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: rgba(108, 99, 255, 0.1);
  padding: 2px 8px;
  border-radius: 20px;
}

.history-item-time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.history-item-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.history-text-source {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.history-text-target {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.history-item-replay-btn {
  background: transparent;
  border: none;
  color: var(--accent-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: var(--transition);
  padding: 4px;
}

.history-item-replay-btn:hover {
  background: rgba(0, 212, 170, 0.1);
  transform: scale(1.1);
}

.history-item-replay-btn svg {
  width: 100%;
  height: 100%;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 700px) {
  .controls-section {
    flex-direction: column-reverse;
  }

  .transcript-section {
    grid-template-columns: 1fr;
  }

  .transcript-divider {
    padding-top: 0;
    transform: rotate(90deg);
  }

  .app-container { padding: 16px 14px 32px; }

  .dropdown-selector-container {
    flex-direction: column;
    gap: 12px;
  }
  
  .lang-selector-group {
    width: 100%;
  }
  
  .swap-icon-container {
    transform: rotate(90deg);
  }
  .swap-icon-container:hover {
    transform: rotate(270deg);
  }
}

/* ── Utility ──────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
}

/* ── Twemoji emoji-as-image alignment ─────────────────────────── */
img.emoji {
  height: 1.15em;
  width: 1.15em;
  vertical-align: -0.2em;
  display: inline-block;
  margin-right: 2px;
}
