/* Reset and Core Layout */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f4f5f7;
    margin: 0;
    padding: 20px;
    color: #111111;
}

/* 660px Constrained Container */
.standings-container {
    max-width: 670px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 10px;
    box-sizing: border-box;
}

/* Header Elements */
.standings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e1e4e9;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.standings-header h1 {
    font-size: 22px;
    margin: 0;
    font-weight: 800;
}

.season-select {
    font-size: 13px;
    font-weight: 600;
    background-color: #f0f2f5;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #d1d5db;
}
.season-select button{
    cursor: pointer;            /* Shows clickable pointer */
  
}
/* Section Formatting */
.conference-section h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.division-block h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #626770;
    margin: 0 0 8px 4px;
    letter-spacing: 0.5px;
}

/* Table Wrapper for Horizontal Scroll Safeguard on Tiny Screens */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Dense Data Table Styling */
.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
}

.standings-table th, 
.standings-table td {
    padding: 3px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
	text-align:center;

}

.standings-table th {
    font-weight: 600;
    color: #626770;
    background-color: #fafbfc;
    font-size: 14x;
}

/* Column Specific Constraints */
.standings-table .col-rank {
    width: 24px;
    text-align: center;
    color: #626770;
}

/* Updated width to comfortably contain the 109px logo + playoff status tag */
.standings-table .col-logo {
    text-align: left;
    width: 130px;
}

.standings-table .col-div {
    width: 36px;
    text-align: center;
    color: #888e99;
    font-size: 11px;
}

.standings-table .col-stat {
    width: 32px;
}

.standings-table .col-stat.long-stat {
    width: 55px;
}

.standings-table .col-strk {
    width: 40px;
    text-align: center;
}

/* Explicit 109x40px Team Logo Size Constraints */
.team-identity {
    display: flex;
    align-items: center;
    gap: 6px;
}

.team-logo {
    width: 109px;
    height: 40px;
    object-fit: contain;
    display: block;
}

/* Stat Modifiers */
.standings-table td.highlight,
.standings-table th.highlight {
    background-color: #cceeff;
    font-weight: 800;
    color: #111111;
	text-align:center;
}

.status-tag {
    font-size: 10px;
    font-weight: 800;
    color: #ffffff;
    background-color: #626770;
    padding: 2px 4px;
    border-radius: 3px;
    line-height: 1;
}

/* Playoff Split Border Alignment */
.standings-table tr.line-below td {
    border-bottom: 2px dashed #1a73e8;
}

.spot-in {
    background-color: #fbfdff;
}

/* Mute the logo opacity slightly for teams out of playoff contention */
.spot-out .team-logo {
    opacity: 0.65;
}

.standings-table tbody tr:hover {
    background-color: #f8f9fa;
}