:root {
    --blue: #0a2cff;
    --yellow: #ffd500;
    --bg: #f7f9ff;
    --text: #111;
    --gray: #666;
}

body {
    font-family: Arial, sans-serif;
    background: var(--bg);
    padding: 10px;
    color: var(--text);
}

a {
    color: var(--blue);
    text-decoration: none;
}

/* ====== КАРТОЧКИ ====== */
.card {
    background: #fff;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* сыгранный матч */
.card.finished {
    border-left: 6px solid var(--yellow);
    background: #fffdf2;
}

/* ====== ПЕРЕКЛЮЧАТЕЛЬ ====== */
.switcher {
    display: flex;
    margin-bottom: 15px;
}

.switcher a {
    flex: 1;
    padding: 12px;
    text-align: center;
    background: #e6eaff;
    color: var(--blue);
    font-weight: bold;
}

.switcher a.active {
    background: var(--blue);
    color: #fff;
}

/* ====== ТАБЛИЦА ====== */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th, td {
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

td.team {
    text-align: left;
    font-weight: bold;
}

/* ====== МАТЧ ====== */
.match-line {
    display: grid;
    grid-template-columns: 50px 1fr 60px 1fr;
    align-items: center;
    font-weight: bold;
}

.match-line .time {
    font-size: 13px;
    color: var(--gray);
}

.score {
    text-align: center;
    font-size: 18px;
    color: var(--blue);
}

/* партии под счётом */
.sets {
    text-align: center;
    margin-top: 6px;
    font-size: 14px;
    color: var(--gray);
}

/* ====== КНОПКИ ====== */
button,
.btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
}

.btn-yellow {
    background: var(--yellow);
    color: #000;
}

.back-btn {
    display: inline-block;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: var(--yellow);
    color: #000;
    border-radius: 8px;
    font-weight: bold;
}

/* ====== РЕДАКТИРОВАНИЕ ====== */
.set {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.set input {
    width: 70px;
    text-align: center;
    font-size: 16px;
}

.error {
    border: 2px solid red;
}
.date-header {
    background: linear-gradient(90deg, var(--blue), var(--yellow));
    color: #fff;
    text-align: center;
    padding: 10px;
    margin: 15px -10px;
    font-weight: bold;
    font-size: 16px;
}



.match-grid {
    display: grid;
    grid-template-columns: 50px 1fr auto 1fr;
    align-items: center;
    column-gap: 10px;
    margin-top: 6px;
}

.time {
    font-size: 14px;
    color: var(--gray);
}
.team {
    font-weight: bold;
    white-space: nowrap;
}

.team-left {
    justify-self: start;
}

.team-right {
    justify-self: end;
}

.score-block {
    text-align: center;
}

.match-score {
    font-size: 18px;
    font-weight: bold;
    color: var(--blue);
}

.set-scores {
    font-size: 14px;
    color: var(--gray);
    margin-top: 2px;
}