
.neon-bg { --neon:#00ffff; --neon-dim:#00bcd4; --bg-a:#0a0a0f; --bg-b:#12122a; --card:#16172a; --text:#e6f7ff; --muted:#8aa6b3; --win:#ccf9ff; background:linear-gradient(135deg,var(--bg-a),var(--bg-b));}
.bracket { 
    /* overflow-y: hidden;
        overflow-x: scroll; */
        width: 100%;
        height: 70vh;
    display:flex; grid-auto-flow:column; grid-auto-columns:minmax(260px,1fr); gap:1rem; padding:0rem; border-radius:16px; border:1px solid rgba(0,255,255,.15); box-shadow:0 0 40px rgba(0,255,255,.07) inset, 0 0 30px rgba(0,0,0,.5); color:var(--text); }
.bracket-header { min-width: 240px; max-width: 260px; padding: 2rem 1rem;
        position: sticky;
        top: 0;
        background-color: #121224;
        height: 100%;
    grid-column: 1 / -1; margin-bottom: .5rem; }
.bh-title {  font-weight: 900; letter-spacing: .02em; color: var(--text); text-shadow: 0 0 12px rgba(0,255,255,.15); }
.bh-sub { font-size: 12px !important; margin-top: .25rem; color: var(--neon);  opacity: .9; }
.bracket-column { min-width:300px; width: 300px; padding-top: 2rem; margin-right: 5px; display:flex; flex-direction:column; gap:1rem; position:relative; }
.round-header {  font-weight:800; text-transform:uppercase; letter-spacing:.08em; color:var(--neon); border-bottom:1px solid rgba(0,255,255,.2); padding-bottom:.5rem; margin-bottom:2px; }
.match-card { display:flex !important; flex-wrap: wrap; background: radial-gradient(ellipse at top left, rgba(0,255,255,.10), rgba(0,255,255,.02) 60%), var(--card); border:1px solid rgba(0,255,255,.18); border-radius:14px; padding:15px; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:.5rem; box-shadow:0 10px 20px rgba(0,0,0,.25); transform:translateY(6px); opacity:0; animation:riseIn .5s ease forwards; }
.team-row { display:flex; width: 100%; justify-content:space-between; align-items:center; gap:.75rem; padding:.5rem .6rem; border-radius:10px; color:var(--text); background:rgba(255,255,255,.02); border:1px solid rgba(255,255,255,.06); }
.team-name { text-align: center;
    width: 100%; font-size: 14px; font-weight:700; text-shadow:0 0 6px rgba(0,255,255,.2); padding: 0px; }
.team-score { font-size: 12px; font-family:ui-monospace, SFMono-Regular, Menlo, monospace; font-weight:600; padding:.2rem .5rem; border-radius:6px; background:rgba(0,255,255,.08); border:1px solid rgba(0,255,255,.2); }
.team-row.winner { border-color:rgba(0,255,255,.6); box-shadow:0 0 12px rgba(0,255,255,.35), inset 0 0 8px rgba(0,255,255,.15); color:var(--win); }
.pulse { animation:pulseWin 1.2s ease-in-out infinite; }
/* Upcoming state: subtle dashed vibe and brighter status chip */
.match-card.upcoming {
    border-style: dashed;
    opacity: 1;
    /* ensure it’s visible even if appear animation runs */
}

.match-card.upcoming .team-row {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.10);
}
.match-card .vs-chip {
    font-weight: 600;
    letter-spacing: .06em;
    font-size: 10px;
    padding: 10px .5rem;
    width: 140px;
    margin: 5px auto;
}
.match-card.upcoming .vs-chip {
    border-color: rgba(0, 255, 255, 0.35);
    background: rgba(0, 255, 255, 0.10);
    font-weight: 600;
    padding: 10px .5rem;
    letter-spacing: .06em;
    color: var(--neon);
    font-size: 10px;
    animation: pulseWin 2.2s ease-out infinite;
    width: 100%;
    margin: 5px auto;
}
.match-card.upcoming .team-score {
    display: none;
}
.match-card.upcoming .team-name{
   margin: auto;
}
.match-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: .5rem;
    width: 100%;
}

.stream-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: 8px 15px;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, .35);
    background: rgba(0, 255, 255, .12);
    font-weight: 400;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 1px;
    margin: auto;
    color: var(--text);
    box-shadow: 0 0 10px rgba(0, 255, 255, .15);
    transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
}

.stream-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(0, 255, 255, .28);
    background: rgba(0, 255, 255, .18);
}
.vs-chip { padding:.25rem .5rem; font-weight:900; color:var(--muted); border:1px solid rgba(0,255,255,.15); border-radius:999px; background:rgba(0,255,255,.06); text-shadow:0 0 6px rgba(0,255,255,.3); align-self:stretch; display:flex; align-items:center; justify-content:space-between; justify-content:center; }
@keyframes riseIn { from{opacity:0; transform:translateY(12px);} to{opacity:1; transform:translateY(0);} }
@keyframes pulseWin { 0%{box-shadow:0 0 0 rgba(0,255,255,0);} 30%{box-shadow:0 0 18px rgba(0,255,255,.55);} 100%{box-shadow:0 0 8px rgba(0,255,255,.25);} }
@media (max-width:900px){ .bracket{ grid-auto-columns:minmax(220px,1fr); gap:1rem; padding:0cqmax;} }
@media (max-width:640px){ .bracket{ grid-auto-flow:row; grid-auto-rows:auto;} .round-header{ margin-top:.5rem;} }

/* Inline link for team names */
.team-link-inline {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px dashed rgba(0, 255, 255, .35);
}

.team-link-inline:hover {
    border-bottom-style: solid;
}

/* Modal */
.team-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.team-modal {
    width: min(720px, 92vw);
    background: linear-gradient(135deg, rgba(10, 10, 15, .98), rgba(18, 18, 42, .98));
    border: 1px solid rgba(0, 255, 255, .25);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5), 0 0 30px rgba(0, 255, 255, .12);
    overflow: hidden;
}

.team-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem .75rem;
    border-bottom: 1px solid rgba(0, 255, 255, .2);
}

.tmh-left {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.team-logo {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .1);
}

.team-title {
    font-weight: 900;
    letter-spacing: .02em;
}

.team-link {
    display: inline-flex;
    align-items: center;
    /* padding: .4rem .7rem; */
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, .35);
    background: rgba(0, 255, 255, .12);
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
}

.team-link:hover {
    background: rgba(0, 255, 255, .18);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.team-modal-body {
    padding: 1rem;
}

.players-list {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 1.5rem;
}

.players-list li {
    padding: .35rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, .08);
}

.players-list li:last-child {
    border-bottom: none;
}

.muted {
    color: var(--muted);
}

@media (max-width:600px) {
    .players-list {
        columns: 1;
    }
}

/* Inline link for team names */
.team-link-inline{ color:var(--text); text-decoration:none; border-bottom:1px dashed rgba(0,255,255,.35); }
.team-link-inline:hover{ border-bottom-style:solid; }

/* Modal */
.team-modal-backdrop{ position:fixed; inset:0; background:rgba(0,0,0,.6); display:flex; align-items:center; justify-content:center; z-index:9999; }
.team-modal{ width:min(720px,92vw); background:linear-gradient(135deg, rgba(10,10,15,.98), rgba(18,18,42,.98)); border:1px solid rgba(0,255,255,.25); border-radius:16px; box-shadow:0 20px 60px rgba(0,0,0,.5), 0 0 30px rgba(0,255,255,.12); overflow:hidden; }
.team-modal-header{ display:flex; align-items:center; justify-content:space-between; padding:1rem .75rem; border-bottom:1px solid rgba(0,255,255,.2); }
.tmh-left{ display:flex; align-items:center; gap:.75rem; }
.team-logo{ width:40px; height:40px; object-fit:cover; border-radius:8px; border:1px solid rgba(255,255,255,.1); }
.team-title{ font-weight:900; letter-spacing:.02em; }
.team-link{ display:inline-flex; align-items:center; padding:.4rem .7rem; border-radius:10px; border:1px solid rgba(0,255,255,.35); background:rgba(0,255,255,.12); color:var(--text); text-decoration:none; font-weight:400; }
.team-link:hover{ background:rgba(0,255,255,.18); }
.modal-close{ background:transparent; border:none; color:var(--text); font-size:1.5rem; line-height:1; cursor:pointer; }
.team-modal-body{ padding:1rem; }
.players-list{ list-style:none; padding:0; margin:0; columns:2; column-gap:1.5rem; }
.players-list li{ padding:.35rem 0; border-bottom:1px dashed rgba(255,255,255,.08); }
.players-list li:last-child{ border-bottom:none; }
.muted{ color:var(--muted); }
@media (max-width:600px){ .players-list{ columns:1; } }

.round-filter {
    display: flex;
    gap: .5rem;
    align-items: start;
    margin:2px 0;
    flex-direction: column;
}

.rf-label {
    font-weight: 500;
    color: var(--muted);
    display: none;
}

.rf-select {
    background: rgba(255, 255, 255, .04);
    color: var(--text);
    border: 1px solid rgba(0, 255, 255, .18);
    border-radius: 10px;
    padding: 8px 19px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1px;
}

.rf-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 255, 255, .25);
}

.global-filter {
    display: flex;
    border-right: 0.1px #03ffff85 solid;
    background-color: #121224;
    gap: .5rem;
    height: 100%;
    position: sticky;
    top: 0;
   padding: 2rem 1rem;
text-align: center;
    margin-left: -1rem;
    flex-direction: column;
    width: 160px;
}

.gf-label {
    font-weight: 400;
    color: var(--muted);
  
}

.gf-select {
    background: rgba(255, 255, 255, .04);
    color: var(--text);
    border: 1px solid rgba(0, 255, 255, .18);
    border-radius: 10px;
    padding: .35rem .6rem;
   
}

.gf-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 255, 255, .25);
}