/* News feed */
.nf-list { display: grid; gap: 10px; }
.nf-item { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.nf-item:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.nf-link { display: grid; grid-template-columns: 200px 1fr; color: var(--text); }
.nf-link:hover { text-decoration: none; }
.nf-link:not(:has(.nf-img)) { grid-template-columns: 1fr; }
.nf-img { width: 100%; height: 100%; min-height: 120px; max-height: 160px; object-fit: cover; background: var(--panel-3); }
.nf-body { padding: 12px 14px 34px; min-width: 0; }
.nf-meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.nf-icon { width: 16px; height: 16px; border-radius: 3px; flex: none; }
.nf-ico { width: 20px; height: 20px; display: grid; place-items: center; } /* keeps the grid cell when the favicon fails */
.nf-src { font-weight: 700; color: var(--text); }
.nf-item h3 { margin: 6px 0 4px; font-size: 16px; line-height: 1.35; }
.nf-item p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nf-item.read h3 { color: var(--muted); font-weight: 500; }
.nf-item.read .nf-img { opacity: .55; }
.nf-actions { position: absolute; right: 8px; bottom: 6px; display: flex; gap: 4px; align-items: center; }
.nf-src-btn { background: none; border: 0; color: var(--muted); font-size: 11px; cursor: pointer; padding: 2px 4px; }
.nf-src-btn:hover { color: var(--accent); }
.nf-warn { background: color-mix(in srgb, var(--star) 12%, var(--panel)); border: 1px solid color-mix(in srgb, var(--star) 40%, var(--line)); border-radius: 10px; padding: 8px 12px; font-size: 13px; margin-bottom: 10px; }
.nf-add { display: grid; grid-template-columns: 1fr 140px auto; gap: 8px; margin-bottom: 10px; }
.nf-add .search { padding-left: 12px; }
.nf-src-row { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border-top: 1px solid var(--line); }
.nf-src-row:first-child { border-top: 0; }
.nf-src-tools { display: flex; gap: 6px; align-items: center; }
.nf-cat { width: 120px; padding: 6px 8px; }
.nf-ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.count.soft { background: var(--accent); }
.nf-new { font-size: 10px; font-weight: 800; color: #fff; background: var(--accent); border-radius: 99px; padding: 1px 7px; }

/* Videolar */
.yt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px 14px; }
.yt-card { min-width: 0; }
.yt-thumb { display: block; position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--panel-3); }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .15s; }
.yt-card:hover .yt-thumb img { transform: scale(1.03); }
.yt-badge { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.75); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 5px; }
.yt-new { position: absolute; right: 6px; top: 6px; background: var(--live); color: #fff; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 5px; }
.yt-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; color: var(--text); font-weight: 700; font-size: 14px; line-height: 1.35; }
.yt-card.seen .yt-title { color: var(--muted); font-weight: 500; }
.yt-card.seen .yt-thumb img { opacity: .5; }
.yt-acts { display: flex; gap: 4px; margin-top: 6px; }
.yt-acts button { background: none; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: 12px; padding: 3px 8px; cursor: pointer; }
.yt-acts button:hover { color: var(--text); border-color: var(--accent); }
