body{
  background:#111;
  color:white;
  font-family:Arial,sans-serif;
  margin:0;
  padding:16px;
}

h1{
  font-size:24px;
  margin:0 0 8px;
}

p{
  margin-top:0;
  color:#ddd;
}

.nav{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:16px 0;
}

.nav button{
  background:#333;
  color:white;
  border:none;
  border-radius:10px;
  padding:8px 12px;
  font-size:14px;
  cursor:pointer;
}

.nav button.active{
  background:#f99e1a;
  color:#111;
  font-weight:bold;
}

.updated{
  color:#888;
  font-size:12px;
  margin:8px 0 12px;
}

#searchBox{
  width:100%;
  box-sizing:border-box;
  padding:12px;
  border-radius:10px;
  border:none;
  margin-bottom:12px;
  background:#222;
  color:white;
  font-size:14px;
}

#app{
  margin-top:16px;
  display:grid;
  gap:12px;
}

.card-link{
  color:inherit;
  text-decoration:none;
}

.card{
  background:#222;
  border-radius:14px;
  padding:14px;
  transition:.15s;
}

.card:hover{
  background:#2a2a2a;
  transform:translateY(-2px);
}

.player-name{
  font-size:20px;
  font-weight:bold;
  margin-bottom:6px;
}

.meta{
  color:#bbb;
  font-size:13px;
}

.stats{
  margin-top:8px;
  padding-top:8px;
  border-top:1px solid #444;
  font-weight:bold;
  font-size:13px;
}

.title{
  margin-top:8px;
  color:#aaa;
  font-size:12px;
  line-height:1.35;
  display:-webkit-box;
  -webkit-line-clamp:4;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.thumb{
  width:100%;
  height:160px;
  object-fit:cover;
  border-radius:10px;
  margin-bottom:8px;
}

.player-table-wrap{
  overflow-x:auto;
  background:#181818;
  border-radius:12px;
  border:1px solid #333;
}

.player-table{
  width:max-content;
  min-width:100%;
  border-collapse:collapse;
  font-size:12px;
}

.player-table th,
.player-table td{
  padding:8px;
  border-bottom:1px solid #2b2b2b;
  white-space:nowrap;
  text-align:left;
}

.player-table th{
  position:sticky;
  top:0;
  background:#1f1f1f;
  color:#ccc;
  z-index:1;
}

.player-table th.sortable{
  cursor:pointer;
  user-select:none;
}

.player-table th.sortable:hover{
  color:#f99e1a;
}

.player-table th.sorted-asc::after{
  content:" ▲";
  color:#f99e1a;
  font-size:10px;
}

.player-table th.sorted-desc::after{
  content:" ▼";
  color:#f99e1a;
  font-size:10px;
}

.player-table tr:hover{
  background:#242424;
}

.link-dot{
  font-size:16px;
  font-weight:bold;
}

.no-link{
  color:#555;
}

.tw{ color:#9146FF; }
.chz{ color:#00D564; }
.soop{ color:#3B82F6; }
.bili{ color:#FFD700; }
.yt{ color:#FF0033; }
.dc{ color:#fff; }

#app.table-mode{
  display:block;
}

#app.table-mode .player-table-wrap{
  width:100%;
}

@media (min-width:900px){
  #app{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }

  .card{
    height:170px;
    overflow:hidden;
  }
}
