/* /feed page layout. Card-style feed; reverse-chronological. */

.feed-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.feed-header {
  margin-bottom: 1.25rem;
}

.feed-title {
  font-size: 1.6rem;
  margin: 0 0 0.25rem;
  color: var(--text);
}

.feed-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.feed-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.feed-chip {
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s;
}
.feed-chip:hover {
  border-color: var(--accent);
  color: var(--text);
}
.feed-chip.is-active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.feed-empty,
.feed-status {
  color: var(--text-muted);
  font-style: italic;
  padding: 1rem 0;
  text-align: center;
}

.feed-sentinel {
  height: 1px;
}

/* Item card */

.feed-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feed-item-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.feed-source-badge {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.feed-source-tweet      { color: #1da1f2; border-color: #1da1f244; }
.feed-source-reddit     { color: #ff4500; border-color: #ff450044; }
.feed-source-youtube    { color: #ff0000; border-color: #ff000044; }
.feed-source-patch_note { color: #c89b3c; border-color: #c89b3c44; }
.feed-source-meme       { color: #b85cd8; border-color: #b85cd844; }
.feed-source-stream     { color: #9146ff; border-color: #9146ff44; }
.feed-source-commentary { color: #5eba7d; border-color: #5eba7d44; }
.feed-source-article    { color: #888; }
.feed-source-other      { color: #888; }

.feed-item-author {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}
.feed-item-author:hover { color: var(--accent); }

.feed-item-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.feed-item-time {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.feed-item-title {
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.35;
}
.feed-item-title a {
  color: var(--text);
  text-decoration: none;
}
.feed-item-title a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.feed-item-body {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.5;
}
.feed-item-body p { margin: 0 0 0.5rem; }
.feed-item-body p:last-child { margin-bottom: 0; }
.feed-item-body a { color: var(--accent); }
.feed-item-body img,
.feed-item-body iframe {
  max-width: 100%;
  border-radius: 6px;
}
.feed-item-body iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}
.feed-item-body blockquote {
  border-left: 3px solid var(--border);
  padding-left: 0.75rem;
  margin: 0.5rem 0;
  color: var(--text-muted);
}
.feed-item-body code {
  background: var(--bg);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-size: 0.85em;
}
.feed-item-body pre {
  background: var(--bg);
  padding: 0.6rem;
  border-radius: 4px;
  overflow-x: auto;
}
.feed-item-body ul,
.feed-item-body ol { padding-left: 1.4rem; margin: 0.4rem 0; }

.feed-item-thumb {
  width: 100%;
  border-radius: 6px;
  display: block;
}
.feed-item-thumb-link { display: block; }
