The list editor gets an Import button. A .csv/.tsv/.txt file or pasted text is parsed on the server: header columns (Title, Year, Artist or Director, Note, Rank), numbered lines and trailing "(1999)" years are understood, and Canon's own export round-trips. Each row is then searched with the list's provider and scored. A row is matched automatically only when one result fits exactly and nothing else fits as well; a year or artist in the file breaks ties, an exact title beats a bracketed version like "(Live)", and "Artist - Title" lines are tried both ways. Custom lists need a year or subtitle to be certain. Everything else is shown for review with a recommended pick, the other results, "Add as written", Skip, and a search-again box. Entries are added in file order after the existing ones, with any notes from the file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
871 lines
55 KiB
CSS
871 lines
55 KiB
CSS
/* ==========================================================================
|
|
Canon. Colors and fonts come from themes.css.
|
|
========================================================================== */
|
|
|
|
*, *::before, *::after { box-sizing: border-box; }
|
|
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
|
|
body {
|
|
margin: 0;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font: 15px/1.5 var(--font);
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
main { flex: 1; }
|
|
img { display: block; max-width: 100%; }
|
|
a { color: inherit; }
|
|
button, input, select, textarea { font: inherit; color: inherit; }
|
|
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -0.015em; }
|
|
p { margin: 0; }
|
|
code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 4px; }
|
|
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
::selection { background: var(--accent); color: var(--accent-text); }
|
|
|
|
.icon {
|
|
width: 1.1em; height: 1.1em; flex: none;
|
|
fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
|
|
vertical-align: -0.15em;
|
|
}
|
|
.sr-only {
|
|
position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
|
|
overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
|
|
}
|
|
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-text); padding: 8px 14px; border-radius: var(--radius); }
|
|
.skip-link:focus { left: 8px; }
|
|
.muted { color: var(--muted); }
|
|
.small { font-size: 13px; }
|
|
[hidden] { display: none !important; }
|
|
|
|
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
|
|
@media (max-width: 640px) { .container { padding: 0 16px; } }
|
|
|
|
/* ---------- top bar ---------- */
|
|
.topbar {
|
|
position: sticky; top: 0; z-index: 20;
|
|
background: color-mix(in srgb, var(--bg) 82%, transparent);
|
|
backdrop-filter: saturate(160%) blur(14px);
|
|
-webkit-backdrop-filter: saturate(160%) blur(14px);
|
|
border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
|
|
}
|
|
.topbar-inner { display: flex; align-items: center; justify-content: flex-end; height: 60px; gap: 16px; }
|
|
.topnav { display: flex; align-items: center; gap: 4px; }
|
|
.topnav a, .topnav-btn {
|
|
display: inline-flex; align-items: center; gap: 7px;
|
|
padding: 7px 12px; border-radius: 8px; border: 0; background: none; cursor: pointer;
|
|
color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500;
|
|
}
|
|
.topnav a:hover, .topnav-btn:hover { color: var(--text); background: var(--surface-2); }
|
|
.topnav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
|
|
.topnav-form { margin: 0; }
|
|
@media (max-width: 520px) { .topnav a span { display: none; } }
|
|
|
|
/* Home page, signed in: the bar drops down from a small tab. */
|
|
.topbar-tab {
|
|
position: fixed; top: 0; left: 50%; z-index: 30; transform: translateX(-50%);
|
|
display: grid; place-items: center; width: 44px; height: 20px;
|
|
list-style: none; cursor: pointer; color: var(--faint);
|
|
background: color-mix(in srgb, var(--surface) 88%, transparent);
|
|
border: 1px solid var(--border); border-top: 0; border-radius: 0 0 10px 10px;
|
|
backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
|
|
opacity: 0.7; transition: opacity 0.15s, color 0.15s, top 0.2s;
|
|
}
|
|
.topbar-tab::-webkit-details-marker { display: none; }
|
|
.topbar-tab .icon { width: 14px; height: 14px; transition: transform 0.2s; }
|
|
.topbar-tab:hover, .topbar-tab:focus-visible { opacity: 1; color: var(--text); }
|
|
.topbar-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
.topbar-drawer .topbar { position: fixed; left: 0; right: 0; animation: topbar-drop 0.2s ease-out; }
|
|
.topbar-drawer[open] .topbar-tab { top: 60px; opacity: 1; }
|
|
.topbar-drawer[open] .topbar-tab .icon { transform: rotate(180deg); }
|
|
@keyframes topbar-drop { from { transform: translateY(-100%); } }
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.topbar-drawer .topbar { animation: none; }
|
|
}
|
|
|
|
/* ---------- footer ---------- */
|
|
.footer { margin-top: 72px; border-top: 1px solid var(--border); color: var(--faint); font-size: 13px; }
|
|
.footer-inner { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding-top: 22px; padding-bottom: 28px; }
|
|
.footer a { color: var(--muted); text-decoration: none; }
|
|
.footer a:hover { color: var(--accent); }
|
|
|
|
/* ---------- buttons ---------- */
|
|
.btn {
|
|
display: inline-flex; align-items: center; justify-content: center; gap: 8px;
|
|
height: 38px; padding: 0 16px; border-radius: var(--radius);
|
|
border: 1px solid var(--border); background: var(--surface); color: var(--text);
|
|
font-size: 14px; font-weight: 550; text-decoration: none; cursor: pointer; white-space: nowrap;
|
|
transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.05s;
|
|
}
|
|
.btn:hover { background: var(--surface-2); }
|
|
.btn:active { transform: translateY(1px); }
|
|
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
|
|
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
|
|
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--text)); }
|
|
.btn--ghost { background: transparent; border-color: transparent; color: var(--muted); }
|
|
.btn--ghost:hover { color: var(--text); background: var(--surface-2); }
|
|
.btn--danger { color: var(--danger); }
|
|
.btn--danger:hover { background: color-mix(in srgb, var(--danger) 14%, transparent); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
|
|
.btn--danger.btn--solid { background: var(--danger); border-color: var(--danger); color: #fff; }
|
|
.btn--sm { height: 30px; padding: 0 10px; font-size: 13px; gap: 6px; }
|
|
.btn--block { width: 100%; }
|
|
.icon-btn {
|
|
display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px;
|
|
border: 0; background: none; color: var(--muted); cursor: pointer;
|
|
}
|
|
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
|
|
.icon-btn:disabled { opacity: 0.35; cursor: default; background: none; }
|
|
.icon-btn--danger:hover { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }
|
|
|
|
/* ---------- chips, badges ---------- */
|
|
.chip {
|
|
display: inline-flex; align-items: center; gap: 7px; flex: none;
|
|
height: 34px; padding: 0 14px; border-radius: 999px;
|
|
background: var(--surface); border: 1px solid var(--border);
|
|
color: var(--muted); font-size: 13.5px; font-weight: 500; text-decoration: none;
|
|
transition: color 0.15s, border-color 0.15s, background 0.15s;
|
|
}
|
|
.chip:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
|
|
.badge {
|
|
display: inline-flex; align-items: center; gap: 5px; width: fit-content;
|
|
padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.01em;
|
|
background: var(--accent-soft); color: var(--accent);
|
|
}
|
|
.badge--warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
|
|
.badge--muted { background: var(--surface-2); color: var(--muted); }
|
|
|
|
/* ---------- profile / home ---------- */
|
|
.profile { display: flex; align-items: center; gap: 28px; padding-top: 56px; padding-bottom: 28px; }
|
|
/* Profile pictures: the image as-is, just cropped to a circle. The flat
|
|
accent fill only shows behind the initial when there's no picture. */
|
|
.avatar {
|
|
flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 50%;
|
|
background: var(--accent); color: var(--accent-text); font-weight: 700;
|
|
}
|
|
.avatar:has(img) { background: none; }
|
|
.avatar img { width: 100%; height: 100%; object-fit: cover; }
|
|
.avatar--lg { width: 112px; height: 112px; font-size: 44px; }
|
|
.profile-name { font-size: clamp(30px, 5vw, 46px); font-weight: 780; }
|
|
.profile-tagline { margin-top: 8px; color: var(--muted); font-size: 17px; max-width: 60ch; }
|
|
.profile-stats { margin-top: 12px; color: var(--faint); font-size: 14px; }
|
|
.profile-stats strong { color: var(--text); font-weight: 650; }
|
|
@media (max-width: 640px) {
|
|
.profile { flex-direction: column; text-align: center; gap: 18px; padding-top: 36px; }
|
|
.profile-tagline { margin-inline: auto; }
|
|
.avatar--lg { width: 92px; height: 92px; font-size: 36px; }
|
|
}
|
|
|
|
.jump { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; scrollbar-width: none; }
|
|
.jump::-webkit-scrollbar { display: none; }
|
|
@media (max-width: 640px) { .jump { justify-content: flex-start; } }
|
|
|
|
.shelf { margin-top: 44px; }
|
|
.shelf-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
|
|
.shelf-icon {
|
|
flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
|
|
background: var(--accent-soft); color: var(--accent);
|
|
}
|
|
.shelf-icon .icon { width: 20px; height: 20px; }
|
|
.shelf-titles { flex: 1; min-width: 0; }
|
|
.shelf-head h2 { font-size: 22px; font-weight: 720; }
|
|
.shelf-head h2 a { text-decoration: none; }
|
|
.shelf-head h2 a:hover { color: var(--accent); }
|
|
.shelf-desc { color: var(--muted); font-size: 14px; margin-top: 2px; }
|
|
.see-all {
|
|
display: inline-flex; align-items: center; gap: 6px; flex: none;
|
|
color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 550;
|
|
padding: 6px 10px; border-radius: 8px;
|
|
}
|
|
.see-all:hover { color: var(--accent); background: var(--accent-soft); }
|
|
|
|
/* ---------- ranked items: grid ---------- */
|
|
.items { list-style: none; margin: 0; padding: 0; }
|
|
.items--grid { display: grid; gap: 22px 18px; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); }
|
|
.aspect-square .items--grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
|
|
@media (min-width: 641px) {
|
|
.page-home .items--grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
|
|
.page-home .aspect-square .items--grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
|
|
}
|
|
@media (max-width: 640px) {
|
|
.items--grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 16px 12px; }
|
|
.aspect-square .items--grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
|
|
}
|
|
.item-btn {
|
|
all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 10px;
|
|
width: 100%; cursor: pointer; border-radius: var(--radius-art);
|
|
}
|
|
.item-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
|
|
.item-art {
|
|
position: relative; display: block; overflow: hidden; aspect-ratio: 2 / 3;
|
|
border-radius: var(--radius-art); background: var(--surface-2);
|
|
box-shadow: 0 1px 0 color-mix(in srgb, var(--text) 6%, transparent) inset, 0 6px 18px rgba(0, 0, 0, 0.18);
|
|
transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s;
|
|
}
|
|
.aspect-square .item-art { aspect-ratio: 1; }
|
|
.item-art img { width: 100%; height: 100%; object-fit: cover; }
|
|
.item-btn:hover .item-art { transform: translateY(-4px); box-shadow: var(--shadow); }
|
|
.art-fallback {
|
|
position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint);
|
|
background: linear-gradient(160deg, var(--surface-2), var(--surface));
|
|
}
|
|
.art-fallback .icon { width: 34%; height: 34%; stroke-width: 1.4; }
|
|
.rank-badge {
|
|
position: absolute; left: 8px; top: 8px; min-width: 28px; height: 28px; padding: 0 8px;
|
|
display: grid; place-items: center; border-radius: 8px;
|
|
background: rgba(10, 10, 14, 0.72); color: #fff;
|
|
backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
|
|
font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
|
|
}
|
|
.item--top1 .rank-badge { background: var(--gold); color: #1b1405; }
|
|
.item--top2 .rank-badge { background: var(--silver); color: #14171d; }
|
|
.item--top3 .rank-badge { background: var(--bronze); color: #1d1008; }
|
|
.item-rank { display: none; }
|
|
.item-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
|
|
.item-title { font-weight: 620; font-size: 14.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
|
|
.item-sub { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.dot { margin: 0 6px; color: var(--faint); }
|
|
.items--grid .item-note { display: none; }
|
|
.item-tags { display: flex; align-items: center; gap: 8px; margin-top: 3px; min-width: 0; }
|
|
.item-tags .badge { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; display: inline-block; }
|
|
.item-year { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; flex: none; }
|
|
|
|
/* ---------- preview play buttons ---------- */
|
|
.item { position: relative; }
|
|
.play-btn {
|
|
position: absolute; top: 8px; right: 8px; z-index: 2;
|
|
display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
|
|
border: 0; border-radius: 50%; cursor: pointer;
|
|
background: rgba(10, 10, 14, 0.72); color: #fff;
|
|
backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
|
|
transition: background 0.15s, transform 0.15s;
|
|
}
|
|
.play-btn:hover { background: var(--accent); color: var(--accent-text); transform: scale(1.06); }
|
|
.play-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
|
|
.play-btn .icon { width: 15px; height: 15px; fill: currentColor; stroke: none; }
|
|
.play-btn .icon:first-child { margin-left: 2px; }
|
|
.play-btn .icon:last-child, .play-btn.is-playing .icon:first-child { display: none; }
|
|
.play-btn.is-playing .icon:last-child { display: block; }
|
|
.play-btn.is-playing, .play-btn.is-loading { background: var(--accent); color: var(--accent-text); }
|
|
/* Progress ring around the button while a clip plays. */
|
|
.play-btn::before {
|
|
content: ""; position: absolute; inset: -3px; border-radius: 50%; pointer-events: none;
|
|
background: conic-gradient(var(--accent) calc(var(--p, 0) * 1%), transparent 0);
|
|
-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
|
|
mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
|
|
opacity: 0; transition: opacity 0.2s;
|
|
}
|
|
.play-btn.is-playing::before { opacity: 1; }
|
|
.play-btn.is-loading .icon:first-child { animation: pulse 0.9s ease-in-out infinite; }
|
|
@keyframes pulse { 50% { opacity: 0.35; } }
|
|
.play-btn--inline, .play-btn--mini { position: relative; top: auto; right: auto; flex: none; box-shadow: none; }
|
|
.play-btn--inline { width: 32px; height: 32px; }
|
|
.play-btn--inline:not(.is-playing):not(.is-loading):not(:hover) { background: var(--surface-2); color: var(--text); }
|
|
.play-btn--mini { position: absolute; right: 3px; bottom: 3px; width: 24px; height: 24px; }
|
|
.play-btn--mini .icon { width: 11px; height: 11px; }
|
|
.result-art { position: relative; }
|
|
.result-source { display: inline-block; margin-top: 3px; font-size: 10.5px; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); }
|
|
|
|
/* ---------- ranked items: rows ---------- */
|
|
.items--rows { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
|
|
.items--rows .item { border-bottom: 1px solid var(--border); }
|
|
.items--rows .item-btn {
|
|
flex-direction: row; align-items: center; gap: 18px; padding: 12px 10px; border-radius: 0;
|
|
transition: background 0.15s;
|
|
}
|
|
.items--rows .item-btn:hover { background: var(--surface); }
|
|
.items--rows .item-btn:hover .item-art { transform: none; }
|
|
.items--rows .item-art { order: 2; width: 58px; flex: none; border-radius: calc(var(--radius-art) * 0.7); box-shadow: none; }
|
|
.items--rows .rank-badge { display: none; }
|
|
.items--rows .item-rank {
|
|
order: 1; display: block; width: 3.2ch; flex: none; text-align: right;
|
|
font: 700 22px/1 var(--font-display); color: var(--faint); font-variant-numeric: tabular-nums;
|
|
}
|
|
.items--rows .item--top1 .item-rank { color: var(--gold); }
|
|
.items--rows .item--top2 .item-rank { color: var(--silver); }
|
|
.items--rows .item--top3 .item-rank { color: var(--bronze); }
|
|
.items--rows .item-body { order: 3; flex: 1; }
|
|
.items--rows .item-title { font-size: 16px; -webkit-line-clamp: 1; }
|
|
.items--rows .play-btn { top: 50%; right: 10px; transform: translateY(-50%); }
|
|
.items--rows .play-btn:hover { transform: translateY(-50%) scale(1.06); }
|
|
.items--rows .item:has(.play-btn) .item-btn { padding-right: 60px; }
|
|
.items--rows .item-note { color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
|
|
@media (min-width: 900px) {
|
|
.page-home .items--rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; border-top: 0; }
|
|
.page-home .items--rows .item:nth-child(-n+2) { border-top: 1px solid var(--border); }
|
|
}
|
|
@media (max-width: 640px) {
|
|
.items--rows .item-btn { gap: 12px; padding: 10px 4px; }
|
|
.items--rows .item-art { width: 48px; }
|
|
.items--rows .item-rank { font-size: 18px; }
|
|
}
|
|
|
|
/* ---------- style: podium ---------- */
|
|
/* #2, #1, #3 left to right, #1 raised and a little larger, each standing on
|
|
a medal-colored step. */
|
|
.podium {
|
|
list-style: none; margin: 8px auto 0; padding: 0; max-width: 860px;
|
|
display: grid; grid-template-columns: 1fr 1.22fr 1fr; gap: 0 22px; align-items: end;
|
|
}
|
|
.podium--2 { grid-template-columns: 1fr 1.22fr; max-width: 580px; }
|
|
.podium--1 { grid-template-columns: minmax(0, 300px); justify-content: center; }
|
|
.podium-spot { position: relative; display: flex; flex-direction: column; min-width: 0; --medal: var(--gold); }
|
|
.podium-spot--1 { order: 2; }
|
|
.podium-spot--2 { order: 1; --medal: var(--silver); }
|
|
.podium-spot--3 { order: 3; --medal: var(--bronze); }
|
|
.podium--1 .podium-spot--1 { order: 0; }
|
|
.podium-card { align-items: center; text-align: center; gap: 12px; padding: 0 4px 14px; }
|
|
.podium-card .item-art { width: 100%; box-shadow: var(--shadow); }
|
|
/* The medal ring is an outline, not a box-shadow, so the hover shadow on
|
|
.item-art doesn't replace it. */
|
|
.podium-spot--1 .item-art { outline: 3px solid var(--medal); }
|
|
.podium-card .item-body { align-items: center; width: 100%; }
|
|
.podium-card .item-title { font-size: 16px; }
|
|
.podium-spot--1 .item-title { font-size: 18px; font-weight: 700; }
|
|
.podium-card .item-tags { justify-content: center; }
|
|
.podium-step {
|
|
display: grid; place-items: center; border-radius: 10px 10px 0 0;
|
|
border-top: 3px solid var(--medal);
|
|
background: linear-gradient(to bottom, color-mix(in srgb, var(--medal) 26%, var(--surface)), color-mix(in srgb, var(--medal) 4%, var(--bg)));
|
|
font: 800 30px/1 var(--font-display); color: var(--medal); font-variant-numeric: tabular-nums;
|
|
}
|
|
.podium-spot--1 .podium-step { height: 86px; font-size: 40px; }
|
|
.podium-spot--2 .podium-step { height: 60px; }
|
|
.podium-spot--3 .podium-step { height: 42px; font-size: 26px; }
|
|
.podium + .more, .podium + .more-all { margin-top: 0; border-top: 1px solid var(--border); }
|
|
@media (max-width: 640px) {
|
|
/* #1 on its own row, #2 and #3 side by side beneath it. */
|
|
.podium, .podium--2 { grid-template-columns: 1fr 1fr; gap: 18px 14px; }
|
|
.podium-spot--1 { order: 0; grid-column: 1 / -1; justify-self: center; width: min(100%, 230px); }
|
|
.podium-spot--2 { order: 1; }
|
|
.podium-spot--3 { order: 2; }
|
|
/* Short, equal steps so every spot still shows its rank. */
|
|
.podium-spot .podium-step { height: 34px; font-size: 20px; border-radius: 8px; }
|
|
.podium-card { padding-bottom: 10px; }
|
|
}
|
|
|
|
/* The home page is a preview of every list, so its podium is compact; the
|
|
list page keeps the full-size one. */
|
|
@media (min-width: 641px) {
|
|
.page-home .podium { max-width: 580px; gap: 0 16px; }
|
|
.page-home .podium--2 { max-width: 390px; }
|
|
.page-home .podium--1 { grid-template-columns: minmax(0, 190px); }
|
|
.page-home .podium-card { gap: 10px; padding-bottom: 10px; }
|
|
.page-home .podium-card .item-title { font-size: 14.5px; }
|
|
.page-home .podium-spot--1 .item-title { font-size: 16px; }
|
|
.page-home .podium-step { font-size: 22px; }
|
|
.page-home .podium-spot--1 .podium-step { height: 56px; font-size: 28px; }
|
|
.page-home .podium-spot--2 .podium-step { height: 40px; }
|
|
.page-home .podium-spot--3 .podium-step { height: 28px; font-size: 18px; }
|
|
}
|
|
|
|
/* "Show N more" under a podium: the browser's own <details>, so it works
|
|
without JavaScript. */
|
|
.more { padding-top: 18px; }
|
|
.more > summary {
|
|
list-style: none; display: flex; align-items: center; gap: 8px; width: fit-content; margin: 0 auto;
|
|
padding: 8px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
|
|
color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer;
|
|
transition: color 0.15s, border-color 0.15s;
|
|
}
|
|
.more > summary::-webkit-details-marker { display: none; }
|
|
.more > summary:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
|
|
.more > summary .icon { transition: transform 0.2s; }
|
|
.more-open, .more[open] .more-closed { display: none; }
|
|
.more[open] .more-open { display: inline; }
|
|
.more[open] > summary { margin-bottom: 16px; }
|
|
.more[open] > summary .icon { transform: rotate(180deg); }
|
|
.more-all {
|
|
display: flex; align-items: center; justify-content: center; gap: 6px; width: fit-content; margin: 16px auto 0;
|
|
color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none;
|
|
}
|
|
.more-all:hover { color: var(--accent); }
|
|
.podium + .more-all { padding-top: 16px; width: 100%; }
|
|
/* On a list page, pages past the first only make sense once the rest is open. */
|
|
.list-body:has(.ranked--podium details:not([open])) .pager { display: none; }
|
|
|
|
/* ---------- style: spotlight ---------- */
|
|
.spotlight {
|
|
position: relative; overflow: hidden; isolation: isolate; margin-bottom: 14px;
|
|
display: grid; grid-template-columns: minmax(150px, 250px) 1fr; gap: 30px; align-items: center;
|
|
padding: 26px; border-radius: calc(var(--radius) + 8px); border: 1px solid var(--border); background: var(--surface);
|
|
}
|
|
.aspect-square .spotlight { grid-template-columns: minmax(150px, 270px) 1fr; }
|
|
.spotlight-bg { position: absolute; inset: 0; z-index: -1; }
|
|
.spotlight-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.4); filter: blur(50px) saturate(1.4); opacity: 0.32; }
|
|
.spotlight-art { position: relative; }
|
|
.spotlight-art .item-art { outline: 3px solid var(--gold); box-shadow: var(--shadow); }
|
|
.spotlight-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; align-items: flex-start; }
|
|
.spotlight-rank { font: 800 46px/1 var(--font-display); color: var(--gold); }
|
|
.spotlight-title { font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; }
|
|
.spotlight-body .item-sub { font-size: 15px; white-space: normal; }
|
|
.spotlight-desc { color: var(--muted); font-size: 15px; line-height: 1.6; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
|
|
.spotlight-note {
|
|
margin: 8px 0 0; padding: 10px 14px; border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0;
|
|
background: var(--accent-soft); font-size: 15px; white-space: pre-line;
|
|
display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
|
|
}
|
|
.spotlight-more { margin-top: 10px; }
|
|
@media (min-width: 641px) {
|
|
.page-home .spotlight, .page-home .aspect-square .spotlight { grid-template-columns: 150px 1fr; gap: 24px; padding: 18px; }
|
|
.page-home .spotlight-rank { font-size: 32px; }
|
|
.page-home .spotlight-title { font-size: clamp(20px, 2.2vw, 26px); }
|
|
.page-home .spotlight-desc, .page-home .spotlight-note { -webkit-line-clamp: 3; font-size: 14.5px; }
|
|
}
|
|
@media (max-width: 640px) {
|
|
.spotlight, .aspect-square .spotlight { grid-template-columns: 1fr; gap: 18px; padding: 18px; }
|
|
.spotlight-art { width: min(100%, 220px); justify-self: center; }
|
|
.spotlight-rank { font-size: 36px; }
|
|
}
|
|
|
|
/* ---------- list page ---------- */
|
|
.list-hero { position: relative; overflow: hidden; padding: 28px 0 34px; border-bottom: 1px solid var(--border); }
|
|
.list-hero-backdrop { position: absolute; inset: 0; z-index: 0; }
|
|
.list-hero-backdrop img {
|
|
width: 100%; height: 100%; object-fit: cover; transform: scale(1.3);
|
|
filter: blur(60px) saturate(1.4); opacity: 0.35;
|
|
}
|
|
.list-hero-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 0%, var(--bg) 100%); }
|
|
.list-hero-inner { position: relative; z-index: 1; }
|
|
.back-link {
|
|
display: inline-flex; align-items: center; gap: 6px; margin-bottom: 22px;
|
|
color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500;
|
|
}
|
|
.back-link:hover { color: var(--text); }
|
|
.list-hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
|
|
.eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.08em; }
|
|
.list-title { font-size: clamp(30px, 5vw, 52px); font-weight: 800; margin-top: 8px; }
|
|
.list-desc { color: var(--muted); font-size: 16px; margin-top: 10px; max-width: 70ch; }
|
|
.list-meta { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; font-weight: 550; }
|
|
.list-actions { display: flex; align-items: center; gap: 10px; }
|
|
.list-body { padding-top: 30px; }
|
|
|
|
.segmented { display: inline-flex; padding: 3px; gap: 2px; border-radius: calc(var(--radius) + 2px); background: var(--surface); border: 1px solid var(--border); }
|
|
.segmented a, .segmented button { display: grid; place-items: center; width: 34px; height: 30px; border: 0; border-radius: calc(var(--radius) - 2px); background: none; color: var(--muted); cursor: pointer; }
|
|
.segmented a:hover, .segmented button:hover { color: var(--text); }
|
|
.segmented [aria-current="true"], .segmented [aria-pressed="true"] { background: var(--surface-2); color: var(--text); }
|
|
|
|
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
|
|
.pager:empty { display: none; }
|
|
.pager-btn {
|
|
display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 10px;
|
|
border-radius: 9px; border: 1px solid var(--border); background: var(--surface);
|
|
text-decoration: none; font-size: 14px; font-weight: 550; font-variant-numeric: tabular-nums; cursor: pointer; color: var(--text);
|
|
}
|
|
.pager-btn:hover { border-color: var(--accent); }
|
|
.pager-btn.is-current { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
|
|
.pager-gap { color: var(--faint); padding: 0 4px; }
|
|
|
|
/* ---------- dropdown menu ---------- */
|
|
.menu { position: relative; }
|
|
.menu > summary { list-style: none; }
|
|
.menu > summary::-webkit-details-marker { display: none; }
|
|
.menu-pop {
|
|
position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 200px; padding: 6px;
|
|
background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 2px); box-shadow: var(--shadow);
|
|
}
|
|
.menu-pop a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 8px; text-decoration: none; font-size: 14px; }
|
|
.menu-pop a:hover { background: var(--surface-2); }
|
|
|
|
/* ---------- empty / error ---------- */
|
|
.empty { text-align: center; padding-top: 80px; padding-bottom: 40px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
|
|
.empty-art { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); margin-bottom: 10px; }
|
|
.empty-art .icon { width: 32px; height: 32px; }
|
|
.empty h1, .empty h2 { font-size: 26px; }
|
|
.empty p { color: var(--muted); max-width: 46ch; }
|
|
.empty .btn { margin-top: 14px; }
|
|
.error-code { font: 800 64px/1 var(--font-display); color: var(--accent); }
|
|
|
|
/* ---------- dialogs ---------- */
|
|
dialog {
|
|
padding: 0; border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px);
|
|
background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
|
|
max-width: min(640px, calc(100vw - 32px)); width: 100%; max-height: calc(100dvh - 48px);
|
|
}
|
|
dialog::backdrop { background: rgba(5, 6, 10, 0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
|
|
dialog[open] { animation: pop 0.18s cubic-bezier(.2,.8,.2,1); }
|
|
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
|
|
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
|
|
.dialog-head h2 { font-size: 19px; font-weight: 700; }
|
|
.dialog-body { padding: 18px 20px; }
|
|
.dialog-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 0 20px 20px; flex-wrap: wrap; }
|
|
.dialog-foot .spacer { flex: 1; }
|
|
|
|
.item-dialog { max-width: min(860px, calc(100vw - 32px)); overflow: hidden; }
|
|
.item-dialog-inner { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; max-height: calc(100dvh - 48px); }
|
|
.item-dialog .dlg-art { position: relative; background: var(--surface-2); }
|
|
.item-dialog .dlg-art img { width: 100%; height: 100%; object-fit: cover; }
|
|
.item-dialog .dlg-art .art-fallback .icon { width: 30%; height: 30%; }
|
|
.item-dialog.is-square .item-dialog-inner { grid-template-columns: minmax(220px, 360px) 1fr; }
|
|
.item-dialog.is-square .dlg-art { aspect-ratio: 1; align-self: start; }
|
|
.dlg-body { position: relative; padding: 28px 28px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
|
|
.dlg-close { position: absolute; top: 10px; right: 10px; }
|
|
.dlg-rank { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 550; padding-right: 36px; }
|
|
.dlg-rank strong { font: 800 30px/1 var(--font-display); color: var(--accent); }
|
|
.dlg-rank.top1 strong { color: var(--gold); }
|
|
.dlg-rank.top2 strong { color: var(--silver); }
|
|
.dlg-rank.top3 strong { color: var(--bronze); }
|
|
.dlg-title { font-size: 28px; font-weight: 780; }
|
|
.dlg-sub { color: var(--muted); font-size: 15px; margin-top: -4px; }
|
|
.dlg-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 4px 0 0; font-size: 14px; }
|
|
.dlg-meta dt { color: var(--faint); }
|
|
.dlg-meta dd { margin: 0; }
|
|
.dlg-why h3, .dlg-about h3 { font: 700 11.5px/1.2 var(--font); text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); margin: 6px 0 8px; }
|
|
.dlg-desc { color: var(--muted); font-size: 14.5px; line-height: 1.6; white-space: pre-line; }
|
|
.dlg-note {
|
|
margin: 0; padding: 14px 16px; border-left: 3px solid var(--accent);
|
|
background: var(--accent-soft); border-radius: 0 var(--radius) var(--radius) 0;
|
|
font-size: 15px; white-space: pre-line;
|
|
}
|
|
.dlg-actions { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; flex-wrap: wrap; }
|
|
.dlg-nav { margin-left: auto; display: flex; gap: 4px; }
|
|
@media (max-width: 680px) {
|
|
.item-dialog-inner, .item-dialog.is-square .item-dialog-inner { grid-template-columns: 1fr; overflow-y: auto; }
|
|
.item-dialog .dlg-art { max-height: 46vh; aspect-ratio: auto; }
|
|
.item-dialog .dlg-art img { max-height: 46vh; object-fit: contain; background: var(--surface-2); }
|
|
.item-dialog .dlg-art .art-fallback { position: static; height: 180px; }
|
|
.dlg-body { overflow: visible; padding: 22px 20px 20px; }
|
|
.dlg-title { font-size: 23px; }
|
|
}
|
|
|
|
/* ---------- forms ---------- */
|
|
.stack { display: flex; flex-direction: column; gap: 16px; }
|
|
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
|
|
.field-label { font-size: 13px; font-weight: 600; color: var(--muted); }
|
|
.field-hint { font-size: 12.5px; color: var(--faint); }
|
|
.field-hint.is-warn { color: var(--warn); }
|
|
.field-hint.is-error { color: var(--danger); }
|
|
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea {
|
|
width: 100%; height: 40px; padding: 0 12px;
|
|
background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
|
|
transition: border-color 0.15s, box-shadow 0.15s;
|
|
}
|
|
textarea { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
|
|
textarea.code { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; min-height: 220px; tab-size: 2; }
|
|
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
|
|
input::placeholder, textarea::placeholder { color: var(--faint); }
|
|
input[type="checkbox"] { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
|
|
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
|
|
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
|
|
.input-group { display: flex; gap: 8px; }
|
|
.input-group > input { flex: 1; }
|
|
|
|
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); font-size: 14px; }
|
|
.alert .icon { margin-top: 2px; }
|
|
.alert--error { background: color-mix(in srgb, var(--danger) 13%, transparent); color: var(--danger); }
|
|
.alert--info { background: var(--accent-soft); color: var(--text); }
|
|
.alert--warn { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--text); }
|
|
|
|
/* ---------- auth ---------- */
|
|
.page-auth main { display: grid; place-items: center; padding: 48px 16px; }
|
|
.auth-card {
|
|
width: 100%; max-width: 400px; padding: 34px 30px 26px;
|
|
background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 8px);
|
|
box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px;
|
|
}
|
|
.auth-card h1 { font-size: 26px; }
|
|
.auth-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
|
|
.auth-mark .icon { width: 22px; height: 22px; }
|
|
.auth-back { display: inline-flex; align-items: center; gap: 6px; justify-content: center; color: var(--faint); font-size: 13px; text-decoration: none; margin-top: 4px; }
|
|
.auth-back:hover { color: var(--text); }
|
|
|
|
/* ---------- site password gate ---------- */
|
|
.page-gate main { position: relative; display: grid; place-items: center; min-height: 100dvh; padding: 32px 16px; overflow: hidden; }
|
|
.gate-bg {
|
|
position: fixed; inset: -40px; z-index: 0; pointer-events: none; overflow: hidden;
|
|
filter: blur(18px) saturate(1.2); opacity: 0.85;
|
|
}
|
|
.gate-bg .container { padding-top: 96px; }
|
|
.gate-sk-profile { display: flex; align-items: center; gap: 28px; padding-bottom: 40px; }
|
|
.gate-sk-avatar { width: 112px; height: 112px; border-radius: 50%; background: var(--accent); flex: none; }
|
|
.gate-sk-lines { display: flex; flex-direction: column; gap: 14px; flex: 1; }
|
|
.gate-sk-lines i { display: block; height: 34px; width: min(420px, 70%); border-radius: 10px; background: var(--surface-2); }
|
|
.gate-sk-lines i + i { height: 16px; width: min(280px, 50%); }
|
|
.gate-sk-shelf { padding: 24px 0 36px; }
|
|
.gate-sk-heading { display: block; width: 220px; height: 22px; border-radius: 8px; background: var(--surface-2); margin-bottom: 20px; }
|
|
.gate-sk-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 18px; }
|
|
.gate-sk-row span { aspect-ratio: 2 / 3; border-radius: var(--radius-art); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 55%, var(--surface-2)), var(--surface-2)); }
|
|
.gate-sk-row span:nth-child(3n+2) { background: linear-gradient(200deg, color-mix(in srgb, var(--accent) 25%, var(--surface)), color-mix(in srgb, var(--text) 18%, var(--surface-2))); }
|
|
.gate-sk-row span:nth-child(3n) { background: linear-gradient(140deg, color-mix(in srgb, var(--text) 30%, var(--surface-2)), color-mix(in srgb, var(--accent) 40%, var(--bg))); }
|
|
.gate-card {
|
|
position: relative; z-index: 1;
|
|
background: color-mix(in srgb, var(--surface) 86%, transparent);
|
|
backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3);
|
|
}
|
|
.gate-card h1 { overflow-wrap: anywhere; }
|
|
|
|
/* ---------- toasts ---------- */
|
|
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
|
|
.toast {
|
|
display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 12px;
|
|
background: var(--text); color: var(--bg); font-size: 14px; font-weight: 550; box-shadow: var(--shadow);
|
|
animation: toast-in 0.2s ease-out; pointer-events: auto;
|
|
}
|
|
.toast--error { background: var(--danger); color: #fff; }
|
|
.toast.is-leaving { opacity: 0; transform: translateY(6px); transition: all 0.2s; }
|
|
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
|
|
|
|
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--accent); animation: spin 0.7s linear infinite; flex: none; }
|
|
@keyframes spin { to { transform: rotate(360deg); } }
|
|
|
|
/* ==========================================================================
|
|
Admin
|
|
========================================================================== */
|
|
.admin { padding-top: 32px; }
|
|
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
|
|
.admin-head h1 { font-size: 30px; font-weight: 780; }
|
|
.admin-head p { margin-top: 4px; }
|
|
.admin-head-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
|
|
.admin-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
|
|
.admin .back-link { margin-bottom: 14px; }
|
|
|
|
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); padding: 18px; }
|
|
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
|
|
.panel-head h2 { font-size: 17px; font-weight: 700; }
|
|
|
|
.meter { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: -8px 0 24px; }
|
|
.meter span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width 0.3s; }
|
|
|
|
/* list dashboard */
|
|
.admin-lists { display: flex; flex-direction: column; gap: 10px; }
|
|
.list-card {
|
|
display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 8px;
|
|
background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 2px);
|
|
transition: border-color 0.15s, box-shadow 0.15s;
|
|
}
|
|
.list-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
|
|
.list-card-main { flex: 1; min-width: 0; text-decoration: none; display: flex; align-items: center; gap: 14px; }
|
|
.list-card-covers { display: flex; flex: none; }
|
|
.list-card-covers span { width: 34px; height: 48px; border-radius: 5px; background: var(--surface-2) center / cover; border: 2px solid var(--surface); margin-left: -14px; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
|
|
.list-card-covers span:first-child { margin-left: 0; }
|
|
.list-card-covers.is-square span { height: 34px; }
|
|
.list-card-title { display: block; font-weight: 650; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.list-card-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin-top: 2px; flex-wrap: wrap; }
|
|
.list-card-bar { width: 80px; height: 4px; border-radius: 9px; background: var(--surface-2); overflow: hidden; }
|
|
.list-card-bar span { display: block; height: 100%; background: var(--accent); }
|
|
.list-card-actions { display: flex; gap: 2px; }
|
|
|
|
.onboard { text-align: center; padding: 48px 20px; border: 1px dashed var(--border); border-radius: calc(var(--radius) + 6px); }
|
|
.onboard h2 { font-size: 22px; margin-bottom: 6px; }
|
|
.onboard p { color: var(--muted); }
|
|
.quick-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 24px; }
|
|
|
|
.cat-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
|
|
@media (max-width: 480px) { .cat-picker { grid-template-columns: repeat(2, 1fr); } }
|
|
.cat-option { position: relative; }
|
|
.cat-option input { position: absolute; opacity: 0; pointer-events: none; }
|
|
.cat-option span, .quick-cats button {
|
|
display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px;
|
|
border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg);
|
|
font-size: 13.5px; font-weight: 550; cursor: pointer; text-align: center; color: var(--text);
|
|
transition: border-color 0.15s, background 0.15s;
|
|
}
|
|
.cat-option .icon, .quick-cats .icon { width: 22px; height: 22px; color: var(--accent); }
|
|
.cat-option span:hover, .quick-cats button:hover { border-color: var(--accent); }
|
|
.cat-option--wide { grid-column: 1 / -1; }
|
|
.cat-option--wide span { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 4px 8px; }
|
|
.cat-option--wide small { flex-basis: 100%; font-weight: 400; }
|
|
.cat-option input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
|
|
.cat-option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
.cat-option input:disabled + span { opacity: 0.45; cursor: not-allowed; }
|
|
.style-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
|
|
.style-option { position: relative; }
|
|
.style-option input { position: absolute; opacity: 0; pointer-events: none; }
|
|
.style-option span {
|
|
display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 2px; align-items: center; height: 100%;
|
|
padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); cursor: pointer;
|
|
transition: border-color 0.15s, background 0.15s;
|
|
}
|
|
.style-option .icon { grid-row: span 2; width: 22px; height: 22px; color: var(--accent); }
|
|
.style-option b { font-size: 14px; }
|
|
.style-option small { color: var(--muted); font-size: 12px; line-height: 1.35; }
|
|
.style-option span:hover { border-color: var(--accent); }
|
|
.style-option input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
|
|
.style-option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
@media (max-width: 480px) { .style-picker { grid-template-columns: 1fr; } }
|
|
.size-chips { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
.size-chips button { height: 30px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--border); background: var(--bg); cursor: pointer; font-size: 13px; font-weight: 600; }
|
|
.size-chips button:hover { border-color: var(--accent); }
|
|
.size-chips button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
|
|
|
|
/* list editor */
|
|
.editor { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 20px; align-items: start; }
|
|
.editor-search { position: sticky; top: 76px; max-height: calc(100vh - 92px); display: flex; flex-direction: column; gap: 12px; }
|
|
.editor-search .panel-head { margin-bottom: 0; }
|
|
@media (max-width: 900px) {
|
|
.editor { grid-template-columns: 1fr; }
|
|
.editor-search { position: static; max-height: none; }
|
|
}
|
|
.search-bar { position: relative; display: flex; align-items: center; }
|
|
.search-bar > .icon { position: absolute; left: 12px; color: var(--faint); pointer-events: none; }
|
|
.search-bar input { padding-left: 38px !important; padding-right: 38px !important; }
|
|
.search-bar .spinner { position: absolute; right: 12px; }
|
|
.search-results { overflow-y: auto; margin: 0 -8px; padding: 0 8px; display: flex; flex-direction: column; gap: 4px; min-height: 0; }
|
|
.search-results:empty { display: none; }
|
|
.search-msg { color: var(--muted); font-size: 14px; padding: 8px 2px; }
|
|
.result {
|
|
display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center;
|
|
padding: 8px; border-radius: var(--radius); transition: background 0.12s;
|
|
}
|
|
.result:hover { background: var(--surface-2); }
|
|
.result-art { width: 48px; aspect-ratio: 2 / 3; border-radius: 5px; background: var(--surface-2) center / cover no-repeat; display: grid; place-items: center; color: var(--faint); overflow: hidden; }
|
|
.result-art img { width: 100%; height: 100%; object-fit: cover; }
|
|
.is-square .result-art { aspect-ratio: 1; }
|
|
.result-title { font-weight: 600; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
|
|
.result-sub { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.result-overview { color: var(--faint); font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
|
|
.result-added { font-size: 12px; font-weight: 600; color: var(--success); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
|
|
|
|
.rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
|
|
.rank-row {
|
|
display: grid; grid-template-columns: 28px 64px 44px 1fr auto; align-items: center; gap: 10px;
|
|
padding: 8px 6px; border-radius: var(--radius); background: var(--surface);
|
|
border-bottom: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
|
|
}
|
|
.rank-row:hover { background: var(--surface-2); }
|
|
.rank-row.is-dragging { position: relative; z-index: 5; box-shadow: var(--shadow); background: var(--surface-2); border-color: var(--accent); opacity: 0.96; }
|
|
.rank-row.is-placeholder { background: var(--accent-soft); border: 1px dashed var(--accent); }
|
|
.rank-row.is-placeholder > * { visibility: hidden; }
|
|
.rank-row.is-flash { animation: flash 1.2s ease-out; }
|
|
@keyframes flash { from { background: var(--accent-soft); } }
|
|
.drag-handle { display: grid; place-items: center; width: 28px; height: 36px; color: var(--faint); cursor: grab; touch-action: none; border: 0; background: none; border-radius: 6px; }
|
|
.drag-handle:hover { color: var(--text); background: var(--surface-2); }
|
|
.dragging-active, .dragging-active * { cursor: grabbing !important; user-select: none; }
|
|
.rank-input {
|
|
width: 64px !important; height: 34px !important; padding: 0 6px !important; text-align: center;
|
|
font-weight: 750; font-variant-numeric: tabular-nums; background: transparent !important; border-color: transparent !important;
|
|
}
|
|
.rank-input:hover { border-color: var(--border) !important; }
|
|
.rank-input:focus { background: var(--bg) !important; border-color: var(--accent) !important; }
|
|
.rank-row .result-art { width: 44px; }
|
|
.rank-row-body { min-width: 0; }
|
|
.rank-row-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.rank-row-sub { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; gap: 8px; align-items: center; }
|
|
.rank-row-actions { display: flex; gap: 0; }
|
|
@media (max-width: 640px) {
|
|
.rank-row { grid-template-columns: 24px 50px 38px 1fr auto; gap: 6px; }
|
|
.rank-row .result-art { width: 38px; }
|
|
.rank-input { width: 50px !important; }
|
|
.rank-row-actions .hide-sm { display: none; }
|
|
}
|
|
.rank-empty { text-align: center; padding: 40px 16px; color: var(--muted); }
|
|
|
|
/* item editor dialog */
|
|
.art-edit { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: start; }
|
|
.art-edit .result-art { width: 110px; }
|
|
.art-edit-actions { display: flex; flex-direction: column; gap: 8px; }
|
|
.art-edit-actions .row-btns { display: flex; gap: 6px; flex-wrap: wrap; }
|
|
@media (max-width: 480px) { .art-edit { grid-template-columns: 80px 1fr; } .art-edit .result-art { width: 80px; } }
|
|
|
|
.refresh-art-choice { align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
|
|
.refresh-art-choice input { margin-top: 2px; }
|
|
.refresh-failures { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow-y: auto; }
|
|
.refresh-failures b { color: var(--text); font-weight: 600; }
|
|
|
|
/* settings */
|
|
.settings { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: start; }
|
|
.settings-nav { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 2px; }
|
|
.settings-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 550; font-size: 14px; }
|
|
.settings-nav a:hover { background: var(--surface); color: var(--text); }
|
|
.settings-body { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
|
|
.settings-section { scroll-margin-top: 80px; }
|
|
.settings-section > .panel { display: flex; flex-direction: column; gap: 18px; }
|
|
.settings-section h2 { font-size: 20px; margin-bottom: 4px; }
|
|
.settings-section .section-desc { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
|
|
.settings-actions { display: flex; justify-content: flex-end; gap: 8px; }
|
|
@media (max-width: 860px) {
|
|
.settings { grid-template-columns: 1fr; gap: 16px; }
|
|
.settings-nav { position: static; flex-direction: row; overflow-x: auto; }
|
|
}
|
|
.avatar-edit { display: flex; align-items: center; gap: 16px; }
|
|
.avatar-edit .avatar { width: 72px; height: 72px; font-size: 28px; }
|
|
|
|
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
|
|
.theme-card { position: relative; cursor: pointer; }
|
|
.theme-card input { position: absolute; opacity: 0; pointer-events: none; }
|
|
.theme-swatch {
|
|
display: block; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--border);
|
|
background: var(--bg); color: var(--text); transition: border-color 0.15s, transform 0.15s;
|
|
}
|
|
.theme-card:hover .theme-swatch { transform: translateY(-2px); }
|
|
.theme-card input:checked + .theme-swatch { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
|
|
.theme-card input:focus-visible + .theme-swatch { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
.theme-preview { display: flex; gap: 6px; padding: 12px; background: var(--bg); }
|
|
.theme-preview i { flex: 1; aspect-ratio: 2 / 3; border-radius: 4px; background: var(--surface-2); }
|
|
.theme-preview i:first-child { background: var(--accent); }
|
|
.theme-name { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: var(--surface); font-size: 13px; font-weight: 600; }
|
|
.theme-kind { color: var(--muted); font-size: 11px; font-weight: 500; }
|
|
|
|
.integration { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
|
|
.integration-head { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
|
|
.integration-head h3 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
|
|
.integration-head p { color: var(--muted); font-size: 13px; margin-top: 2px; }
|
|
.integration .field-hint a { color: var(--accent); }
|
|
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
|
|
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
|
|
.status.is-ok { color: var(--success); }
|
|
.status.is-ok::before { background: var(--success); }
|
|
.status.is-off { color: var(--faint); }
|
|
.test-result { font-size: 13px; }
|
|
.test-result.is-ok { color: var(--success); }
|
|
.test-result.is-error { color: var(--danger); }
|
|
.radio-cards { display: flex; gap: 8px; flex-wrap: wrap; }
|
|
.radio-cards label { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; font-size: 14px; }
|
|
.radio-cards label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
|
|
.radio-cards input { accent-color: var(--accent); margin: 0; }
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
|
|
}
|
|
|
|
/* ---------- settings: backups ---------- */
|
|
.backup-status { font-size: 14px; }
|
|
.backup-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
|
|
.backup-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
|
|
.backup-list .backup-when { flex: 1; min-width: 0; font-size: 14px; font-weight: 550; }
|
|
.backup-list .backup-meta { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.backup-list .backup-actions { display: flex; gap: 2px; flex: none; }
|
|
|
|
/* ---------- import ---------- */
|
|
.import-drop {
|
|
display: flex; align-items: center; gap: 14px; padding: 18px; cursor: pointer;
|
|
border: 1.5px dashed var(--border); border-radius: var(--radius); background: var(--surface);
|
|
transition: border-color 0.15s, background 0.15s;
|
|
}
|
|
.import-drop:hover, .import-drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
|
|
.import-drop > .icon { width: 24px; height: 24px; color: var(--accent); flex: none; }
|
|
.import-drop-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
|
|
.import-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
|
|
.import-dialog { max-width: min(760px, calc(100vw - 32px)); width: 100%; }
|
|
.import-dialog-inner { display: flex; flex-direction: column; max-height: calc(100dvh - 48px); }
|
|
.import-body { display: flex; flex-direction: column; gap: 12px; overflow-y: auto; min-height: 0; }
|
|
.import-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
|
|
.import-summary { font-weight: 600; font-size: 14px; }
|
|
.import-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
|
|
.import-row { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); }
|
|
.import-row.is-review, .import-row.is-none, .import-row.is-error { border-color: color-mix(in srgb, var(--warn) 45%, var(--border)); }
|
|
.import-row-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
|
|
.import-num { color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; min-width: 2.5ch; text-align: right; }
|
|
.import-src { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.import-src b { font-weight: 600; }
|
|
.badge--ok { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
|
|
.badge .icon { width: 12px; height: 12px; }
|
|
.import-chosen { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding-left: calc(2.5ch + 10px); }
|
|
.import-card { display: flex; align-items: center; gap: 10px; min-width: 0; }
|
|
.import-card .result-art { width: 38px; flex: none; }
|
|
.import-card-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
|
|
.import-card .result-title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
|
|
.import-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
|
|
.import-opt { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; min-width: 0; }
|
|
.import-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
|
|
.import-opt input { accent-color: var(--accent); margin: 0; flex: none; }
|
|
.import-opt.is-new, .import-opt.is-skip { font-size: 13.5px; }
|
|
.import-new { display: flex; align-items: center; gap: 8px; min-width: 0; }
|
|
.import-new .icon { width: 16px; height: 16px; color: var(--accent); flex: none; }
|
|
.import-again { display: flex; align-items: center; gap: 8px; }
|
|
.import-again > .icon { width: 16px; height: 16px; color: var(--faint); flex: none; }
|
|
.import-row .import-again input[type="search"] { flex: 1; min-width: 0; height: 30px; font-size: 13px; }
|
|
.dialog-foot > .alert { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
|