*{box-sizing:border-box}
body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  background:#0b0f1a;
  color:#fff;
}

.topbar{
  background:#11172a;
  padding:14px;
  text-align:center;
  border-bottom:1px solid #1f2a48;
}

.container{
  max-width:1100px;
  margin:auto;
  padding:16px;
}

.match-list{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}

.match-card{
  background:#131a33;
  border-radius:10px;
  padding:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.teams{
  display:flex;
  align-items:center;
  gap:12px;
}

.teams img{
  width:48px;
  height:48px;
}

.team-name{
  font-size:14px;
  font-weight:bold;
}

.match-info{
  text-align:center;
  font-size:13px;
  color:#9aa4c7;
}

.match-action button{
  background:#2563eb;
  border:none;
  padding:10px 14px;
  border-radius:6px;
  color:#fff;
  cursor:pointer;
  font-weight:bold;
}

.match-action button:hover{
  background:#1d4ed8;
}

/* MODAL */
.modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.7);
  display:flex;
  justify-content:center;
  align-items:center;
  z-index:999;
}

.hidden{display:none}

.modal-box{
  background:#0e1430;
  width:90%;
  max-width:900px;
  border-radius:10px;
  overflow:hidden;
}

/* HEADER FIX DESKTOP */
.modal-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 14px;
  background:#111b3d;
  border-bottom:1px solid #1f2a48;
}

.modal-header span{
  font-weight:bold;
}

.modal-header button{
  background:#ef4444;
  border:none;
  color:#fff;
  font-size:18px;
  padding:4px 10px;
  border-radius:4px;
  cursor:pointer;
}

/* CHANNEL BUTTON FIX */
.channel-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:10px;
  background:#0c1228;
}

.channel-btn{
  background:#1f2937;
  color:#fff;
  border:none;
  padding:8px 10px;
  border-radius:6px;
  cursor:pointer;
  font-size:13px;
}

.channel-btn.telegram{
  background:#0088cc;
}

/* PLAYER */
.player-wrap{
  position:relative;
  padding-top:56.25%;
}

.player-wrap iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:none;
}

/* DESKTOP */
@media(min-width:768px){
  .match-list{
    grid-template-columns:1fr 1fr;
  }
}
