/* "Popular on Bluesky right now" in the home page's right card (staging, trends.js, 2026-10-24) */
.bt-wrap { flex: 1 1 auto; padding-top: 0; }
.bt-block { display: flex; flex-direction: column; min-height: 0; }
.bt-block .bk-block-head h3 { display: flex; align-items: center; gap: 6px; }
.bt-ic { width: 15px; height: 15px; flex: none; vertical-align: -2px; }
.bt-updated { font-size: 11px; color: #6b7686; }
.bt-intro { margin: 0 0 8px; }
.bt-wait { margin: 10px 0; font-size: 13px; color: #6b7686; }

.bt-topics { display: flex; flex-direction: column; gap: 2px; }
.bt-topic { display: grid; grid-template-columns: 22px 1fr; column-gap: 8px; align-items: baseline; width: 100%; padding: 8px 8px; border: 0; border-radius: 8px;
    background: transparent; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.bt-topic:hover, .bt-topic:focus-visible { background: rgba(10, 122, 252, .08); }
.bt-rank { grid-row: span 2; font-size: 13px; font-weight: 700; color: var(--primary-color, #0a7afc); text-align: right; }
.bt-tname { font-size: 14px; font-weight: 600; line-height: 1.3; }
.bt-topic small { font-size: 12px; color: #6b7686; }
.bt-hot { margin-left: 6px; padding: 1px 6px; border-radius: 9px; background: #fde8e8; color: #c0392b; font-size: 11px; font-style: normal; font-weight: 600; vertical-align: 1px; }

.bt-rhead { display: flex; gap: 8px; align-items: flex-start; padding-bottom: 8px; border-bottom: 1px solid var(--card-border, #e6e6e6); }
.bt-rhead b { display: block; font-size: 14px; }
.bt-rhead small { display: block; font-size: 12px; color: #6b7686; line-height: 1.35; }
.bt-back { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--card-border, #d5dce8); border-radius: 8px; background: #fff; cursor: pointer; color: inherit; }
.bt-back:hover { background: rgba(10, 122, 252, .08); }
.bt-posts { max-height: 620px; overflow-y: auto; overscroll-behavior: contain; }

.bt-post { display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--card-border, #e6e6e6); }
.bt-post.bt-new { animation: bt-flash 2.5s ease-out; }
@keyframes bt-flash { from { background: rgba(10, 122, 252, .14); } to { background: transparent; } }
.bt-av { display: block; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: #dfe6f0; }
.bt-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bt-body { min-width: 0; }
.bt-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.bt-head a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; text-decoration: none; }
.bt-head a:hover b { text-decoration: underline; }
.bt-head small, .bt-time { color: #6b7686; font-size: 12px; }
.bt-time { flex: none; }
.bt-check { width: 14px; height: 14px; margin-left: 3px; color: var(--primary-color, #0a7afc); vertical-align: -2px; }
.bt-replyto { font-size: 12px; color: #6b7686; }
.bt-text { margin-top: 3px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.bt-text a { color: var(--primary-color, #0a7afc); text-decoration: none; }
.bt-text a:hover { text-decoration: underline; }

.bt-imgs { display: grid; gap: 4px; margin-top: 8px; border-radius: 10px; overflow: hidden; }
.bt-imgs.n2, .bt-imgs.n3, .bt-imgs.n4 { grid-template-columns: 1fr 1fr; }
.bt-imgs img { display: block; width: 100%; max-height: 260px; object-fit: cover; background: #eef1f5; }
.bt-imgs.n2 img, .bt-imgs.n3 img, .bt-imgs.n4 img { height: 140px; }
.bt-video { position: relative; display: block; margin-top: 8px; border-radius: 10px; overflow: hidden; background: #10161f; color: #fff; text-decoration: none; min-height: 60px; }
.bt-video img { display: block; width: 100%; max-height: 260px; object-fit: cover; opacity: .85; }
.bt-video .bt-play { position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; padding: 9px; border-radius: 50%; background: rgba(0, 0, 0, .55); fill: #fff; }
.bt-video span { position: absolute; left: 10px; bottom: 8px; font-size: 12px; font-weight: 600; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.bt-link { display: flex; gap: 10px; margin-top: 8px; padding: 8px; border: 1px solid var(--card-border, #e6e6e6); border-radius: 10px; color: inherit; text-decoration: none; background: #fff; }
.bt-link img { flex: none; width: 72px; height: 72px; object-fit: cover; border-radius: 6px; background: #eef1f5; }
.bt-link span { min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.bt-link small { color: #4f5b6b; font-size: 12px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bt-link em { color: #6b7686; font-size: 11px; font-style: normal; }
.bt-quote { display: block; margin-top: 8px; padding: 8px 10px; border: 1px solid var(--card-border, #e6e6e6); border-radius: 10px; font-size: 13px; color: inherit; text-decoration: none; background: #fff; }
.bt-qhead { display: block; font-weight: 600; margin-bottom: 2px; }
.bt-qhead small { font-weight: 400; color: #6b7686; }

.bt-stats { display: flex; align-items: center; gap: 16px; margin-top: 8px; font-size: 12px; color: #6b7686; }
.bt-stats > * { display: inline-flex; align-items: center; gap: 4px; }
.bt-replies { padding: 2px 6px; margin-left: -6px; border: 0; border-radius: 6px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.bt-replies:hover:not(:disabled), .bt-replies[aria-expanded="true"] { background: rgba(10, 122, 252, .1); color: var(--primary-color, #0a7afc); }
.bt-replies:disabled { cursor: default; }
.bt-open { margin-left: auto; color: #6b7686; text-decoration: none; }
.bt-open:hover { color: var(--primary-color, #0a7afc); }
.bt-thread { margin-top: 6px; padding-left: 10px; border-left: 2px solid var(--card-border, #e6e6e6); }
.bt-reply { grid-template-columns: 28px 1fr; padding: 8px 0; }
.bt-reply .bt-av { width: 28px; height: 28px; }
.bt-reply:last-child { border-bottom: 0; }
.bt-more { display: inline-block; margin: 6px 0 2px; font-size: 12px; font-weight: 600; color: var(--primary-color, #0a7afc); text-decoration: none; }

@media (max-width: 600px) {
    .bt-posts { max-height: 70vh; }
    .bt-link img { width: 56px; height: 56px; }
}
.bt-block [hidden] { display: none !important; }
.bt-reply .bt-open span { display: none; }

/* More room for the reader (owner, 2026-10-24): per hour and "Bluesky right now" side by side */
@media (min-width: 601px) {
    .domains-container .bk-dom-top { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .domains-container .bk-dom-top .bk-block { min-width: 0; }
    .domains-container .bk-dom-top .bk-now-total { font-size: 22px; }
}
.bt-posts { max-height: 900px; }
.bt-topic { padding: 6px 8px; }

/* Under the reader: join Bluesky (compact, owner 2026-10-24) */
.bt-join { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: linear-gradient(135deg, #0a7afc, #3d9bff); color: #fff; }
.bt-join b { display: block; font-size: 14px; margin-bottom: 2px; }
.bt-join p { margin: 0 0 8px; font-size: 12px; line-height: 1.4; opacity: .95; }
.bt-join .bt-jbtns { display: flex; flex-wrap: wrap; gap: 6px; }
.bt-join a { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 7px; font-size: 12px; font-weight: 600; text-decoration: none; }
.bt-join a.bt-jmain { background: #fff; color: #0862ca; }
.bt-join a.bt-jsub { color: #fff; border: 1px solid rgba(255, 255, 255, .6); }
.bt-join a:hover { filter: brightness(.96); }
@media (min-width: 601px) {
    .domains-container .bk-dom-top .bk-block-head h3 { font-size: 13px; }
    .domains-container .bk-dom-top .bk-block-head a { white-space: nowrap; }
    .domains-container .bk-dom-top .bk-now-total { font-size: 20px; line-height: 1.3; }
}

/* Topics look clickable; the reader fills the card's height (matched to the left card) on desktop (owner, 2026-10-24) */
.bt-topics { gap: 6px; }
.bt-topic { grid-template-columns: 22px 1fr 16px; padding: 8px 10px; border: 1px solid rgba(10, 122, 252, .35); background: #fff; transition: border-color .15s, box-shadow .15s; }
.bt-topic:hover, .bt-topic:focus-visible { border-color: var(--primary-color, #0a7afc); background: #fff; box-shadow: 0 2px 8px rgba(10, 122, 252, .15); }
.bt-topic .bt-chev { grid-row: 1 / span 2; grid-column: 3; align-self: center; width: 16px; height: 16px; color: var(--primary-color, #0a7afc); }
.bt-topic small { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bt-faces { display: inline-flex; }
.bt-faces:empty { display: none; }
.bt-faces img { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; margin-left: -6px; object-fit: cover; background: #dfe6f0; }
.bt-faces img:first-child { margin-left: 0; }
.bt-figs { margin-top: 3px; color: var(--primary-dark, #0862ca) !important; font-weight: 600; }
.bt-reader { display: flex; flex-direction: column; min-height: 0; }
@media (min-width: 577px) {
    .bk-domains .bt-wrap { flex: 1 1 0; min-height: 0; display: flex; }
    .bk-domains .bt-block { flex: 1 1 auto; min-height: 0; }
    .bk-domains .bt-topics, .bk-domains .bt-reader { flex: 1 1 0; min-height: 420px; overflow-y: auto; }
    .bk-domains .bt-posts { flex: 1 1 0; max-height: none; min-height: 0; }
    .bk-domains .bt-topics { justify-content: flex-start; }
    /* A little more room above and between the topics, stacked from the top (owner, 2026-10-27: no spreading out) */
    .bk-domains .bt-topics { gap: 10px; padding-top: 6px; }
}

/* Live home (2026-10-24): the old lists are hidden from the first paint (trends.js then removes them), and on
   phones the topics' space is held while they load, so nothing below jumps */
.domains-container .domains-info, .domains-container .domains-type-info, .domains-container .domains-table-container { display: none !important; }
@media (max-width: 576px) { .bt-topics:has(.bt-wait) { min-height: 560px; } }
/* No "Check an account" block under the reader (owner, 2026-10-24): the tools are in the menu */
.domains-container .bk-dom-bottom { display: none !important; }


/* The open topic's details stand apart from its posts (owner, 2026-10-24): a tinted panel, then a "Posts" label */
.bt-rhead { padding: 10px 12px; margin-bottom: 4px; border: 1px solid rgba(10, 122, 252, .25); border-left: 4px solid var(--primary-color, #0a7afc);
    border-radius: 10px; background: rgba(10, 122, 252, .07); }
.bt-rhead b { font-size: 15px; color: var(--primary-dark, #0862ca); }
.bt-rhead small { color: #4f5b6b; }
.bt-rhead .bt-figs { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(10, 122, 252, .18); }
.bt-rhead .bt-back { background: #fff; }
.bt-plabel { margin: 8px 0 0; padding: 0 2px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6b7686; border-bottom: 1px solid var(--card-border, #e6e6e6); }
.bt-media-note { margin-top: 4px; font-size: 12px; color: #6b7686; font-style: italic; }

/* Category tabs over the topics (staging, 2026-10-25) */
.bt-tabs { display: flex; gap: 3px; flex-wrap: nowrap; margin: 0 0 10px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }   /* one line (owner, 2026-10-25): slides sideways when narrow */
.bt-tabs::-webkit-scrollbar { display: none; }
.bt-tabs[hidden] { display: none; }
.bt-tab { flex: none; white-space: nowrap; padding: 4px 8px; border: 1px solid var(--card-border, #d5dce8); border-radius: 999px; background: #fff; color: #33445a; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.bt-tab:hover { border-color: var(--primary-color, #0a7afc); }
.bt-tab.on { background: var(--primary-color, #0a7afc); border-color: var(--primary-color, #0a7afc); color: #fff; }

/* Freshness badges (staging, 2026-10-25): new, and Bluesky's status */
.bt-badge { margin-left: 6px; padding: 1px 7px; border-radius: 9px; font-size: 11px; font-style: normal; font-weight: 600; vertical-align: 1px; white-space: nowrap; }
.bt-b-new { background: #dcfce7; color: #15803d; }
.bt-b-hot { background: #fde8e8; color: #c0392b; }
.bt-b-cooling { background: #e0f2fe; color: #0369a1; }
.bt-b-stale { background: #f1f3f6; color: #6b7686; }
/* when the tabs slide (phones, small tablets): a fade on the right edge says there is more */
.bt-tabs.bt-more { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }
/* Arrows over the ends of the tab row when the tabs do not fit (owner, 2026-10-25) */
.bt-tabbar { position: relative; margin: 0 0 10px; }
.bt-tabbar[hidden] { display: none; }
.bt-tabbar .bt-tabs { margin: 0; scroll-padding: 0 30px; }
.bt-tarrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; display: grid; place-items: center; width: 28px; height: 28px; padding: 0;
    border: 1px solid var(--card-border, #d5dce8); border-radius: 50%; background: #fff; color: var(--primary-color, #0a7afc); cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.bt-tarrow[hidden] { display: none; }
.bt-tarrow:hover { background: #f2f7ff; }
.bt-tarrow .bt-ic { width: 16px; height: 16px; }
.bt-tl { left: -4px; }
.bt-tr { right: -4px; }
