/* =============================================================================
   Bracket tree — shared by the player-facing tournaments page and the admin
   panel's interactive match-result view.
   ============================================================================= */

.bracket-tree {
    display: flex;
    gap: 46px;
    min-width: 640px;
    padding-bottom: 6px;
    overflow-x: auto;
}

.bracket-round {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 26px;
    flex: 1;
    min-width: 190px;
}

.bracket-round .round-label {
    font-family: var(--font-eyebrow);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brass-dim);
    text-align: center;
    margin-bottom: 4px;
}

.bmatch {
    background: var(--bg-soft);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
}

.bmatch.live {
    border-color: rgba(193, 92, 55, 0.5);
    box-shadow: 0 0 0 1px rgba(193, 92, 55, 0.15);
}

.bmatch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    font-size: 13px;
    color: var(--ivory-dim);
}

.bmatch-row:first-child {
    border-bottom: 1px solid var(--line-soft);
}

.bmatch-row.winner {
    color: var(--brass-bright);
    font-weight: 700;
}

.bmatch-row .tbd {
    color: var(--ivory-faint);
    font-style: italic;
}

.bmatch-pick {
    background: none;
    border: none;
    color: var(--ivory);
    font-size: 13px;
    font-family: inherit;
    text-align: left;
    width: 100%;
    padding: 0;
    cursor: pointer;
    transition: color 0.15s ease;
}

.bmatch-pick:hover {
    color: var(--sage-bright);
    text-decoration: underline;
}

.bracket-wrap {
    overflow-x: auto;
}

/* =============================================================================
   Phase 5 additions — sections, schedule times, Play button, ready/no-show
   markers, and the admin round scheduler.
   ============================================================================= */

.bracket-section { margin-bottom: 30px; }
.bracket-section:last-child { margin-bottom: 0; }
.bracket-section-title {
    font-family: var(--font-eyebrow);
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brass-bright);
    margin-bottom: 12px;
}

.round-head { text-align: center; margin-bottom: 4px; }
.round-head .round-label { margin-bottom: 2px; }
.round-schedule { font-size: 11.5px; color: var(--ivory-faint); }
.round-schedule-btn,
.round-schedule-save {
    margin-top: 6px;
    background: none;
    border: 1px solid var(--line);
    color: var(--brass-bright);
    border-radius: var(--radius-sm);
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 9px;
}
.round-schedule-btn:hover,
.round-schedule-save:hover { border-color: var(--brass-dim); background: rgba(207, 157, 62, 0.08); }
.round-schedule-editor { display: none; gap: 6px; justify-content: center; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.round-schedule-editor input {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    color: var(--ivory);
    border-radius: var(--radius-sm);
    padding: 4px 6px;
    font-size: 12px;
}
.round-schedule-editor .round-schedule-save { margin-top: 0; }

.bmatch.void { opacity: 0.55; border-style: dashed; }

.bmatch-row { gap: 8px; }
.bmatch-name { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bmatch-extras { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.bmatch-row.late .bmatch-name { text-decoration: line-through; color: var(--ivory-faint); }

.bmatch-tag {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 2px 7px;
    border-radius: 999px;
    white-space: nowrap;
}
.bmatch-tag--ready { background: rgba(138, 164, 120, 0.16); color: var(--sage-bright); }
.bmatch-tag--late { background: rgba(193, 92, 55, 0.16); color: var(--clay-bright); }

.bmatch-play {
    background: linear-gradient(180deg, var(--brass-bright), var(--brass));
    color: #221807;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    white-space: nowrap;
    box-shadow: 0 4px 14px -6px rgba(207, 157, 62, 0.7);
    animation: bmatch-play-pulse 1.6s ease-in-out infinite;
}
.bmatch-play:disabled { opacity: 0.6; animation: none; cursor: default; }
@keyframes bmatch-play-pulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.15); } }

.bmatch-foot {
    padding: 6px 12px;
    font-size: 11.5px;
    color: var(--ivory-faint);
    border-top: 1px solid var(--line-soft);
    background: rgba(0, 0, 0, 0.12);
}
.bmatch-live-link { color: var(--clay-bright); font-weight: 700; }
.bmatch-live-link:hover { text-decoration: underline; }