/* Native live-blog feed: posts, scores, polls, key moments, scoreboard,
   reactions, comments. Shared by the home page's live section (index.php)
   and the embed (/live/embed.php). Light theme = [data-theme="light"] on <html>. */

/* ── Native live-blog posts ─────────────────────────────── */
.lb-feed-wrap { position: relative; }
/* New posts insert immediately (no click-through banner) with a brief
   slide-in and a warm highlight that fades out on its own — the animation
   settles into exactly the .lb-post base state, so no JS cleanup needed. */
.lb-post-new {
  animation: lb-post-enter 0.4s ease-out, lb-post-flash 2.5s ease-out;
}
@keyframes lb-post-enter {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lb-post-flash {
  0%   { background: rgba(161,6,6,0.16); }
  65%  { background: rgba(161,6,6,0.16); }
  100% { background: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .lb-post-new { animation: none; }
}
.lb-post {
  padding: 0.75rem 0;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
}
.lb-post:last-child { border-bottom: none; }
.lb-post-pinned {
  border: 1px solid rgba(161,6,6,0.35);
  border-radius: 6px;
  background: rgba(161,6,6,0.08);
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.5rem;
}
.lb-post-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
}
.lb-post-time { font-size: 0.72rem; color: rgba(255,255,255,0.4); font-variant-numeric: tabular-nums; }
.lb-post-pin-flag { font-size: 0.7rem; font-weight: 700; color: #e8928d; text-transform: uppercase; letter-spacing: 0.04em; }
.lb-post-author { display: flex; align-items: center; gap: 0.35rem; margin-bottom: 0.3rem; }
.lb-post-author-avatar { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.lb-post-author-name { font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.7); }
.lb-post-author-tag {
  font-size: 0.65rem; font-weight: 600; color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.06); border-radius: 3px; padding: 0.05rem 0.35rem;
}
.lb-post-body { font-size: 0.88rem; line-height: 1.55; color: rgba(255,255,255,0.85); }
.lb-post-body p:last-child { margin-bottom: 0; }
.lb-post-image { display: block; max-width: 100%; height: auto; border-radius: 6px; margin-top: 0.5rem; }
.lb-post-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 0.4rem; margin-top: 0.5rem; }
.lb-post-images img { width: 100%; height: 110px; object-fit: cover; border-radius: 6px; }
.lb-post-scores { margin-top: 0.6rem; border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; overflow: hidden; }
.lb-scores-badge { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #e8928d; background: rgba(161,6,6,0.12); padding: 0.35rem 0.7rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.lb-scores-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.lb-scores-table td { padding: 0.35rem 0.7rem; border-bottom: 1px solid rgba(255,255,255,0.06); color: rgba(255,255,255,0.85); }
.lb-scores-table tr:last-child td { border-bottom: none; }
.lb-scores-rank { font-family: 'JetBrains Mono', monospace; color: rgba(255,255,255,0.4); width: 2em; }
.lb-embed { margin-top: 0.6rem; }
.lb-embed-youtube { position: relative; width: 100%; padding-top: 56.25%; border-radius: 6px; overflow: hidden; }
.lb-embed-youtube iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lb-embed-twitter { max-width: 100%; overflow-x: auto; }
.lb-embed-ig-card { max-width: 320px; }
.lb-embed-ig-card img { display: block; max-width: 100%; height: auto; border-radius: 6px; }
.lb-embed-ig-card a { display: inline-block; margin-top: 0.35rem; font-size: 0.78rem; }
.lb-post-empty { color: rgba(255,255,255,0.4); font-size: 0.85rem; text-align: center; padding: 2rem 0; }
.lb-post-image { max-height: 70vh; width: auto; cursor: zoom-in; }
.lb-post-images img { cursor: zoom-in; }
.lb-post-edited { font-size: 0.68rem; color: rgba(255,255,255,0.3); font-style: italic; }
.lb-share-btn {
  margin-left: auto; background: none; border: 0; padding: 0.15rem 0.3rem; border-radius: 4px;
  color: rgba(255,255,255,0.35); cursor: pointer; line-height: 0; transition: color 0.12s;
}
.lb-share-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-share-btn:hover, .lb-share-btn:focus-visible { color: #fff; }
.lb-share-btn.copied { color: #6fcf8f; }
.lb-share-btn.copied::after { content: 'Link copied'; font-size: 0.68rem; margin-left: 0.3rem; line-height: 1; vertical-align: 3px; }
/* A shared post (/?post=<id>) gets a slow highlight when the page lands on it */
.lb-post-focus { animation: lb-post-flash 4s ease-out; border-radius: 6px; }
#liveblog-pinned:not(:empty) { margin-bottom: 0.25rem; }
/* "↑ 3 new updates": stays at the top of the feed while the reader is scrolled down */
.lb-new-pill {
  position: sticky; top: 0.25rem; z-index: 5; display: block; margin: 0 auto -2rem; height: 2rem;
  background: #a10606; color: #fff; border: 0; border-radius: 999px; padding: 0 0.95rem;
  font-size: 0.78rem; font-weight: 600; box-shadow: 0 4px 14px rgba(0,0,0,0.45); cursor: pointer;
}
.lb-new-pill[hidden] { display: none; }
.lb-older-wrap { text-align: center; padding: 0.75rem 0 0.25rem; }
.lb-older-wrap[hidden] { display: none; }
.lb-older-btn {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 999px;
  color: rgba(255,255,255,0.75); font-size: 0.8rem; padding: 0.35rem 1rem; cursor: pointer;
}
.lb-older-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.lb-lightbox {
  position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center; padding: 1rem; cursor: zoom-out;
}
.lb-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
body.lb-lightbox-open { overflow: hidden; }
.lb-post-reactions { margin-top: 0.5rem; }
.lb-react-btn {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09);
  border-radius: 999px; padding: 0.15rem 0.55rem; font-size: 0.75rem; cursor: pointer;
  color: rgba(255,255,255,0.5); transition: all 0.12s; line-height: 1.5;
}
.lb-react-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.lb-react-btn.my-reaction { background: rgba(204,0,0,0.15); border-color: rgba(204,0,0,0.5); color: #ff6b6b; }
.lb-react-btn .r-count { font-size: 0.7rem; margin-left: 0.2rem; opacity: 0.85; }
/* Untapped heart: faded until the post is hovered (same as gallery tiles).
   0.55, not 0.4: these buttons are already muted. */
.lb-react-btn.zero { opacity: 0.55; }
.lb-post:hover .lb-react-btn.zero, .lb-react-btn.zero:focus-visible { opacity: 1; }
.lb-react-btn + .lb-react-btn, .lb-react-btn + .lb-react-chip { margin-left: 0.25rem; }
.lb-react-chip { font-size: 0.75rem; color: rgba(255,255,255,0.55); padding: 0.15rem 0.35rem; cursor: help; line-height: 1.5; }
.lb-react-chip .r-count { font-size: 0.7rem; margin-left: 0.2rem; }
.lb-comments { margin-top: 0.55rem; }
.lb-comments-list:not(:empty) { margin-bottom: 0.4rem; }
.lb-comment { padding: 0.3rem 0; border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.8rem; }
.lb-comment:first-child { border-top: none; }
.lb-comment-author { font-weight: 600; color: rgba(255,255,255,0.65); margin-right: 0.4rem; }
.lb-comment-time { font-size: 0.68rem; color: rgba(255,255,255,0.3); }
.lb-comment-body { color: rgba(255,255,255,0.75); margin-top: 0.1rem; word-wrap: break-word; }
.lb-comment-report-btn {
  float: right; background: none; border: none; color: rgba(255,255,255,0.2);
  font-size: 0.75rem; cursor: pointer; padding: 0 0.2rem; transition: color 0.12s;
}
.lb-comment-report-btn:hover { color: rgba(255,100,100,0.6); }
.lb-comment-report-btn.reported { color: rgba(255,100,100,0.35); cursor: default; }
.lb-comment-form { display: flex; gap: 0.4rem; }
.lb-comment-input {
  flex: 1; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 5px; padding: 0.3rem 0.55rem; font-size: 0.8rem; color: #fff;
}
.lb-comment-input:focus { outline: none; border-color: rgba(204,0,0,0.5); background: rgba(255,255,255,0.06); }
.lb-comment-submit {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 5px;
  color: rgba(255,255,255,0.75); font-size: 0.78rem; padding: 0.3rem 0.7rem; cursor: pointer; transition: all 0.12s;
}
.lb-comment-submit:hover { background: rgba(204,0,0,0.2); border-color: rgba(204,0,0,0.5); color: #fff; }
.lb-comment-submit:disabled { opacity: 0.5; cursor: default; }
.lb-comment-msg { font-size: 0.72rem; color: rgba(255,255,255,0.4); margin-top: 0.25rem; min-height: 1em; }
.lb-comment-login-note { font-size: 0.75rem; color: rgba(255,255,255,0.35); }

/* Native posts, scores, reactions, comments */
[data-theme="light"] .lb-post { border-bottom-color: rgba(0,0,0,0.1); }
[data-theme="light"] .lb-post-pinned { background: rgba(161,6,6,0.05); border-color: rgba(161,6,6,0.3); }
[data-theme="light"] .lb-post-time, [data-theme="light"] .lb-scores-rank, [data-theme="light"] .lb-post-empty { color: #697080; }
[data-theme="light"] .lb-post-edited, [data-theme="light"] .lb-share-btn { color: #697080; }
[data-theme="light"] .lb-share-btn:hover { color: #1b1e24; }
[data-theme="light"] .lb-older-btn { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.12); color: #2b2f36; }
[data-theme="light"] .lb-post-pin-flag, [data-theme="light"] .lb-scores-badge { color: #a10606; }
[data-theme="light"] .lb-post-author-name { color: #2b2f36; }
[data-theme="light"] .lb-post-author-tag { color: #5f6675; background: rgba(0,0,0,0.05); }
[data-theme="light"] .lb-post-body, [data-theme="light"] .lb-scores-table td { color: #1b1e24; }
[data-theme="light"] .lb-post-scores { border-color: rgba(0,0,0,0.12); }
[data-theme="light"] .lb-scores-badge { border-bottom-color: rgba(0,0,0,0.08); background: rgba(161,6,6,0.06); }
[data-theme="light"] .lb-scores-table td { border-bottom-color: rgba(0,0,0,0.06); }
[data-theme="light"] .lb-react-btn { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.12); color: #5f6675; }
[data-theme="light"] .lb-react-btn:hover { background: rgba(0,0,0,0.07); color: #000; }
[data-theme="light"] .lb-react-chip { color: #5f6675; }
[data-theme="light"] .lb-react-btn.my-reaction { background: rgba(204,0,0,0.08); border-color: rgba(204,0,0,0.45); color: #b00000; }
[data-theme="light"] .lb-comment { border-top-color: rgba(0,0,0,0.06); }
[data-theme="light"] .lb-comment-author { color: #2b2f36; }
[data-theme="light"] .lb-comment-time, [data-theme="light"] .lb-comment-msg, [data-theme="light"] .lb-comment-login-note { color: #697080; }
[data-theme="light"] .lb-comment-body { color: #1b1e24; }
[data-theme="light"] .lb-comment-report-btn { color: rgba(0,0,0,0.3); }
[data-theme="light"] .lb-comment-input { background: #fff; border-color: rgba(0,0,0,0.15); color: #1b1e24; }
[data-theme="light"] .lb-comment-input:focus { background: #fff; border-color: rgba(204,0,0,0.5); }
[data-theme="light"] .lb-comment-submit { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.15); color: #2b2f36; }
[data-theme="light"] .lb-comment-submit:hover { background: rgba(204,0,0,0.08); border-color: rgba(204,0,0,0.45); color: #000; }

/* ── Key moment flag on a post ── */
.lb-post-key { font-size: 0.7rem; font-weight: 700; color: #f0c44c !important; text-transform: uppercase; letter-spacing: 0.04em; }

/* ── Polls ── */
.lb-poll { margin-top: 0.6rem; display: grid; gap: 0.4rem; max-width: 520px; }
.lb-poll-opt {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 0.5rem;
  width: 100%; min-height: 2.6rem; padding: 0.45rem 0.8rem; text-align: left;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.14); border-radius: 8px;
  color: rgba(255,255,255,0.88); font-size: 0.86rem; cursor: pointer; transition: border-color 0.12s, background 0.12s;
}
.lb-poll-opt:not(:disabled):hover, .lb-poll-opt:not(:disabled):focus-visible { border-color: rgba(204,0,0,0.65); background: rgba(204,0,0,0.08); }
.lb-poll-opt:disabled { cursor: default; opacity: 1; }
.lb-poll-bar { position: absolute; inset: 0 auto 0 0; background: rgba(255,255,255,0.08); transition: width 0.6s ease; }
.lb-poll-mine .lb-poll-bar { background: rgba(161,6,6,0.35); }
.lb-poll-mine { border-color: rgba(204,0,0,0.55); }
.lb-poll-label, .lb-poll-pct { position: relative; }
.lb-poll-label { flex: 1; color: rgba(255,255,255,0.9) !important; }
.lb-poll-pct { font-variant-numeric: tabular-nums; font-weight: 700; color: rgba(255,255,255,0.85) !important; }
.lb-poll-check { color: #ff8a8a !important; font-weight: 700; }
.lb-poll-meta { font-size: 0.74rem; color: rgba(255,255,255,0.45); }
.lb-poll-msg { font-size: 0.74rem; color: #ff9b9b; min-height: 0; }
.lb-poll-msg:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .lb-poll-bar { transition: none; } }

/* ── On the field now / up next ── */
.lb-onfield {
  border: 1px solid rgba(161,6,6,0.35); background: rgba(161,6,6,0.08); border-radius: 8px;
  padding: 0.55rem 0.75rem; margin-bottom: 0.75rem; font-size: 0.8rem; line-height: 1.5;
}
.lb-onfield[hidden], .lb-sb[hidden], .lb-km[hidden] { display: none; }
.lb-of-now + .lb-of-next { margin-top: 0.3rem; }
.lb-of-tag {
  display: inline-block; margin-right: 0.4rem; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: #e8928d !important;
}
.lb-of-now .lb-of-tag::before {
  content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #e8928d;
  margin-right: 0.3rem; vertical-align: 1px; animation: lb-pulse 1.8s infinite;
}
.lb-of-band { font-weight: 600; color: #fff !important; }
.lb-of-time { color: rgba(255,255,255,0.5) !important; font-size: 0.74rem; font-variant-numeric: tabular-nums; }
.lb-of-sep { margin: 0 0.35rem; color: rgba(255,255,255,0.3) !important; }
@keyframes lb-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { .lb-of-now .lb-of-tag::before { animation: none; } }

/* ── Scoreboard ── */
.lb-sb { border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; overflow: hidden; margin-bottom: 0.75rem; background: rgba(255,255,255,0.02); }
.lb-sb-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; padding: 0.55rem 0.75rem 0.35rem; }
.lb-sb-title { font-size: 0.8rem; font-weight: 700; color: #fff !important; }
.lb-sb-upd { font-size: 0.68rem; color: rgba(255,255,255,0.4) !important; }
.lb-sb-tabs { display: flex; gap: 0.3rem; overflow-x: auto; padding: 0 0.75rem 0.4rem; scrollbar-width: none; }
.lb-sb-tab {
  flex-shrink: 0; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 999px;
  color: rgba(255,255,255,0.7); font-size: 0.72rem; padding: 0.2rem 0.65rem; cursor: pointer; white-space: nowrap;
}
.lb-sb-tab.active { background: rgba(161,6,6,0.3); border-color: rgba(204,0,0,0.55); color: #fff; }
.lb-sb-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #ff6b6b; margin-right: 0.3rem; vertical-align: 1px; }
.lb-sb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; padding: 0 0.75rem 0.45rem; font-size: 0.74rem; }
.lb-sb-status { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 3px; padding: 0.1rem 0.4rem; }
.lb-sb-live { background: #a10606; color: #fff !important; }
.lb-sb-final { background: rgba(255,255,255,0.14); color: #fff !important; }
.lb-sb-upcoming { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7) !important; }
.lb-sb-name { font-weight: 600; color: rgba(255,255,255,0.85) !important; }
.lb-sb-note { color: rgba(255,255,255,0.5) !important; }
.lb-sb-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.lb-sb-table td { padding: 0.32rem 0.75rem; border-top: 1px solid rgba(255,255,255,0.06); color: rgba(255,255,255,0.88); }
.lb-sb-rank { width: 2.2em; color: rgba(255,255,255,0.4) !important; font-variant-numeric: tabular-nums; }
.lb-sb-score { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb-sb-table tr:first-child .lb-sb-rank { color: #f0c44c !important; font-weight: 700; }
.lb-sb-tbd { color: rgba(255,255,255,0.3) !important; font-weight: 400; }
.lb-sb-changed td { animation: lb-post-flash 3s ease-out; }
.lb-sb-empty { padding: 0.6rem 0.75rem; font-size: 0.78rem; color: rgba(255,255,255,0.45); }
.lb-sb-all, .lb-km-all {
  display: block; width: 100%; background: none; border: 0; border-top: 1px solid rgba(255,255,255,0.06);
  color: #e8928d; font-size: 0.74rem; padding: 0.4rem; cursor: pointer;
}
.lb-sb-foot { font-size: 0.64rem; color: rgba(255,255,255,0.35); padding: 0.35rem 0.75rem 0.45rem; border-top: 1px solid rgba(255,255,255,0.06); }

/* ── Key moments ── */
.lb-km { border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; margin-bottom: 0.75rem; overflow: hidden; }
.lb-km-head { font-size: 0.8rem; font-weight: 700; color: #f0c44c; padding: 0.5rem 0.75rem 0.3rem; }
.lb-km-list { list-style: none; margin: 0; padding: 0 0 0.25rem; }
.lb-km-list li[hidden] { display: none; }
.lb-km-item {
  display: flex; gap: 0.6rem; width: 100%; text-align: left; background: none; border: 0;
  padding: 0.35rem 0.75rem; color: rgba(255,255,255,0.85); font-size: 0.8rem; line-height: 1.35; cursor: pointer;
}
.lb-km-item:hover, .lb-km-item:focus-visible { background: rgba(255,255,255,0.05); }
.lb-km-time { flex-shrink: 0; width: 3.9em; color: rgba(255,255,255,0.45) !important; font-size: 0.72rem; font-variant-numeric: tabular-nums; padding-top: 0.08rem; }
.lb-km-label { color: rgba(255,255,255,0.85) !important; }
.lb-post-keymoment .lb-post-body { font-weight: 500; }

/* ── Embed (read-only) ── */
.lb-comments-out { font-size: 0.78rem; color: #e8928d; text-decoration: none; }
.lb-comments-out:hover { text-decoration: underline; }

/* ── Light theme for the above ── */
[data-theme="light"] .lb-post-key, [data-theme="light"] .lb-km-head { color: #9a6b00 !important; }
[data-theme="light"] .lb-poll-opt { background: #fff; border-color: rgba(0,0,0,0.15); color: #1b1e24; }
[data-theme="light"] .lb-poll-label, [data-theme="light"] .lb-poll-pct { color: #1b1e24 !important; }
[data-theme="light"] .lb-poll-bar { background: rgba(0,0,0,0.07); }
[data-theme="light"] .lb-poll-mine .lb-poll-bar { background: rgba(161,6,6,0.16); }
[data-theme="light"] .lb-poll-check { color: #a10606 !important; }
[data-theme="light"] .lb-poll-meta { color: #697080; }
[data-theme="light"] .lb-onfield { background: rgba(161,6,6,0.05); }
[data-theme="light"] .lb-of-band, [data-theme="light"] .lb-sb-title, [data-theme="light"] .lb-sb-name { color: #1b1e24 !important; }
[data-theme="light"] .lb-of-time, [data-theme="light"] .lb-sb-upd, [data-theme="light"] .lb-sb-note, [data-theme="light"] .lb-km-time, [data-theme="light"] .lb-sb-rank { color: #697080 !important; }
[data-theme="light"] .lb-of-tag { color: #a10606 !important; }
[data-theme="light"] .lb-sb, [data-theme="light"] .lb-km { border-color: rgba(0,0,0,0.12); background: #fff; }
[data-theme="light"] .lb-sb-tab { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.12); color: #2b2f36; }
[data-theme="light"] .lb-sb-tab.active { background: #a10606; border-color: #a10606; color: #fff; }
[data-theme="light"] .lb-sb-final { background: #2b2f36; }
[data-theme="light"] .lb-sb-upcoming { background: rgba(0,0,0,0.06); color: #2b2f36 !important; }
[data-theme="light"] .lb-sb-table td { border-top-color: rgba(0,0,0,0.07); color: #1b1e24; }
[data-theme="light"] .lb-sb-foot, [data-theme="light"] .lb-sb-empty { color: #697080; border-top-color: rgba(0,0,0,0.07); }
[data-theme="light"] .lb-km-item, [data-theme="light"] .lb-km-label { color: #1b1e24 !important; }
[data-theme="light"] .lb-km-item:hover { background: rgba(0,0,0,0.04); }
[data-theme="light"] .lb-sb-all, [data-theme="light"] .lb-km-all, [data-theme="light"] .lb-comments-out { color: #a10606; border-top-color: rgba(0,0,0,0.07); }

/* "Reconnecting…" while feed requests fail (fetchLiveblogPosts()) */
.lb-conn {
  margin-bottom: 0.6rem; padding: 0.45rem 0.7rem; border-radius: 6px; font-size: 0.78rem;
  background: rgba(240,196,76,0.12); border: 1px solid rgba(240,196,76,0.35); color: #f0c44c;
}
.lb-conn[hidden] { display: none; }
[data-theme="light"] .lb-conn { color: #7a5600; background: rgba(240,196,76,0.15); }

/* ── A native blog's photo gallery, below the blog ── */
.lb-gallery-below { flex: none; border-top: 1px solid rgba(255,255,255,0.08); scroll-margin-top: calc(var(--nav-h, 56px) + 8px); }
.lb-gallery-below .gal-head { padding-top: 1rem; }
[data-theme="light"] .lb-gallery-below { border-top-color: rgba(0,0,0,0.1); }

/* ── Gallery photos up in the blog (inc/liveblog_feed.js) ── */
.lb-photo-strip[hidden], .lb-side-photos[hidden] { display: none; }
.lb-photo-strip { margin: 0 0 0.75rem; }
.lb-ph-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.4rem; font-size: 0.8rem; font-weight: 700; color: rgba(255,255,255,0.85); }
.lb-ph-all { background: none; border: 0; padding: 0; color: #e8928d; font-size: 0.74rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.lb-ph-all:hover { text-decoration: underline; }
.lb-ph-row { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding-bottom: 2px; }
.lb-ph-row::-webkit-scrollbar { display: none; }
.lb-ph-tile {
  position: relative; flex: 0 0 auto; width: 76px; height: 76px; padding: 0; border: 0; border-radius: 8px;
  overflow: hidden; background: #1c1c1c; cursor: zoom-in; scroll-snap-align: start;
}
.lb-ph-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s ease; }
.lb-ph-tile:hover img { transform: scale(1.05); }
.lb-ph-video::after {
  content: '\25B6'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem; text-shadow: 0 1px 6px rgba(0,0,0,0.8); background: rgba(0,0,0,0.15);
}
.lb-ph-new { box-shadow: 0 0 0 2px #e8928d; animation: lb-ph-in 0.5s ease-out; }
@keyframes lb-ph-in { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }
.lb-ph-more {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.1rem;
  color: #fff; font-size: 0.95rem; font-weight: 700; background: rgba(161,6,6,0.35); cursor: pointer;
}
.lb-ph-more small { font-size: 0.62rem; font-weight: 500; opacity: 0.8; }
/* Desktop side column: a 3×3 grid (phones get the strip instead) */
.lb-side-photos { margin-bottom: 0.75rem; }
.lb-ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.lb-ph-grid .lb-ph-tile { width: auto; height: auto; aspect-ratio: 1; }
@media (max-width: 767px) { .lb-side-photos { display: none !important; } }
/* A burst of photos between the posts they were taken between */
.lb-burst { margin: 0.6rem 0; padding: 0.6rem 0.7rem; border-radius: 8px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); }
.lb-burst-head { display: flex; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.45rem; font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.8); }
.lb-burst .lb-burst-time { font-weight: 400; color: rgba(255,255,255,0.4) !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb-burst-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.lb-burst-grid .lb-ph-tile { width: auto; height: auto; aspect-ratio: 1; }
.lb-burst-extra {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.55); color: #fff; font-size: 1.05rem; font-weight: 700;
}
@media (prefers-reduced-motion: reduce) { .lb-ph-new { animation: none; } .lb-ph-tile img { transition: none; } }
[data-theme="light"] .lb-ph-head, [data-theme="light"] .lb-burst-head { color: #1b1e24; }
[data-theme="light"] .lb-ph-all { color: #a10606; }
[data-theme="light"] .lb-ph-tile { background: #e3e5e9; }
[data-theme="light"] .lb-burst { background: #fff; border-color: rgba(0,0,0,0.1); }
[data-theme="light"] .lb-burst .lb-burst-time { color: #697080 !important; }
