@media (max-width: 1000px) {
  .row1-container { 
    flex-direction: column; 
  }
  #your-parlay-column,
  #suggested-legs-column { 
    width: 100%; 
    min-width: 0;
  }
}

/* ----- Mobile layout: stack the columns and keep them centered ----- */
@media (max-width: 1000px) {
  /* Stack the two columns vertically */
  .row1-container {
    flex-direction: column !important;
    /* align-items: stretch;         
    gap: 12px; */
  }

  /* Keep the outer wrapper inside the viewport */
  #workbench-columns {
    margin-left: 0 !important;    /* undo -40px */
    margin-right: 0 !important;
    padding-left: 16px;           /* symmetrical side padding */
    padding-right: 16px;
    box-sizing: border-box;       /* include padding in width */
    width: 100%;
    max-width: none;
  }

  /* Kill the left offsets that shove columns sideways on mobile */
  #your-parlay-column,
  #suggested-legs-column,
  #player-lines-column {
    margin-left: 0 !important;    /* undo the 45px left margins */
    margin-right: 0 !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  #your-parlay-column,
  #suggested-legs-column { 
    width: 950px !important; 
    margin: 0 !important; 
  }
  #suggested-legs-column { 
    margin-top: 12px !important; 
  }
}

:root{
  /* page + brand */
  --bg-0:#031625;
  --accent-rgb:0,211,189;        /* #00D3BD */

  /* surface alphas (cards vs footer) */
  --panel-card:.012;
  --panel-card-hover:.028;
  --panel-footer:.024;
  --panel-footer-hover:.040;

  /* glass tokens */
  --line:rgba(255,255,255,.10);
  --shadow:0 10px 30px rgba(0,0,0,.35);
  --inset:0 1px 0 rgba(255,255,255,.05) inset;
  --blur:12px;
  --radius:18px;
  --text:#e9f6f3;

  --danger:#D30000;
  --danger-bg:rgba(211,0,0,.12);
}

/* ---------- Parlay footer ---------- */
#parlay-footer{ margin-top:12px; display:flex; flex-direction:column; gap:8px; }

/* Glassy bar – slightly brighter + subtle teal wash */
#parlay-footer .pf-bar{
  display:flex; align-items:center; gap:12px; padding:12px;
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), .03), transparent 80%),
    linear-gradient(180deg,
      rgba(255,255,255,var(--panel-footer)),
      rgba(255,255,255,calc(var(--panel-footer)*.6)));
  box-shadow:var(--inset), var(--shadow);
  backdrop-filter:blur(var(--blur)) saturate(130%);
  -webkit-backdrop-filter:blur(var(--blur)) saturate(130%);
}
#parlay-footer .pf-bar:hover{
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), .08), transparent 60%),
    linear-gradient(180deg,
      rgba(255,255,255,var(--panel-footer-hover)),
      rgba(255,255,255,calc(var(--panel-footer-hover)*.6)));
}

/* Clear Props pill */
#reset-parlay-button{
  appearance:none; cursor:pointer; font-weight:600;
  padding:12px 16px; border-radius:12px;
  color:var(--text); border:1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), .10), rgba(255,255,255,.04) 60%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}

/* Fallback when blur isn't supported */
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))){
  #parlay-footer .pf-bar{ background:rgba(8,34,46,.55); }
}

/* ---------- Stake bubble (centered line + odds underneath) ---------- */
#stake-block{
  margin-left:auto;
  display:grid;
  grid-template-columns:40px 1fr 40px;  /* [−] [center text] [+] */
  grid-template-rows:auto auto;         /* row2 = odds */
  align-items:center;
  column-gap:12px;
  row-gap:4px;
  position: relative; 
  z-index: 10000;
}


/* stepper buttons */
#stake-block .stake-btn{
  width:40px; height:36px; display:grid; place-items:center;
  border-radius:12px; border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  color:var(--text); font-size:22px; line-height:1; cursor:pointer;
}
#stake-block .stake-btn:hover{
  border-color:rgba(255,255,255,.12);
  background:linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
}

#stake-dec{ grid-column:1; grid-row:1; }
#stake-inc{ grid-column:3; grid-row:1; }

/* center text column */
#stake-center{
  grid-column:2; grid-row:1;
  display:flex; justify-content:center;
}
#stake-line{
  display:inline-flex; align-items:baseline;
  gap:.5ch;                          /* tight, even spacing */
  font-weight:700;
  font-variant-numeric:tabular-nums; /* monospaced digits */
  white-space:nowrap;
}
#stake-val{
  min-width:96px; text-align:center;
  font-weight:700; font-size:20px; letter-spacing:.2px;
  font-variant-numeric:tabular-nums;
}
#stake-return{
  margin:0; 
  color:#00D3BD;          /* green */
  font-size:18px; font-weight:500;
  font-variant-numeric:tabular-nums;
}
#parlay-odds-line .parlay-odds-val { 
  color:#00D3BD;  
}

/* odds row spans the whole bubble */
#parlay-odds-wrapper{
  grid-column:1 / -1; grid-row:2;
  text-align:center; margin-top:2px;
}
#parlay-odds-line{
  font-size:12px; color:#e9f6f3;
  font-variant-numeric:tabular-nums;
}


/* base */
#stake-block{
  --step: 40px;           /* width of − / + columns */
  --step-h: 36px;         /* button height */
  display:grid;
  grid-template-columns: var(--step) 1fr var(--step);
  grid-template-rows: auto auto;
  align-items:center;
  column-gap:12px;
  row-gap:4px;
}
#stake-block .stake-btn{ width:var(--step); height:var(--step-h); }

/* Base (unchanged) */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid #1d3540;
  background: transparent;
  color: #bfe9e1;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow .2s, filter .15s, transform .03s, border-color .15s;
}

/* Subtle glass panel (safer blur on ::before) */
.glass-panel{
  position: relative;
  border-radius: 20px;
  /* border: 1px solid var(--line); */
  overflow: hidden;          /* clip the blur to the radius */
  isolation: isolate;        /* prevent stitching */
  background: none;          /* real surface lives on ::before */
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), var(--shadow);
  margin-bottom: 12px;
}

.glass-panel::before{
  content:"";
  position:absolute; inset:-1px;       /* 1px bleed hides seams */
  border-radius:inherit;
  z-index:0;
  background:
    /* linear-gradient(135deg, rgba(var(--accent-rgb), .015), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,.012)); */
    linear-gradient(135deg, rgba(var(--accent-rgb), .01), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.01), rgba(255,255,255,.01));
  /* -webkit-backdrop-filter: blur(80px) saturate(120%);
  backdrop-filter: blur(8px) saturate(120%); */
}

.glass-panel{ border-color: rgba(255,255,255,.01); }

.glass-panel > *{ position: relative; z-index: 1; }

/* iOS seam guard — kill blur & fixed backgrounds on mobile */
@media (max-width:1000px){
  /* If blur lives on the element */
  #parlay-footer .pf-bar,
  .prop-card,
  .feature-panel {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  /* If you later move blur to ::before, cover that too */
  #parlay-footer .pf-bar::before,
  .prop-card::before,
  .feature-panel::before {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  /* Fixed backgrounds → scroll to avoid seams */
  #filter-popup,
  #filter-trending-popup,
  body.dark-mode #content-section,
  body.dark-mode #game-log-section,
  body.dark-mode #game-log-section-table {
    background-attachment: scroll !important;
  }

  .glass-panel::before{
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}


/* ─────────────────────────────────────────────────────────────
   PARLAY FOOTER — pill layout + Share styling
   ───────────────────────────────────────────────────────────── */

/* Make the stake cluster itself a pill */
#stake-block{
  /* existing grid stays; add pill surface */
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: transparent;
  box-shadow: var(--inset), var(--shadow);
}

/* Tighten spacing of stake text inside the pill */
#stake-center { justify-content:center; }
#stake-line   { gap: .6ch; }
#parlay-odds-wrapper { margin-top: 4px; }

/* Round, filled +/- buttons to read like chips */
#stake-block .stake-btn{
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  transition: filter .12s ease, transform .06s ease, box-shadow .12s ease;
}

/* Red – */
#stake-dec{
  color:#071317;
  border-color: rgba(255,94,107,.45);
  background-image: linear-gradient(180deg, rgba(255,94,107,.90), rgba(255,94,107,.75));
  box-shadow: 0 6px 20px rgba(255,94,107,.25), inset 0 1px 0 rgba(255,255,255,.18);
}
/* Green + */
#stake-inc{
  color:#071317;
  border-color: rgba(60,230,129,.45);
  background-image: linear-gradient(180deg, rgba(60,230,129,.92), rgba(60,230,129,.78));
  box-shadow: 0 6px 20px rgba(60,230,129,.25), inset 0 1px 0 rgba(255,255,255,.18);
}

#stake-block .stake-btn:hover{ filter:brightness(1.03); }
#stake-block .stake-btn:active{ transform: translateY(1px); }

/* Stake value / returns polish */
#stake-val{ font-weight: 800; }
#stake-return{ color:#00D3BD; font-weight:700; }
#parlay-odds-line{ opacity:.9; }

/* Place items neatly: Clear left, Stake center (flex-grow), Share right */
#reset-parlay-button{ order:0; }
#stake-block{ order:1; margin-left:auto; }
#share-parlay-button{ order:2; }

/* Share button = matching glass pill */
#share-parlay-button{
  appearance:none;
  display:inline-flex; align-items:center; justify-content:center;
  align-items: center;
  gap: .4rem;
  padding:12px 16px;
  min-width:120px;
  border-radius:12px;
  border:1px solid var(--line);
  color:var(--text);
  font-weight:600; cursor:pointer;

  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), .10), rgba(255,255,255,.04) 60%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  transition: filter .12s ease, transform .06s ease, border-color .12s ease, box-shadow .12s ease;
}
#share-parlay-button:hover,
#share-parlay-button:focus-visible{
  filter: brightness(1.06);
  border-color: rgba(var(--accent-rgb), .35);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}
#share-parlay-button:active{ transform: translateY(1px); }

/* Optional “Copied!” success state if you add .is-copied in JS */
#share-parlay-button.is-copied{
  color:#071317;
  border-color: rgba(var(--accent-rgb), .45);
  background-image: linear-gradient(180deg, rgba(124,227,216,.98), rgba(34,221,182,.98));
  box-shadow: 0 6px 24px rgba(34,221,182,.25), inset 0 1px 0 rgba(255,255,255,.18);
}

#share-parlay-button .fa-share { 
  font-size: 0.95em;       
  line-height: 1;
}



/* your existing small-screen sizes, now without overflow */
@media (max-width:1000px){
  #parlay-footer .pf-bar{ padding:16px; gap:16px; }
  #reset-parlay-button{ padding:24px 18px; font-size:28px; }
  #share-parlay-button{ 
    padding:24px 18px; 
    font-size:28px; 
    min-width:auto; 
    gap: 18px;
}


  #stake-block{ 
    --step: 76px; 
    --step-h: 64px; 
    margin-left: 0 !important;   
    justify-content: center;   
    grid-template-columns: var(--step) max-content var(--step);
    column-gap: 20px;         
    padding: 10px 10px;   
    flex: 1 1 auto;
  }
 
  #stake-block .stake-btn{
    font-weight: 700;      
    line-height: 1;
    width: var(--step);
    height: var(--step-h);
    font-size: clamp(24px, 5vw, 34px);     
  }

  #stake-dec, #stake-inc{
    grid-row: 1 / -1;        /* cover rows 1..2 */
    align-self: center;      /* vertical center within that area */
  }

  #stake-val{ 
    min-width:124px; 
    font-size:34px;
    font-weight: 500; 
    margin-left: -20px;
  }

  #parlay-odds-wrapper{ font-size:32px; font-weight:500; }

  #stake-return{ 
    font-size:30px; 
    margin-left: -20px;
  }

  #parlay-odds-line{
    font-size: 24px; 
    font-weight: 700;
    will-change: transform;        
    transform: translateZ(0);     
    -webkit-font-smoothing: antialiased;
  }

}


















/* ===========================
   NFL – Prop Filters (popup)
   Centered + standardized widths
   =========================== */

.filter-trending-container{
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;                 /* center launcher */
}

/* Launcher (matches .nflf-trigger-btn) */
.filter-trending-container #filter-trending-button{
  display:inline-flex; align-items:center; justify-content:center;
  height: 44px; padding: 0 14px; margin: 8px 0 0;
  border-radius: 12px;
  background: transparent;
  color: #9ff6e6;
  border: 1px solid rgba(45,190,170,.45);
  box-shadow: inset 0 0 0 0 rgba(45,190,170,0);
  cursor: pointer; font-weight: 600;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .08s ease;
  margin-top: -30px !important;
  pointer-events: none;
  display: none !important;
}
.filter-trending-container #filter-trending-button:hover{ background: rgba(2,156,137,.14); border-color: rgba(45,190,170,.7); }
.filter-trending-container #filter-trending-button:active{ transform: translateY(1px); }
.filter-trending-container #filter-trending-button:focus-visible{
  outline: 2px solid rgba(45,190,170,.9); outline-offset: 2px; box-shadow: 0 0 0 4px rgba(45,190,170,.25);
}

/* Popup (centered under launcher) */
.filter-trending-container #filter-trending-popup{
  position: absolute;
  top: calc(100% + 10px);
  left: 50%; transform: translateX(-50%);
  min-width: 360px; width: 520px; max-width: 92vw;
  max-height: min(72vh, 720px); overflow: auto;
  background: #051424; color: #d6fffa;
  border: 1px solid rgba(45,190,170,.22);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  padding: 12px;
  z-index: 2147483644;
}
.filter-trending-container #filter-trending-popup::before{
  content:""; position:absolute; top:-8px; left:50%; transform: translateX(-50%) rotate(45deg);
  width:14px; height:14px; background:#051424;
  border-left:1px solid rgba(45,190,170,.22); border-top:1px solid rgba(45,190,170,.22);
}

/* Sections (mirror .nflf-section) */
.filter-trending-container #filter-trending-popup .stat-filter-section,
.filter-trending-container #filter-trending-popup .matchup-filter-section{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(45, 190, 170, 0.18);
  border-radius: 14px;
  padding: 12px;
  margin: 8px 0;

  /* center the chip rows */
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}

/* HEADERS — centered */
.filter-trending-container #filter-trending-popup .filter-title,
.filter-trending-container #filter-trending-popup .nfl-filter-title{
  flex: 0 0 100%;
  font-size: 14px; font-weight: 700; margin: 2px 0 8px;
  color: #d6fffa; letter-spacing: .2px; opacity: .95;
  text-align: center;
}

/* Chips (shared) */
.filter-trending-container #filter-trending-popup .nfl-filter-trending-btn,
.filter-trending-container #filter-trending-popup .nfl-filter-matchup-btn{
  appearance: none;
  border: 1px solid rgba(45,190,170,.35);
  background: rgba(2,156,137,.18);
  color: #d6fffa;
  border-radius: 14px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  margin: 4px 6px;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .08s ease;
  white-space: nowrap;
}
.filter-trending-container #filter-trending-popup .nfl-filter-trending-btn:active,
.filter-trending-container #filter-trending-popup .nfl-filter-matchup-btn:active{
  transform: translateY(1px);
}
.filter-trending-container #filter-trending-popup .nfl-filter-trending-btn:focus-visible,
.filter-trending-container #filter-trending-popup .nfl-filter-matchup-btn:focus-visible{
  outline: 2px solid rgba(45,190,170,.9); outline-offset: 2px;
}

/* Active state */
.filter-trending-container #filter-trending-popup .active-trending-filter{
  background: rgba(45,190,170,.82);
  color: #031625 !important;
  border-color: rgba(45,190,170,.9);
}

/* ----- Matchups: standardized button width ----- */
.filter-trending-container #filter-trending-popup .matchup-buttons-grid{
  --mu-min: 220px;                  /* min button width per column */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--mu-min), 1fr));
  gap: 10px;
  width: 100%;
}
.filter-trending-container #filter-trending-popup .matchup-buttons-grid .nfl-filter-matchup-btn{
  width: 100%;                      /* fill the grid track → equal widths */
  text-align: center;               /* center text inside */
  white-space: normal;              /* allow wrap for long names */
}
/* "All Matchups" centered and same width feel */
.filter-trending-container #filter-trending-popup .matchup-filter-section > .nfl-filter-matchup-btn[data-matchup="All"]{
  width: clamp(220px, 60%, 320px);
  text-align: center;
  margin: 0 auto 8px;
}

/* Scrollbar cosmetics */
.filter-trending-container #filter-trending-popup::-webkit-scrollbar{ width: 10px; }
.filter-trending-container #filter-trending-popup::-webkit-scrollbar-thumb{ background: rgba(45,190,170,.35); border-radius: 10px; }
.filter-trending-container #filter-trending-popup::-webkit-scrollbar-track{ background: rgba(255,255,255,.04); border-radius: 10px; }

/* Mobile tweaks */
@media (max-width: 1000px){
  .filter-trending-container #filter-trending-popup{ width: 100%; max-height: 78vh; padding: 16px; }
  .filter-trending-container #filter-trending-button{ height: 56px; padding: 0 18px; border-radius: 16px; font-size: 18px; }
  .filter-trending-container #filter-trending-popup .nfl-filter-trending-btn,
  .filter-trending-container #filter-trending-popup .nfl-filter-matchup-btn{ font-size: 18px; padding: 10px 14px; border-radius: 16px; }
}

/* Single column on small phones (still standardized) */
@media (max-width: 640px){
  .filter-trending-container #filter-trending-popup .matchup-buttons-grid{ grid-template-columns: 1fr; }
  .filter-trending-container #filter-trending-popup .matchup-filter-section > .nfl-filter-matchup-btn[data-matchup="All"]{ width: 100%; }
}
