/* Short upright videos (lib/shorts.js): the home page shelf (.rbsh-home), the section page (.rbsh-page)
   and watching one after another (.rbsh-feedpage). Text never sits on a picture: titles and details are under it.
   Brand colours: burgundy #3c0f11, cream-gold #f5d5a6 (the logo), navy #081421; buttons in the site's one burgundy #7e022b. */
.rbsh {
  --sh-bg: #24090b; --sh-bg2: #3c0f11; --sh-ink: #fff7ec; --sh-mut: #e5cdb0; --sh-gold: #f5d5a6;
  --sh-btn: #7e022b; --sh-btn-hover: #5c011f; --sh-navy: #081421; --sh-line: rgba(245, 213, 166, .32);
  --sh-card-w: 200px;
}
.rbsh *, .rbsh *::before, .rbsh *::after { box-sizing: border-box; }
.rbsh-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- a shelf ---------- */
.rbsh-shelf { position: relative; min-width: 0; }
.rbsh-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 16px; margin: 0 0 16px; }
.rbsh-h { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 30px; line-height: 1.15; font-weight: 800; color: inherit; }
.rbsh-kicker { display: block; margin: 0 0 6px; font-size: 15px; font-weight: 700; color: var(--sh-gold); }
.rbsh-sub { order: 3; flex: 1 0 100%; margin: 0; font-size: 17px; line-height: 1.45; color: var(--sh-mut); }
.rbsh-more {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 16px; border-radius: 999px;
  border: 1.5px solid var(--sh-line); color: var(--sh-gold); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
}
.rbsh-more:hover { background: rgba(245, 213, 166, .1); }
.rbsh-more svg { width: 18px; height: 18px; flex: none; }
.rbsh-rail { position: relative; }
.rbsh-track {
  display: flex; gap: 16px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: 2px; padding: 4px 2px 14px;
  scrollbar-width: thin; scrollbar-color: var(--sh-line) transparent; -webkit-overflow-scrolling: touch;
}
.rbsh-track:focus-visible { outline: 2px solid var(--sh-gold); outline-offset: 4px; border-radius: 12px; }
.rbsh-card {
  flex: 0 0 var(--sh-card-w); width: var(--sh-card-w); scroll-snap-align: start; min-width: 0;
  display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none;
}
.rbsh-pic {
  position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 14px;
  background: var(--sh-navy); box-shadow: 0 8px 20px rgba(0, 0, 0, .28);
}
.rbsh-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.rbsh-card:hover .rbsh-pic img { transform: scale(1.035); }
.rbsh-card:focus-visible { outline: none; }
.rbsh-card:focus-visible .rbsh-pic { outline: 3px solid var(--sh-gold); outline-offset: 2px; }
/* the plain cover (a frame that is not shown): navy, a thin gold frame, the logo */
.rbsh-cover {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(95% 60% at 50% 38%, #17314f 0%, #0b1a2b 55%, #050c16 100%);
}
.rbsh-cover::before { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(245, 213, 166, .38); border-radius: 10px; }
.rbsh-pic .rbsh-cover img { position: relative; inset: auto; width: 48%; height: auto; object-fit: contain; transform: none; }
.rbsh-t {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 16px; line-height: 1.35; font-weight: 700;
}
.rbsh-m { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: 13.5px; line-height: 1.4; color: var(--sh-mut); }
.rbsh-dur { display: inline-flex; align-items: center; gap: 3px; direction: ltr; }
.rbsh-dur svg { width: 11px; height: 11px; }
.rbsh-dot { opacity: .55; }
.rbsh-arr {
  position: absolute; top: calc(var(--sh-card-w) * 16 / 9 / 2 - 22px); z-index: 2; width: 46px; height: 46px; padding: 0;
  display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .95); color: #3c0f11; box-shadow: 0 6px 16px rgba(0, 0, 0, .32);
}
.rbsh-arr[hidden] { display: none; }
.rbsh-arr svg { width: 22px; height: 22px; }
.rbsh-arr-prev { right: -12px; }
.rbsh-arr-next { left: -12px; }
.rbsh-arr:focus-visible { outline: 3px solid var(--sh-gold); outline-offset: 2px; }

/* ---------- the home page band ---------- */
.rbsh-home {
  color: var(--sh-ink); padding: 36px 0 26px; overflow: hidden;
  background: radial-gradient(120% 150% at 88% 0%, #5c171c 0%, var(--sh-bg2) 42%, var(--sh-bg) 100%);
}

/* ---------- /shorts ---------- */
.rbsh-page { background: #faf6ef; color: #24100f; padding-bottom: 36px; overflow: hidden; }
.rbsh-band {
  color: var(--sh-ink); padding: 40px 0 26px; margin: 0 0 30px;
  background: radial-gradient(120% 150% at 88% 0%, #5c171c 0%, var(--sh-bg2) 42%, var(--sh-bg) 100%);
}
.rbsh-band-kicker { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--sh-gold); }
.rbsh-band-h { margin: 0; font-size: 46px; line-height: 1.08; font-weight: 800; color: inherit; }
.rbsh-band-sub { margin: 10px 0 0; font-size: 18px; line-height: 1.45; color: var(--sh-mut); }
.rbsh-band-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 20px; }
.rbsh-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 22px; border-radius: 999px;
  background: var(--sh-btn); color: #fff; font-weight: 800; font-size: 17px; text-decoration: none;
  border: 1px solid rgba(245, 213, 166, .55); /* a gold edge keeps the burgundy button apart from the dark band */
}
.rbsh-btn:hover { background: var(--sh-btn-hover); }
.rbsh-btn:focus-visible { outline: 3px solid var(--sh-gold); outline-offset: 2px; }
.rbsh-btn svg { width: 18px; height: 18px; }
.rbsh-count { font-size: 15px; color: var(--sh-mut); }
.rbsh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.rbsh-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--sh-line); color: var(--sh-ink);
  font-weight: 700; font-size: 15px; text-decoration: none;
}
.rbsh-chip:hover { background: rgba(245, 213, 166, .14); }
.rbsh-chip span { padding: 1px 8px; border-radius: 999px; background: rgba(245, 213, 166, .2); color: var(--sh-gold); font-size: 12.5px; }
.rbsh-shelves { --sh-ink: #24100f; --sh-mut: #75645a; --sh-gold: #8a1c2b; --sh-line: rgba(60, 15, 17, .22); }
.rbsh-shelves .rbsh-shelf { margin: 0 0 30px; scroll-margin-top: 96px; }
.rbsh-shelves .rbsh-h { font-size: 25px; color: #3c0f11; }
.rbsh-shelves .rbsh-pic { box-shadow: 0 6px 16px rgba(60, 15, 17, .18); }

/* ---------- /shorts/<id>: one video after another ---------- */
/* the feed fills the screen under the pinned site bar (--rbsh-sticky, measured by shorts.js) */
.rbsh-feedpage { --rbsh-sticky: 64px; position: relative; background: #0d0708; color: var(--sh-ink); }
.rbsh-feedbar { position: absolute; top: 10px; right: 12px; z-index: 6; }
.rbsh-back {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; font-weight: 700; font-size: 15px;
  backdrop-filter: blur(6px);
}
.rbsh-back svg { width: 18px; height: 18px; }
.rbsh-feed {
  height: calc(100vh - var(--rbsh-sticky)); height: calc(100svh - var(--rbsh-sticky));
  overflow-y: auto; overflow-x: hidden; scroll-snap-type: y mandatory; outline: none;
  scrollbar-width: none;
}
.rbsh-feed::-webkit-scrollbar { display: none; }
.rbsh-slide {
  height: 100%; scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 58px 16px 16px;
}
.rbsh-stage {
  position: relative; flex: 0 1 auto; height: min(calc(100% - 150px), 860px); aspect-ratio: 9 / 16;
  max-width: 100%; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 14px 36px rgba(0, 0, 0, .5);
}
.rbsh-playbox { position: absolute; inset: 0; display: block; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.rbsh-stage .rbsh-pic { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
/* on the player the logo of the plain cover sits above the play button */
.rbsh-stage .rbsh-cover { align-items: flex-start; padding-top: 26%; }
.rbsh-stage .rbsh-pic .rbsh-cover img { width: 42%; }
.rbsh-bigplay {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: rgba(126, 2, 43, .94); color: #fff;
  border: 2px solid rgba(245, 213, 166, .75); box-shadow: 0 8px 24px rgba(0, 0, 0, .45); transition: transform .2s ease;
}
.rbsh-bigplay svg { width: 34px; height: 34px; margin-left: 4px; }
.rbsh-playbox:hover .rbsh-bigplay, .rbsh-playbox:focus-visible .rbsh-bigplay { transform: translate(-50%, -50%) scale(1.08); }
.rbsh-playbox:focus-visible { outline: 3px solid var(--sh-gold); outline-offset: -3px; }
.rbsh-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.rbsh-info { width: min(100%, 520px); text-align: center; }
.rbsh-title {
  margin: 0; font-size: 21px; line-height: 1.3; font-weight: 800; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rbsh-by { margin: 4px 0 0; font-size: 14px; color: var(--sh-mut); }
.rbsh-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.rbsh-tag {
  display: inline-flex; align-items: center; min-height: 36px; padding: 5px 13px; border-radius: 999px;
  background: rgba(245, 213, 166, .14); color: var(--sh-gold); font-weight: 700; font-size: 14px; text-decoration: none;
}
.rbsh-tag-soft { background: transparent; border: 1px solid var(--sh-line); }
.rbsh-share {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 5px 14px; border-radius: 999px;
  background: #128c4a; color: #fff; font-weight: 700; font-size: 14px; text-decoration: none;
}
.rbsh-share svg { width: 17px; height: 17px; }
.rbsh-end { gap: 18px; text-align: center; font-size: 19px; }
.rbsh-end p { margin: 0; color: var(--sh-mut); }
.rbsh-nav {
  position: fixed; top: 50%; left: max(24px, calc(50% - 400px)); transform: translateY(-50%); z-index: 6;
  display: flex; flex-direction: column; gap: 12px;
}
.rbsh-navbtn {
  width: 52px; height: 52px; padding: 0; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; backdrop-filter: blur(6px);
}
.rbsh-navbtn:hover { background: rgba(255, 255, 255, .24); }
.rbsh-navbtn:disabled { opacity: .3; cursor: default; }
.rbsh-navbtn svg { width: 26px; height: 26px; }
.rbsh-navbtn:focus-visible { outline: 3px solid var(--sh-gold); outline-offset: 2px; }

/* the band of /shorts: three upright frames, slightly fanned, on wide screens only (pictures, no text) */
.rbsh-band .rbsh-wrap { position: relative; }
.rbsh-band-art { display: none; }
@media (min-width: 980px) {
  .rbsh-band-art { display: block; position: absolute; left: 48px; top: 50%; width: 290px; height: 214px; transform: translateY(-50%); pointer-events: none; }
  .rbsh-band-art .rbsh-pic { position: absolute; top: 0; width: 112px; border: 3px solid rgba(245, 213, 166, .55); box-shadow: 0 12px 26px rgba(0, 0, 0, .45); }
  .rbsh-band-art .rbsh-pic:nth-child(1) { left: 89px; top: 0; z-index: 3; }
  .rbsh-band-art .rbsh-pic:nth-child(2) { left: 0; top: 12px; transform: rotate(-7deg); z-index: 2; }
  .rbsh-band-art .rbsh-pic:nth-child(3) { left: 178px; top: 12px; transform: rotate(7deg); z-index: 1; }
  .rbsh-title { font-size: 24px; }
  .rbsh-band-h, .rbsh-band-sub { max-width: calc(100% - 400px); }
  .rbsh-t { font-size: 17px; }
}

/* ---------- narrow screens ---------- */
@media (max-width: 760px) {
  .rbsh { --sh-card-w: 152px; }
  .rbsh-home { padding: 28px 0 20px; }
  .rbsh-h { font-size: 25px; }
  .rbsh-sub { font-size: 15.5px; }
  .rbsh-head { gap: 6px 12px; }
  .rbsh-more { min-height: 40px; padding: 7px 13px; font-size: 14.5px; }
  .rbsh-track { gap: 12px; margin: 0 -16px; padding: 4px 16px 12px; scroll-padding-inline: 16px; }
  .rbsh-t { font-size: 15px; }
  .rbsh-m { font-size: 13px; }
  .rbsh-band { padding: 30px 0 22px; margin-bottom: 24px; }
  .rbsh-band-h { font-size: 36px; }
  .rbsh-band-sub { font-size: 16px; }
  .rbsh-shelves .rbsh-h { font-size: 22px; }
  .rbsh-nav { display: none; }
  .rbsh-arr { display: none !important; }
  .rbsh-slide { padding: 54px 12px 12px; gap: 10px; }
  .rbsh-stage { height: min(calc(100% - 140px), 860px); }
  .rbsh-title { font-size: 19px; }
}
@media (hover: none) { .rbsh-arr { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .rbsh-pic img, .rbsh-bigplay { transition: none; } }
/* a link to /#rb-shorts-shelf lands below the sticky site header */
#rb-shorts-shelf{scroll-margin-top:150px}
@media (max-width:767px){#rb-shorts-shelf{scroll-margin-top:80px}}
/* the phone copy inside the opening area (sections/shorts-shelf.js renderMobile): phones only */
.rbsh-home-m { display: none; }
@media (max-width: 760px) {
  .rbsh-home-m { display: block; margin: 12px 0 18px; padding: 22px 0 16px; border-radius: 16px; }
  #rb-shorts-shelf-m { scroll-margin-top: 80px; }
}
