.bracket-container {
    /* Transparent/Clean Background */
    background: transparent;
    padding: 20px 0;
    /* Remove overflow to avoid scrollbars unless necessary */
    /* overflow-x: auto; - Removed per user request */
    display: flex;
    justify-content: center;
    position: relative;
    /* No box shadow */
}

/* Field Lines Overlay - Removed */

.bracket-wrapper {
    display: flex;
    gap: 40px;
    position: relative;
    z-index: 2;
    width: 100%;
    justify-content: space-between;
}

/* Conference Sides */
.conf-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.afc-title,
.nfc-title {
    font-size: 48px;
    font-weight: 900;
    opacity: 0.1;
    position: absolute;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    white-space: nowrap;
    pointer-events: none;
}

.afc-title {
    left: -60px;
    color: #e53e3e;
}

.nfc-title {
    right: -60px;
    color: #4299e1;
}

.matchup-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

/* Team Box Styling */
.team-box {
    background: white;
    color: #1a202c;
    border-radius: 4px;
    width: 180px;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border-left: 5px solid gray;
    /* Default */
    font-size: 13px;
    font-weight: 700;
}

.team-box img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-right: 8px;
}

/* Seed specific borders */
.seed-1-box {
    border-left-color: #48bb78;
}

/* Green for Bye */
.afc-box {
    border-left-color: #c53030;
}

.nfc-box {
    border-left-color: #2b6cb0;
}

/* Connectors */
.connector-container {
    width: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.connector-bracket {
    width: 100%;
    height: 50%;
    border-right: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

/* Layout for Tree */
.bracket-tree {
    display: flex;
    gap: 20px;
}

.round-col {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    min-width: 200px;
}

/* Super Bowl Center */
.sb-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 200px;
}

.sb-logo-text {
    font-family: 'Arial Black', sans-serif;
    font-size: 32px;
    color: #2d3748;
    text-align: center;
    line-height: 1;
}

.sb-roman {
    font-size: 16px;
    color: #718096;
    margin-top: 5px;
    letter-spacing: 2px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .bracket-container {
        padding: 10px;
    }
}

/* Vertical Matchup Styles */
.matchup-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 30px;
}

.matchup-pair {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    border-radius: 6px;
    position: relative;
    z-index: 5;
}

.matchup-pair::after {
    /* Connector Line to the right */
    content: '';
    position: absolute;
    right: -24px;
    /* Extend further */
    top: 50%;
    width: 24px;
    height: 2px;
    background: #cbd5e0;
}

.matchup-wire-logo {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: white;
    border: 1px solid #cbd5e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.wire-logo-img {
    width: 12px;
    height: 12px;
    object-fit: contain;
}

.nfc-col .matchup-wire-logo {
    right: auto;
    left: -20px;
}

.team-box {
    margin: 0 !important;
    width: 160px;
    height: 32px;
    /* Fixed height for consistency */
    color: #1a202c;
    background: transparent;
    box-shadow: none;
    border: none;
    border-radius: 0;
    font-size: 14px;
    padding-left: 5px;
    border-bottom: 1px solid #e2e8f0;
    /* Separator */
}

.team-box:last-child {
    border-bottom: none;
}

.team-box img {
    width: 20px;
    height: 20px;
}

/* Connectors for the Tree */
.bracket-tree {
    align-items: center;
}

.connector-line {
    width: 20px;
    border-right: 2px solid #a0aec0;
}

/* NFC Column specific overrides */
.nfc-col .matchup-pair::after {
    right: auto;
    left: -24px;
    background: #cbd5e0;
}

/* --- Interactive Bracket Styles --- */
.bracket-wrapper-inter {
    display: flex;
    flex-direction: row;
    /* Explicitly Row */
    justify-content: flex-start;
    /* Align left to start, allow scroll */
    width: 100%;
    margin-top: 20px;
    overflow-x: auto;
    gap: 40px;
    /* Space columns */
    padding-bottom: 20px;
}

.round-col {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.round-header {
    font-size: 16px;
    font-weight: 800;
    color: #4a5568;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
    width: 100%;
}

.matchup-col-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    /* Space between games */
    justify-content: space-around;
    height: 100%;
    width: 100%;
}

.bracket-node {
    background: #fff;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    width: 200px;
    /* Fixed Width Constraint */
    min-width: 200px;
    margin-bottom: 20px;
    /* Spacing between games */
    /* transition: transform 0.2s, box-shadow 0.2s; REMOVED */
}

.bracket-node:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.bracket-node.empty {
    background: #f7fafc;
    border: 1px dashed #cbd5e0;
    justify-content: center;
    align-items: center;
    min-height: 100px;
}

.node-team {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid transparent;
    /* transition: background 0.2s; REMOVED */
    color: #000;
    /* Ensure visibility */
    overflow: hidden;
}

/* Ensure gap for non-tailwind envs */
.node-team>div {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    /* Take available space */
    min-width: 0;
    /* Allow shrinking */
}

.node-team input {
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.node-team:hover {
    background: #edf2f7;
}

.node-team.picked {
    background: #ebf8ff;
    border-color: #bee3f8;
}

.node-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.node-vs {
    font-size: 10px;
    color: #a0aec0;
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    margin: -4px 0;
}

.prob-text {
    font-size: 12px;
    font-weight: 700;
    color: #718096;
}

.preview-btn-sm {
    font-size: 10px;
    color: #4299e1;
    background: none;
    border: none;
    text-align: center;
    cursor: pointer;
    text-decoration: underline;
    margin-top: 4px;
}

.preview-btn-sm:hover {
    color: #2b6cb0;
}

/* Spacer for alignment in later rounds */
.spacer {
    flex: 1;
}

/* Utility Support for Team Node Layout */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.gap-2 {
    gap: 8px;
}

.gap-1 {
    gap: 4px;
}

.leading-tight {
    line-height: 1.25;
}

.text-xs {
    font-size: 12px;
}

.font-bold {
    font-weight: 700;
}

.font-mono {
    font-family: monospace;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.text-gray-400 {
    color: #cbd5e0;
}

.text-gray-500 {
    color: #a0aec0;
}