/* Home page (/): intro, top titles this week, recent uploads, tags. */
.home-intro { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin: 12px 0 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.home-intro h1 { margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.home-intro p { margin: 10px 0 0; max-width: 42em; font-size: 17px; }
.home-account { display: flex; margin: 0 !important; }
.home-account .button + .button { border-left: 0; }
.home-block { margin: 0 0 32px; }
/* Section head: an uppercase mono label, then a tick scale to the right edge. */
.home-block-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.home-block-head h2 { margin: 0; font: 12px/1.4 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--fg); }
.home-block-head::after { content: ""; order: 1; flex: 1; height: 7px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 16px 7px; }
.home-block-head a { order: 2; font: 12px var(--ui); letter-spacing: .06em; text-transform: uppercase; }

.top-titles { list-style: none; margin: 0; padding: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 18px 14px; border: 1px solid var(--line);
  background: linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 8px 8px, linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 8px 8px, var(--bg); }
.top-titles > li { min-width: 0; font-size: 14px; }
.top-titles .poster { position: relative; display: block; text-decoration: none; aspect-ratio: 2 / 3; background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; }
.top-titles .poster:hover, .top-titles .poster:focus-visible { border-color: var(--accent); }
.top-titles .poster img, .top-titles .noposter { display: block; width: 100%; height: 100%; object-fit: cover; }
/* No poster: a title card in big condensed type. */
.top-titles .noposter { display: flex; align-items: flex-end; padding: 10px 10px 28px; font: 700 22px/1.02 var(--sans); letter-spacing: -.01em; color: var(--muted); overflow-wrap: anywhere; border-top: 3px solid var(--accent-line); }
.top-titles .count { position: absolute; bottom: 0; right: 0; padding: 1px 6px; font: 11px/1.6 var(--mono); background: var(--bg); color: var(--fg); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.top-titles .name { display: block; margin-top: 6px; font-size: 16px; font-weight: 600; line-height: 1.2; color: var(--fg); text-decoration: none; overflow-wrap: anywhere; }
.top-titles .name:hover { color: var(--accent); }
.top-titles .name .muted { font: 12px var(--mono); }
.top-titles .latest { list-style: none; margin: 3px 0 0; padding: 0; }
.top-titles .latest a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 11px/1.6 var(--mono); color: var(--muted); text-decoration: none; }
.top-titles .latest a:hover { color: var(--accent); }

table.recent { width: 100%; border-collapse: collapse; table-layout: fixed; background: var(--panel); border: 1px solid var(--line); }
table.recent th { padding: 7px 12px; text-align: left; font: 11px var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
table.recent td { padding: 7px 12px; border-bottom: 1px solid var(--line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.recent td.t { font-size: 16px; }
table.recent td.t a { color: var(--fg); text-decoration: none; }
table.recent td.t a:hover { color: var(--accent); }
table.recent .kind { width: 170px; font: 11px var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
table.recent tr:has(a[href^="/s/"]) .kind { color: var(--cyan); }
table.recent .when { width: 170px; text-align: right; color: var(--muted); font: 12px var(--mono); }
@media (max-width: 600px) {
  table.recent .kind { display: none; }
  table.recent .when { width: 104px; }
  table.recent .recent-time { display: none; }
  table.recent td.t { white-space: normal; overflow-wrap: anywhere; }
}

.tag-cloud { gap: 6px; }
.tag-cloud small { margin-left: 4px; color: var(--muted); }
