body {
  font-family: serif;
  background: #0d0d0d;
  color: #ececec;
}
h1 {
  text-align: center;
}
.limit-note {
  text-align: center;
  font-size: 0.85em;
  color: #888;
  margin-top: -0.8em;
}
ul {
  max-width: 1200px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}
li {
  border-bottom: 0.1px solid gray;
  padding: .8em .9em;
  display: flex;
  gap: 1em;
  align-items: flex-start;
}
li > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  flex: 1;
}
.main {
  flex: 1;
}
a {
  color: #60a5fa;
  font-weight: bold;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.logo {
  width: 10px;
  height: 10px;
}
.top-bar {
  background: #000000cf;
  border-bottom: 1px solid #ef4444;
	position: sticky;
	top: 0px;
	z-index: 110;
  text-align: center;
}
.info {
  text-align: center;
  font-size: 0.8em;
}
.tags {
  margin-left: auto;
  padding-left: 1em;
  white-space: nowrap;
  flex-shrink: 0;
}
.tag {
  color: #ef4444;
  font-family: sans-serif;
  font-size: 0.9em;
}
.tag-dim {
  color: #555;
  font-size: 0.9em;
}
/* proxy tag: solid button */
a.tag-proxy { background: #ef4444; color: #fff; padding: 0.05em 0.5em; font-size: 0.8em; text-decoration: none; }
.added {
  color: #888;
  font-family: sans-serif;
  font-size: 0.85em;
}
.dm {
  color: #f59e0b;
  font-size: 0.9em;
  padding-left: 1em;
}
.snippet {
  width: 100%;
  font-size: 0.95em;
  margin-top: 0.5em;
}
img {
  max-width: 350px;
  max-height: 120px;
}
/* Entries tagged "image": larger, clickable preview (max-* never upscales). */
img.big {
  max-width: 600px;
  max-height: 400px;
}
/* Video-tagged entries: caption overlaid on the thumbnail's bottom-right corner. */
.video-wrap {
  position: relative;
  display: inline-block;
}
.video-note {
  position: absolute;
  bottom: 0.4em;
  right: 0.4em;
  font-size: 0.75em;
  color: #ef4444;
  font-weight: bold;
  font-style: normal;
  pointer-events: none;
}
.x-icon {
  flex-shrink: 0;
  align-self: center;
  font-size: 1.1em;
}
.substack-icon {
  flex-shrink: 0;
  align-self: center;
  width: 1.1em;
  height: 1.1em;
}
.x-full-note {
  display: block;
  margin-top: 0.35em;
  font-size: 0.8em;
  font-style: italic;
  color: #e0245e;
  opacity: 0.85;
}
.rss-btn { display: flex; align-items: center; justify-content: center; gap: 0.9em; margin: -0.5em 0 0.5em; }
.rss-btn a { color: #ee802f; font-family: sans-serif; font-size: 0.85em; }
.rss-link-wrap { position: relative; display: inline-block; }
.rss-hover-img { display: none; position: absolute; top: 50%; right: 110%; transform: translateY(-50%); width: 320px; height: auto; z-index: 100; }
.rss-link-wrap:hover .rss-hover-img { display: block; }
.txt-btn { font-family: sans-serif; font-size: 0.85em; color: #888; }

@media (max-width: 600px) {
  li { flex-direction: column; }
  li > div { width: 100%; }
  img { max-width: 100%; }
  /* image-tagged previews must shrink to the column, not overflow it */
  img.big { max-width: 100%; height: auto; }
}
/* Hand-written Markdown note, shown below the snippet (paste-note action). */
.note {
  width: 100%;
  font-size: 0.95em;
  margin-top: 0.5em;
  color: #e0ac00;
}
.note::before {
  content: "\00b6 "; /* ¶ */
  margin-right: 0.4em;
}
.note p:first-child { margin-top: 0; }
.note p:last-child { margin-bottom: 0; }
.note ul, .note ol { margin: 0.3em 0; padding-left: 1.3em; }
.note pre { overflow-x: auto; }

/* Forgejo source logo, top-right of the sticky top-bar (mirrors kairos-music-watcher). */
.forgejo-link { flex-shrink: 0; display: flex; align-items: center; }
.forgejo-link img { width: 28px; height: 28px; opacity: 0.65; }
.forgejo-link:hover img { opacity: 1; }

/* hadeswark logo, top-left of the top-bar — mirrors .forgejo-link on the right. */
.hades-logo { flex-shrink: 0; display: flex; align-items: center; }
.hades-logo img { width: 48px; height: 48px; opacity: 1; }

/* Fallback thumbnail: shown when no image — and even the favicon — could be fetched. */
.logo-fallback { width: 48px; height: 48px; opacity: 0.85; }

/* One-row top-bar: logo | menu | logo. .top-nav wraps the injected menu HTML
   into a single flex child so it stays centered between the two corner logos. */
.top-bar { display: flex; align-items: center; justify-content: center; gap: 0.5em; }
.top-nav { flex: 1 1 auto; min-width: 0; text-align: center; }

/* sidebar stream (SIDEBAR_TAGS): 65% main list + 35% tag stream, same cards */
.layout { display: flex; gap: 2em; align-items: flex-start; max-width: 1800px; margin: 0 auto; }
.main-list { flex: 65 1 0; min-width: 0; }
.sidebar { flex: 35 1 0; min-width: 0; border-left: 1px solid gray; padding-left: 2em; }
.sidebar-title { font-size: 1em; margin: 0 0 0.4em; }
.sidebar-list + .sidebar-title { margin-top: 1.2em; }
.sidebar-list { list-style: none; padding-left: 0; }
.sidebar img.big, .sidebar img { max-width: 100%; height: auto; }
@media (min-width: 701px) { .main-list > .sidebar-only { display: none; } }
@media (max-width: 700px) { .layout { display: block; } .main-list { width: 100%; } .sidebar { display: none; } }