/* =============================================================
   TRUST TV — SIDEBAR RAIL COMPONENTS
   Shared by the front-page rail and every inner-page rail
   (single, page, archive, search). Extracted from fp-layout.css
   so the rail renders identically on non-front views instead of
   loading unstyled / "scattered".
   ============================================================= */

/* Panel shell */
.panel {
  background: #fff;
  border: 1px solid #e5e8ef;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.panel-title {
  height: 42px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e8ef;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  color: #0b1220;
}

.panel-title a {
  color: #00479F;
  text-transform: none;
  font-size: 11px;
  font-weight: 900;
}

aside .panel { margin: 0; }

/* Rail */
.sidebar { display: grid; gap: 14px; }

.stay-updated {
  padding: 14px;
  position: sticky;
  top: 98px;
}

/* YouTube box */
.youtube-box {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border: 1px solid #e5e8ef;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.youtube-head {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 11px;
  align-items: center;
}

.youtube-box img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 8px 16px rgba(15, 23, 42, .14);
}

.youtube-box h3 {
  margin: 0;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: -.02em;
  color: #0b1220;
}

.verified {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #2684ff;
  color: #fff;
  font-size: 8px;
}

.youtube-box p {
  margin: 10px 0 12px;
  color: #687386;
  font-size: 12px;
  line-height: 1.45;
}

.subscriber-count {
  display: block;
  color: #111827;
  font-size: 11px;
  font-weight: 900;
  margin-top: 2px;
}

.youtube-subscribe {
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 5px;
  background: #ff0000;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 10px 20px rgba(255, 0, 0, .18);
  text-decoration: none;
  transition: background .18s;
}

.youtube-subscribe:hover { background: #003366; color: #fff; }

/* Follow */
.follow-title {
  margin: 16px 0 8px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  color: #0b1220;
}

.social-icons {
  display: grid;
  grid-template-columns: repeat(4, 42px);
  gap: 10px;
}

.social-icons a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
  transition: opacity .18s;
}

.social-icons .fb { background: #1877f2; }
.social-icons .x { background: #111; }
.social-icons .ig { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); }
.social-icons .tt { background: linear-gradient(135deg, #010101, #25f4ee 52%, #fe2c55); }

/* App download */
.app-download {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e5e8ef;
}

.app-download h3 {
  margin: 0 0 3px;
  font-size: 12px;
  text-transform: uppercase;
  color: #0b1220;
}

.app-download p {
  margin: 0 0 10px;
  color: #687386;
  font-size: 11px;
}

.store-row { display: flex; gap: 8px; flex-wrap: wrap; }

.store-badge {
  min-height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  background: #101725;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
  transition: background .18s;
}

.store-badge:hover {
  background: #f8c900;
  color: #0b1220;
}

.eyewitness-store-badge { background: #00479F; }
.eyewitness-store-badge:hover {
  background: #f8c900;
  color: #0b1220;
}

/* Compact list variant used by sidebar rails (archives / sign-in) */
.mini-list { padding: 10px 12px 12px; display: grid; gap: 10px; }

.mini-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 10px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e8ef;
}

.mini-item:last-child { border-bottom: 0; padding-bottom: 0; }

.thumb {
  position: relative;
  display: block;
  width: 82px;
  height: 58px;
  border-radius: 7px;
  overflow: hidden;
  background: #111;
}

.thumb img { width: 100%; height: 100%; object-fit: cover; }

.play-icon::after {
  content: "\25B6";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 71, 159, .95);
  color: #fff;
  font-size: 10px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
}

.mini-item h3 {
  margin: 0 0 5px;
  font-size: 13px;
  line-height: 1.22;
  letter-spacing: -.01em;
  color: #0b1220;
}

.mini-item span { color: #687386; font-size: 11px; font-weight: 750; }

/* Latest-updates stack variant used by the archive rail */
.news-stack {
  display: grid;
  gap: 10px;
  background: #fff;
  border-radius: 10px;
  align-content: start;
  padding: 14px;
}

.news-card {
  background: #fff;
  border: 1px solid #e5e8ef;
  border-radius: 10px;
  padding: 10px;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  align-items: center;
}

.news-card img { width: 90px; height: 70px; object-fit: cover; border-radius: 7px; }
.news-card h3 { margin: 0 0 6px; font-size: 13px; line-height: 1.25; color: #0b1220; }
.news-card span { font-size: 11px; color: #687386; font-weight: 750; }

/* Section heading used by sidebar update stacks */
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; }
.section-head h2 { margin: 0; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: #0b1220; }
.section-head a { color: #00479F; font-size: 12px; font-weight: 900; }

@media (max-width: 1024px) {
  .stay-updated { position: static; }
}
