:root{ --gc-w: 300px; }

.gc-banner{
  position:fixed;
  left:0;
  top:169px;
  bottom:20px;
   width: var(--gc-w);
  background:linear-gradient(180deg,#121622,#0b0f16);
  border-right:1px solid #232636;
  border-top-right-radius:12px;
  border-bottom-right-radius:12px;
  padding:.6rem;
  display:flex;
  flex-direction:column;
  gap:.5rem;
  z-index:900;
}
@media (max-width:1024px){
  .gc-banner{ display:none; }
}

.gc-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.gc-toggle{
  background:#141a24;
  border:1px solid #273042;
  border-radius:.5rem;
  color:#e6e6e6;
  padding:.25rem .45rem;
  cursor:pointer;
}

.gc-stream{
  flex:1;
  overflow:auto;
  border:1px solid #1f2533;
  border-radius:.6rem;
  padding:.5rem;
  background:#0f141c;
}
.gc-msg{
  display:flex;
  flex-direction:column;
  gap:.1rem;
  border-bottom:1px dashed #202737;
  padding:.4rem 0;
}
.gc-msg:last-child{border-bottom:0;}
.gc-meta{font-size:.82rem;opacity:.7;}
.gc-body{white-space:pre-wrap;word-break:break-word;font-size:.88rem;}

.gc-form{
  display:flex;
  gap:.4rem;
  align-items:center;
}
.gc-form input[type=text]{
  flex:1;
  border:1px solid #2a2f3a;
  background:#0f1115;
  color:#e6e6e6;
  border-radius:.6rem;
  padding:.5rem;
}
.gc-note{
  opacity:.7;
  margin-top:.2rem;
}

/* gold button reuse */
.btn--gold{
  background:linear-gradient(180deg,#E7C14D,#CFA73A);
  border-color:#CFA73A;
  color:#0e0e0e;
  font-weight:600;
}
.btn--gold:hover{
  background:linear-gradient(180deg,#CFA73A,#A88424);
  border-color:#A88424;
}

/* modal */
.modal-overlay[hidden]{ display:none !important; }
.modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.65);
  backdrop-filter:blur(2px);
  display:grid;
  place-items:center;
  z-index:1000;
}
.modal-card{
  width:min(720px,92vw);
  max-height:85vh;
  overflow:auto;
  background:var(--card);
  border:1px solid #232636;
  border-radius:1rem;
  padding:1rem;
  position:relative;
}
.modal-close{
  position:absolute;
  top:.4rem;
  right:.6rem;
  font-size:1.8rem;
  line-height:1;
  background:none;
  border:0;
  color:#e5e7eb;
  cursor:pointer;
}

/* promos */
.card.promo-item{
  display:grid;
  grid-template-columns:minmax(220px,30%) 1fr;
  gap:1rem;
  align-items:stretch;
  min-height:180px;
}
.promo-logo{
  width:100%;
  height:100%;
  padding:0;
  border:1px solid #232636;
  border-radius:.75rem;
  overflow:hidden;
  background:rgba(255,255,255,.02);
  display:block;
}

/* Mobile: stack logo above info */
@media (max-width:600px){
  .card.promo-item{
    grid-template-columns:1fr;
    min-height:auto;
  }
  .promo-logo{
    width:100%;
    height:160px;
    border-radius:.6rem;
  }
}
.promo-actions{
  display:flex;
  align-items:center;
  gap:.5rem;
  flex-wrap:wrap;
}
.byline{
  margin-top:.15rem;
  font-size:.85rem;
  color:var(--muted);
}
.byline a{
  color:inherit;
  text-decoration:underline;
}
.byline a:hover{
  text-decoration:none;
}
.js-bonus-stars{
  cursor:pointer;
  display:inline-block;
}
.js-bonus-stars:hover{
  filter:brightness(1.15);
}

/* =========================
   HOME LAYOUT  — 3 columns on large screens
   .home-news-main   = LEFT  (Latest Sports News)
   .home-fixtures-col= MIDDLE (Upcoming Fixtures)
   .home-sidebar     = RIGHT  (Bonuses)
   ========================= */

.home-layout{
  display:grid;
  grid-template-columns: 2fr 480px 1.2fr;
  gap:1.5rem;
  margin-top:1.5rem;
  align-items:stretch;
  padding-left: 7rem;
  padding-right: 1.5rem;
  width: 100vw;
  margin-left: calc(-1 * (100vw - 100%) / 2);
  box-sizing: border-box;
}

.home-news-main{
  min-width:0;
}

/* ── MIDDLE: Fixtures column — stretches to news height ── */
.home-fixtures-col{
  min-width:0;
  display:flex;
  flex-direction:column;
}

/* Make the fixtures card fill the full column height */
.home-fixtures-col .right-fixtures{
  flex:1 1 0;
}

/* ── RIGHT: Bonuses sidebar — top aligned ── */
.home-sidebar{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:1rem;
  align-self:start;
}

/* Wider screens: grow fixtures and bonuses a touch */
@media (min-width:1280px){
  .home-layout{
    grid-template-columns: 2fr 520px 1.2fr;
  }
}

@media (min-width:1536px){
  .home-layout{
    grid-template-columns: 2fr 580px 1.2fr;
  }
}

/* Tablet */
@media (max-width:1024px) and (min-width:641px){
  .home-layout{
    grid-template-columns: 1fr 1fr;
    width: 100vw;
    margin-left: calc(-1 * (100vw - 100%) / 2);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .home-news-main{
    grid-column: 1 / -1;
  }
}

/* Mobile */
@media (max-width:640px){
  .home-layout{
    grid-template-columns: 1fr;
    width: 100vw;
    margin-left: calc(-1 * (100vw - 100%) / 2);
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .home-fixtures-col{
    display:block;
    height:auto;
  }
}

/* Legacy classes — hidden/reset */
.home-main{ display:contents; }
.home-right{ display:none; }

/* =========================
   FULL-WIDTH RANKING ROW
   Stretches across the entire page width below the 2-col layout
   ========================= */

.home-ranking-row{
  margin-top:1.5rem;
  padding-left:1.5%;
  padding-right:0;
  margin-right: calc(-1 * (100vw - 100%) / 2);
  box-sizing:border-box;
}

.home-ranking-row section{
  width:100%;
}

.home-ranking-row h2{
  font-size:1rem;
  font-weight:700;
  margin:0 0 .75rem;
  text-transform:uppercase;
  letter-spacing:.09em;
  color:#e5e7eb;
  padding-bottom:.5rem;
  border-bottom:1px solid #1e2535;
}

.home-ranking-row .card{
  width:100%;
  box-sizing:border-box;
}

/* On large screens lay out ranking criteria in a grid */
@media (min-width:1025px){
  .home-ranking-row .prose ul{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:.6rem 1.2rem;
    list-style:none;
    padding:0;
    margin:.65rem 0;
  }
  .home-ranking-row .prose ul li{
    background:#0a0d18;
    border:1px solid #1e2535;
    border-radius:.6rem;
    padding:.6rem .75rem;
    font-size:.82rem;
  }
  .home-ranking-row .prose p{
    font-size:.82rem;
    margin:.5rem 0 0;
  }
}

@media (min-width:1280px){
  .home-ranking-row .prose ul{
    grid-template-columns:repeat(5, 1fr);
  }
}

/* =========================
   LATEST SPORTS NEWS — big hero treatment
   ========================= */

.right-news{
  background:var(--card);
  border:1px solid #232636;
  border-radius:.85rem;
  padding:1rem 1.1rem;
  box-shadow:0 8px 24px rgba(0,0,0,.4);
}

.right-news h2{
  font-size:1.1rem;
  font-weight:700;
  margin:0 0 .85rem;
  text-transform:uppercase;
  letter-spacing:.09em;
  color:#e5e7eb;
  padding-bottom:.55rem;
  border-bottom:1px solid #1e2535;
}

.right-news .rn-list{
  display:flex;
  flex-direction:column;
  gap:.65rem;
}

/* First item: large hero card with full-width banner image */
.right-news .rn-item:first-child{
  flex-direction:column;
  align-items:stretch;
  padding:0;
  border-radius:.7rem;
  border:1px solid #232636;
  background:#07091a;
  overflow:hidden;
}
.right-news .rn-item:first-child .rn-thumb{
  width:100%;
  height:auto;
  aspect-ratio:16/9;
  border-radius:0;
  flex-shrink:unset;
}
.right-news .rn-item:first-child .rn-thumb img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center top;
  background:#07091a;
}
.right-news .rn-item:first-child .rn-text{
  padding:.85rem 1rem .7rem;
  gap:.3rem;
}
.right-news .rn-item:first-child .rn-title{
  font-size:1.1rem;
  font-weight:600;
  line-height:1.4;
  color:#f3f4f6;
}
.right-news .rn-item:first-child .rn-meta{
  font-size:.75rem;
  color:#9ca3af;
}

/* Remaining items: compact horizontal rows */
.right-news .rn-item{
  display:flex;
  align-items:center;
  gap:.65rem;
  padding:.5rem .55rem;
  border-radius:.55rem;
  background:#050811;
  border:1px solid transparent;
  text-decoration:none;
  transition:background .15s,border-color .15s,transform .15s;
}
.right-news .rn-item:hover{
  border-color:#374151;
  background:#070c18;
  transform:translateY(-1px);
}

.right-news .rn-thumb{
  width:90px;
  height:62px;
  border-radius:.45rem;
  overflow:hidden;
  background:#020817;
  flex-shrink:0;
}
.right-news .rn-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.right-news .rn-fallback{
  width:100%; height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.8rem;
  font-weight:900;
  font-family:'Arial Black', 'Helvetica Neue', 'Arial', sans-serif;
  color:#e8000d;
  text-transform:uppercase;
  letter-spacing:-.02em;
  text-shadow:0 0 24px rgba(232,0,13,.45), 0 2px 8px rgba(0,0,0,.8);
}

.right-news .rn-text{
  display:flex;
  flex-direction:column;
  gap:.12rem;
}
.right-news .rn-title{
  font-size:.88rem;
  color:#e5e7eb;
  line-height:1.35;
}
.right-news .rn-meta{
  font-size:.66rem;
  color:#9ca3af;
}
.right-news .rn-more{
  display:block;
  margin-top:.55rem;
  font-size:.72rem;
  text-align:right;
  color:var(--muted);
}

/* =========================
   BONUSES SIDEBAR BANNER — compact right panel
   ========================= */

/* Override global promo card: compact 2-col logo+text */
.home-sidebar .card.promo-item{
  display:grid;
  grid-template-columns:100px 1fr;
  gap:.65rem;
  align-items:center;
  min-height:auto;
  padding:.7rem .75rem;
}

.home-sidebar .promo-logo{
  width:100px;
  height:70px;
  padding:0;
  border:1px solid #232636;
  border-radius:.5rem;
  overflow:hidden;
  background:rgba(255,255,255,.02);
  display:block;
}

@media (max-width:600px){
  .home-sidebar .card.promo-item{
    grid-template-columns:1fr;
  }
  .home-sidebar .promo-logo{
    width:100%;
    height:140px;
    border-radius:.6rem;
  }
}

/* Shrink text in sidebar promo cards */
.home-sidebar .hero .highlight > h1{
  font-size:.85rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
  margin:0 0 .3rem;
  color:#e5e7eb;
}
.home-sidebar .hero .highlight > p{
  font-size:.7rem;
  margin-bottom:.65rem;
  color:var(--muted);
}
.home-sidebar h3{
  font-size:.8rem;
  margin:.1rem 0 .05rem;
  line-height:1.25;
}
.home-sidebar .promo-meta{
  font-size:.65rem;
}
.home-sidebar .byline{
  font-size:.7rem;
}
.home-sidebar .muted{
  font-size:.68rem;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.home-sidebar .promo-actions{
  gap:.35rem;
  margin-top:.3rem;
}
.home-sidebar .btn{
  font-size:.72rem;
  padding:.3rem .6rem;
}
.home-sidebar .promo-list{
  display:flex;
  flex-direction:column;
  gap:.5rem;
}

/* Wrap sidebar hero section in a card-like panel */
.home-sidebar .hero{
  background:var(--card);
  border:1px solid #232636;
  border-radius:.85rem;
  padding:.8rem .85rem;
  box-shadow:0 8px 24px rgba(0,0,0,.4);
}
.home-sidebar .hero .highlight{
  all:unset;
  display:block;
}

/* =========================
   FIXTURES SIDEBAR BANNER — compact right panel
   ========================= */

.right-fixtures{
  background:var(--card);
  border:1px solid #232636;
  border-radius:.85rem;
  padding:.8rem .9rem;
  box-shadow:0 8px 24px rgba(0,0,0,.4);
  display:flex;
  flex-direction:column;
  height:100%;
  box-sizing:border-box;
}

.right-fixtures h2{
  font-size:.9rem;
  font-weight:700;
  margin:0 0 .5rem;
  text-transform:uppercase;
  letter-spacing:.09em;
  color:#e5e7eb;
  padding-bottom:.4rem;
  border-bottom:1px solid #1e2535;
  flex-shrink:0;
}

.right-fixtures .rf-table-wrap{
  margin-top:.1rem;
  flex:1 1 auto;
  min-height:200px; /* ensures content visible even with no parent height */
  overflow-y:auto;
  scrollbar-width:thin;
  scrollbar-color:#2a3045 transparent;
}
.right-fixtures .rf-table-wrap::-webkit-scrollbar{ width:4px; }
.right-fixtures .rf-table-wrap::-webkit-scrollbar-track{ background:transparent; }
.right-fixtures .rf-table-wrap::-webkit-scrollbar-thumb{ background:#2a3045; border-radius:4px; }

/* Mobile: remove height:100% dependency entirely */
@media(max-width:640px){
  .right-fixtures{
    height:auto;
  }
  .right-fixtures .rf-table-wrap{
    flex:none;
    min-height:0;
    max-height:400px;
  }
}

.rf-table{
  width:100%;
  border-collapse:collapse;
  font-size:.88rem;
}
.rf-table tbody tr{
  border-bottom:1px solid rgba(148,163,253,.08);
}
.rf-table tbody tr:last-child{ border-bottom:0; }

.rf-meta{
  width:36%;
  vertical-align:top;
  padding:.4rem .4rem .4rem 0;
  white-space:nowrap;
}
.rf-meta .pill{
  display:inline-block;
  font-size:.62rem;
  padding:.06rem .28rem;
  border-radius:999px;
  background:rgba(37,99,235,.16);
  color:#bfdbfe;
}
.rf-time{
  margin-top:.08rem;
  font-size:.68rem;
  color:#9ca3af;
}
.rf-match{
  padding:.4rem 0 .4rem .05rem;
  vertical-align:top;
}
.rf-teams{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:.2rem;
  color:#e5e7eb;
  font-size:.88rem;
}
.rf-vs{
  opacity:.7;
  font-size:.72rem;
}
.rf-league{
  margin-top:.05rem;
  font-size:.7rem;
  color:#9ca3af;
}

/* Shared right-card for anything else in sidebar */
.right-card{
  background:var(--card);
  border:1px solid #232636;
  border-radius:.85rem;
  padding:.8rem .9rem;
  box-shadow:0 8px 24px rgba(0,0,0,.4);
}
.right-card h2{
  font-size:.78rem;
  font-weight:700;
  margin:0 0 .5rem;
  text-transform:uppercase;
  letter-spacing:.09em;
  color:#e5e7eb;
  padding-bottom:.4rem;
  border-bottom:1px solid #1e2535;
}