body{
margin:0;
font-family:Arial;
background:#0f0f0f;
color:#fff;
}

header{
background:linear-gradient(to right,#990000,#d60000);
padding:18px;
text-align:center;
font-size:30px;
font-weight:bold;
box-shadow:0 2px 10px rgba(0,0,0,.4);
}

.wrap{
max-width:1100px;
margin:auto;
padding:15px;
}

.tabs{
display:flex;
gap:10px;
margin-bottom:20px;
}

.tab{
flex:1;
padding:12px;
border:none;
background:#222;
color:#fff;
font-size:18px;
border-radius:8px;
cursor:pointer;
}

.tab.active{
background:#d00000;
font-weight:bold;
}

section{
margin-bottom:20px;
}

.card{
background:linear-gradient(to bottom,#1e1e1e,#151515);
padding:15px;
border-radius:12px;
margin-bottom:12px;
box-shadow:0 4px 12px rgba(0,0,0,.4);
border:1px solid #2d2d2d;
}

.meta{
color:#ccc;
font-size:14px;
margin-bottom:10px;
}

.row{
display:flex;
flex-wrap:wrap;
gap:8px;
align-items:center;
}

.ball{
width:50px;
height:50px;
border-radius:50%;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
font-weight:bold;
font-size:18px;
color:#fff;
box-shadow:inset 0 -4px rgba(0,0,0,.2);
}

.ball small{
font-size:10px;
}

.red{background:#e10000;}
.blue{background:#0058ff;}
.green{background:#00a44a;}

.plus{
font-size:28px;
padding:0 6px;
}

.pager{
display:flex;
justify-content:center;
align-items:center;
gap:10px;
margin-top:15px;
}

.pager button{
padding:10px 14px;
border:none;
background:#c40000;
color:#fff;
border-radius:8px;
cursor:pointer;
}

@media(max-width:600px){

.ball{
width:42px;
height:42px;
font-size:15px;
}

header{
font-size:22px;
}

.tab{
font-size:16px;
}
}

function nextPage(){
if(currentPage < totalPages){
currentPage++;
load();
}
}

function prevPage(){
if(currentPage > 1){
currentPage--;
load();
}
}