.blz-match-page,
.blz-form-box,
.blz-history-box {
    box-sizing: border-box;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.blz-match-page *,
.blz-form-box *,
.blz-history-box * {
    box-sizing: border-box;
}

.blz-match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.blz-logo { height: 60px; width: auto; }
.blz-ball-icon { height: 50px; width: auto; }

.blz-match-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.blz-player-card {
    flex: 1 1 0;
    min-width: 0;
    background: #F8FAFF;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.blz-player-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.blz-player-photo-large {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0A2A66;
}

.blz-player-name { font-size: 20px; font-weight: 700; }
.blz-player-info { font-size: 14px; color: #555; }

.blz-score-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

.blz-score-btn {
    padding: 8px 14px !important;
    min-width: 48px;
    font-size: 20px !important;
    background: #0A2A66 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 6px !important;
    cursor: pointer;
}

.blz-score-btn:hover { background: #0C3A99 !important; }

.blz-score-hidden-input {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.blz-score-display-big {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin: 30px 0;
    font-family: 'Orbitron', sans-serif;
}

.blz-live-elo-box {
    background: #eef3ff;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ccd5ee;
    margin-bottom: 20px;
}

.blz-live-elo-box h3 { margin-top: 0; }
.blz-save-button { display: block !important; margin: 0 auto !important; }

.blz-message {
    padding: 12px 14px;
    border-radius: 8px;
    margin: 15px 0;
}
.blz-message-error { background: #fff1f0; border: 1px solid #d63638; }
.blz-message-success { background: #edf8ee; border: 1px solid #46b450; }

.blz-form-box,
.blz-history-box {
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border: 2px solid #0A2A66;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
}

.blz-form-box select,
.blz-form-box input[type="text"],
.blz-form-box input[type="url"],
.blz-form-box input[type="password"],
.blz-form-box input[type="number"] {
    width: 100%;
    max-width: 100%;
}

.blz-history-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    color: #0A2A66;
    margin-bottom: 15px;
    text-align: center;
}

.blz-table-wrap { overflow-x: auto; }
.blz-history-table,
.blz-rangliste-table { width: 100%; border-collapse: collapse; }
.blz-history-table th,
.blz-rangliste-table th { background: #0A2A66; color: #fff; padding: 10px; text-align: left; }
.blz-history-table td,
.blz-rangliste-table td { padding: 8px 10px; border-bottom: 1px solid #ddd; }
.blz-history-table tbody tr:nth-child(even),
.blz-rangliste-table tbody tr:nth-child(even) { background: #F4F7FF; }
.blz-history-table tbody tr:hover,
.blz-rangliste-table tbody tr:hover { background: #E8EEFF; }

.blz-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
}
.blz-pagination a { color: #0A2A66; font-weight: 700; text-decoration: none; }
.blz-pagination a:hover { text-decoration: underline; }

.blz-player-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #0A2A66;
    margin-right: 6px;
    vertical-align: middle;
}

.blz-blank-page { margin: 0; }
.blz-blank-content { width: min(1100px, calc(100% - 30px)); margin: 30px auto; }

@media (max-width: 700px) {
    .blz-match-container { flex-direction: column; }
    .blz-score-display-big { font-size: 40px; margin: 20px 0; }
    .blz-logo { height: 48px; }
    .blz-ball-icon { height: 44px; }
}


/* Rangliste: Match starten immer rechts sichtbar */
.blz-rangliste-action-head,
.blz-rangliste-action {
    text-align: right !important;
    white-space: nowrap;
}
.blz-rangliste-table .blz-start-match-btn {
    display: inline-block !important;
    padding: 6px 12px !important;
    background: #0A2A66 !important;
    color: #fff !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    white-space: nowrap;
}
.blz-rangliste-table .blz-start-match-btn:hover {
    background: #0C3A99 !important;
    color: #fff !important;
}
