/* /css/main-style.css */

/* --- 1. GLOBAL RESET --- */
/* This kills the "ghost" gap at the top of the page */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body {
    background-color: #f8fafc;
    font-family: 'Inter', -apple-system, sans-serif;
    color: #0f172a;
    line-height: 1.2; /* Tightened global line height */
}

/* --- 2. THE NAVBAR & WIDGET GAP FIX --- */
/* The gap is caused by your navbar being fixed but not having a tight offset */

.top-scores {
    margin-top: 60px !important; /* Adjust this to match your EXACT navbar height */
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    width: 100%;
    height: 95px !important;    /* Hard cap to stop the widget from creating vertical air */
    overflow: hidden !important;
    display: block !important;
    padding: 0 !important;
}

/* Force the ScoreStream container to be flush */
.scorestream-widget-container, .divscore {
    height: 95px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* --- 3. THE "HUGE FONT" TABLE FIX --- */
/* This forces the teams into one line and shrinks the font size to pro standards */

table.dataTable, 
table.TableShrink {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 10px 0 !important;
}

/* Targets the actual text inside the cells (including your <b> and <font> tags) */
table.dataTable tbody td,
table.dataTable td b,
table.dataTable td font,
.full-name {
    font-size: 13px !important; /* Professional sports data size */
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap !important; /* Prevents team names from stacking/wrapping */
}

/* Tighten column headers */
table.dataTable thead th {
    background-color: #1C1F26 !important;
    color: #ffffff !important;
    font-size: 11px !important;
    padding: 8px 4px !important;
    text-transform: uppercase;
}

/* Shrink row height so the table isn't giant */
table.dataTable tbody td {
    padding: 4px 8px !important;
    height: 38px !important; 
    border-bottom: 1px solid #e2e8f0 !important;
}

/* Scale down the logos to fit the new tight row height */
.standing {
    width: 22px !important;
    height: 22px !important;
    margin-right: 8px;
    vertical-align: middle;
}

/* --- 4. CONTAINER & GRID --- */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    margin-top: 10px !important; /* Pulls the content up toward the widget */
}

.content-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 25px;
}

/* Shrink the giant H1 title */
h1 {
    font-size: 24px !important;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

/* --- 5. SIDEBAR --- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 15px;
    font-size: 13px;
}

/* --- 6. MOBILE LOGIC --- */
@media (max-width: 1024px) {
    .main-grid { grid-template-columns: 1fr; }
    .full-name { display: none !important; }
    .short-name { display: inline !important; font-size: 12px !important; }
}


.nowrap {
  white-space: nowrap;
}