/* ===== FEED TILES ===== */
.feed-item {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: opacity 0.15s;
}
.feed-item:last-child { border-bottom: none; }
.feed-item:hover { opacity: 0.8; }
.feed-item a {
  text-decoration: none;
  color: inherit;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}
.feed-thumb {
  width: 64px;
  height: 42px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface2);
}

.feed-title {
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feed-meta {
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.feed-meta .dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--text-dim);
}

/* YouTube tile */
.tile-youtube .tile-header h2 { color: var(--red); }
.tile-youtube .tile-header { cursor: pointer; user-select: none; transition: background 0.15s; }
.tile-youtube .tile-header:hover { background: var(--surface2); }
.tile-youtube .tile-badge { background: var(--red-bg); color: var(--red); }

/* Detail section (three-state toggle) */
.youtube-detail { display: none; }
.youtube-detail.open { display: block; }

.yt-item {
  display: flex;
  gap: 0.7rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}
.yt-item:last-child { border-bottom: none; }
.yt-item a {
  display: flex;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  width: 100%;
}
.yt-item:hover { opacity: 0.8; }
.yt-thumb {
  width: 100px;
  min-width: 100px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--surface2);
}
.yt-info { flex: 1; min-width: 0; }
.yt-title {
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.yt-meta {
  font-size: 0.62rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.yt-channel {
  font-weight: 600;
  color: var(--text);
}

/* X tile */
.tile-x .tile-header h2 { color: var(--text); }
.tile-x .tile-header { cursor: pointer; user-select: none; transition: background 0.15s; }
.tile-x .tile-header:hover { background: var(--surface2); }
.tile-x .tile-badge { background: var(--surface2); color: var(--text-dim); }

/* Detail section (three-state toggle) */
.x-detail { display: none; }
.x-detail.open { display: block; }

.x-topic {
  margin-bottom: 0.6rem;
}
.x-topic:last-child { margin-bottom: 0; }
.x-topic-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.x-topic-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.x-accounts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.x-chip {
  display: inline-block;
  font-size: 0.68rem;
  padding: 0.22rem 0.5rem;
  border-radius: 5px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.15s;
  white-space: nowrap;
}
.x-chip:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-bg);
}
.x-chip .x-at {
  color: var(--text-dim);
  font-weight: 400;
}
