:root { --bg-color: #0f172a; --fg-color: #6366f1; --surface: rgba(30, 41, 59, 1); --text: #f8fafc; --text-light: #cbd5e1; --border: rgba(148, 163, 184, 0.2); --error: #ef4444; --success: #22c55e; --font-family: 'Inter', system-ui, sans-serif; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: var(--font-family); line-height: 1.6; color: var(--text); background: radial-gradient(circle at top right, var(--fg-color) 0%, var(--bg-color) 100%); min-height: 100vh; position: relative; } .overlay { position: fixed; inset: 0; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 20px), repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 20px); pointer-events: none; } .sun { position: fixed; top: 20px; right: 20px; width: 100px; height: 100px; border-radius: 50%; background: radial-gradient(circle at center, rgba(99, 102, 241, 0.2) 0%, transparent 70%); pointer-events: none; z-index: 0; } .scanline { position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: rgba(99, 102, 241, 0.1); animation: scan 4s linear infinite; } @keyframes scan { 0% { transform: translateY(0); } 100% { transform: translateY(100px); } } .container { max-width: 1200px; margin: 0 auto; padding: 4rem 1.5rem; position: relative; z-index: 1; } header { margin-bottom: 3rem; text-align: center; } .logo-container { display: flex; align-items: center; justify-content: center; gap: 20px; } h1 { font-size: 5rem; font-weight: 700; margin: 0; background: linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px); background-size: 10px 10px; -webkit-background-clip: text; background-clip: text; color: var(--text); text-shadow: -2px -2px 0 rgba(0,0,0,0.5), 2px -2px 0 rgba(0,0,0,0.5), -2px 2px 0 rgba(0,0,0,0.5), 2px 2px 0 rgba(0,0,0,0.5), 3px 3px var(--fg-color); } .subtitle { color: var(--text-light); font-size: 1.5rem; opacity: 0.9; margin-top: 0.5rem; } .cup { width: 40px; height: 50px; border: 3px solid var(--text); border-radius: 0 0 20px 20px; position: relative; animation: float 3s ease-in-out 2; animation-fill-mode: forwards; } .handle { width: 15px; height: 25px; border: 3px solid var(--text); border-radius: 0 10px 10px 0; position: absolute; right: -15px; top: 10px; } .steam { position: absolute; top: -15px; left: 5px; right: 5px; height: 15px; display: flex; justify-content: space-between; } .steam::before, .steam::after { content: ""; width: 10px; height: 100%; background: rgba(255,255,255,0.7); border-radius: 10px; animation: steam 2s 2; animation-fill-mode: forwards; } @keyframes steam { to { transform: translateY(-10px) scale(1.5); opacity: 0; } } @keyframes float { 50% { transform: translateY(-5px); } } main { display: flex; flex-direction: column; gap: 2rem; min-height: 600px; } @media (min-width: 1024px) { main { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: stretch; } .input-section, .player-section { height: 100%; display: flex; flex-direction: column; } .input-section textarea { flex: 1; min-height: 200px; } .player-section { display: flex; flex-direction: column; } .audio-controls { flex: 1; display: flex; flex-direction: column; } .wave-container { flex: 1; min-height: 200px; } } .input-section, .player-section { background: var(--surface); padding: 2rem; border-radius: 1rem; border: 1px solid var(--border); backdrop-filter: blur(12px); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); } textarea { width: 100%; min-height: 120px; padding: 1rem; border: 1px solid var(--border); border-radius: 0.5rem; background: rgba(15, 23, 42, 0.3); color: var(--text); font-size: 1rem; transition: border-color 0.2s ease; font-family: var(--font-family); resize: vertical; } textarea:focus { outline: none; border-color: var(--fg-color); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2); } textarea::placeholder { color: var(--text-light); } .controls { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; } .voice-select-container { position: relative; display: flex; flex-direction: column; gap: 1rem; } .voice-search { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: 0.5rem; background: rgba(15, 23, 42, 0.3); color: var(--text); font-size: 1rem; transition: all 0.2s ease; } .voice-search:focus { outline: none; border-color: var(--fg-color); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2); } .voice-search::placeholder { color: var(--text-light); } .voice-dropdown { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 0.5rem; margin-top: 0.5rem; max-height: 200px; overflow-y: auto; z-index: 1000; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); } .voice-select-container:focus-within .voice-dropdown, .voice-dropdown:hover { display: block; } .voice-option { display: flex; align-items: center; padding: 0.75rem; cursor: pointer; border-radius: 0.25rem; transition: background-color 0.2s ease; color: var(--text); } .voice-option:hover { background: rgba(99, 102, 241, 0.1); } .selected-voices { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; } .selected-voice-tag { background: rgba(99, 102, 241, 0.2); padding: 0.25rem 0.75rem; border-radius: 1rem; font-size: 0.875rem; display: flex; align-items: center; gap: 0.5rem; border: 1px solid rgba(99, 102, 241, 0.3); } .remove-voice { cursor: pointer; opacity: 0.7; transition: opacity 0.2s ease; } .remove-voice:hover { opacity: 1; } .options { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; } .options label { display: flex; align-items: center; gap: 0.5rem; color: var(--text-light); cursor: pointer; } .format-select { background: rgba(15, 23, 42, 0.3); color: var(--text); border: 1px solid var(--border); border-radius: 0.5rem; padding: 0.5rem 1rem; font-family: var(--font-family); font-size: 0.875rem; cursor: pointer; transition: all 0.2s ease; min-width: 100px; } .format-select:hover { border-color: var(--fg-color); } .format-select:focus { outline: none; border-color: var(--fg-color); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2); } .format-select option { background: var(--surface); color: var(--text); } .button-group { display: flex; gap: 1rem; } button { background: var(--fg-color); color: var(--text); padding: 1rem; border-radius: 0.5rem; border: none; font-weight: 500; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; display: flex; align-items: center; justify-content: center; gap: 0.5rem; flex: 1; } button:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2); } button:disabled { opacity: 0.7; cursor: not-allowed; transform: none; box-shadow: none; } .cancel-btn { background: var(--error); } .loader { display: none; width: 16px; height: 16px; border: 2px solid var(--text); border-radius: 50%; border-top-color: transparent; animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } .loading .loader { display: inline-block; } .loading .btn-text { display: none; } .audio-controls { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; } .player-container { display: flex; flex-direction: column; gap: 1rem; background: rgba(15, 23, 42, 0.3); padding: 1rem; border-radius: 0.5rem; border: 1px solid var(--border); } .player-controls { display: flex; align-items: center; gap: 1rem; width: 100%; background: rgba(15, 23, 42, 0.3); padding: 0.5rem; border-radius: 0.5rem; } .seek-slider, .volume-slider { -webkit-appearance: none; height: 4px; border-radius: 2px; background: rgba(99, 102, 241, 0.2); outline: none; cursor: pointer; transition: height 0.2s ease-in-out; } .seek-slider { flex: 1; } .volume-slider { width: 100px; } .seek-slider::-webkit-slider-thumb, .volume-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--fg-color); cursor: pointer; transition: transform 0.2s ease; } .seek-slider::-webkit-slider-thumb:hover, .volume-slider::-webkit-slider-thumb:hover { transform: scale(1.2); } .seek-slider::-moz-range-thumb, .volume-slider::-moz-range-thumb { width: 12px; height: 12px; border: none; border-radius: 50%; background: var(--fg-color); cursor: pointer; transition: transform 0.2s ease; } .seek-slider::-moz-range-thumb:hover, .volume-slider::-moz-range-thumb:hover { transform: scale(1.2); } .volume-control { display: flex; align-items: center; gap: 0.5rem; padding-left: 0.5rem; border-left: 1px solid var(--border); } .volume-icon { color: var(--fg-color); opacity: 0.8; transition: opacity 0.2s ease; } .volume-icon:hover { opacity: 1; } .player-btn { background: var(--fg-color); color: var(--text); padding: 0.5rem 1rem; border-radius: 0.5rem; border: none; font-weight: 500; cursor: pointer; transition: all 0.2s ease; flex: 0 0 auto; min-width: 80px; } .player-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2); } .wave-container { width: 100%; height: 120px; background: rgba(15, 23, 42, 0.3); border-radius: 0.25rem; overflow: hidden; position: relative; margin-top: 0.5rem; } .wave-container canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } .time-display { color: var(--text-light); font-size: 0.875rem; min-width: 100px; text-align: right; font-variant-numeric: tabular-nums; } .download-button { position: relative; width: 40px; height: 40px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.2s ease; align-self: flex-end; } .download-glow { position: absolute; inset: -15%; background: conic-gradient( from 0deg, var(--fg-color), var(--success), var(--fg-color) ); border-radius: 4px; animation: rotate 4s linear infinite; filter: blur(8px); opacity: 0.5; } .download-icon { width: 40px; height: 40px; position: relative; z-index: 2; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: var(--text); transition: transform 0.2s ease, box-shadow 0.2s ease; } .download-button:hover { transform: scale(1.05); } .download-button:hover .download-icon { box-shadow: 0 0 15px rgba(34, 197, 94, 0.3); } @keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } .status { padding: 0.75rem 1rem; border-radius: 0.5rem; margin-bottom: 1rem; transition: all 0.3s ease; opacity: 0; font-weight: 500; text-align: center; } .status.info { background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(99, 102, 241, 0.2); opacity: 1; } .status.error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2); opacity: 1; } .status.success { background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.2); opacity: 1; } @media (max-width: 1023px) { .container { padding: 2rem 1rem; } h1 { font-size: 3rem; } .subtitle { font-size: 1.2rem; } .cup { width: 30px; height: 40px; } .handle { width: 12px; height: 20px; right: -12px; top: 8px; } .steam { top: -12px; } .steam::before, .steam::after { width: 6px; } .input-section, .player-section { padding: 1.5rem; } .voice-select-container { flex-direction: column; align-items: stretch; } .options { flex-direction: column; gap: 1rem; } .sun { width: 80px; height: 80px; top: 10px; right: 10px; } .button-group { flex-direction: column; } .player-container { flex-direction: column; align-items: stretch; gap: 0.75rem; } .player-controls { flex-direction: column; gap: 0.75rem; } .player-btn { width: 100%; } .volume-control { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 0.75rem; width: 100%; } .volume-slider { flex: 1; width: auto; } .wave-container { height: 80px; } .time-display { text-align: center; } }