| :root { |
| --bg: #0f1216; |
| --panel: #171c23; |
| --panel-2: #1d242d; |
| --line: #2a323d; |
| --text: #e7ecf2; |
| --muted: #9aa6b2; |
| --accent: #6aa9ff; |
| --accent-2: #2f6fd6; |
| --hi: #ffd479; |
| --good: #58d39a; |
| --radius: 12px; |
| --devanagari: "Noto Sans Devanagari", "Nirmala UI", "Mangal", sans-serif; |
| } |
|
|
| * { box-sizing: border-box; } |
| html, body { margin: 0; padding: 0; } |
| body { |
| background: var(--bg); |
| color: var(--text); |
| font: 15px/1.5 system-ui, "Segoe UI", Roboto, Arial, sans-serif; |
| padding-bottom: 110px; |
| } |
|
|
| .topbar { |
| display: flex; align-items: center; justify-content: space-between; |
| gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--line); |
| background: linear-gradient(180deg, #131820, #0f1216); |
| position: sticky; top: 0; z-index: 5; |
| } |
| .brand { display: flex; align-items: center; gap: 14px; } |
| .logo { font-size: 30px; } |
| .topbar h1 { margin: 0; font-size: 20px; letter-spacing: .3px; } |
| .tagline { margin: 2px 0 0; color: var(--muted); font-size: 13px; } |
| .stats { color: var(--muted); font-size: 12.5px; text-align: right; } |
| .stats b { color: var(--text); } |
|
|
| main { max-width: 920px; margin: 0 auto; padding: 26px 20px 60px; } |
|
|
| .searchbar { display: flex; gap: 10px; flex-wrap: wrap; } |
| #q { |
| flex: 1 1 420px; min-width: 260px; |
| background: var(--panel); border: 1px solid var(--line); color: var(--text); |
| padding: 14px 16px; border-radius: var(--radius); font-size: 15px; outline: none; |
| } |
| #q::placeholder { color: #74808d; } |
| #q:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(47,111,214,.25); } |
|
|
| button, .ghost { |
| cursor: pointer; border-radius: var(--radius); border: 1px solid var(--line); |
| background: var(--panel-2); color: var(--text); padding: 0 16px; height: 48px; |
| font-size: 15px; display: inline-flex; align-items: center; gap: 8px; |
| } |
| button.primary { background: var(--accent-2); border-color: var(--accent-2); font-weight: 600; } |
| button.primary:hover { background: #3a7ee6; } |
| button:hover, .ghost:hover { border-color: #3a4655; } |
| #micBtn.recording { background: #c0392b; border-color: #c0392b; animation: pulse 1.1s infinite; } |
| @keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } } |
|
|
| .hidden { display: none !important; } |
|
|
| .scopebar { display: flex; gap: 10px; margin-top: 10px; align-items: center; } |
| #scope { |
| flex: 0 1 380px; min-width: 220px; |
| background: var(--panel); border: 1px solid var(--line); color: var(--text); |
| padding: 9px 14px; border-radius: var(--radius); font-size: 13.5px; outline: none; |
| } |
| #scope::placeholder { color: #74808d; } |
| #scope:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(47,111,214,.25); } |
| #clearScope { height: 38px; padding: 0 12px; font-size: 13px; } |
|
|
| .status { color: var(--muted); min-height: 20px; margin: 16px 2px; } |
| .status .recog { color: var(--hi); font-family: var(--devanagari); } |
|
|
| .results { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; } |
|
|
| .card { |
| background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); |
| padding: 14px 16px; transition: border-color .15s, transform .05s; |
| } |
| .card:hover { border-color: #38465a; } |
| .card .row1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } |
| .jump { |
| background: var(--accent-2); color: #fff; border: none; height: 30px; padding: 0 12px; |
| border-radius: 8px; font-weight: 600; font-variant-numeric: tabular-nums; |
| } |
| .jump:hover { background: #3a7ee6; } |
| .file { color: var(--muted); font-size: 13px; word-break: break-all; cursor: pointer; } |
| .file:hover { color: var(--accent); text-decoration: underline; } |
| .scorepill { |
| margin-left: auto; font-size: 12px; color: #0f1216; background: var(--good); |
| padding: 2px 9px; border-radius: 999px; font-weight: 700; |
| } |
| .hi-text { font-family: var(--devanagari); font-size: 17px; margin: 10px 0 4px; line-height: 1.7; } |
| .en-gloss { color: var(--muted); font-size: 14px; font-style: italic; } |
|
|
| .empty { color: var(--muted); text-align: center; padding: 40px 0; } |
|
|
| .playerbar { |
| position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; |
| background: var(--panel-2); border-top: 1px solid var(--line); |
| padding: 10px 18px; display: flex; align-items: center; gap: 18px; |
| } |
| .playerbar.hidden { display: none; } |
| .np { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 38%; } |
| .np span { color: var(--text); } |
| #player { flex: 1; height: 40px; } |
|
|
| .spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid #4a5666; |
| border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; } |
| @keyframes spin { to { transform: rotate(360deg); } } |
|
|