/* Публичный чёрный список: полосы с квадратными аватарами Roblox и названием под ними, лента едет по горизонтали; подробности — в окне по центру. Только чтение */
.board-page .top { padding-left: 20px; padding-right: 20px; }
.bd-search { margin-left: auto; width: min(320px, 46vw); height: 38px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface-0); color: var(--text); font-size: 13.5px; outline: none; transition: border-color 140ms ease; }
.bd-search:focus { border-color: var(--accent); }
.bd-search::placeholder { color: #5d6877; }

.bd { width: min(1200px, calc(100% - 40px)); margin: 0 auto; padding: 26px 0 80px; }
.bd-state { padding: 60px 0; color: var(--muted); text-align: center; }

/* полоса списка: заголовок со стрелками и лента плиток, которая едет по горизонтали */
.bd-row { margin-bottom: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-0); }
.bd-row header { display: flex; align-items: center; gap: 10px; padding: 14px 18px 4px; }
.bd-row h3 { font-size: 15px; font-weight: 800; }
.bd-n { min-width: 22px; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--muted); font-size: 12px; font-weight: 800; text-align: center; }

.bd-track { display: flex; gap: 14px; padding: 12px 18px 18px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line-3) transparent; }
.bd-empty { width: 100%; padding: 36px 12px; border: 1px dashed var(--line-2); border-radius: 12px; color: var(--muted); font-size: 14px; text-align: center; }

.bd-card { display: grid; align-content: start; gap: 6px; flex: 0 0 150px; padding: 0; border: 0; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.bd-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 14px; }
.bd-av { display: grid; place-items: center; width: 150px; height: 150px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface-2); overflow: hidden; color: var(--line-3); transition: border-color 140ms ease, transform 140ms ease; }
.bd-card:hover .bd-av { border-color: var(--accent); transform: translateY(-2px); }
.bd-av img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bd-av i { display: grid; place-items: center; width: 100%; height: 100%; }
.bd-av svg { width: 46%; height: 46%; }
.bd-ct { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.bd-sub { color: var(--muted); font-size: 12px; font-weight: 600; }

/* цвета меток */
.bd-label { padding: 5px 11px; border-radius: 7px; color: #fff; font-size: 12.5px; font-weight: 800; }
.bd-label.dark-red { background: #6b1f1f; }
.bd-label.salmon { background: #f0716b; color: #2a0f0e; }
.bd-label.gray { background: #4a4f5a; }
.bd-label.green { background: #2f7d57; }

/* окно: по центру экрана */
.bd-modal { position: fixed; inset: 0; z-index: 50; display: flex; padding: 20px 16px; overflow-y: auto; background: rgba(4, 6, 9, 0.74); backdrop-filter: blur(3px); }
.bd-modal[hidden] { display: none; }
.bd-dialog { width: min(580px, 100%); margin: auto; padding: 20px 24px 26px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7); animation: bd-pop 220ms cubic-bezier(0.2, 0, 0, 1) both; }
@keyframes bd-pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
.bd-dhead { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.bd-col { padding: 4px 10px; border-radius: 7px; background: var(--surface-3); color: var(--muted); font-size: 12.5px; font-weight: 700; }
.bd-copy { margin-left: auto; height: 32px; padding: 0 12px; border: 1px solid var(--line-3); border-radius: 8px; background: transparent; color: var(--text); font: 700 12.5px var(--font-body); cursor: pointer; transition: background 140ms ease, border-color 140ms ease; }
.bd-copy:hover { background: rgba(var(--accent-rgb), 0.1); border-color: var(--accent); }
.bd-x { width: 34px; height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
.bd-x:hover { background: var(--surface-3); color: var(--text); }
.bd-dtop { display: flex; align-items: center; gap: 16px; }
.bd-dav { width: 110px; height: 110px; }
.bd-dialog h2 { font-size: 22px; line-height: 1.3; overflow-wrap: anywhere; }
.bd-dialog h4 { margin: 20px 0 8px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.bd-labels { display: flex; flex-wrap: wrap; gap: 6px; }
.bd-labels .bd-label { padding: 6px 12px; font-size: 13px; }
.bd-fields { list-style: none; display: grid; gap: 12px; font-size: 14.5px; line-height: 1.5; }
.bd-fields span { color: #b4bdc9; }
.bd-fields b { font-weight: 800; overflow-wrap: anywhere; }
.bd-link { color: var(--accent-text); font-weight: 700; overflow-wrap: anywhere; }
.bd-link:hover { text-decoration: underline; }
body.bd-lock { overflow: hidden; }

@media (max-width: 640px) {
  .bd { width: calc(100% - 28px); padding-top: 18px; }
  .bd-track { padding: 10px 14px 16px; gap: 12px; }
  .bd-card { flex-basis: 122px; }
  .bd-av { width: 122px; height: 122px; }
  .bd-dtop { flex-direction: column; align-items: flex-start; }
  .board-page .top .brand span { display: none; }
  .board-page .top .back { font-size: 0; gap: 0; }
}

/* плитки плавно выезжают при показе (каскадом, не дольше первых десяти) */
.bd-card { animation: bd-in 420ms cubic-bezier(0.2, 0, 0, 1) both; animation-delay: calc(min(var(--i, 0), 10) * 45ms); }
@keyframes bd-in { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bd-card, .bd-dialog { animation: none; } }
.bd-q .bd-card { animation: none; }

/* доказательства в окне карточки */
.bd-ev { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.bd-ev img, .bd-ev video { display: block; width: 100%; max-height: 260px; border: 1px solid var(--line-2); border-radius: 10px; background: #000; object-fit: contain; }
.bd-ev a { display: block; }

/* ===== анимации доски ===== */
.bd-modal { animation: bdFade 200ms ease both; }
@keyframes bdFade { from { opacity: 0; } to { opacity: 1; } }
.bd-row { animation: bdUp 480ms var(--ease) both; }
.bd-row:nth-child(2) { animation-delay: 90ms; }
.bd-row:nth-child(3) { animation-delay: 180ms; }
@keyframes bdUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.bd-card .bd-ct { transition: color 160ms ease; }
.bd-card:hover .bd-ct { color: var(--accent-soft); }
.bd-card:hover .bd-av { box-shadow: 0 16px 30px -16px rgba(var(--accent-rgb), 0.75); }
.bd-av { transition: border-color 160ms ease, transform 220ms var(--ease), box-shadow 240ms ease; }
.bd-av img { transition: transform 360ms var(--ease); }
.bd-card:hover .bd-av img { transform: scale(1.06); }
