/* 1. CONTAINER - Increased top padding to 80px */
.orb-bracket-container {
    overflow-x: auto;
    background: #fdfdfd;
    padding: 80px 20px 20px 20px;
    /* Increased top padding */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.orb-bracket {
    display: flex;
    flex-direction: row;
    min-width: 1400px;
}

/* 2. COLUMNS */
.orb-round {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 260px;
    flex-shrink: 0;
    position: relative;
    box-sizing: border-box;
}

/* HEADERS - Moved up slightly */
.orb-round h3 {
    position: absolute;
    top: -60px;
    /* Moved up to make room for date */
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* NEW: DATE SUBTITLE */
.orb-round-date {
    position: absolute;
    top: -35px;
    /* Sits right below H3 */
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    color: #999;
}

/* ... [Rest of the CSS remains exactly the same] ... */
/* Paste the rest of your previous CSS here starting from ".matchup {" */

.matchup {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Geometric Heights */
.round-1 .matchup {
    height: 140px;
}

.round-2 .matchup {
    height: 280px;
}

.round-3 .matchup {
    height: 560px;
}

.round-4 .matchup {
    height: 1120px;
}

.round-5 .matchup {
    height: 2240px;
}

.round-6 .matchup {
    height: 2240px;
    justify-content: center;
}

.team-card {
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    padding: 6px 10px;
    margin: 0 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-card h4 {
    margin: 0 0 4px 0;
    font-size: 11px;
    font-weight: 600;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: baseline;
}

.team-card.tbd {
    border: 1px dashed #ddd;
    background: #f9f9f9;
    color: #bbb;
}

.orb-round:not(.round-6) .team-card::after {
    content: '';
    position: absolute;
    right: -30px;
    top: 50%;
    height: 2px;
    width: 30px;
    background: #ccc;
    z-index: 1;
}

.orb-round:not(.round-1) .team-card::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 50%;
    height: 2px;
    width: 30px;
    background: #ccc;
    z-index: 1;
}

.orb-round:not(.round-6) .matchup::after {
    content: '';
    position: absolute;
    right: 0;
    width: 2px;
    background: #ccc;
    top: 25%;
    bottom: 25%;
    z-index: 1;
}

.orb-round:not(.round-6) .matchup::before {
    content: '';
    position: absolute;
    right: -30px;
    top: 50%;
    height: 2px;
    width: 30px;
    background: #ccc;
    z-index: 1;
}

/* Round 6 layout handled by .orb-champion class */

.round-6 .team-card::after {
    display: none;
}


/* Seed badge — inline before the name */
.orb-seed {
    font-size: 8px;
    font-weight: 700;
    color: #999;
    letter-spacing: 0.5px;
    margin-right: 4px;
    flex-shrink: 0;
}

/* Winner card — green left accent (inset shadow to avoid width change) */
.team-card.orb-winner {
    box-shadow: inset 3px 0 0 #00a32a, 0 2px 5px rgba(0, 0, 0, 0.05);
    background: #f8fff8;
}

/* Loser card — faded */
.team-card.orb-loser {
    opacity: 0.5;
}

/* Winner check icon */
.orb-winner-icon {
    color: #00a32a;
    font-size: 10px;
}

/* Champion card — enhanced */
.team-card.orb-champion {
    border: 2px solid #f0c040;
    background: linear-gradient(135deg, #fffdf0 0%, #fff8e1 100%);
    height: 100px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(240, 192, 64, 0.4);
}
.team-card.orb-champion h4 {
    font-size: 14px;
    white-space: normal;
    margin-bottom: 8px;
}
.orb-champion-label {
    color: #8b6914;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.orb-champion-label i {
    color: #f0c040;
}

/* Toast notification */
.orb-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    z-index: 100000;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.orb-toast.orb-toast-success {
    background: #00a32a;
    color: #fff;
    opacity: 1;
}
.orb-toast.orb-toast-error {
    background: #d63638;
    color: #fff;
    opacity: 1;
}

.orb-card-actions {
    display: flex;
    gap: 5px;
    align-items: center;
}

.orb-info-btn,
.orb-vote-btn {
    font-size: 9px;
    padding: 4px 8px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 700;
}

.orb-info-btn {
    background: #f0f0f1;
    color: #555;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orb-vote-btn {
    background: #2271b1;
    color: #fff;
}

.orb-vote-btn:hover {
    background: #135e96;
}

.active-round {
    background-color: rgba(34, 113, 177, 0.04);
    border-radius: 8px;
}

.active-round h3 {
    color: #d63638;
}

/* Modal Styling Updates */
.orb-modal.hidden {
    display: none;
}

.orb-modal {
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.orb-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border: none;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.orb-close {
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.orb-close:hover {
    color: #000;
}

.orb-modal-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.orb-modal-links .button {
    text-align: center;
    padding: 10px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
}

#modal-link {
    background: #f0f0f1;
    color: #333;
    border: 1px solid #ccc;
}

#modal-org-link {
    background: #e6f2f8;
    color: #0073aa;
    border: 1px solid #0073aa;
}

#modal-ocd-link {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #2e7d32;
}

/* Champion winner modal */
.orb-champ-modal-content {
    text-align: center;
    padding: 40px 30px;
    max-width: 520px;
}
.orb-champ-trophy {
    font-size: 64px;
    color: #f0c040;
    margin-bottom: 8px;
    text-shadow: 0 4px 12px rgba(240, 192, 64, 0.4);
    animation: orb-trophy-bounce 0.6s ease-out;
}
@keyframes orb-trophy-bounce {
    0%   { transform: scale(0.3) rotate(-10deg); opacity: 0; }
    50%  { transform: scale(1.15) rotate(3deg); opacity: 1; }
    100% { transform: scale(1) rotate(0); }
}
.orb-champ-banner {
    display: inline-block;
    background: linear-gradient(135deg, #8b6914, #d4a017);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 24px;
    border-radius: 20px;
    margin-bottom: 16px;
}
.orb-champ-name {
    font-size: 24px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 8px;
}
.orb-champ-year {
    font-size: 13px;
    color: #8b6914;
    font-weight: 600;
    margin: 0 0 16px;
}
.orb-champ-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 24px;
}

#modal-link:hover {
    background: #ddd;
}

#modal-org-link:hover {
    background: #0073aa;
    color: #fff;
}

#modal-ocd-link:hover {
    background: #2e7d32;
    color: #fff;
}