/* =====================================================================
   USBC / BOWL.com — Streaming Top Bar (Option A: persistent top strip)
   Built for Bootstrap v3.3.1 + jQuery. Prefix: .usbc-sb-
   Drop this after bootstrap.min.css.
   ===================================================================== */

/* brand fonts: Open Sans for body copy, Oswald for display/labels/buttons
   (matches the site conventions in vendors/main.css) */
.usbc-sb {
  position: relative;
  background: linear-gradient(100deg, #001a45, #0a3a82);
  color: #fff;
  font-family: 'Open Sans', sans-serif;
  z-index: 1035; /* above page, below BS modal (1050) */
}
.usbc-sb * { box-sizing: border-box; }
.usbc-sb a { text-decoration: none; }

/* Oswald for display type: brand label, event titles, buttons, status labels
   and the uppercase helper labels (mirrors the site's .oswald/.button rules) */
.usbc-sb-brand-label,
.usbc-sb-seg-title, .usbc-sb-seg-date, .usbc-sb-seg-live b,
.usbc-sb-single-title, .usbc-sb-single-live b,
.usbc-sb-btn-watch, .usbc-sb-btn-ghost, .usbc-sb-full,
.usbc-sb-mhead, .usbc-sb-mcard-title, .usbc-sb-mcard-date,
.usbc-sb-mlive b, .usbc-sb-watchon-label,
.popover.usbc-sb-pop .usbc-sb-pop-title,
.popover.usbc-sb-pop .usbc-sb-pop-badge b,
.popover.usbc-sb-pop .usbc-sb-pop-sub,
.popover.usbc-sb-pop .usbc-sb-btn-watch,
.popover.usbc-sb-pop .usbc-sb-btn-ghost {
  font-family: 'Oswald', sans-serif;
}
/* linked event titles inherit the title styling; underline only on hover */
.usbc-sb-title-link, .popover.usbc-sb-pop .usbc-sb-title-link { color: inherit; text-decoration: none; }
.usbc-sb-title-link:hover, .usbc-sb-title-link:focus,
.popover.usbc-sb-pop .usbc-sb-title-link:hover { color: inherit; text-decoration: underline; }

/* ---- shared bits ---- */
.usbc-sb-star {
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; color: #002d72;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; flex: none;
}
/* custom brand icon image variant (transparent circle, image contained) */
.usbc-sb-star-img { background: transparent; overflow: hidden; }
.usbc-sb-star-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.usbc-sb-netdot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
/* group of network dots in the compact segment (one per network) */
.usbc-sb-seg-nets { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.usbc-sb-live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #ff2d3d;
  flex: none; display: inline-block;
  animation: usbcSbPulse 1.4s ease-in-out infinite;
}
@keyframes usbcSbPulse { 0%,100% { opacity: 1; } 50% { opacity: .22; } }
@media (prefers-reduced-motion: reduce) {
  .usbc-sb-live-dot { animation: none; }
}

.usbc-sb-btn-watch {
  display: inline-flex; align-items: center; gap: 6px;
  background: #c8102e; color: #fff;
  font-weight: 700; font-size: 12px; letter-spacing: .4px; text-transform: uppercase;
  padding: 9px 15px; border-radius: 6px; border: 0; line-height: 1;
}
/* hover softens the button instead of recolouring it, so custom background /
   text colours set inline from the CMS survive the hover state */
.usbc-sb-btn-watch { transition: opacity .15s ease; }
.usbc-sb-btn-watch:hover, .usbc-sb-btn-watch:focus { opacity: .85; }
.usbc-sb-btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: #1b2430;
  border: 1.5px solid #d6d3cb; font-weight: 700; font-size: 12px;
  letter-spacing: .4px; text-transform: uppercase; padding: 8px 15px;
  border-radius: 6px; line-height: 1;
}
/* ghost hover: only tint the background when the button has no custom colours
   (an inline background wins over this rule, and text colour is left alone) */
.usbc-sb-btn-ghost { transition: background-color .15s ease, opacity .15s ease; }
.usbc-sb-btn-ghost:hover, .usbc-sb-btn-ghost:focus { background-color: #f3f1ea; opacity: .9; }

/* action-button icon: supply a square SVG; it renders at 14x14 in the button.
   Use a white-filled SVG on primary buttons, a dark one on ghost buttons. */
.usbc-sb-btn-icon { width: 14px; height: 14px; flex: none; display: inline-block; object-fit: contain; }
.usbc-sb-btn-glyph { font-size: 9px; line-height: 1; }

/* logo <img> variant (used by any *-logo box when the event has logoImg).
   Image is contained inside the square box on a white ground. */
.usbc-sb-logo-img { background: transparent; padding: 0; overflow: hidden; }
.usbc-sb-logo-img img { width: 70%; height: 70%; object-fit: contain; display: block; }

/* network mark <img> variant (used when a network defines `img`).
   Renders ~16px tall; give it width to spare for a wordmark. */
.usbc-sb-netmark { height: 16px; width: auto; max-width: 52px; flex: none; display: inline-block; object-fit: contain; vertical-align: middle; }

/* =====================================================================
   DESKTOP LAYOUT
   ===================================================================== */
/* no left padding: the brand block's background runs flush to the bar edge.
   min-height (not height) so the row can grow with its content. */
.usbc-sb-desktop { display: flex; align-items: stretch; min-height: 46px; }
.usbc-sb-desktop.is-single { min-height: 0; }
/* the brand block has its own background (set inline from brandBackground) and
   must fill the full height of the bar, flush to the left edge */
.usbc-sb-brand {
  display: flex; align-items: center; gap: 8px; flex: none;
  align-self: stretch; padding: 0 16px; margin: 0;
}
.usbc-sb-brand-label {
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: #fff;
}

/* ---- MULTI: compact scrolling segments ---- */
.usbc-sb-track {
  display: flex; align-items: stretch; flex: 1 1 auto;
  overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
  /* hide the scrollbar (Win/Firefox/WebKit) — navigation is via the arrows */
  scrollbar-width: none; -ms-overflow-style: none;
}
.usbc-sb-track::-webkit-scrollbar { width: 0; height: 0; display: none; }
.usbc-sb-seg {
  position: relative; display: flex; align-items: center; gap: 9px;
  padding: 0 15px; height: 46px; cursor: pointer;
  border-left: 1px solid rgba(255,255,255,.10);
  color: #fff; white-space: nowrap; background: none;
}
.usbc-sb-seg:hover, .usbc-sb-seg:focus, .usbc-sb-seg.is-open { background: rgba(255,255,255,.08); outline: none; }
/* when the few segments fit, share the track width (left-aligned, wider) */
.usbc-sb-track--fill .usbc-sb-seg { flex: 1 1 0; min-width: 0; justify-content: flex-start; }
/* let long titles use the reclaimed space instead of truncating at 170px */
.usbc-sb-track--fill .usbc-sb-seg .usbc-sb-seg-title { max-width: none; }
/* hover/open underline: uses the event's primary colour (--usbc-sb-accent),
   falling back to the brand red when the event sets no primary colour */
.usbc-sb-seg:hover:after, .usbc-sb-seg:focus:after, .usbc-sb-seg.is-open:after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--usbc-sb-accent, #c8102e);
}
.usbc-sb-seg-live { display: inline-flex; align-items: center; gap: 5px; flex: none; }
.usbc-sb-seg-live b { font-size: 10px; font-weight: 700; letter-spacing: .8px; color: #ff6470; }
.usbc-sb-seg-date { font-size: 10px; font-weight: 600; letter-spacing: .6px; color: rgba(255,255,255,.55); flex: none; }
.usbc-sb-seg-title {
  font-size: 14px; font-weight: 600; color: #fff;
  max-width: 170px; overflow: hidden; text-overflow: ellipsis;
}
.usbc-sb-seg-play {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: rgba(255,255,255,.16); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 8px;
}

/* ---- arrows + full schedule ---- */
.usbc-sb-nav { flex: none; display: flex; align-items: center; gap: 4px; padding: 0 10px;
  border-left: 1px solid rgba(255,255,255,.10); }
.usbc-sb-arrow {
  width: 24px; height: 24px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.10); color: #fff; font-size: 13px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.usbc-sb-arrow:hover { background: rgba(255,255,255,.20); }
.usbc-sb-arrow[disabled] { opacity: .3; cursor: default; }
.usbc-sb-full {
  flex: none; background: #000; color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  padding: 6px 15px; margin-left: 2px; align-self: center;
  -webkit-clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%);
          clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%);
}
.usbc-sb-full { transition: opacity .15s ease; }
/* hover keeps whatever background is set (inline custom colour included) and
   just softens it, so a custom scheduleBackground isn't overridden */
.usbc-sb-full:hover, .usbc-sb-full:focus { opacity: .85; }

/* ---- SINGLE: auto-expanded rich row ---- */
.usbc-sb-single {
  display: flex; align-items: center; gap: 16px;
  flex: 1 1 auto; min-width: 0;
  height: 60px; padding: 0 16px;
}
.usbc-sb-single-live {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  background: rgba(229,32,46,.18); border: 1px solid rgba(255,90,100,.4);
  padding: 4px 9px; border-radius: 5px;
}
.usbc-sb-single-live b { font-size: 11px; font-weight: 700; letter-spacing: .8px; color: #ff7079; }
.usbc-sb-single-titles { min-width: 0; flex: 0 1 auto; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.usbc-sb-single-title { display: block; font-size: 18px; font-weight: 700; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.usbc-sb-single-sub { display: block; font-size: 12px; font-weight: 500; color: rgba(255,255,255,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.usbc-sb-single-meta { display: flex; align-items: center; gap: 12px; flex: 0 1 auto; min-width: 0; margin-left: auto; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.85); white-space: nowrap; overflow: hidden; }
.usbc-sb-single-meta .usbc-sb-sep { color: rgba(255,255,255,.35); }
/* network item in the single row: bare logo + name, no middot */
.usbc-sb-netitem { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
/* thin vertical rule between networks only (never before the first one, so a
   single network shows no rule) */
.usbc-sb-netitem + .usbc-sb-netitem {
  border-left: 1px solid rgba(255,255,255,.22); padding-left: 12px;
}
/* bare logo — no box, no background; same rendered size as before */
.usbc-sb-netbadge {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
}
.usbc-sb-netbadge .usbc-sb-netmark { height: 30px; max-height: 30px; width: auto; max-width: 100%; object-fit: contain; }
/* soft-highlight (opacity) on hover to signal it's clickable */
.usbc-sb-netbadge.is-link { cursor: pointer; text-decoration: none; transition: opacity .15s ease; }
.usbc-sb-netbadge.is-link:hover, .usbc-sb-netbadge.is-link:focus-visible { opacity: .75; }
.usbc-sb-netitem-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.usbc-sb-single-summary { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.usbc-sb-single-actions { display: flex; gap: 8px; flex: none; }
.usbc-sb-single .usbc-sb-btn-ghost { color: #fff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.12); }
.usbc-sb-single .usbc-sb-btn-ghost:hover { background: rgba(255,255,255,.22); }

/* single row degrades gracefully as width tightens (desktop widths) */
@media (max-width: 1120px) { .usbc-sb-single-sub { display: none; } }
@media (max-width: 980px)  { .usbc-sb-single-meta { display: none; } }

/* =====================================================================
   POPOVER (Bootstrap 3 popover, custom skin) — desktop hover/click detail
   ===================================================================== */
/* the popover renders in <body>, so it needs the brand body font explicitly */
.popover.usbc-sb-pop { max-width: 360px; padding: 0; border: 1px solid #e4e1d9; border-radius: 10px; box-shadow: 0 22px 50px -16px rgba(0,20,60,.45); z-index: 100000; font-family: 'Open Sans', sans-serif; }
.popover.usbc-sb-pop .popover-content { padding: 0; }
.usbc-sb-pop-body { display: flex; gap: 13px; padding: 15px 16px 13px; }
/* the event initials box was removed from the popover, so the main column is
   the only child and takes the full width */
.usbc-sb-pop-main { min-width: 0; flex: 1 1 auto; }
.usbc-sb-pop-top { display: flex; align-items: center; gap: 7px; margin-bottom: 3px; }
.usbc-sb-pop-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fdecee; border-radius: 4px; padding: 2px 7px;
}
.usbc-sb-pop-badge .usbc-sb-live-dot { width: 6px; height: 6px; background: #e5202e; }
.usbc-sb-pop-badge b { font-size: 9px; font-weight: 700; letter-spacing: .7px; color: #c8102e; }
.usbc-sb-pop-sub { font-size: 11px; font-weight: 600; color: #8a909b; }
.usbc-sb-pop-title { font-size: 17px; font-weight: 700; color: #11151c; line-height: 1.1; margin-bottom: 6px; }
.usbc-sb-pop-meta { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: #4a515c; flex-wrap: wrap; margin-bottom: 8px; }
.usbc-sb-pop-meta .usbc-sb-sep { color: #c8cdd5; }
/* network grid: cells share the row equally (one network fills it; two split
   into two columns), separated by a faint vertical rule. */
.usbc-sb-pop-nets { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 16px; margin-bottom: 14px; }
.usbc-sb-pop-net { display: flex; align-items: center; gap: 12px; min-width: 0; }
/* thin vertical rule between networks only (never before the first one, so a
   single network shows no rule) */
.usbc-sb-pop-net + .usbc-sb-pop-net { border-left: 1px solid #e2e0d9; padding-left: 16px; }
/* bare logo — no box, no background; same rendered size as before */
.usbc-sb-pop-net-badge {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
}
.usbc-sb-pop-net-badge .usbc-sb-netmark { height: 36px; max-height: 36px; width: auto; max-width: 100%; object-fit: contain; }
/* linkable badge: soft-highlight (opacity) on hover to signal it's clickable */
.usbc-sb-pop-net-badge.is-link {
  cursor: pointer; text-decoration: none;
  transition: opacity .15s ease;
}
.usbc-sb-pop-net-badge.is-link:hover,
.usbc-sb-pop-net-badge.is-link:focus-visible { opacity: .75; }
.usbc-sb-pop-net-name { font-size: 12px; font-weight: 600; color: #4a515c; line-height: 1.15; min-width: 0; max-width: 100%; }
.usbc-sb-pop-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 15px; }
.usbc-sb-pop-actions .usbc-sb-btn-watch,
.usbc-sb-pop-actions .usbc-sb-btn-ghost { flex: 1 1 auto; min-width: 92px; justify-content: center; }

/* =====================================================================
   MOBILE LAYOUT (< 768px)
   ===================================================================== */
.usbc-sb-mobile { display: none; }

@media (max-width: 767px) {
  .usbc-sb-desktop { display: none; }
  .usbc-sb-mobile { display: block; }

  /* networks are hidden on mobile (the summary text on the same line remains) */
  .usbc-sb-mnets { display: none; }

  /* mobile "ON NOW" brand block — same background as the desktop brand section,
     shown immediately before the event name */
  .usbc-sb-mbrand {
    flex: none; display: inline-flex; align-items: center;
    padding: 4px 8px; border-radius: 3px;
    font-family: 'Oswald', sans-serif;
    font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
    color: #fff; white-space: nowrap;
  }

  /* collapsed one-line pill */
  .usbc-sb-mrow {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 13px; width: 100%; border: 0; background: none; color: #fff; text-align: left;
  }
  .usbc-sb-mrow .usbc-sb-seg-title { font-size: 13px; max-width: none; flex: 1 1 auto; }
  .usbc-sb-mcount { margin-left: auto; font-size: 11px; font-weight: 600; color: rgba(255,255,255,.65); flex: none; }
  .usbc-sb-mcount .caret { margin-left: 2px; }

  .usbc-sb-mhead {
    display: flex; align-items: center; gap: 8px; padding: 10px 13px; width: 100%;
    border: 0; background: none; color: #fff;
    font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  }
  .usbc-sb-mhead .usbc-sb-close { margin-left: auto; font-size: 15px; line-height: 1; }

  /* expandable list — the barBackground option is applied inline at render time;
     this gradient is only the fallback when that option is not set */
  .usbc-sb-mlist { background: linear-gradient(100deg, #001a45, #0a3a82); padding: 8px; display: none; }
  .usbc-sb.is-expanded .usbc-sb-mlist { display: block; }
  .usbc-sb.is-expanded .usbc-sb-collapsed { display: none; }
  /* "VIEW FULL TV SCHEDULE" link sits on the blue ground — override its dark
     inline colour so it stays legible */
  .usbc-sb-mlist > div > .usbc-sb-mcard-net { color: #fff !important; }

  .usbc-sb-mcard {
    background: #fff; border: 1px solid #ebe8e0; border-radius: 8px;
    padding: 9px 10px; display: flex; flex-direction: column; gap: 10px;
    margin-bottom: 7px;
  }
  .usbc-sb-mcard:last-child { margin-bottom: 0; }
  /* top row: title block + live slot */
  .usbc-sb-mcard-head { display: flex; align-items: center; gap: 9px; }
  .usbc-sb-mcard-main { min-width: 0; flex: 1; }
  /* right-side slot holding the LIVE box (empty for non-live events) */
  .usbc-sb-mcard-live-slot { flex: none; margin-left: auto; }
  /* live indicator on mobile: blinking dot + "LIVE" label inside a small red box */
  .usbc-sb-mlive {
    display: inline-flex; align-items: center; gap: 5px; flex: none;
    background: rgba(229,32,46,.14); border: 1px solid rgba(229,32,46,.45);
    border-radius: 4px; padding: 4px 7px;
  }
  .usbc-sb-mlive .usbc-sb-live-dot { width: 7px; height: 7px; background: #e5202e; }
  .usbc-sb-mlive b { font-size: 9px; font-weight: 700; letter-spacing: .6px; color: #c8102e; }
  /* date/time sits close to the event-name size (title is 12px) */
  .usbc-sb-mcard-date { font-size: 11px; font-weight: 600; letter-spacing: .4px; color: #9aa0ab; margin-bottom: 3px; }
  .usbc-sb-mcard-title { font-size: 14px; font-weight: 700; color: #11151c; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .usbc-sb-mcard-net { font-size: 9.5px; font-weight: 600; color: #7b818c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* action buttons (1..3) share a single row, equal widths */
  .usbc-sb-mcard-actions { display: flex; gap: 7px; }
  .usbc-sb-mcard-actions .usbc-sb-btn-watch,
  .usbc-sb-mcard-actions .usbc-sb-btn-ghost {
    flex: 1 1 0; min-width: 0; justify-content: center;
    padding: 10px 6px; font-size: 11px; letter-spacing: .2px;
  }

  /* "WATCH ON:" network line above the buttons — helper text, names only */
  .usbc-sb-watchon {
    font-size: 10px; font-weight: 600; line-height: 1.3;
    color: #7b818c; margin: 2px 0 8px;
  }
  .usbc-sb-watchon-label { font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
  .usbc-sb-watchon .usbc-sb-sep { margin: 0 4px; color: #c8cdd5; }
  .usbc-sb-watchon-net { color: inherit; text-decoration: underline; }
  .usbc-sb-watchon-net:hover, .usbc-sb-watchon-net:focus { color: inherit; opacity: .75; }

  /* single event on mobile: rich stacked card, no toggle */
  .usbc-sb-msingle { padding: 12px 13px; }
  .usbc-sb-msingle .usbc-sb-single-title { white-space: normal; font-size: 16px; }
  /* date/time above the name, sized close to it (title is 16px) */
  .usbc-sb-mdate {
    font-size: 14px; font-weight: 600; letter-spacing: .3px;
    color: rgba(255,255,255,.7); margin-bottom: 5px;
  }
  /* on the blue single bar the helper text needs light colours */
  .usbc-sb-msingle .usbc-sb-watchon { color: rgba(255,255,255,.6); }
  .usbc-sb-msingle .usbc-sb-watchon .usbc-sb-sep { color: rgba(255,255,255,.35); }
  .usbc-sb-msingle-actions { display: flex; gap: 7px; margin-top: 10px; }
  .usbc-sb-msingle-actions .usbc-sb-btn-watch,
  .usbc-sb-msingle-actions .usbc-sb-btn-ghost {
    flex: 1 1 0; min-width: 0; justify-content: center;
    padding: 10px 6px; font-size: 11px; letter-spacing: .2px;
  }
  .usbc-sb-msingle .usbc-sb-btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
}
