Tauri 2 shell with a React/TypeScript interface and libmpv playback composed beneath the web view (DirectComposition on Windows). Shared code with per-OS platform modules and configs so macOS and Linux can follow. - Plex sign-in (browser, plex.tv/link or manual), server selection, Plex Home - Home, Movies and TV Shows (Discover, Library, Collections), search, people - Title pages with logos, ratings, cast, extras, seasons and episodes - Direct play with Plex conversion fallback, tracks, markers, autoplay - Metadata editing, artwork, fix match, refresh, analyze and deletion - Resumable offline downloads - App settings and Plex server administration with a live dashboard - Signed updater feed and Forgejo CI Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
570 lines
12 KiB
CSS
570 lines
12 KiB
CSS
/* —— Buttons ———————————————————————————————————————————————— */
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 9px;
|
|
height: 40px;
|
|
padding: 0 20px;
|
|
border-radius: 7px;
|
|
font-size: 13px;
|
|
font-weight: 650;
|
|
white-space: nowrap;
|
|
transition:
|
|
background var(--t-fast) var(--ease),
|
|
color var(--t-fast) var(--ease),
|
|
transform var(--t-fast) var(--ease),
|
|
box-shadow var(--t-fast) var(--ease);
|
|
}
|
|
.btn:active:not(:disabled) {
|
|
transform: scale(0.975);
|
|
}
|
|
.btn.sm {
|
|
height: 32px;
|
|
padding: 0 13px;
|
|
font-size: 12px;
|
|
gap: 7px;
|
|
border-radius: 6px;
|
|
}
|
|
.btn.lg {
|
|
height: 46px;
|
|
padding: 0 26px;
|
|
font-size: 14px;
|
|
}
|
|
.btn.primary {
|
|
background: #f6f7f7;
|
|
color: #121415;
|
|
}
|
|
.btn.primary:hover:not(:disabled) {
|
|
background: #dfe8e4;
|
|
}
|
|
.btn.muted {
|
|
background: rgba(255, 255, 255, 0.17);
|
|
color: #fff;
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
.btn.muted:hover:not(:disabled) {
|
|
background: rgba(255, 255, 255, 0.27);
|
|
}
|
|
.btn.ghost {
|
|
background: rgba(255, 255, 255, 0.06);
|
|
color: #e3e6e7;
|
|
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
|
|
}
|
|
.btn.ghost:hover:not(:disabled) {
|
|
background: rgba(255, 255, 255, 0.13);
|
|
}
|
|
.btn.outline {
|
|
background: transparent;
|
|
color: #eceeef;
|
|
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
|
|
}
|
|
.btn.outline:hover:not(:disabled) {
|
|
background: rgba(255, 255, 255, 0.08);
|
|
}
|
|
.btn.danger {
|
|
background: #b9504f;
|
|
color: #fff;
|
|
}
|
|
.btn.danger:hover:not(:disabled) {
|
|
background: #c95e5c;
|
|
}
|
|
.btn.text {
|
|
background: none;
|
|
height: auto;
|
|
padding: 6px 4px;
|
|
color: var(--accent);
|
|
font-weight: 650;
|
|
font-size: 12px;
|
|
}
|
|
.btn.text:hover:not(:disabled) {
|
|
color: var(--accent-strong);
|
|
}
|
|
|
|
.icon-btn {
|
|
height: 36px;
|
|
width: 36px;
|
|
display: inline-grid;
|
|
place-items: center;
|
|
border-radius: 8px;
|
|
color: #d6dadb;
|
|
transition:
|
|
background var(--t-fast),
|
|
color var(--t-fast);
|
|
}
|
|
.icon-btn:hover:not(:disabled),
|
|
.icon-btn.on {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
color: #fff;
|
|
}
|
|
|
|
.circle-btn {
|
|
width: 42px;
|
|
height: 42px;
|
|
border-radius: 50%;
|
|
display: inline-grid;
|
|
place-items: center;
|
|
color: #fff;
|
|
background: rgba(255, 255, 255, 0.08);
|
|
box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.42);
|
|
backdrop-filter: blur(8px);
|
|
transition:
|
|
background var(--t-fast),
|
|
transform var(--t-fast),
|
|
box-shadow var(--t-fast);
|
|
}
|
|
.circle-btn:hover:not(:disabled) {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7);
|
|
}
|
|
.circle-btn:active:not(:disabled) {
|
|
transform: scale(0.95);
|
|
}
|
|
.circle-btn.on {
|
|
color: var(--accent-strong);
|
|
}
|
|
|
|
.actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
}
|
|
.actions.end {
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
/* —— Spinner, artwork ———————————————————————————————————————— */
|
|
.spinner {
|
|
display: inline-block;
|
|
border-radius: 50%;
|
|
border: 2px solid rgba(255, 255, 255, 0.16);
|
|
border-top-color: rgba(255, 255, 255, 0.85);
|
|
animation: spin 0.8s linear infinite;
|
|
flex: none;
|
|
}
|
|
.page-loader {
|
|
display: grid;
|
|
place-items: center;
|
|
min-height: 50vh;
|
|
animation: fade-in 400ms 200ms both;
|
|
}
|
|
|
|
.artwork {
|
|
opacity: 0;
|
|
transition: opacity 360ms var(--ease);
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
.artwork.ready {
|
|
opacity: 1;
|
|
}
|
|
.artwork.empty {
|
|
opacity: 1;
|
|
display: grid;
|
|
place-items: center;
|
|
color: rgba(255, 255, 255, 0.3);
|
|
background: linear-gradient(135deg, #1d2125, #15181b);
|
|
}
|
|
|
|
/* —— Switch, select, segmented ——————————————————————————————— */
|
|
.switch {
|
|
width: 38px;
|
|
height: 22px;
|
|
border-radius: 20px;
|
|
background: #3b3f44;
|
|
position: relative;
|
|
flex: none;
|
|
transition: background var(--t);
|
|
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
|
|
}
|
|
.switch span {
|
|
position: absolute;
|
|
top: 3px;
|
|
left: 3px;
|
|
width: 16px;
|
|
height: 16px;
|
|
border-radius: 50%;
|
|
background: #c6cacb;
|
|
transition:
|
|
transform var(--t) var(--ease-out),
|
|
background var(--t);
|
|
}
|
|
.switch.on {
|
|
background: #8fb8aa;
|
|
}
|
|
.switch.on span {
|
|
transform: translateX(16px);
|
|
background: #0f1916;
|
|
}
|
|
|
|
.select {
|
|
height: 34px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 0 11px 0 13px;
|
|
border-radius: 7px;
|
|
background: rgba(255, 255, 255, 0.06);
|
|
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.11);
|
|
font-size: 12px;
|
|
color: #dfe2e3;
|
|
max-width: 100%;
|
|
transition: background var(--t-fast);
|
|
}
|
|
.select:hover:not(:disabled) {
|
|
background: rgba(255, 255, 255, 0.11);
|
|
}
|
|
.select-prefix {
|
|
color: var(--muted);
|
|
}
|
|
.select-value {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
font-weight: 560;
|
|
}
|
|
.select svg {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.seg {
|
|
display: inline-flex;
|
|
gap: 3px;
|
|
padding: 3px;
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border-radius: 8px;
|
|
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
|
|
}
|
|
.seg button {
|
|
padding: 7px 14px;
|
|
border-radius: 6px;
|
|
color: #a3a8ad;
|
|
font-size: 12px;
|
|
font-weight: 560;
|
|
transition:
|
|
background var(--t-fast),
|
|
color var(--t-fast);
|
|
}
|
|
.seg button:hover {
|
|
color: #fff;
|
|
}
|
|
.seg button.selected {
|
|
background: #3a403f;
|
|
color: #fff;
|
|
}
|
|
|
|
/* —— Fields ——————————————————————————————————————————————————— */
|
|
.field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 7px;
|
|
margin-bottom: 16px;
|
|
}
|
|
.field > span {
|
|
font-size: 11px;
|
|
color: #b7c0c3;
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
.field input,
|
|
.field textarea,
|
|
.text-input {
|
|
width: 100%;
|
|
min-height: 38px;
|
|
background: #101315;
|
|
border: 1px solid rgba(255, 255, 255, 0.14);
|
|
border-radius: 7px;
|
|
padding: 9px 11px;
|
|
font-size: 13px;
|
|
transition:
|
|
border-color var(--t-fast),
|
|
background var(--t-fast);
|
|
}
|
|
.field textarea {
|
|
min-height: 110px;
|
|
resize: vertical;
|
|
line-height: 1.55;
|
|
}
|
|
.field input:focus,
|
|
.field textarea:focus,
|
|
.text-input:focus {
|
|
border-color: rgba(169, 199, 192, 0.65);
|
|
background: #12171a;
|
|
}
|
|
.field-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 0 16px;
|
|
}
|
|
|
|
/* —— Menus ———————————————————————————————————————————————————— */
|
|
.menu-layer {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 900;
|
|
}
|
|
.menu-panel {
|
|
position: fixed;
|
|
max-height: calc(100vh - 24px);
|
|
overflow-y: auto;
|
|
padding: 6px;
|
|
border-radius: 11px;
|
|
background: rgba(31, 34, 37, 0.985);
|
|
backdrop-filter: blur(24px) saturate(1.3);
|
|
box-shadow:
|
|
var(--shadow-pop),
|
|
inset 0 0 0 1px rgba(255, 255, 255, 0.12);
|
|
animation: pop-in 150ms var(--ease-out);
|
|
transition: opacity 80ms;
|
|
}
|
|
.menu-item {
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 8px 10px 8px 8px;
|
|
border-radius: 6px;
|
|
font-size: 12.5px;
|
|
color: #dde0e2;
|
|
text-align: left;
|
|
white-space: nowrap;
|
|
}
|
|
.menu-item:hover:not(:disabled),
|
|
.menu-item.open {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
color: #fff;
|
|
}
|
|
.menu-item.danger {
|
|
color: var(--danger);
|
|
}
|
|
.menu-icon {
|
|
width: 18px;
|
|
display: grid;
|
|
place-items: center;
|
|
color: #a7b5b3;
|
|
}
|
|
.menu-label {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.menu-hint {
|
|
color: var(--dim);
|
|
font-size: 11px;
|
|
margin-left: 14px;
|
|
}
|
|
.menu-chev {
|
|
color: var(--dim);
|
|
}
|
|
.menu-sep {
|
|
height: 1px;
|
|
background: rgba(255, 255, 255, 0.09);
|
|
margin: 5px 6px;
|
|
}
|
|
.menu-heading {
|
|
padding: 9px 10px 5px;
|
|
font-size: 10px;
|
|
letter-spacing: 0.12em;
|
|
text-transform: uppercase;
|
|
color: var(--dim);
|
|
font-weight: 700;
|
|
}
|
|
|
|
/* —— Dialogs —————————————————————————————————————————————————— */
|
|
.dialog-layer {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 800;
|
|
background: rgba(5, 6, 8, 0.72);
|
|
backdrop-filter: blur(14px);
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: center;
|
|
padding: 9vh 16px 16px;
|
|
overflow-y: auto;
|
|
animation: fade-in 180ms var(--ease);
|
|
}
|
|
.dialog {
|
|
max-height: calc(100vh - 12vh - 16px);
|
|
display: flex;
|
|
flex-direction: column;
|
|
border-radius: 14px;
|
|
background: #1a1d20;
|
|
box-shadow:
|
|
var(--shadow-pop),
|
|
inset 0 0 0 1px rgba(255, 255, 255, 0.11);
|
|
animation: rise-in 240ms var(--ease-out);
|
|
overflow: hidden;
|
|
}
|
|
.dialog-header {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
padding: 22px 22px 16px 26px;
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
.dialog-header h2 {
|
|
margin: 0;
|
|
font-size: 19px;
|
|
letter-spacing: -0.025em;
|
|
font-weight: 720;
|
|
}
|
|
.dialog-header p {
|
|
margin: 6px 0 0;
|
|
font-size: 12px;
|
|
color: var(--muted);
|
|
}
|
|
.dialog-body {
|
|
padding: 20px 26px;
|
|
overflow-y: auto;
|
|
}
|
|
.dialog-bare {
|
|
overflow-y: auto;
|
|
}
|
|
.dialog-footer {
|
|
padding: 15px 22px;
|
|
border-top: 1px solid var(--line);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
}
|
|
.dialog-footer > .actions {
|
|
margin-left: auto;
|
|
}
|
|
.confirm-message {
|
|
color: #c9cfd1;
|
|
font-size: 13px;
|
|
line-height: 1.65;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
/* —— Toasts —————————————————————————————————————————————————— */
|
|
.toast-stack {
|
|
position: fixed;
|
|
z-index: 1000;
|
|
bottom: 26px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 8px;
|
|
pointer-events: none;
|
|
}
|
|
.toast {
|
|
pointer-events: auto;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
max-width: min(560px, 90vw);
|
|
padding: 11px 16px;
|
|
border-radius: 10px;
|
|
background: rgba(40, 46, 47, 0.96);
|
|
backdrop-filter: blur(18px);
|
|
box-shadow:
|
|
0 14px 40px rgba(0, 0, 0, 0.55),
|
|
inset 0 0 0 1px rgba(255, 255, 255, 0.13);
|
|
font-size: 12.5px;
|
|
color: #e9eeee;
|
|
animation: rise-in 260ms var(--ease-out);
|
|
}
|
|
.toast.success svg {
|
|
color: var(--success);
|
|
}
|
|
.toast.error svg {
|
|
color: var(--danger);
|
|
}
|
|
.toast-action {
|
|
color: var(--accent-strong);
|
|
font-weight: 650;
|
|
margin-left: 6px;
|
|
}
|
|
|
|
/* —— Empty / error ——————————————————————————————————————————— */
|
|
.empty-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
text-align: center;
|
|
padding: 70px 24px;
|
|
gap: 4px;
|
|
animation: fade-in 300ms;
|
|
}
|
|
.empty-icon {
|
|
width: 56px;
|
|
height: 56px;
|
|
border-radius: 16px;
|
|
display: grid;
|
|
place-items: center;
|
|
background: rgba(255, 255, 255, 0.05);
|
|
color: #a9b6b4;
|
|
margin-bottom: 12px;
|
|
}
|
|
.empty-state h3 {
|
|
margin: 0;
|
|
font-size: 16px;
|
|
font-weight: 680;
|
|
}
|
|
.empty-state p {
|
|
margin: 6px 0 16px;
|
|
max-width: 440px;
|
|
color: var(--muted);
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.kbd {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
font-size: 10.5px;
|
|
font-weight: 600;
|
|
color: #b9c0c3;
|
|
padding: 3px 7px;
|
|
border-radius: 5px;
|
|
background: rgba(255, 255, 255, 0.06);
|
|
box-shadow:
|
|
inset 0 0 0 1px rgba(255, 255, 255, 0.14),
|
|
inset 0 -1px 0 rgba(255, 255, 255, 0.08);
|
|
font-family: inherit;
|
|
}
|
|
|
|
.badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
height: 18px;
|
|
padding: 0 5px;
|
|
border-radius: 4px;
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.04em;
|
|
color: #e7eaea;
|
|
box-shadow: inset 0 0 0 1.2px rgba(255, 255, 255, 0.45);
|
|
white-space: nowrap;
|
|
}
|
|
.badge.solid {
|
|
box-shadow: none;
|
|
background: rgba(255, 255, 255, 0.14);
|
|
}
|
|
|
|
.progress-bar {
|
|
height: 4px;
|
|
border-radius: 4px;
|
|
background: rgba(255, 255, 255, 0.16);
|
|
overflow: hidden;
|
|
}
|
|
.progress-bar > i {
|
|
display: block;
|
|
height: 100%;
|
|
background: var(--accent);
|
|
border-radius: inherit;
|
|
transition: width 300ms var(--ease);
|
|
}
|
|
|
|
.skeleton {
|
|
background: linear-gradient(90deg, #17191c 0, #1e2124 40%, #17191c 80%) 0 0 / 800px 100%;
|
|
animation: shimmer 1.4s linear infinite;
|
|
}
|