/* ============================================================
   LIVE NEWS RAIL — the Newspaper Shelf's live wire
   (parts package: live-news-rail-2026-10-16)
   © 2026 Mr. Realla's E-Bikes Hustle LLC — Built from Nothing. Owned Outright. 👑

   Styled to the newspaper page's own tokens (navy #050b1e, panel
   rgba(13,27,62,.85), gold #c9962e, sky #a8e8ff, cream #fdf6e0,
   muted #9fb2dd, Georgia serif) so the rail reads as part of the
   shelf, not a bolt-on.

   LAYOUT (desktop ≥1100px): the page's .wrap becomes a two-column
   grid — shelf in column 1, rail pinned in column 2 beside the
   shelf sections, sticky so the wire rides along while you browse
   225 countries. Under 1100px the grid is off and the rail is a
   plain block after the shelf (it stacks under the papers, never
   squeezes them). No orientation locks anywhere — the rail follows
   the phone all the way around (Full Rotation Law, 2026-10-16).
   ============================================================ */

@media (min-width: 1100px) {
  .wrap--rail { max-width: 1340px; display: grid;
    grid-template-columns: minmax(0, 1fr) 348px; column-gap: 26px; }
  .wrap--rail > header, .wrap--rail > .langbar, .wrap--rail > h1,
  .wrap--rail > .sub, .wrap--rail > .note, .wrap--rail > .libsearch,
  .wrap--rail > .howto, .wrap--rail > .np-none, .wrap--rail > footer { grid-column: 1 / -1; }
  .wrap--rail > .np-cont { grid-column: 1; min-width: 0; }
  .wrap--rail > #mrn-live-rail { grid-column: 2; grid-row: 8 / span 8;
    align-self: start; position: sticky; top: 14px;
    max-height: calc(100vh - 28px); overflow-y: auto; margin-top: 38px;
    scrollbar-width: thin; scrollbar-color: rgba(201,150,46,.55) transparent; }
}
@media (max-width: 1099.98px) {
  #mrn-live-rail { margin-top: 44px; }
}

/* ---------- the panel ---------- */
#mrn-live-rail { background: rgba(24,16,4,.55); border: 1px solid rgba(201,150,46,.55);
  border-radius: 16px; padding: 16px; box-shadow: 0 6px 30px rgba(0,0,0,.45); }
.lnr-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lnr-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff4d4d; flex: 0 0 auto;
  box-shadow: 0 0 0 0 rgba(255,77,77,.55); animation: lnrPulse 2s infinite; }
@keyframes lnrPulse { 0% { box-shadow: 0 0 0 0 rgba(255,77,77,.55); }
  70% { box-shadow: 0 0 0 8px rgba(255,77,77,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,77,0); } }
#mrn-live-rail.lnr--stale .lnr-dot { background: #8fa5cf; animation: none; box-shadow: none; }
.lnr-title { color: #fdf6e0; font-size: 19px; letter-spacing: .04em; }
.lnr-badge { color: #23180a; background: linear-gradient(180deg,#e8bd55,#c9962e);
  border-radius: 999px; font-size: 11.5px; font-weight: bold; letter-spacing: .08em;
  padding: 3px 10px; text-transform: uppercase; }
#mrn-live-rail.lnr--stale .lnr-badge { background: #3a4a75; color: #c9d6f5; }
.lnr-stamp { color: #9fb2dd; font-size: 13px; margin-top: 8px; line-height: 1.5; }
.lnr-note { color: #c9d6f5; font-size: 13.5px; margin-top: 8px; line-height: 1.55;
  background: rgba(13,27,62,.85); border: 1px solid rgba(124,208,255,.3);
  border-radius: 12px; padding: 10px 12px; }
.lnr-teacher { color: #9fb2dd; font-size: 13px; margin-top: 8px; line-height: 1.55; }

/* ---------- live stream slot ---------- */
.lnr-stream { margin-top: 14px; }
.lnr-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  background: #0a1130; border: 1px solid rgba(124,208,255,.35); }
.lnr-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lnr-facade { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: radial-gradient(120% 140% at 50% 0%, #12275e 0%, #0a1130 70%);
  border: 0; color: #fdf6e0; font-family: inherit; padding: 12px; }
.lnr-play { width: 58px; height: 58px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(180deg,#e8bd55,#c9962e); color: #23180a;
  display: flex; align-items: center; justify-content: center; font-size: 24px; padding-left: 4px; }
.lnr-facade:active .lnr-play { transform: scale(.96); }
.lnr-facade-label { font-size: 16px; letter-spacing: .03em; text-align: center; }
.lnr-facade-sub { color: #9fb2dd; font-size: 12.5px; text-align: center; line-height: 1.45; }
.lnr-watch { display: inline-block; color: #7cd0ff; font-size: 13px; margin-top: 8px; text-decoration: none; }
.lnr-watch:hover { color: #fdf6e0; text-decoration: underline; }

/* ---------- story cards ---------- */
.lnr-list { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.lnr-card { display: flex; gap: 12px; align-items: stretch; text-decoration: none;
  background: rgba(13,27,62,.85); border: 1px solid rgba(124,208,255,.3);
  border-radius: 12px; padding: 10px; min-height: 92px; }
.lnr-card:hover { border-color: rgba(201,150,46,.65); }
.lnr-card:focus-visible, .lnr-facade:focus-visible, .lnr-watch:focus-visible {
  outline: 2px solid #c9962e; outline-offset: 2px; }
.lnr-thumb { flex: 0 0 96px; width: 96px; min-height: 72px; border-radius: 8px; overflow: hidden;
  background: linear-gradient(160deg,#12275e,#0a1130); border: 1px solid rgba(124,208,255,.35);
  display: flex; align-items: center; justify-content: center; font-size: 30px; }
.lnr-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lnr-cbody { min-width: 0; display: flex; flex-direction: column; }
.lnr-source { color: #a8e8ff; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.lnr-headline { color: #fdf6e0; font-size: 15px; line-height: 1.35; margin-top: 3px; }
.lnr-card:hover .lnr-headline { text-decoration: underline; }
.lnr-when { color: #9fb2dd; font-size: 12.5px; margin-top: auto; padding-top: 5px; }
.lnr-foot { color: #8fa5cf; font-size: 12.5px; line-height: 1.6; margin-top: 14px; }
.lnr-empty { color: #c9d6f5; font-size: 14.5px; line-height: 1.6; margin-top: 12px; }
.lnr-empty a { color: #7cd0ff; text-decoration: none; }
.lnr-empty a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .lnr-dot { animation: none; }
}
