.bracket-container {
    width: 100%;
    height: 850px;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    margin: 0;
    padding: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.bracket-div {
    width: 100%;
    height: 100%;
}

.round-label {
    font-weight: 700;
    text-align: center;
    font-size: 14px;
    fill: #1e40af;
    dominant-baseline: middle;
    letter-spacing: 0.02em;
}

.title-background {
    fill: #eff6ff;
    stroke: #60a5fa;
    stroke-width: 2;
    rx: 8;
    ry: 8;
}

.match-card {
    stroke: #cbd5e1;
    stroke-width: 2px;
    fill: #ffffff;
    cursor: pointer;
    transition: all 0.25s ease;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.05));
}

.match-card:hover {
    stroke: #3b82f6;
    stroke-width: 2.5px;
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.25));
    transform: translateY(-1px);
}

.player-name {
    font-size: 12px;
    font-weight: 600;
    fill: #1e293b;
    pointer-events: none;
    letter-spacing: 0.01em;
}

.player-bib {
    font-size: 10px;
    font-weight: 700;
    fill: #64748b;
    pointer-events: none;
}

.player-seed {
    font-size: 10px;
    fill: #94a3b8;
    pointer-events: none;
    font-style: italic;
}

.match-identifier {
    font-size: 9px;
    font-weight: 600;
    fill: #94a3b8;
    pointer-events: none;
    letter-spacing: 0.03em;
}

.course-identifier {
    font-size: 10px;
    font-weight: 800;
    pointer-events: none;
}

.match-connector {
    stroke: #94a3b8;
    stroke-width: 2px;
    fill: none;
    opacity: 0.6;
}

.winner-connector {
    stroke: #16a34a;
    stroke-width: 2.5px;
}

.loser-connector {
    stroke: #cbd5e1;
    stroke-width: 1.5px;
    stroke-dasharray: 5,5;
}

.winner {
    font-weight: bold;
    fill: #16a34a;
}

.winner-background {
    fill: #f0fdf4;
}

.winner-icon {
    fill: #22c55e;
    font-weight: bold;
    font-size: 24px;
    opacity: 0.7;
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
}

/* Blue lane styling (left side) */
.match-card rect[x="0"] {
    fill: #eff6ff;
}

/* Red lane styling (right side) */  
.match-card rect[x="110"] {
    fill: #fef2f2;
}

/* Clickable player areas */
.player-clickable-area {
    cursor: pointer;
    transition: fill 0.2s ease;
}

.player-clickable-area:hover {
    fill: rgba(59, 130, 246, 0.15);
}

/* Prevent text selection during drag */
svg {
    user-select: none;
    -webkit-user-select: none;
}

.loser-match .match-card {
    stroke: #d1d5db;
    fill: #f8fafc;
}

.loser-match .title-background {
    fill: #f1f5f9;
    stroke: #cbd5e1;
}

.round-label.loser-label {
    fill: #64748b;
}
