/* ==========================================================
   BünStats - kompakte Uebersicht (alle Boards auf einen Blick,
   kein Scrollen). Ergaenzt style.css, nutzt dieselben
   Farbvariablen (--gold, --anthracite usw.).
   ========================================================== */

.overview-body{
    height:100vh;
    overflow:hidden;
}

.overview-grid{
    display:grid;
    grid-template-columns:repeat(5, 1fr);
    grid-template-rows:repeat(3, 1fr);
    gap:8px;
    padding:8px;
    height:calc(100vh - 70px);
    box-sizing:border-box;
}

.mini-board{
    background:linear-gradient(180deg,var(--anthracite-light) 0%,var(--anthracite) 60%,#0d0d0d 100%);
    border:2px solid var(--gold);
    border-radius:6px;
    display:flex;
    flex-direction:column;
    padding:6px 10px;
    overflow:hidden;
    min-width:0;
    min-height:0;
}

.mini-board.empty{
    justify-content:center;
    align-items:center;
    border-color:#333;
    opacity:.55;
}

.mini-board-empty-label{
    font-size:clamp(11px,1vw,14px);
    letter-spacing:2px;
    text-transform:uppercase;
    color:var(--text-dim);
}

.mini-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:4px;
    flex:none;
}

.mini-title{
    font-size:clamp(11px,1vw,15px);
    font-weight:900;
    letter-spacing:1px;
    text-transform:uppercase;
    color:var(--text);
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.mini-live-dot{
    width:7px;
    height:7px;
    flex:none;
    border-radius:50%;
    background:var(--live-red);
    box-shadow:0 0 5px 1px rgba(224,32,32,.7);
    animation:pulse 1.4s ease-in-out infinite;
}

.mini-players{
    flex:1;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:3px;
    min-height:0;
}

.mini-player{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:6px;
    padding:2px 6px;
    border-radius:4px;
    min-width:0;
}

.mini-player.active{
    background:rgba(212,175,55,.14);
    box-shadow:inset 0 0 10px rgba(212,175,55,.15);
}

.mini-player-name{
    font-weight:800;
    font-size:clamp(9px,0.95vw,14px);
    text-transform:uppercase;
    letter-spacing:.5px;
    color:var(--text);
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    min-width:0;
}

.mini-player.active .mini-player-name{
    color:var(--gold-light);
}

.mini-player-score{
    flex:none;
    font-weight:900;
    font-variant-numeric:tabular-nums;
    font-size:clamp(16px,2.4vw,32px);
    color:#fff;
}

.mini-footer{
    display:flex;
    justify-content:space-between;
    flex:none;
    margin-top:4px;
    font-size:clamp(8px,0.7vw,11px);
    letter-spacing:1px;
    text-transform:uppercase;
    color:var(--text-dim);
}

/* Fallback fuer schmalere Browserfenster / Tablets:
   3 Spalten x 5 Zeilen statt 5x3, immer noch ohne Scrollen. */
@media(max-width:1100px){
    .overview-grid{
        grid-template-columns:repeat(3, 1fr);
        grid-template-rows:repeat(5, 1fr);
    }
}

/* Auf sehr schmalen Geraeten (Handy) ist "alle 15 auf einen
   Blick" nicht mehr sinnvoll lesbar - hier darf gescrollt werden. */
@media(max-width:640px){
    .overview-body{
        height:auto;
        overflow:auto;
    }
    .overview-grid{
        grid-template-columns:repeat(2, 1fr);
        grid-template-rows:none;
        height:auto;
        min-height:calc(100vh - 70px);
    }
    .mini-board{
        min-height:110px;
    }
}

/* ---------------- Warnzeile: wartende Turnierspiele ---------------- */

.overview-page{
    display:flex;
    flex-direction:column;
    height:calc(100vh - 70px);
}

.pending-starts{
    flex:none;
    max-height:35vh;
    overflow-y:auto;
    padding:8px clamp(12px,3vw,48px) 0;
}

.pending-start-banner{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    background:linear-gradient(90deg, rgba(61,220,132,.15), rgba(61,220,132,.05));
    border:2px solid #3ddc84;
    border-radius:10px;
    padding:12px 18px;
    margin-bottom:8px;
}

.pending-start-text{
    color:#fff;
    font-size:14px;
    line-height:1.4;
}

.pending-start-text strong{
    color:#3ddc84;
}

.overview-grid{
    flex:1;
    height:auto;
}

/* ---------------- Board-Schnellzugriff ---------------- */

.board-quicklinks{
    flex:none;
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    padding:0 clamp(12px,3vw,48px) 8px;
}

.board-quicklink{
    background:var(--anthracite);
    border:1px solid #333;
    border-radius:14px;
    padding:4px 12px;
    font-size:12px;
    color:var(--text-dim);
    text-decoration:none;
}

.board-quicklink:hover{
    border-color:var(--gold);
    color:var(--gold-light);
}

/* ---------------- Board-Detailseite ---------------- */

.board-detail-page{
    padding:32px clamp(16px,4vw,48px);
    max-width:700px;
    margin:0 auto;
}

.board-detail-banner{
    flex-direction:column;
    align-items:stretch;
    text-align:center;
    padding:32px;
}

.board-detail-matchup{
    margin-top:10px;
    font-size:22px;
    font-weight:900;
    color:#fff;
}

.board-detail-play-btn{
    margin-top:20px;
    font-size:18px;
    padding:16px 28px;
}

.board-detail-live-players{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:24px;
}

.board-detail-live-player{
    text-align:center;
}

.board-detail-live-name{
    font-size:20px;
    font-weight:900;
    text-transform:uppercase;
    color:#fff;
}

.board-detail-live-score{
    font-size:64px;
    font-weight:900;
    color:var(--gold-light);
    font-variant-numeric:tabular-nums;
}

.board-detail-live-vs{
    color:var(--text-dim);
    font-size:14px;
    letter-spacing:2px;
}
