@font-face { font-family: 'M PLUS 1'; src: url('./fonts/MPLUS1[wght].ttf') format('truetype'); font-weight: 100 900; font-display: swap; } :root { /* Catppuccin Macchiato */ --ctp-mauve: #c6a0f6; --ctp-red: #ed8796; --ctp-peach: #f5a97f; --ctp-yellow: #eed49f; --ctp-green: #a6da95; --ctp-sky: #91d7e3; --ctp-blue: #8aadf4; --ctp-lavender: #b7bdf8; --ctp-text: #cad3f5; --ctp-subtext0: #a5adcb; --ctp-overlay1: #8087a2; --ctp-surface0: #363a4f; --ctp-base: #24273a; --ctp-mantle: #1e2030; --ctp-crust: #181926; --bg: var(--ctp-base); --panel: rgba(36, 39, 58, 0.85); --panel-elevated: rgba(54, 58, 79, 0.55); --line: rgba(110, 115, 141, 0.28); --text: var(--ctp-text); --muted: var(--ctp-subtext0); --faint: var(--ctp-overlay1); --accent: var(--ctp-blue); --accent-strong: var(--ctp-lavender); /* Amber marks the mining action: the thing you highlight to look up. */ --mine: var(--ctp-yellow); --danger: var(--ctp-red); --ok: var(--ctp-green); --shadow: rgba(0, 0, 0, 0.42); --mono: 'SF Mono', 'Cascadia Code', 'JetBrains Mono', 'Fira Code', monospace; } * { box-sizing: border-box; } html, body { height: 100%; margin: 0; overflow: hidden; } body { display: flex; flex-direction: column; background: var(--bg); color: var(--text); font-family: 'M PLUS 1', 'Avenir Next', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif; font-size: 14px; line-height: 1.55; } .hidden { display: none !important; } /* ---------- top bar ---------- */ .topbar { display: flex; align-items: center; gap: 20px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--ctp-mantle), var(--ctp-base)); flex: none; } .brand-title { font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); } .brand-subtitle { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; } .search-form { display: flex; gap: 8px; flex: 1 1 auto; max-width: 560px; } .text-input { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--ctp-crust); color: var(--text); font: inherit; transition: border-color 0.15s ease, box-shadow 0.15s ease; } .text-input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(138, 173, 244, 0.22); } .primary-button, .ghost-button { padding: 9px 16px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease; } .primary-button { background: var(--accent); color: var(--ctp-crust); } .primary-button:hover:not(:disabled) { background: var(--accent-strong); } .ghost-button { background: transparent; border-color: var(--line); color: var(--muted); } .ghost-button:hover:not(:disabled) { color: var(--text); border-color: var(--faint); } .primary-button:disabled, .ghost-button:disabled { opacity: 0.5; cursor: default; } .primary-button:active:not(:disabled) { transform: translateY(1px); } :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } .tabs { display: flex; gap: 4px; flex: none; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--ctp-crust); } .tab { padding: 8px 14px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background 0.15s ease, color 0.15s ease; } .tab:hover[aria-selected='false'] { color: var(--text); } .tab[aria-selected='true'] { background: var(--panel-elevated); border-color: var(--line); color: var(--text); } .source-picker { display: flex; flex-direction: column; gap: 3px; flex: none; min-width: 190px; } .source-label { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); } /* ---------- bridge banner ---------- */ .bridge-banner { display: flex; align-items: center; gap: 10px; padding: 9px 20px; border-bottom: 1px solid var(--line); background: var(--panel-elevated); font-size: 13px; color: var(--muted); flex: none; } .bridge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; } .bridge-banner[data-stage='ready'] .bridge-dot { background: var(--ok); } .bridge-banner[data-stage='failed'] .bridge-dot { background: var(--danger); } .bridge-banner[data-busy='true'] .bridge-dot { background: var(--accent); animation: pulse 1.1s ease-in-out infinite; } @keyframes pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } } .bridge-meter { width: 160px; height: 4px; border-radius: 2px; background: var(--ctp-crust); overflow: hidden; } .bridge-meter i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.2s ease; } /* ---------- layout ---------- */ .layout { display: flex; flex: 1 1 0; min-height: 0; } .results { flex: 1 1 auto; min-width: 0; overflow-y: auto; padding: 20px; } .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 18px; } .empty { margin: 48px auto; max-width: 44ch; text-align: center; color: var(--muted); } /* ---------- cover cards ---------- */ .card { display: flex; flex-direction: column; gap: 8px; padding: 0; border: none; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; animation: card-in 0.32s ease both; } @keyframes card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } } .card-art { position: relative; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: var(--ctp-crust); border: 1px solid var(--line); box-shadow: 0 10px 28px -18px var(--shadow); transition: border-color 0.18s ease, transform 0.18s ease; } .card:hover .card-art, .card:focus-visible .card-art { border-color: var(--accent); transform: translateY(-3px); } .card-art img { width: 100%; height: 100%; object-fit: cover; display: block; } .card-art.is-empty::after { content: attr(data-initial); position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; font-weight: 600; color: var(--faint); } /* Which source a cover came from, shown only in an all-sources result. */ .card-source { position: absolute; left: 6px; bottom: 6px; right: 6px; padding: 3px 7px; border-radius: 7px; background: rgba(24, 25, 38, 0.82); backdrop-filter: blur(6px); color: var(--muted); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .card-title { font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } /* ---------- detail page ---------- */ /* * The detail view is a page, not a sidebar: it takes over the whole content * region while the results grid waits, hidden, behind the Back button. */ .detail { flex: 1 1 auto; min-width: 0; background: var(--panel); overflow-y: auto; padding: 20px clamp(20px, 5vw, 56px) 32px; animation: detail-in 0.28s ease both; } @keyframes detail-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .detail-body { max-width: 1040px; margin: 0 auto; } .detail-back { padding: 6px 14px; font-size: 12px; margin-bottom: 20px; } .detail-head { display: flex; gap: clamp(18px, 3vw, 36px); margin-bottom: 28px; } .detail-cover { flex: none; width: clamp(140px, 18vw, 232px); aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: var(--ctp-crust); box-shadow: 0 18px 40px -24px var(--shadow); } .detail-title { margin: 0 0 10px; font-size: clamp(19px, 2.4vw, 27px); font-weight: 600; line-height: 1.25; } .detail-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; } .chip { padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); font-size: 11px; color: var(--muted); } .chip.status { border-color: rgba(166, 218, 149, 0.4); color: var(--ok); } /* Which extension answered — the one chip that is always present. */ .chip.source { border-color: color-mix(in srgb, var(--accent) 40%, transparent); color: var(--accent); } .detail-description { margin: 0; font-size: 13px; max-width: 72ch; color: var(--muted); white-space: pre-wrap; } .episodes-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); } .episodes-title { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); } .episodes-count { font-family: var(--mono); font-size: 11px; color: var(--faint); } /* * The cue rail: episodes read as subtitle cues on a timeline, because that is * what they are about to become. The rail is the spine, the index is the cue * number, and the title is the cue text. */ .cue-rail { list-style: none; margin: 0; padding: 0 0 0 2px; position: relative; } .cue-rail::before { content: ''; position: absolute; left: 41px; top: 6px; bottom: 6px; width: 1px; background: var(--line); } .cue { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: baseline; width: 100%; padding: 9px 10px 9px 0; border: none; border-radius: 8px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background 0.14s ease; } .cue::after { content: ''; position: absolute; left: 37px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--ctp-surface0); border: 1px solid var(--line); transition: background 0.14s ease, border-color 0.14s ease; } .cue:hover, .cue:focus-visible { background: var(--panel-elevated); } .cue:hover::after, .cue:focus-visible::after { background: var(--mine); border-color: var(--mine); } .cue-index { font-family: var(--mono); font-size: 12px; color: var(--faint); text-align: right; font-variant-numeric: tabular-nums; } .cue-name { font-size: 13px; line-height: 1.4; } .cue-sub { display: block; font-family: var(--mono); font-size: 11px; color: var(--faint); margin-top: 2px; } .cue[data-state='loading'] { background: var(--panel-elevated); } .cue[data-state='loading']::after { background: var(--accent); border-color: var(--accent); animation: pulse 1.1s ease-in-out infinite; } .cue[data-state='playing']::after { background: var(--mine); border-color: var(--mine); } /* ---------- status bar ---------- */ .statusbar { flex: none; padding: 7px 20px; border-top: 1px solid var(--line); background: var(--ctp-mantle); font-size: 12px; color: var(--faint); min-height: 30px; } .statusbar[data-tone='error'] { color: var(--danger); } .statusbar[data-tone='ok'] { color: var(--ok); } /* ---------- scrollbars ---------- */ ::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--ctp-surface0); border-radius: 6px; border: 2px solid var(--bg); } ::-webkit-scrollbar-thumb:hover { background: var(--faint); } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } } /* ---------- source settings ---------- */ .settings { /* A tab panel owns the whole content region; only one is ever visible. */ flex: 1 1 0; min-height: 0; overflow-y: auto; padding: 16px 20px 18px; background: var(--panel-elevated); } .settings-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; } .settings-title { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); } .settings-note { font-size: 12px; color: var(--faint); } .settings-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px 20px; } .field { display: flex; flex-direction: column; gap: 5px; min-width: 0; } .field-label { font-size: 12px; font-weight: 600; } .field-summary { font-size: 11px; color: var(--faint); line-height: 1.4; } .field-row { display: flex; align-items: center; gap: 8px; } .field-row .text-input { flex: 1 1 auto; min-width: 0; } .field-multi { display: flex; flex-wrap: wrap; gap: 6px; } .field-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); cursor: pointer; } .field-state { font-size: 11px; color: var(--faint); min-height: 14px; } .field-state[data-tone='ok'] { color: var(--ok); } .field-state[data-tone='error'] { color: var(--danger); } /* ---------- extensions panel ---------- */ .repo-add { display: flex; gap: 8px; margin-bottom: 8px; } .repo-add .text-input { flex: 1 1 auto; } .repo-hint { margin: 0 0 14px; font-size: 12px; color: var(--faint); max-width: 78ch; } .repo-hint code { font-family: var(--mono); font-size: 11px; } .ext-group-title { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); } /* A rule between the groups, but not above the first one. */ .ext-list + .ext-group-title { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); } .ext-group-count { font-size: 11px; letter-spacing: 0.06em; color: var(--muted); } .ext-group-count:empty { display: none; } .ext-list { display: flex; flex-direction: column; gap: 6px; } .ext-list:not(:empty) { margin-bottom: 14px; } .ext-row { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--ctp-crust); } .ext-row.is-error { border-color: rgba(237, 135, 150, 0.45); } .ext-main { flex: 1 1 auto; min-width: 0; } .ext-name { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ext-sub { font-family: var(--mono); font-size: 11px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ext-row.is-error .ext-sub { color: var(--danger); white-space: normal; } .ext-tag { flex: none; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); } .ext-tag.installed { border-color: rgba(166, 218, 149, 0.4); color: var(--ok); } .ext-tag.nsfw { border-color: rgba(237, 135, 150, 0.4); color: var(--danger); } .ext-row .ghost-button, .ext-row .primary-button { flex: none; padding: 5px 12px; font-size: 12px; } .ext-empty { padding: 14px 2px; font-size: 13px; color: var(--muted); }