/* ===========================
   FPL Live Games Bar (horizontal)
   =========================== */

.fpl-gb{ font-family: inherit; }

/* Wrapper sits nicely under header */
.fpl-gb-wrap{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  border-radius:14px;

  background: rgba(255,255,255,.88);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 16px 55px rgba(0,0,0,.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.fpl-gb-left{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
  min-width:max-content;
}

.fpl-gb-pill{
  font-weight:1000;
  font-size:12px;
  letter-spacing:.2px;
  color:#0b0f1a;
  background:#b7ff3c;
  border:1px solid rgba(0,0,0,.12);
  padding:6px 10px;
  border-radius:999px;
}

.fpl-gb-sub{
  font-weight:900;
  font-size:12px;
  color:#111;
  opacity:.78;
}

/* Horizontal strip */
.fpl-gb-strip{
  display:flex;
  align-items:stretch;
  gap:10px;
  overflow:auto;
  -webkit-overflow-scrolling: touch;
  padding:2px 2px;
  flex:1 1 auto;
  scroll-snap-type: x mandatory;
}

.fpl-gb-strip::-webkit-scrollbar{ height:10px; }
.fpl-gb-strip::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,.12);
  border-radius: 999px;
}
.fpl-gb-strip::-webkit-scrollbar-track{
  background: transparent;
}

.fpl-gb-match{
  scroll-snap-align:start;
  flex:0 0 auto;
  min-width: 240px;

  border-radius:14px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  padding:10px 12px;
  cursor:pointer;
  text-align:left;
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
  transition: transform .12s ease, box-shadow .12s ease;
}

.fpl-gb-match:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0,0,0,.12);
}

.fpl-gb-m-top{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  gap:10px;
}

.fpl-gb-team{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}

.fpl-gb-badge{
  width:22px;
  height:22px;
  object-fit:contain;
  flex:0 0 auto;
}

.fpl-gb-txt{
  font-weight:1000;
  font-size:12px;
  color:#111;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.fpl-gb-score{
  display:flex;
  align-items:center;
  gap:6px;
  font-weight:1100;
  font-size:13px;
  color:#111;
  border:1px solid rgba(0,0,0,.10);
  background:#f7f7fb;
  padding:4px 10px;
  border-radius:999px;
  white-space:nowrap;
}

.fpl-gb-s{ font-weight:1100; }
.fpl-gb-dash{ opacity:.7; }

.fpl-gb-m-bot{
  margin-top:8px;
  display:flex;
  align-items:center;
  gap:8px;
}

.fpl-gb-live-dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:#ff2d55;
  box-shadow: 0 0 0 4px rgba(255,45,85,.15);
}

.fpl-gb-live{
  font-weight:1100;
  font-size:11px;
  color:#111;
}

.fpl-gb-hint{
  margin-left:auto;
  font-weight:900;
  font-size:11px;
  color:#111;
  opacity:.65;
}

/* Drawer */
.fpl-gb-drawer{
  position:fixed;
  inset:0;
  z-index:999999;
  background: rgba(0,0,0,.55);
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:18px;
}

.fpl-gb-drawer-inner{
  width:min(920px, 100%);
  max-height: 82vh;
  overflow:auto;
  border-radius:18px;
  background:#fff;
  border:1px solid rgba(0,0,0,.10);
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
}

.fpl-gb-drawer-hd{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 14px;
  border-bottom:1px solid rgba(0,0,0,.08);
}

.fpl-gb-drawer-title{
  font-weight:1100;
  font-size:13px;
  color:#111;
}

.fpl-gb-close{
  width:36px;
  height:36px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  cursor:pointer;
  font-size:16px;
  line-height:1;
}

.fpl-gb-drawer-body{
  padding:14px;
}

.fpl-gb-loading,
.fpl-gb-err{
  font-weight:900;
  font-size:12px;
  color:#111;
}

/* Details layout */
.fpl-gb-dtop{
  padding-bottom:10px;
  border-bottom:1px dashed rgba(0,0,0,.14);
  margin-bottom:12px;
}
.fpl-gb-dtitle{
  font-weight:1200;
  font-size:14px;
  color:#111;
}
.fpl-gb-dsub{
  margin-top:4px;
  font-weight:900;
  font-size:12px;
  color:#111;
  opacity:.65;
}

.fpl-gb-stat{
  margin-top:12px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  background:#f9fafc;
  padding:12px;
}

.fpl-gb-stat-hd{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:1100;
  font-size:12px;
  color:#111;
  margin-bottom:10px;
}
.fpl-gb-ico{
  font-size:16px;
}

.fpl-gb-stat-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}

.fpl-gb-col{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  padding:10px;
}

.fpl-gb-col-hd{
  font-weight:1100;
  font-size:11px;
  color:#111;
  opacity:.75;
  margin-bottom:8px;
}

.fpl-gb-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:7px 0;
  border-top:1px solid rgba(0,0,0,.06);
  font-weight:900;
  font-size:12px;
  color:#111;
}
.fpl-gb-row:first-of-type{ border-top:none; padding-top:0; }

.fpl-gb-player{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width: 70%;
}

.fpl-gb-val{
  font-weight:1100;
  background:#fff;
  border:1px solid rgba(0,0,0,.10);
  border-radius:999px;
  padding:2px 8px;
}

.fpl-gb-empty{
  font-weight:900;
  font-size:12px;
  color:#111;
  opacity:.6;
}

/* Prevent background scroll when drawer open */
body.fpl-gb-noscroll{ overflow:hidden; }

/* Mobile tweaks */
@media (max-width: 640px){
  .fpl-gb-wrap{ padding:10px; border-radius:12px; }
  .fpl-gb-match{ min-width: 210px; padding:10px; }
  .fpl-gb-score{ font-size:12px; padding:4px 8px; }
  .fpl-gb-stat-grid{ grid-template-columns: 1fr; }
}
