Spaces:
Sleeping
Sleeping
| :root { | |
| --bg: #0f1115; | |
| --surface: #181b22; | |
| --surface-2: #1f232c; | |
| --border: #2a2f3a; | |
| --text: #e7e9ee; | |
| --muted: #9aa3b2; | |
| --accent: #f4a23b; | |
| --accent-2: #e8852a; | |
| --danger: #ff6b6b; | |
| --radius: 14px; | |
| --shadow: 0 6px 24px rgba(0, 0, 0, 0.35); | |
| } | |
| * { box-sizing: border-box; } | |
| body { | |
| margin: 0; | |
| font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; | |
| background: radial-gradient(1200px 600px at 80% -10%, #1b2030 0%, var(--bg) 55%); | |
| color: var(--text); | |
| min-height: 100vh; | |
| } | |
| /* Top bar */ | |
| .topbar { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| padding: 18px 28px; | |
| border-bottom: 1px solid var(--border); | |
| } | |
| .brand { display: flex; align-items: center; gap: 14px; } | |
| .logo { font-size: 34px; } | |
| .topbar h1 { margin: 0; font-size: 20px; letter-spacing: 0.2px; } | |
| .tagline { margin: 2px 0 0; font-size: 13px; color: var(--muted); } | |
| .status { | |
| display: flex; align-items: center; gap: 8px; | |
| font-size: 13px; padding: 6px 12px; border-radius: 999px; | |
| background: var(--surface); border: 1px solid var(--border); | |
| } | |
| .status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); } | |
| .status.loading .dot { background: var(--accent); animation: pulse 1.2s infinite; } | |
| .status.ready .dot { background: #46d27e; } | |
| .status.error .dot { background: var(--danger); } | |
| @keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } } | |
| /* Layout */ | |
| .layout { | |
| display: grid; | |
| grid-template-columns: 1fr 320px; | |
| grid-template-areas: "editor settings" "library settings"; | |
| gap: 20px; | |
| max-width: 1100px; | |
| margin: 26px auto; | |
| padding: 0 24px; | |
| } | |
| .editor { grid-area: editor; } | |
| .settings { grid-area: settings; } | |
| .library { grid-area: library; } | |
| .card { | |
| background: var(--surface); | |
| border: 1px solid var(--border); | |
| border-radius: var(--radius); | |
| padding: 20px; | |
| box-shadow: var(--shadow); | |
| } | |
| /* Editor */ | |
| .field-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; } | |
| textarea { | |
| width: 100%; min-height: 180px; resize: vertical; | |
| background: var(--surface-2); color: var(--text); | |
| border: 1px solid var(--border); border-radius: 10px; | |
| padding: 14px; font-size: 16px; line-height: 1.5; | |
| font-family: inherit; | |
| } | |
| textarea:focus { outline: none; border-color: var(--accent); } | |
| .editor-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; } | |
| .btn { | |
| border: none; border-radius: 10px; padding: 11px 20px; | |
| font-size: 14px; font-weight: 600; cursor: pointer; | |
| transition: transform .05s ease, background .15s ease, opacity .15s ease; | |
| } | |
| .btn:active { transform: translateY(1px); } | |
| .btn.primary { background: linear-gradient(180deg, var(--accent), var(--accent-2)); color: #1a1206; } | |
| .btn.primary:disabled { opacity: 0.45; cursor: not-allowed; } | |
| .btn.primary.busy { opacity: 0.8; cursor: progress; } | |
| .btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); padding: 7px 14px; } | |
| .btn.ghost:hover { color: var(--text); } | |
| .error { color: var(--danger); font-size: 13px; margin: 12px 0 0; } | |
| /* Progress bar */ | |
| .progress { margin: 14px 0 0; display: flex; flex-direction: column; gap: 6px; } | |
| .progress-track { | |
| height: 8px; border-radius: 999px; overflow: hidden; | |
| background: var(--surface-2); border: 1px solid var(--border); | |
| } | |
| .progress-fill { | |
| height: 100%; width: 0%; | |
| background: linear-gradient(90deg, var(--accent), var(--accent-2)); | |
| border-radius: 999px; | |
| transition: width 0.3s ease; | |
| } | |
| .progress-label, #progress-label { font-size: 12px; } | |
| /* Settings */ | |
| .settings h2, .library h2 { margin: 0 0 16px; font-size: 15px; } | |
| .setting { margin-bottom: 18px; } | |
| .setting label { display: block; font-size: 13px; margin-bottom: 7px; } | |
| .setting select, .setting input[type=range] { width: 100%; } | |
| select { | |
| background: var(--surface-2); color: var(--text); | |
| border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 14px; | |
| } | |
| select:disabled { opacity: 0.6; } | |
| input[type=range] { accent-color: var(--accent); } | |
| .pill { background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 1px 9px; font-size: 12px; color: var(--accent); } | |
| small.muted { display: block; margin-top: 6px; font-size: 11.5px; } | |
| .muted { color: var(--muted); } | |
| .advanced summary { cursor: pointer; font-size: 13px; color: var(--muted); margin-bottom: 12px; } | |
| .advanced[open] summary { color: var(--text); } | |
| /* Library */ | |
| .library-head { display: flex; align-items: center; justify-content: space-between; } | |
| .empty { padding: 10px 0; } | |
| .clips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; } | |
| .clip { | |
| background: var(--surface-2); border: 1px solid var(--border); | |
| border-radius: 10px; padding: 14px; | |
| animation: rise .25s ease; | |
| } | |
| @keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } } | |
| .clip-text { font-size: 14px; margin: 0 0 10px; line-height: 1.4; } | |
| .clip audio { width: 100%; margin-bottom: 10px; } | |
| .clip-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; } | |
| .clip-meta .stats { font-size: 11.5px; color: var(--muted); } | |
| .dl { color: var(--accent); text-decoration: none; font-size: 13px; font-weight: 600; } | |
| .dl:hover { text-decoration: underline; } | |
| .foot { text-align: center; font-size: 12px; padding: 18px; border-top: 1px solid var(--border); margin-top: 10px; } | |
| .foot code { background: var(--surface); padding: 2px 6px; border-radius: 5px; } | |
| @media (max-width: 820px) { | |
| .layout { grid-template-columns: 1fr; grid-template-areas: "editor" "settings" "library"; } | |
| } | |