@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800;900&family=Source+Sans+3:wght@400;600;700&display=swap');

.bb-page{
  --bb-ink:#071512;
  --bb-teal:#003333;
  --bb-green:#0a6b3c;
  --bb-forest:#004c28;
  --bb-accent:#bb2000;
  --bb-sand:#e6f0ea;
  --bb-line:rgba(0,51,51,0.1);
  --bb-card:#ffffff;
  --bb-muted:#5a6f66;
  --bb-leg:#f4faf6;
  font-family:"Source Sans 3",system-ui,sans-serif;
  color:var(--bb-ink);
  padding:0 0 56px;
  background:
    radial-gradient(ellipse 90% 50% at 100% 0%,rgba(0,76,40,0.07) 0%,transparent 55%),
    radial-gradient(ellipse 70% 40% at 0% 30%,rgba(187,32,0,0.04) 0%,transparent 50%),
    linear-gradient(180deg,#f7fbf8 0%,#eef5f1 48%,#f7fbf8 100%);
  margin:0 -16px;
  padding-left:16px;
  padding-right:16px;
}
.bb-page *{box-sizing:border-box;}
.bb-page h1,.bb-page h2,.bb-page h3,.bb-brand{
  font-family:"Outfit",system-ui,sans-serif;
}

.bb-shell{max-width:720px;margin:0 auto;padding:0;}

.bb-hero{
  position:relative;
  margin:0 0 28px;
  min-height:min(38vh,300px);
  border-radius:0;
  overflow:hidden;
  color:#fff;
  background:
    radial-gradient(ellipse 55% 90% at 100% 0%,rgba(187,32,0,0.5) 0%,transparent 55%),
    radial-gradient(ellipse 50% 70% at 0% 100%,rgba(10,107,60,0.55) 0%,transparent 55%),
    linear-gradient(145deg,#00100e 0%,#003333 52%,#005234 100%);
  display:flex;
  align-items:flex-end;
  padding:36px 24px 32px;
  box-shadow:0 20px 48px rgba(0,40,36,0.32);
}
.bb-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(180deg,transparent 35%,rgba(0,0,0,0.42) 100%),
    url("data:image/svg+xml,%3Csvg width='72' height='72' viewBox='0 0 72 72' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.035'%3E%3Cpath d='M36 18l2.5 7.5H46l-6 4.5 2.5 7.5L36 33l-6.5 4.5 2.5-7.5-6-4.5h7.5z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events:none;
}
.bb-hero::after{
  content:"";
  position:absolute;
  width:220px;
  height:220px;
  right:-40px;
  bottom:-60px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,0.08);
  pointer-events:none;
}
.bb-hero-inner{position:relative;z-index:1;max-width:560px;}
.bb-brand{
  font-size:clamp(2.15rem,6.5vw,3.5rem);
  font-weight:900;
  letter-spacing:-0.035em;
  line-height:0.95;
  margin:0 0 12px;
}
.bb-brand span{
  display:block;
  font-size:0.38em;
  font-weight:700;
  letter-spacing:0.22em;
  text-transform:uppercase;
  opacity:0.82;
  margin-bottom:10px;
}
.bb-hero-line{
  margin:0 0 20px;
  font-size:1.06rem;
  line-height:1.5;
  color:rgba(255,255,255,0.88);
  max-width:34ch;
}
.bb-hero-cta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:13px 22px;
  border-radius:999px;
  background:#fff;
  color:var(--bb-teal);
  font-weight:800;
  font-family:"Outfit",system-ui,sans-serif;
  font-size:14px;
  text-decoration:none;
  border:0;
  cursor:pointer;
  box-shadow:0 10px 28px rgba(0,0,0,0.22);
  transition:transform 0.22s ease,box-shadow 0.22s ease;
}
.bb-hero-cta:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 32px rgba(0,0,0,0.3);
  color:var(--bb-forest);
  text-decoration:none;
}

.bb-dates{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 22px;
  padding:6px;
  background:rgba(255,255,255,0.72);
  border:1px solid var(--bb-line);
  border-radius:16px;
  backdrop-filter:blur(8px);
}
.bb-date-btn{
  appearance:none;
  flex:1 1 auto;
  min-width:88px;
  border:0;
  background:transparent;
  color:var(--bb-teal);
  font-family:"Outfit",system-ui,sans-serif;
  font-weight:700;
  font-size:13px;
  padding:11px 14px;
  border-radius:12px;
  cursor:pointer;
  transition:background 0.2s ease,color 0.2s ease,transform 0.15s ease;
}
.bb-date-btn:hover{background:rgba(0,76,40,0.08);color:var(--bb-green);}
.bb-date-btn.is-active{
  background:var(--bb-teal);
  color:#fff;
  box-shadow:0 6px 16px rgba(0,51,51,0.22);
}

.bb-layout{display:block;}
.bb-panel{min-width:0;}
.bb-day{display:none;}
.bb-day.is-active{display:block;}

.bb-empty{
  background:rgba(255,255,255,0.85);
  border:1px dashed rgba(0,76,40,0.28);
  border-radius:18px;
  padding:36px 24px;
  text-align:center;
  color:var(--bb-muted);
}
.bb-empty strong{
  display:block;
  color:var(--bb-teal);
  font-family:"Outfit",system-ui,sans-serif;
  font-size:1.2rem;
  margin-bottom:8px;
}

.bb-card{
  background:var(--bb-card);
  border:1px solid var(--bb-line);
  border-radius:20px;
  padding:0;
  margin-bottom:16px;
  overflow:hidden;
  box-shadow:0 8px 28px rgba(0,40,36,0.06);
  transition:border-color 0.22s ease,box-shadow 0.28s ease,transform 0.22s ease;
  position:relative;
}
.bb-card::before{
  content:"";
  position:absolute;
  left:0;top:0;bottom:0;
  width:4px;
  background:linear-gradient(180deg,var(--bb-accent),var(--bb-green));
  opacity:0.85;
}
.bb-card:hover{
  border-color:rgba(0,76,40,0.28);
  box-shadow:0 16px 40px rgba(0,51,51,0.1);
  transform:translateY(-2px);
}

.bb-card-top{
  display:flex;
  flex-wrap:wrap;
  gap:8px 12px;
  align-items:center;
  justify-content:space-between;
  padding:14px 18px 0 22px;
  font-size:12px;
  font-weight:700;
  color:var(--bb-muted);
}
.bb-league{
  color:var(--bb-teal);
  letter-spacing:0.02em;
}
.bb-kick{
  font-family:"Outfit",system-ui,sans-serif;
  letter-spacing:0.06em;
  padding:4px 10px;
  border-radius:999px;
  background:var(--bb-sand);
  color:var(--bb-forest);
}

.bb-fixture{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  padding:12px 18px 16px 22px;
  border-bottom:1px solid rgba(0,51,51,0.06);
}
.bb-teams{
  font-family:"Outfit",system-ui,sans-serif;
  font-weight:800;
  font-size:clamp(1.05rem,3.5vw,1.25rem);
  color:var(--bb-ink);
  line-height:1.25;
  letter-spacing:-0.02em;
  flex:1 1 auto;
}

.bb-legs-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 18px 6px 22px;
}
.bb-legs-label{
  font-family:"Outfit",system-ui,sans-serif;
  font-size:11px;
  font-weight:800;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--bb-muted);
}
.bb-legs-count{
  font-size:11px;
  font-weight:700;
  color:var(--bb-green);
  background:rgba(10,107,60,0.1);
  padding:3px 9px;
  border-radius:999px;
}

.bb-legs{
  display:flex;
  flex-direction:column;
  gap:0;
  margin:0 14px 14px 18px;
  padding:0;
  list-style:none;
  border:1px solid rgba(0,76,40,0.12);
  border-radius:14px;
  overflow:hidden;
  background:#fff;
}
.bb-leg{
  display:grid;
  grid-template-columns:36px 1fr auto;
  align-items:center;
  gap:10px;
  width:100%;
  margin:0;
  padding:12px 14px;
  border:0;
  border-radius:0;
  border-bottom:1px solid rgba(0,76,40,0.08);
  background:linear-gradient(90deg,#f7fcf9 0%,#fff 40%);
  font-weight:700;
  font-size:14px;
  color:var(--bb-forest);
  line-height:1.35;
}
.bb-leg:last-child{border-bottom:0;}
.bb-leg:nth-child(even){
  background:linear-gradient(90deg,#f2f8f4 0%,#fafcfa 40%);
}
.bb-leg-num{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:26px;
  height:26px;
  border-radius:8px;
  background:var(--bb-teal);
  color:#fff;
  font-family:"Outfit",system-ui,sans-serif;
  font-size:12px;
  font-weight:800;
}
.bb-leg-market{
  min-width:0;
  color:var(--bb-ink);
  font-weight:700;
}
.bb-leg-odd{
  font-family:"Outfit",system-ui,sans-serif;
  font-style:normal;
  font-weight:800;
  font-size:14px;
  color:var(--bb-accent);
  white-space:nowrap;
  padding:4px 10px;
  border-radius:8px;
  background:rgba(187,32,0,0.08);
}

.bb-card-meta{
  display:flex;
  flex-wrap:wrap;
  gap:12px 16px;
  align-items:center;
  justify-content:space-between;
  margin:0;
  padding:14px 18px 16px 22px;
  background:linear-gradient(180deg,#eef7f1,#e4f0e9);
  border-top:1px solid rgba(0,76,40,0.1);
}
.bb-total-block{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:2px;
}
.bb-total-label{
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:0.08em;
  color:var(--bb-muted);
}
.bb-odd-pill{
  font-family:"Outfit",system-ui,sans-serif;
  font-weight:900;
  font-size:1.35rem;
  letter-spacing:-0.02em;
  color:var(--bb-accent);
  line-height:1.1;
}
.bb-booking{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
}
.bb-booking-label{
  font-family:"Outfit",system-ui,sans-serif;
  font-size:11px;
  font-weight:800;
  letter-spacing:0.1em;
  color:var(--bb-teal);
}
.bb-booking-code{
  font-family:ui-monospace,Consolas,monospace;
  font-size:14px;
  font-weight:700;
  padding:8px 12px;
  border-radius:10px;
  background:#fff;
  border:1px dashed rgba(0,51,51,0.22);
  color:var(--bb-ink);
}
.bb-booking-copy{
  appearance:none;
  border:0;
  border-radius:999px;
  padding:9px 16px;
  font-family:"Outfit",system-ui,sans-serif;
  font-weight:800;
  font-size:12px;
  cursor:pointer;
  background:var(--bb-accent);
  color:#fff;
  transition:background 0.2s ease,transform 0.15s ease;
}
.bb-booking-copy:hover{background:#9a1a00;transform:translateY(-1px);}
.bb-booking-copy:disabled{opacity:0.75;cursor:default;transform:none;}
.bb-booking--empty .bb-booking-missing{
  font-size:12px;
  color:var(--bb-muted);
}

.bb-score{
  display:inline-flex;
  padding:5px 11px;
  border-radius:8px;
  background:#090;
  color:#fff;
  font-weight:800;
  font-size:12px;
  font-family:"Outfit",system-ui,sans-serif;
}

.bb-page-toast{
  position:fixed;
  left:50%;
  bottom:24px;
  transform:translateX(-50%) translateY(8px);
  z-index:50;
  min-height:1.2em;
  padding:12px 18px;
  border-radius:999px;
  background:var(--bb-teal);
  color:#86efac;
  font-size:13px;
  font-weight:700;
  font-family:"Outfit",system-ui,sans-serif;
  box-shadow:0 12px 32px rgba(0,51,51,0.3);
  pointer-events:none;
  opacity:0;
  transition:opacity 0.22s ease,transform 0.22s ease;
}
.bb-page-toast:not(:empty){
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

.bb-lock{
  max-width:520px;
  margin:24px auto;
  text-align:center;
  background:#fff;
  border:1px solid var(--bb-line);
  border-radius:22px;
  padding:40px 28px;
  box-shadow:0 18px 44px rgba(0,51,51,0.1);
}
.bb-lock h2{
  margin:0 0 8px;
  font-size:1.65rem;
  color:var(--bb-teal);
}
.bb-lock p{margin:0 0 22px;color:var(--bb-muted);line-height:1.55;}
.bb-lock .bb-hero-cta{background:var(--bb-accent);color:#fff;}
.bb-lock .bb-hero-cta:hover{color:#fff;background:#9a1a00;}

.bb-anim{animation:bb-rise 0.55s ease both;}
.bb-card.bb-anim{animation-name:bb-card-in;}
.bb-anim:nth-child(2){animation-delay:0.04s;}
.bb-anim:nth-child(3){animation-delay:0.08s;}
.bb-anim:nth-child(4){animation-delay:0.12s;}
.bb-anim:nth-child(5){animation-delay:0.16s;}
.bb-anim:nth-child(6){animation-delay:0.2s;}
@keyframes bb-rise{
  from{opacity:0;transform:translateY(14px);}
  to{opacity:1;transform:translateY(0);}
}
@keyframes bb-card-in{
  from{opacity:0;transform:translateY(18px) scale(0.985);}
  to{opacity:1;transform:translateY(0) scale(1);}
}
@media (prefers-reduced-motion:reduce){
  .bb-anim,.bb-hero-cta,.bb-card{animation:none;transition:none;}
}

@media (max-width:560px){
  .bb-page{margin:0 -8px;padding-left:8px;padding-right:8px;}
  .bb-hero{padding:28px 18px 26px;min-height:min(34vh,260px);}
  .bb-card-meta{flex-direction:column;align-items:stretch;}
  .bb-booking{width:100%;}
  .bb-booking-copy{margin-left:auto;}
  .bb-leg{
    grid-template-columns:28px 1fr;
    grid-template-rows:auto auto;
  }
  .bb-leg-odd{
    grid-column:2;
    justify-self:start;
    margin-top:2px;
  }
}
