:root{
  --bg:#0b1220;
  --panel:rgba(255,255,255,.06);
  --panel2:rgba(255,255,255,.09);
  --text:#eaf0ff;
  --muted:rgba(234,240,255,.68);
  --line:rgba(255,255,255,.10);
  --brand:#C23182;
  --brand2:#642049;
  --radius:16px;
}

*{box-sizing:border-box}
html,body{height:100%}
body.public-body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: radial-gradient(1000px 500px at 15% 0%, rgba(194,49,130,.25), transparent 60%),
              radial-gradient(900px 500px at 85% 10%, rgba(100,32,73,.25), transparent 65%),
              var(--bg);
  color:var(--text);
  background-repeat: no-repeat;
}

.muted{color:var(--muted)}
a{color:inherit}

.pub-topbar{
  position:sticky; top:0; z-index:20;
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 14px;
  backdrop-filter: blur(10px);
  background: rgba(6,10,18,.65);
  border-bottom:1px solid var(--line);
}

.pub-brand{display:flex; gap:10px; align-items:center; text-decoration:none; min-width:0}
.pub-logo{height:34px; width:auto}
.pub-title{min-width:0}
.pub-name{font-weight:800; letter-spacing:.2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.pub-sub{font-size:12px; color:var(--muted)}

.pub-nav{display:flex; gap:10px; align-items:center}
.pub-nav a{
  text-decoration:none;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  font-size:14px;
}
.pub-nav a:hover{background: rgba(255,255,255,.07)}

.pub-container{max-width:1100px; margin:0 auto; padding:14px}

.card{
  background: var(--panel);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:14px;
}

.grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:12px;
}
@media (max-width: 900px){
  .grid{grid-template-columns:1fr}
}

.h1{font-size:22px; margin:0 0 6px 0}
.hint{font-size:13px; color:var(--muted); margin:0}

.selector{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap:10px;
  align-items:end;
}
@media (max-width: 900px){
  .selector{grid-template-columns:1fr}
}

label{display:block; font-size:12px; color:var(--muted); margin:0 0 6px 0}
select,input{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  background: rgba(255,255,255,.06);
  border:1px solid var(--line);
  color:var(--text);
  outline:none;
}
select:disabled{opacity:.6}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color:var(--text);
  text-decoration:none;
  cursor:pointer;
  font-weight:650;
}
.btn.primary{
  background: linear-gradient(135deg, rgba(194,49,130,.95), rgba(100,32,73,.95));
  border-color: rgba(255,255,255,.14);
}
.btn:disabled{opacity:.6; cursor:not-allowed}
.btn.full{width:100%}

.tabs{display:flex; gap:8px; flex-wrap:wrap; margin-top:10px}
.tab{
  padding:8px 10px; border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  cursor:pointer;
  font-size:13px;
}
.tab.active{background: rgba(255,255,255,.10)}

.list{
  display:grid; gap:10px; margin-top:12px;
}

.match{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  gap:10px;
  align-items:center;
  padding:12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
}
.match .team{display:flex; align-items:center; gap:10px; min-width:0}
.badge{
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  background: rgba(255,255,255,.06);
  border:1px solid var(--line);
  color:var(--muted);
}
.score{
  font-weight:900;
  font-size:16px;
  padding:8px 10px;
  border-radius:14px;
  background: rgba(255,255,255,.06);
  border:1px solid var(--line);
  text-align:center;
  min-width:80px;
}
.team-name{white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.team-logo{
  width:34px;height:34px;border-radius:10px;
  object-fit:cover;border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}
@media (max-width: 560px){
  .match{grid-template-columns:1fr; gap:8px}
  .score{width:100%}
}

.table-card{margin-top:12px}
.table-list{display:grid; gap:8px; margin-top:10px}
.row{
  display:grid;
  grid-template-columns: 30px 1fr 52px 52px 52px 52px 60px;
  gap:8px;
  align-items:center;
  padding:10px;
  border:1px solid var(--line);
  border-radius:14px;
  background: rgba(255,255,255,.04);
  font-size:13px;
}
.row b{font-weight:800}
@media (max-width: 720px){
  .row{grid-template-columns: 26px 1fr 44px 44px 44px 52px}
  .row .hide-sm{display:none}
}

.pub-footer{
  margin-top:20px;
  border-top:1px solid var(--line);
  background: rgba(6,10,18,.65);
}
.pub-footer-inner{
  max-width:1100px;
  margin:0 auto;
  padding:14px;
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}
.pub-footer-links{display:flex; gap:12px; flex-wrap:wrap}
.linklike{
  background:none; border:none; color:var(--muted);
  cursor:pointer; padding:0; text-decoration:underline;
}

/* Modal */
.modal{position:fixed; inset:0; display:none; place-items:center; background: rgba(0,0,0,.55); padding:16px; z-index:100}
.modal.open{display:grid}
.modal-card{
  width:min(760px, 100%);
  background: rgba(15,23,48,.92);
  border:1px solid var(--line);
  border-radius: 18px;
  overflow:hidden;
}
.modal-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 14px;
  border-bottom:1px solid var(--line);
}
.modal-title{font-weight:850}
.modal-close{
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color:var(--text);
  border-radius:12px;
  padding:8px 10px;
  cursor:pointer;
}
.modal-body{padding:14px; color:var(--text)}

/* ===== Public Footer (Extended) ===== */
.pub-footer{
  margin-top:32px;
  border-top:1px solid var(--line);
  background: linear-gradient(180deg, rgba(6,10,18,.85), rgba(6,10,18,.65));
}

.pub-footer-top{
  max-width:1100px;
  margin:0 auto;
  padding:28px 14px;
  display:grid;
  grid-template-columns: 1.4fr 2.6fr;
  gap:28px;
}

.pub-footer-brand{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.pub-footer-brand img{
  width:160px;
  max-width:100%;
}
.pub-footer-brand p{
  margin:0;
  font-size:13px;
  line-height:1.5;
  color:var(--muted);
}

.pub-footer-cols{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:20px;
}

.pub-footer-col h4{
  margin:0 0 10px 0;
  font-size:13px;
  font-weight:800;
  letter-spacing:.3px;
}
.pub-footer-col ul{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:8px;
}
.pub-footer-col a,
.pub-footer-col button{
  background:none;
  border:none;
  padding:0;
  text-align:left;
  font-size:13px;
  color:var(--muted);
  cursor:pointer;
  text-decoration:none;
}
.pub-footer-col a:hover,
.pub-footer-col button:hover{
  color:var(--text);
  text-decoration:underline;
}

.pub-footer-social{
  display:flex;
  gap:10px;
  margin-top:8px;
}
.pub-footer-social a{
  width:34px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  font-size:14px;
}

.pub-footer-bottom{
  border-top:1px solid var(--line);
  background: rgba(6,10,18,.75);
}
.pub-footer-bottom-inner{
  max-width:1100px;
  margin:0 auto;
  padding:12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  font-size:12px;
  color:var(--muted);
}

/* ===== Footer Responsive ===== */
@media (max-width: 900px){
  .pub-footer-top{
    grid-template-columns:1fr;
  }
  .pub-footer-cols{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 520px){
  .pub-footer-cols{
    grid-template-columns:1fr;
  }
  .pub-footer-brand img{
    width:140px;
  }
}