.scoreboard-container {
    max-width: 900px;
    background: #000;
    /* Black background as requested */
    border: 1px solid #333;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.scoreboard {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    padding: var(--spacing-md);
}

/* Timer */
.timer-section {
    text-align: center;
    background: #111;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid #333;
}

.timer-display {
    font-family: 'Chakra Petch', monospace;
    font-size: 5rem;
    font-weight: 700;
    color: #ef4444;
    /* Red LED color */
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
    line-height: 1;
    margin-bottom: var(--spacing-md);
    font-variant-numeric: tabular-nums;
}

.timer-controls {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
}

.btn-control {
    background: #333;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-control:hover:not(:disabled) {
    background: #444;
}

.btn-control:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-icon {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Teams */
.teams-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

@media (max-width: 600px) {
    .teams-container {
        flex-direction: column;
    }

    .vs-divider {
        transform: rotate(90deg);
    }
}

.team-card {
    flex: 1;
    background: #111;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-name {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
    margin-bottom: var(--spacing-md);
    font-family: var(--font-family);
}

.team-name:focus {
    outline: none;
    color: white;
    border-bottom: 1px solid #555;
}

.score-display {
    font-family: 'Chakra Petch', monospace;
    font-size: 8rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    transition: transform 0.1s;
}

.score-display.pop {
    transform: scale(1.1);
    color: var(--primary-color);
}

.score-controls {
    display: flex;
    gap: var(--spacing-md);
}

.btn-score {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #333;
    background: #222;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-score:hover {
    background: #333;
    border-color: #555;
}

.btn-score.plus {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
    color: #10b981;
}

.btn-score.plus:hover {
    background: rgba(16, 185, 129, 0.3);
}

.btn-score.minus {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.btn-score.minus:hover {
    background: rgba(239, 68, 68, 0.3);
}

.vs-divider {
    font-size: 1.5rem;
    font-weight: 800;
    color: #333;
    font-style: italic;
}

/* Global Controls */
.global-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid #333;
}

.period-control {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: #aaa;
    font-size: 1.2rem;
}

.period-control span {
    font-weight: 600;
    color: white;
}

.btn-mini {
    background: #333;
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-danger {
    background: #7f1d1d;
    color: #fecaca;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.btn-danger:hover {
    background: #991b1b;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    backdrop-filter: blur(5px);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #1e293b;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 400px;
    border: 1px solid #333;
}

.modal-content h3 {
    margin-bottom: var(--spacing-md);
    color: white;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}