/* ============================================================
   XORVAULT — bridge layer
   Small additions for shell elements introduced during final
   integration. Loads LAST on purpose; keeps core files clean.
   ============================================================ */

html.scroll-locked {
  overflow: hidden;
}

/* ---- boot splash ---- */
.boot-splash {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-dim, #9aa0ab);
}
.boot-mark {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand, #e50914), #7a0410);
  color: #fff;
  font-weight: 900;
  font-size: 30px;
  display: grid;
  place-items: center;
  animation: bootpulse 1.2s ease-in-out infinite;
}
@keyframes bootpulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.94); opacity: 0.75; }
}
.boot-splash p { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---- header menus ---- */
.menu--notif { width: min(380px, 94vw); }
.menu--profile { width: min(280px, 90vw); }
.linklike {
  margin-left: auto;
  background: none;
  border: 0;
  color: var(--brand, #e50914);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}
.linklike:hover { text-decoration: underline; }

.profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}
.avatar--lg {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 18px;
}
.profile-meta { display: flex; flex-direction: column; line-height: 1.35; }
.profile-meta small { color: var(--text-dim, #9aa0ab); font-size: 12px; }

.menu__item--danger { color: #ff6b6b; }

/* ---- notifications list ---- */
.notif-list { max-height: 340px; overflow-y: auto; overscroll-behavior: contain; }
.notif-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 16px; text-decoration: none; color: inherit;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.15s;
}
.notif-item:hover { background: rgba(255,255,255,.04); }
.notif-item:last-child { border-bottom: 0; }
.notif-poster { width: 44px; height: 62px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: rgba(255,255,255,.06); }
.notif-text { flex: 1; min-width: 0; }
.notif-text b { display: block; font-size: 13px; margin-bottom: 2px; position: relative; }
.notif-item.is-unread .notif-text b::after {
  content: '';
  display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand, #e50914);
  margin-left: 6px; vertical-align: middle;
}
.notif-text small { display: block; color: var(--text-dim, #b6bcc8); font-size: 12px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif-text time { display: block; margin-top: 4px; color: var(--text-dim, #78808d); font-size: 11px; letter-spacing: 0.04em; }
.notif-badge { display: inline-block; font-size: 11px; font-weight: 600; color: var(--brand-500, #e50914); background: rgba(229,9,20,.1); padding: 2px 8px; border-radius: var(--r-full, 999px); margin: 2px 0 3px; }

/* ---- search overlay extras ---- */
.search-kbd {
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dim, #9aa0ab);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 3px 7px;
  white-space: nowrap;
}
.search-hint {
  margin: 22px 0 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim, #9aa0ab);
}
.search-body .grid { margin-top: 4px; }

/* ---- toasts ---- */
.toasts .toast {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toasts .toast.in {
  opacity: 1;
  transform: none;
}

/* ---- footer device readout ---- */
.footer__base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
#foot-device { color: var(--text-dim, #8a919d); font-size: 12px; letter-spacing: 0.03em; }

/* ---- detail page additions ---- */
.tagline {
  color: var(--text-dim, #c3c9d4);
  font-style: italic;
  font-size: 15px;
  margin: 0 0 6px;
}
.related-sec { margin-top: 48px; }
.detail-main .detail-actions { margin-top: 20px; }

/* ---- empty states sizing ---- */
.empty--lg { padding: 72px 24px; }
.empty--lg .empty__icon svg { width: 44px; height: 44px; }
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}

/* ---- catalog toolbar breathing room ---- */
.browse-toolbar { row-gap: 10px; }
.result-count { margin: 14px 0 18px; }
