/* Roster Grid styles */
.rg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-items: stretch;
}
.rg-card {
  background: linear-gradient(135deg, #ff7a18, #ffb347);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,.15);
  display: flex;
  flex-direction: column;
  min-height: 360px;
}
.rg-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.25);
}
.rg-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rg-photo--placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 28px;
  color: rgba(0,0,0,.75);
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,.28) 12px, rgba(255,255,255,.12) 12px, rgba(255,255,255,.12) 24px);
}
.rg-meta {
  padding: 10px 12px 14px;
  color: #1a1a1a; /* overridden inline when set */
  text-shadow: 0 1px 0 rgba(255,255,255,.25);
  display: grid;
  gap: 3px;
}
.rg-line.rg-nums {
  font-size: 12px;
  opacity: .85;
  letter-spacing: .2px;
}
.rg-line.rg-name {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
}
.rg-line.rg-sub {
  font-size: 12px;
  opacity: .9;
}
.rg-empty, .rg-count { padding: 8px 10px; background:#fff3cd; border-left: 4px solid #ffec99; border-radius:6px; }


/* Toggle pill / tabs */
.rg-tabs { margin: 18px 0 8px 0; }
.rg-pill {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0;
  border-radius: 9999px;
  overflow: hidden;
  box-shadow: 0 12px 25px rgba(0,0,0,.22);
  max-width: 1100px;
  margin: 0 auto 20px;
}
.rg-pill-btn {
  border: none;
  padding: 18px 24px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .3px;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
  background: #222;
}
.rg-pill-btn:focus { outline: 2px solid rgba(255,255,255,.6); outline-offset: -3px; }
.rg-pill-btn.active { filter: saturate(1.2) brightness(1.05); }
.rg-pill-btn:hover { transform: translateY(-1px); }
.rg-pill-btn.rg-left { border-radius: 9999px 0 0 9999px; text-align: center; }
.rg-pill-btn.rg-right { border-radius: 0 9999px 9999px 0; text-align: center; }
.rg-pill-mid {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.3), rgba(255,255,255,0) 60%), #0b0b2a;
  color: #fff; font-size: 20px; margin: 0 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,.35), inset 0 0 0 4px rgba(255,255,255,.08);
}
.rg-panels .rg-panel[hidden] { display: none !important; }


/* --- Roster Tabs: centered sporty/pro look --- */
.rg-tabs{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  margin: 6px 0 14px;
}
.rg-tabbar{
  display:inline-flex;
  align-items:center;
  gap:12px;
  padding:8px;
  border-radius:9999px;
  backdrop-filter:saturate(1.2) blur(2px);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  box-shadow: 0 10px 26px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.08);
}
.rg-tab-btn{
  position:relative;
  border:0;
  cursor:pointer;
  padding:14px 22px;
  border-radius:9999px;
  font-size:18px;
  font-weight:850;
  letter-spacing:.3px;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
  color: var(--rg-btn-text,#111);
  background: var(--rg-btn-grad, linear-gradient(90deg,#ff7a18,#ffb347));
  box-shadow: 0 6px 16px rgba(0,0,0,.22), inset 0 0 0 1px rgba(255,255,255,.18);
  transition: transform .12s ease, filter .15s ease, box-shadow .2s ease;
  outline: none;
}
.rg-tab-btn::after{
  content:'';
  position:absolute; inset:0;
  border-radius:inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0));
  opacity:.8; pointer-events:none;
}
.rg-tab-btn:hover{ transform: translateY(-1px); filter: saturate(1.08) brightness(1.03); }
.rg-tab-btn.active{ box-shadow: 0 10px 28px rgba(0,0,0,.35), inset 0 0 0 2px rgba(255,255,255,.25); }
.rg-tab-btn:focus-visible{ outline:2px solid #fff; outline-offset:2px; }

/* Panel visibility */
.rg-panels .rg-panel[hidden]{ display:none !important; }


/* ---- Roster Tabs: centered, sticky, sporty look ---- */
.rg-tabs {
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  justify-content: center;
  padding: 10px 10px 16px;
  margin: -6px auto 10px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,0));
}
/* Offset for WP admin bar */
.admin-bar .rg-tabs { top: 46px; }
@media (min-width: 783px) { .admin-bar .rg-tabs { top: 32px; } }

.rg-pill {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0;
  border-radius: 9999px;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(0,0,0,.25), inset 0 -2px 0 rgba(255,255,255,.15);
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,.08);
}

.rg-pill-btn {
  border: none;
  padding: 14px 22px;
  font-size: 20px;
  font-weight: 900;
  text-transform: none;
  letter-spacing: .4px;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
  background: #222;
  text-shadow: 0 1px 0 rgba(0,0,0,.35);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.25);
}
.rg-pill-btn.active { filter: saturate(1.15) brightness(1.05); box-shadow: inset 0 -2px 0 rgba(255,255,255,.25); }
.rg-pill-btn:hover { transform: translateY(-1px); }
.rg-pill-btn.rg-left { border-radius: 9999px 0 0 9999px; text-align: center; }
.rg-pill-btn.rg-right { border-radius: 0 9999px 9999px 0; text-align: center; }

/* Center icon puck */
.rg-pill-mid {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background:
    conic-gradient(from 45deg, rgba(255,255,255,.12) 0 25%, rgba(255,255,255,0) 0 100%),
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.3), rgba(255,255,255,0) 60%),
    #0b0b2a;
  color: #fff; font-size: 18px; margin: 0 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,.35), inset 0 0 0 4px rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
}

/* Hide panels when not active */
.rg-panels .rg-panel[hidden] { display: none !important; }


/* v1.5.2: ensure centering & full width */
.rg-tabs { width: 100%; }
.rg-tabs .rg-pill { margin-left: auto; margin-right: auto; }
