/* Layout for feeds */
.rss-items {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}

.rss-container {
  flex: 1 1 min(420px, 48%);
  max-width: 100%;
  background: var(--bg-panel-soft);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
  box-sizing: border-box;
}

.rss-container h2 {
  margin: 0 0 8px 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-warm);
}

.rss-container ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Individual item */
.rss-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
}

.rss-item:last-child {
  border-bottom: none;
}

/* Thumb */
.rss-thumb {
  width: 110px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* Title + date + description */
.rss-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.25;
  text-decoration: none;
}

/* Kill the forced line break between title + date */
.rss-item br {
  display: none;
}

/* Date sits right after the title, not miles below */
.rss-date {
  display: inline-block;
  font-size: 0.75rem;
  margin-left: 6px;
  color: var(--text-muted);
  transform: translateY(1px); /* tiny visual align tweak */
}

/* Keep description tight under the line above */
.rss-description {
  margin: 3px 0 0;
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--text-muted);
}

/* No-image items use single column */
.rss-item:not(:has(.rss-thumb)) {
  grid-template-columns: minmax(0, 1fr);
}

/* Responsive */
@media (max-width: 900px) {
  .rss-container {
    flex: 1 1 100%;
  }

  .rss-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .rss-thumb {
    width: 100%;
    height: 150px;
  }
}
