:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#f5f5f5;background:linear-gradient(135deg,#667eea,#764ba2);min-height:100vh}body{margin:0;min-height:100vh;display:flex;align-items:center;justify-content:center;padding:1rem}.demo{width:min(500px,90vw);background:#fffffff2;border-radius:24px;padding:2.5rem;text-align:center;box-shadow:0 20px 60px #0000004d;color:#1e293b}.demo h1{margin-top:0;margin-bottom:.5rem;font-size:2rem;font-weight:700;background:linear-gradient(135deg,#667eea,#764ba2);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.demo .subtitle{color:#64748b;margin-bottom:2rem;font-size:.95rem}.error-message{background:#fee2e2;color:#991b1b;padding:.75rem 1rem;border-radius:8px;margin-bottom:1.5rem;font-size:.9rem;text-align:left}.format-selector{margin-bottom:2rem;text-align:left}.format-selector label{display:block;font-weight:600;margin-bottom:.75rem;color:#1e293b;font-size:.95rem}.format-buttons{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:.75rem}.format-button{padding:.5rem 1rem;border-radius:8px;border:2px solid #e2e8f0;font-size:.9rem;font-weight:600;cursor:pointer;transition:all .2s ease;background:#fff;color:#1e293b}.format-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #0000001a;border-color:#667eea}.format-button:disabled{cursor:not-allowed;opacity:.6}.format-button.disabled{opacity:.5;cursor:not-allowed}.format-button.active{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-color:transparent;box-shadow:0 4px 12px #667eea4d}.format-info{display:flex;gap:.5rem;align-items:center;font-size:.85rem;color:#64748b}.format-name{font-weight:600;color:#1e293b}.recorder-controls{display:flex;flex-direction:column;align-items:center;gap:1.5rem}.record-button{min-width:220px;padding:1rem 2rem;border-radius:50px;border:none;font-size:1rem;font-weight:600;cursor:pointer;color:#fff;background:linear-gradient(135deg,#667eea,#764ba2);transition:all .3s ease;display:flex;align-items:center;justify-content:center;gap:.5rem;box-shadow:0 4px 15px #667eea66}.record-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px #667eea80}.record-button:active:not(:disabled){transform:translateY(0)}.record-button:disabled{opacity:.7;cursor:not-allowed}.record-button.recording{background:linear-gradient(135deg,#ef4444,#dc2626);box-shadow:0 4px 15px #ef444466;animation:pulse 2s ease-in-out infinite}.record-button.recording:hover:not(:disabled){box-shadow:0 6px 20px #ef444480}@keyframes pulse{0%,to{opacity:1}50%{opacity:.9}}.recording-indicator{width:12px;height:12px;background:#fff;border-radius:50%;animation:blink 1s ease-in-out infinite}@keyframes blink{0%,to{opacity:1}50%{opacity:.3}}.spinner{width:16px;height:16px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.timer{display:flex;align-items:center;gap:.5rem;font-size:1.5rem;font-weight:600;color:#1e293b;font-variant-numeric:tabular-nums}.timer-icon{font-size:1.25rem}.audio-preview{margin-top:2rem;padding-top:2rem;border-top:1px solid #e2e8f0}.audio-preview h3{margin-top:0;margin-bottom:1rem;color:#1e293b;font-size:1.1rem}.audio-preview audio{width:100%;margin-bottom:1rem;border-radius:8px}.audio-actions{display:flex;gap:.75rem;justify-content:center;flex-wrap:wrap}.download-button,.clear-button{padding:.6rem 1.25rem;border-radius:8px;border:none;font-size:.9rem;font-weight:500;cursor:pointer;transition:all .2s ease;text-decoration:none;display:inline-block}.download-button{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.download-button:hover{transform:translateY(-1px);box-shadow:0 4px 12px #667eea66}.clear-button{background:#f1f5f9;color:#475569}.clear-button:hover{background:#e2e8f0}
