/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== Base Body ===== */
body {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.obs-mode {
    width: 800px;
    height: 400px;
    background: transparent !important;
}

body.website-mode {
    width: 100%;
    min-height: 100vh;
    background: #0a1628 !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
    padding: 32px;
}

/* ============================================
   OVERVIEW BOARD
   ============================================ */
.scoreboard {
    background: linear-gradient(180deg, #1f3f8c 0%, #1a2f63 100%);
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.scoreboard-single-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    /* Score mittig, Teams dicht dran */
    gap: 16px;
    height: 100px;
    padding: 0 20px;
    width: 625px;
}

/* scoreboard-single-row: feste OBS-Breite auch auf Website */

.overview-team {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 1 auto;
    /* nur so breit wie nötig */
    min-width: 0;
}

.overview-team-left {
    flex-direction: row;
    justify-content: flex-start;
}

.overview-team-right {
    flex-direction: row;
    justify-content: flex-end;
}

.overview-team .team-logo {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overview-team .team-logo img {
    height: 65px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
    image-rendering: crisp-edges;
}

.overview-team .team-name {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ffffff;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Score-Block Mitte */
.overview-score-center {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 0 10px;
}

.overview-score-center .team-score {
    width: 88px;
    height: 64px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    transition: all 0.3s;
    flex-shrink: 0;
}

.overview-colon {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

/* ============================================
   LIVE MATCH BOARD
   ============================================ */
.live-match-board {
    background: linear-gradient(180deg, #1f3f8c 0%, #1a2f63 100%);
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 760px;
    height: 180px;
    overflow: hidden;
}

/* website-mode: Boards exakt wie OBS — keine Overrides nötig */

.live-match-layout {
    display: flex;
    flex-direction: row;
    height: 100%;
    width: 100%;
}

.live-match-badge-column {
    width: 52px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.live-match-teams {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    height: 100%;
    padding: 12px 24px 12px 12px;
}

.live-match-board .team-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.live-match-board .team-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

.live-match-board .team-logo {
    width: 70px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-match-board .team-logo img {
    height: 68px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.live-match-board .player-names {
    display: flex;
    align-items: center;
    min-width: 0;
}

.live-match-board .player-name {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ffffff;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 340px;
    line-height: 1.2;
}

.live-match-board .score-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.live-match-board .completed-sets {
    display: flex;
    gap: 8px;
    align-items: center;
}

.live-match-board .completed-set-box {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
}

.live-match-board .completed-set-box.won {
    background: rgba(72, 187, 120, 0.3);
    border-color: #48bb78;
    color: #48bb78;
    box-shadow: 0 0 10px rgba(72, 187, 120, 0.3);
}

.live-match-board .completed-set-box.lost {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: rgba(239, 68, 68, 0.7);
}

.live-match-board .current-score {
    width: 88px;
    height: 64px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    transition: all 0.3s;
    flex-shrink: 0;
}

.live-match-board .current-score.serving {
    background: rgba(255, 193, 7, 0.25);
    border: 1px solid #ffffff;
    animation: servePulse 1.5s infinite;
}

@keyframes servePulse {

    0%,
    100% {
        box-shadow: 0 0 0px rgba(245, 245, 243, 0.6);
    }

    50% {
        box-shadow: 0 0 12px rgb(238, 238, 236);
    }
}

.live-match-board .current-score.score-update {
    animation: scorePopIn 0.4s ease-out;
}

@keyframes scorePopIn {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

/* ============================================
   DISZIPLIN BADGE (rotiert links) — feste Größe
   ============================================ */
.match-disc-badge {
    transform: rotate(-90deg);
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.13);
    width: 180px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    flex-shrink: 0;
}

.match-disc-badge:empty {
    display: none;
}