Files
Daan MeijerandClaude Opus 5.5 1322e42fb7
Test and deploy / test (push) Successful in 47s
Test and deploy / edge (push) Successful in 1m44s
Test and deploy / deploy (push) Skipped
Accounts with limits: a Newznab key and a tier per user, daily API and NZB counts, invites
ACCESS=accounts (config/access.ts; open stays the default and behaves as
before): Newznab and the catalog's releases routes name a user (apikey or
the web interface's token), whose tier sets searches and NZBs per UTC day
(Newznab 500/501, the catalog 429) and how far back they see (102/403).
Counted in one upsert per use, so the last one can't be taken twice;
caps, stats and refused requests aren't counted. Signup takes an invite
(SIGNUP), which may give a tier; ace access:invite, access:tier (extends a
running tier), access:suspend. The web interface signs in and shows the
day's usage and the Newznab key.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 00:16:45 +02:00

1020 lines
16 KiB
CSS

:root {
color-scheme: light dark;
--bg: #f6f7f9;
--surface: #ffffff;
--surface-2: #f0f2f5;
--border: #e1e4ea;
--text: #1b1f27;
--muted: #5f6878;
--faint: #8a93a3;
--accent: #2f6fed;
--accent-soft: #e7eefe;
--good: #1f8a4c;
--good-soft: #e3f4ea;
--warn: #9a6400;
--warn-soft: #fbf0d9;
--bad: #b3261e;
--bad-soft: #fbe6e4;
--shadow: 0 10px 30px rgba(20, 28, 45, 0.12);
--radius: 10px;
--mono: ui-monospace, 'SF Mono', 'Cascadia Code', 'JetBrains Mono', Menlo, Consolas, monospace;
--sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #0f1216;
--surface: #161a20;
--surface-2: #1d222a;
--border: #2a303a;
--text: #e6e9ef;
--muted: #a0a8b6;
--faint: #737c8c;
--accent: #6e9bff;
--accent-soft: #1c2740;
--good: #5fcf8e;
--good-soft: #15291e;
--warn: #e8b457;
--warn-soft: #2d2413;
--bad: #f28b82;
--bad-soft: #321a19;
--shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
}
* {
box-sizing: border-box;
}
/* Elements with their own display value must still honour the hidden attribute. */
[hidden] {
display: none !important;
}
html,
body {
margin: 0;
background: var(--bg);
color: var(--text);
font: 15px/1.45 var(--sans);
}
button,
input,
select {
font: inherit;
color: inherit;
}
a {
color: var(--accent);
}
svg {
width: 18px;
height: 18px;
fill: none;
stroke: currentColor;
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
flex: none;
}
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
}
/* --- Top bar ----------------------------------------------------------- */
.topbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
flex-wrap: wrap;
padding: 14px 24px;
background: var(--surface);
border-bottom: 1px solid var(--border);
}
.brand {
display: flex;
align-items: center;
gap: 10px;
font-weight: 650;
color: var(--text);
text-decoration: none;
letter-spacing: -0.01em;
}
.brand-mark {
width: 22px;
height: 22px;
border-radius: 6px;
background:
linear-gradient(var(--surface), var(--surface)) 5px 6px / 12px 2px no-repeat,
linear-gradient(var(--surface), var(--surface)) 5px 10px / 12px 2px no-repeat,
linear-gradient(var(--surface), var(--surface)) 5px 14px / 8px 2px no-repeat,
var(--accent);
}
.stats {
display: flex;
gap: 22px;
margin: 0;
flex-wrap: wrap;
}
.stats div {
display: flex;
flex-direction: column;
}
.stats dt {
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--faint);
}
.stats dd {
margin: 0;
font-weight: 600;
font-variant-numeric: tabular-nums;
}
/* --- Search ------------------------------------------------------------ */
.layout {
max-width: 1180px;
margin: 0 auto;
padding: 22px 24px 60px;
}
.search-row {
display: flex;
gap: 10px;
}
.search-box {
flex: 1;
display: flex;
align-items: center;
gap: 10px;
padding: 0 14px;
height: 48px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
color: var(--muted);
transition: border-color 0.15s, box-shadow 0.15s;
}
.search-box:focus-within {
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-soft);
}
.search-box input {
flex: 1;
min-width: 0;
border: 0;
outline: 0;
background: transparent;
font-size: 16px;
color: var(--text);
}
kbd {
font: 12px var(--mono);
padding: 1px 6px;
border: 1px solid var(--border);
border-radius: 5px;
color: var(--faint);
}
.select select {
height: 48px;
padding: 0 34px 0 12px;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--surface)
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a93a3' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
no-repeat right 10px center / 16px;
appearance: none;
cursor: pointer;
}
.select-small select {
height: 32px;
border-radius: 999px;
font-size: 13px;
}
.filters {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px;
margin-top: 12px;
}
.chip {
display: inline-flex;
align-items: center;
gap: 6px;
height: 32px;
padding: 0 13px;
border: 1px solid var(--border);
border-radius: 999px;
background: var(--surface);
font-size: 13px;
cursor: pointer;
}
/* A chip holding inputs: size bounds and file extensions. */
.field-chip {
display: inline-flex;
align-items: center;
gap: 6px;
height: 32px;
padding: 0 6px 0 13px;
border: 1px solid var(--border);
border-radius: 999px;
background: var(--surface);
font-size: 13px;
color: var(--muted);
}
.field-chip:focus-within {
border-color: var(--accent);
}
.field-chip input {
width: 64px;
height: 24px;
padding: 0 6px;
border: 1px solid var(--border);
border-radius: 6px;
background: var(--surface-2);
color: var(--text);
font: inherit;
}
.field-chip input.ext {
width: 96px;
}
.field-chip .unit {
padding-right: 7px;
}
.chip[aria-pressed='true'],
.chip-active {
border-color: var(--accent);
background: var(--accent-soft);
color: var(--accent);
}
.chip-active button {
border: 0;
background: none;
cursor: pointer;
font-size: 16px;
line-height: 1;
color: inherit;
padding: 0 0 0 2px;
}
/* --- Results ----------------------------------------------------------- */
.summary {
margin: 20px 2px 10px;
color: var(--muted);
font-size: 13px;
}
/* While a new search runs, the previous results stay in place but greyed out. */
.release-list.stale {
opacity: 0.4;
pointer-events: none;
transition: opacity 0.12s ease-out;
}
.results[aria-busy='true'] .summary::after {
content: '';
display: block;
height: 2px;
margin-top: 6px;
border-radius: 1px;
background: linear-gradient(90deg, transparent, var(--accent), transparent);
background-size: 40% 100%;
background-repeat: no-repeat;
animation: searching 1s linear infinite;
}
@keyframes searching {
from {
background-position: -40% 0;
}
to {
background-position: 140% 0;
}
}
@media (prefers-reduced-motion: reduce) {
.results[aria-busy='true'] .summary::after {
animation: none;
background: var(--accent-soft);
}
}
.release-list {
list-style: none;
margin: 0;
padding: 0;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
}
.release-list:empty {
display: none;
}
.release {
display: flex;
align-items: center;
gap: 14px;
border-top: 1px solid var(--border);
}
.release:first-child {
border-top: 0;
}
.release:hover,
.release.selected {
background: var(--surface-2);
}
.release-main {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 3px;
padding: 12px 0 12px 16px;
border: 0;
background: none;
text-align: left;
cursor: pointer;
}
.release-main:focus-visible {
outline: 2px solid var(--accent);
outline-offset: -2px;
}
.release-name {
font-weight: 560;
overflow-wrap: anywhere;
}
.release-name.obfuscated {
font-family: var(--mono);
font-size: 13px;
font-weight: 450;
color: var(--muted);
}
.release-inner {
font-size: 12.5px;
color: var(--muted);
overflow-wrap: anywhere;
}
.release-inner::before {
content: "↳ ";
color: var(--faint);
}
.release-meta {
font-size: 12.5px;
color: var(--faint);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.release-side {
display: flex;
align-items: center;
gap: 12px;
padding-right: 10px;
flex: none;
}
.release-size {
width: 76px;
text-align: right;
font-variant-numeric: tabular-nums;
font-size: 13.5px;
color: var(--muted);
}
.badges {
display: flex;
gap: 6px;
justify-content: flex-end;
}
.badge {
display: inline-flex;
align-items: center;
gap: 4px;
height: 22px;
padding: 0 8px;
border-radius: 6px;
font-size: 11.5px;
font-weight: 560;
white-space: nowrap;
background: var(--surface-2);
color: var(--muted);
}
.badge-good {
background: var(--good-soft);
color: var(--good);
}
.badge-warn {
background: var(--warn-soft);
color: var(--warn);
}
.badge-bad {
background: var(--bad-soft);
color: var(--bad);
}
.badge-accent {
background: var(--accent-soft);
color: var(--accent);
}
.icon-button {
display: inline-grid;
place-items: center;
width: 34px;
height: 34px;
border: 1px solid transparent;
border-radius: 8px;
background: none;
color: var(--muted);
cursor: pointer;
}
.icon-button:hover {
border-color: var(--border);
background: var(--surface);
color: var(--text);
}
.more {
display: flex;
justify-content: center;
margin-top: 16px;
}
.button {
display: inline-flex;
align-items: center;
gap: 8px;
height: 38px;
padding: 0 16px;
border: 1px solid var(--border);
border-radius: 8px;
background: var(--surface);
font-weight: 560;
font-size: 14px;
text-decoration: none;
color: var(--text);
cursor: pointer;
}
.button:hover {
border-color: var(--faint);
}
.button-primary {
background: var(--accent);
border-color: var(--accent);
color: #fff;
}
.button-primary:hover {
filter: brightness(1.07);
border-color: var(--accent);
}
.empty {
text-align: center;
color: var(--muted);
padding: 40px 0;
}
/* --- Detail drawer ----------------------------------------------------- */
.scrim {
position: fixed;
inset: 0;
background: rgba(10, 14, 20, 0.35);
z-index: 10;
}
.drawer {
position: fixed;
top: 0;
right: 0;
bottom: 0;
width: min(640px, 100%);
display: flex;
flex-direction: column;
background: var(--surface);
border-left: 1px solid var(--border);
box-shadow: var(--shadow);
z-index: 11;
animation: slide-in 0.18s ease-out;
}
@keyframes slide-in {
from {
transform: translateX(24px);
opacity: 0;
}
}
.drawer-head {
display: flex;
align-items: flex-start;
gap: 12px;
padding: 20px 20px 14px 24px;
border-bottom: 1px solid var(--border);
}
.drawer-title {
flex: 1;
min-width: 0;
}
.eyebrow {
margin: 0 0 4px;
font-size: 11.5px;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--faint);
}
.drawer h2 {
margin: 0;
font-size: 18px;
line-height: 1.3;
overflow-wrap: anywhere;
}
.drawer-body {
flex: 1;
overflow-y: auto;
padding: 18px 24px 40px;
}
.actions {
display: flex;
gap: 8px;
flex-wrap: wrap;
margin-bottom: 18px;
}
.facts {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: 12px 18px;
margin: 0 0 22px;
}
.facts dt {
font-size: 11.5px;
color: var(--faint);
}
.facts dd {
margin: 2px 0 0;
font-weight: 560;
overflow-wrap: anywhere;
}
.link-button {
border: 0;
padding: 0;
background: none;
color: var(--accent);
cursor: pointer;
text-align: left;
font-weight: 560;
}
.notice {
display: flex;
gap: 10px;
align-items: flex-start;
padding: 11px 14px;
margin-bottom: 18px;
border-radius: 8px;
font-size: 13.5px;
}
.notice-bad {
background: var(--bad-soft);
color: var(--bad);
}
.notice-good {
background: var(--good-soft);
color: var(--good);
}
.notice .password {
padding: 1px 6px;
border-radius: 4px;
background: var(--surface);
color: var(--text);
font-family: var(--mono);
user-select: all;
overflow-wrap: anywhere;
}
.spot {
display: flex;
gap: 16px;
align-items: flex-start;
}
.spot-image {
flex: none;
width: 140px;
height: auto;
border-radius: 6px;
background: var(--surface-2);
}
.spot-body {
flex: 1;
min-width: 0;
}
.spot-body .facts {
margin-bottom: 14px;
}
.spot-description {
font-size: 13.5px;
line-height: 1.55;
overflow-wrap: anywhere;
}
.spot-description a,
.spot-links a {
color: var(--accent);
}
.spot-links {
display: flex;
flex-direction: column;
gap: 4px;
margin-top: 12px;
font-size: 13px;
overflow-wrap: anywhere;
}
@media (max-width: 560px) {
.spot {
flex-direction: column;
}
}
.notice-warn {
background: var(--warn-soft);
color: var(--warn);
}
.progress {
height: 6px;
margin-top: 8px;
border-radius: 99px;
background: var(--border);
overflow: hidden;
}
.progress span {
display: block;
height: 100%;
background: currentColor;
}
.section-title {
display: flex;
align-items: baseline;
justify-content: space-between;
margin: 24px 0 8px;
font-size: 13px;
font-weight: 650;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--muted);
}
.section-title small {
font-weight: 500;
text-transform: none;
letter-spacing: 0;
color: var(--faint);
}
.file-table {
width: 100%;
border-collapse: collapse;
font-size: 13px;
}
.file-table td {
padding: 7px 8px 7px 0;
border-top: 1px solid var(--border);
vertical-align: top;
}
.file-table tr:first-child td {
border-top: 0;
}
.file-table .name {
font-family: var(--mono);
font-size: 12.5px;
overflow-wrap: anywhere;
}
.file-table .posted {
display: block;
margin-top: 2px;
font-size: 11.5px;
color: var(--faint);
}
.file-table .num {
text-align: right;
white-space: nowrap;
color: var(--muted);
font-variant-numeric: tabular-nums;
}
.file-table .state {
width: 22px;
text-align: center;
}
.ok {
color: var(--good);
}
.missing {
color: var(--faint);
}
.skeleton {
height: 14px;
margin: 10px 0;
border-radius: 4px;
background: linear-gradient(90deg, var(--surface-2), var(--border), var(--surface-2));
background-size: 200% 100%;
animation: shimmer 1.2s infinite linear;
}
@keyframes shimmer {
to {
background-position: -200% 0;
}
}
/* --- Small screens ----------------------------------------------------- */
@media (max-width: 720px) {
.topbar,
.layout {
padding-left: 14px;
padding-right: 14px;
}
.stats {
gap: 14px;
}
.search-row {
flex-direction: column;
}
.release {
flex-wrap: wrap;
gap: 0;
}
.release-main {
padding-right: 16px;
}
.release-side {
width: 100%;
padding: 0 10px 10px 16px;
justify-content: flex-start;
}
.release-size {
width: auto;
margin-left: auto;
}
kbd {
display: none;
}
}
.contents {
display: grid;
gap: 10px;
}
.inspection {
border: 1px solid var(--border);
border-radius: 8px;
padding: 10px 12px;
}
.inspection-head {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 6px;
}
.inspection-head .name {
font-family: var(--mono);
font-size: 12.5px;
overflow-wrap: anywhere;
margin-right: auto;
}
.inspection-names {
margin: 8px 0 0;
padding-left: 18px;
font-size: 13px;
overflow-wrap: anywhere;
}
.inspection small {
display: block;
margin-top: 4px;
color: var(--faint);
}
/* --- Account (ACCESS=accounts) ------------------------------------------ */
.account-button {
height: 32px;
padding: 0 12px;
font-size: 13px;
}
.account-button .tier {
color: var(--accent);
text-transform: uppercase;
font-size: 11px;
letter-spacing: 0.04em;
}
.dialog {
width: min(420px, calc(100vw - 32px));
padding: 0;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--surface);
color: var(--text);
box-shadow: var(--shadow);
}
.dialog::backdrop {
background: rgba(10, 14, 20, 0.35);
}
.dialog-head {
display: flex;
align-items: center;
justify-content: space-between;
padding: 14px 18px;
border-bottom: 1px solid var(--border);
}
.dialog-head h2 {
margin: 0;
font-size: 16px;
}
.dialog-body {
padding: 18px;
}
.form {
display: grid;
gap: 12px;
}
.form label {
display: grid;
gap: 4px;
font-size: 13px;
color: var(--muted);
}
.form input {
height: 38px;
padding: 0 10px;
border: 1px solid var(--border);
border-radius: 8px;
background: var(--bg);
color: var(--text);
font-size: 14px;
}
.form input:focus {
outline: 2px solid var(--accent-soft);
border-color: var(--accent);
}
.form .button {
justify-content: center;
}
.form-switch {
margin: 4px 0 0;
font-size: 13px;
color: var(--muted);
text-align: center;
}
.form-error {
margin: 0;
color: var(--bad);
font-size: 13px;
}
.api-key {
display: flex;
gap: 8px;
align-items: center;
margin-bottom: 18px;
}
.api-key code {
flex: 1;
min-width: 0;
padding: 8px 10px;
border-radius: 8px;
background: var(--bg);
font-family: var(--mono);
font-size: 12.5px;
overflow-wrap: anywhere;
}
.meter {
height: 6px;
margin-top: 4px;
border-radius: 3px;
background: var(--border);
overflow: hidden;
}
.meter span {
display: block;
height: 100%;
background: var(--accent);
}
.meter-full span {
background: var(--bad);
}