
* {
    font-family: Arial, sans-serif;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    /*margin: 0 auto;*/
    margin-left: 80px;
}

header {
    display: block;
    margin-bottom: 20px;
}

.header-row {
    display: flex;
    align-items: center; /* Center nav vertically with logo */
    border-bottom: 2px solid #ddd;
    padding-bottom: 20px;
    /*margin-bottom: 20px;*/
    gap: 100px;
}

.logo {
    max-width: 200px; 
    height: auto;
    margin-right: 10px;
}

.nav-bar {
    display: flex;
    gap: 50px;
    justify-content: flex-start;
    margin-top: 50px;
}

.nav-link {
    text-decoration: none;
    color: #2f4657;
    font-weight: bold;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
}


.nav-link:hover {
    color: #e77729;
}

.nav-link.active {
    color: #2f4657;
    border-bottom: 3px solid #e77729; /* ✅ Orange underline */
    padding-bottom: 5px;
}

.button-container {
    /*display: flex;*/
    display: none;
    gap: 80px;
    flex-wrap: wrap;
    margin-left: 0;
    margin-top: 30px;
    color: #2f4657;
}

.button-container.active {
    display: flex;
}


.custom-button {
    padding: 10px 20px;
    border: 2px solid #2f4657; /* ✅ Blue border */
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    background-color: transparent; /* ✅ Transparent */
    color: #2f4657;
    transition: all 0.3s ease;
}

.custom-button.logo {
    background-color: #ffe6cc;
}

.custom-button.home {
    background-color: #b3d4fc;
}


.custom-button:hover {
    background-color: #2f4657; /* Fill on hover */
    color: #fff;
}

.custom-button.active {
    background-color: #2f4657; /* Fill when active */
    color: #fff;
}

#boring-stats-container table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    font-size: 13px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    /* NEW: make table have limited height + scroll */
    max-height: 600px; /* Optional: if you want scroll inside table */
    overflow-y: auto; /* Optional */
}


/* Header cells (titles) */
#boring-stats-container th {
    position: sticky;
    top: 0;
    background-color: #6B92A8;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    padding: 12px 16px;
    text-align: center;
    z-index: 2; /* Make sure header stays on top */
}

/* Regular cells */
#boring-stats-container td {
    padding: 12px 16px;
    text-align: center;
    vertical-align: middle;
    color: #2f4657;
    border-bottom: 1px solid #eee;
}

/* Trophy column - narrow width */
#boring-stats-container th:nth-child(2),
#boring-stats-container td:nth-child(2) {
    width: 20px;
    max-width: 20px;
    padding: 0 4px; /* tighter padding */
    text-align: center;
}

/* Only the first column stays left-aligned */
#boring-stats-container th:nth-child(3),
#boring-stats-container td:nth-child(3) {
    text-align: left;
}

#boring-stats-container tr:nth-child(even) {
    background-color: #f6f9fc; /* Softer bluish-white */
}

#boring-stats-container tr:hover {
    background-color: #eef5fc;
    transition: background-color 0.2s ease-in-out;
}

.table-link {
    text-decoration: none;
    color: #2f4657; 
    font-weight: 600; 
    font-size: 13px;
    padding: 8px 16px; 
    margin-right: 20px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    display: inline-block; /* Make it blocky like nav */
}

/* Hover effect */
.table-link:hover {
    color: #e77729; 
}

/* Active link style */
.table-link.active {
    color: #2f4657;
    border-bottom: 3px solid #e77729;
    padding-bottom: 5px;
}

.nav-link,
.table-link {
    transition: 
        background-color 0.3s ease, 
        color 0.3s ease, 
        border-bottom 0.3s ease,
        transform 0.2s ease;
}

.nav-link:hover,
.table-link:hover {
    transform: translateY(-2px); /* Tiny lift */
}

.stats-wrapper {
    position: relative;
}

.stats-section {
    margin-top: 50px; /* More space between sections */
    margin-bottom: 60px; /* More bottom breathing */
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05); /* Soft light shadow */
}

.stats-section h3 {
    position: sticky;
    top: 120px; /* Adjust depending on your navbar height */
    background-color: #fff;
    padding: 8px 0;
    z-index: 3;
    font-size: 20px;
    font-weight: bold;
    color: #2f4657;
    border-bottom: 2px solid #e77729;
    margin-bottom: 15px;
}

/* Animation start - hidden state */
.stats-section {
    opacity: 0;
    transition: all 0.8s ease;
    transform: translateY(50px);
}

/* Animation when visible */
.stats-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.table-explanation {
    margin-top: 30px;
    padding: 20px;
    background-color: #fdf2e9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    color: #2f4657;
    font-size: 14px;
}

.table-explanation h4 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #2f4657;
}


.legend-grid {
    display: grid;
    grid-template-columns: 90px auto; /* First column fixed, second flexible */
    column-gap: 20px; /* Space between badge and explanation */
    row-gap: 12px; /* Vertical space between rows */
    align-items: center;
}

.badge {
    display: inline-block;
    width: 70px; /* Same width for all badges */
    background-color: #6B92A8;
    color: white;
    font-weight: bold;
    font-size: 12px;
    padding: 4px 0;
    border-radius: 12px;
    text-align: center;
}

.season-selector label {
    font-size: 14px;
    font-weight: bold;
    color: #2f4657;
    margin-right: 8px;
}

#season-select,
#season-select-quality {
    text-align: center;
    text-align-last: center; /* Important for centering selected value */    
    padding: 8px 12px;
    border: 2px solid #2f4657; /* Match button border */
    border-radius: 8px; /* Softer corners */
    font-size: 14px;
    font-weight: bold;
    color: #2f4657;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* Very light shadow */
    transition: all 0.3s ease;
    width: 100px; /* Keep fixed width */
    appearance: none; /* Optional: cleaner look without OS styling */
}

/* Optional: Hover effect for the dropdown */
#season-select:hover,
#season-select-quality:hover {
    border-color: #e77729; /* Orange highlight on hover */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08); /* Slightly stronger shadow */
    cursor: pointer;
}

/* =====================================================
   POWER RANKINGS / TEAM DNA
   ===================================================== */

#quality-components-table-wrapper {
    width: 100%;
}

#quality-components-table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    font-size: 13px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Header */
#quality-components-table-wrapper th {
    background-color: #6B92A8;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 10px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

/* Body cells */
#quality-components-table-wrapper td {
    padding: 12px 10px;
    text-align: center;
    vertical-align: middle;
    color: #2f4657;
    border-bottom: 1px solid #eeeeee;
    white-space: nowrap;
}

/* Alternating rows */
#quality-components-table-wrapper tr:nth-child(even) {
    background-color: #f6f9fc;
}

/* Hover */
#quality-components-table-wrapper tr:hover {
    background-color: #eef5fc;
    transition: background-color 0.2s ease-in-out;
}


/* =====================================================
   TEAM COLUMN
   ===================================================== */

#quality-components-table-wrapper th:first-child,
#quality-components-table-wrapper td:first-child {
    text-align: left;
}

#quality-components-table-wrapper td:first-child {
    font-weight: 500;
}

/* Logo alignment */
#quality-components-table-wrapper .power-team {
    min-width: 220px;
}

#quality-components-table-wrapper .power-team img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-right: 8px;
}


/* =====================================================
   POWER RANKING TABLE
   ===================================================== */

.power-ranking-table th:first-child,
.power-ranking-table td:first-child {
    width: 25%;
}

.power-ranking-table th:not(:first-child),
.power-ranking-table td:not(:first-child) {
    text-align: center;
}

.power-ranking-table td:not(:first-child) {
    font-weight: 600;
}

/* Final weighted ranking */
.power-ranking-table .power-rank-final {
    font-weight: 700;
    color: #e77729;
    background-color: #fff8f2;
}

/* Keep the old Top 6 / Top 10 separators only here */
.power-ranking-table tr:nth-child(7),
.power-ranking-table tr:nth-child(11) {
    border-bottom: 3px solid #e77729;
}


/* =====================================================
   TEAM DNA TABLE
   ===================================================== */

.style-components-table {
    table-layout: fixed;
}

.style-components-table th:first-child,
.style-components-table td:first-child {
    width: 30%;
}

.style-components-table th:not(:first-child),
.style-components-table td:not(:first-child) {
    width: 14%;
    text-align: center;
}

.style-components-table td:not(:first-child) {
    font-weight: 600;
}

#legend-section,
#quality-components-legend,
#quality-components-detailed-legend {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Optional: soft shadow */
    border: 1px solid #eee; /* Optional: subtle border */
    margin-top: 20px;
}

th {
  padding-top: 6px;
  padding-bottom: 6px;
}

.table-explanation h4 {
    margin-bottom: 20px; /* or 24px, depending on how much space you want */
}

#crazy-penates-header .table-link {
  font-size: 13px;
  font-weight: 600;
  color: #2f4657;
  margin-right: 20px;
  text-decoration: none;
  border-radius: 5px;
  padding: 8px 16px;
  transition: all 0.3s ease;
}

#crazy-penates-header .table-link:hover {
  color: #e77729;
  transform: translateY(-2px);
}

#crazy-penates-header .table-link.active {
  color: #2f4657;
  border-bottom: 3px solid #e77729;
  padding-bottom: 5px;
}

.penates-tab-content {
  max-width: none;            /* remove 900px centering */
  margin: 0;                  /* cancel center alignment */
  /*padding-left: 80px; */        /* match container left margin */
  padding-right: 20px;        /* breathing room on right */
}


.penates-tab-content ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.penates-tab-content li {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  font-size: 18px;
  color: #2f4657;
  line-height: 1.8;
  font-weight: 400; 
  max-width: 700px;    
}

.penates-tab-content li span {
  font-weight: bold;
  margin: 0 2px;
}

.penates-tab-content iframe {
  width: 100%;
  /*max-width: 600px;*/
  max-width: 100%;  
  /*height: 340px;*/
  height: auto;
  aspect-ratio: 16/9;        /* keep it responsive and consistent */
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  margin-top: 16px;
}

.coming-soon-box {
    background-color: #fff8e1;
    border: 1px solid #ffe0b2;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    text-align: center;
    font-size: 16px;
    color: #e77729;
    font-weight: bold;
    max-width: 600px;
}

/* =====================================================
   SMART PREDICTION
   ===================================================== */


/* -----------------------------------------------------
   MAIN SMART PREDICTION CONTAINER
   Allow this page to use more horizontal space than
   the regular site tables.
   ----------------------------------------------------- */

#smart-prediction-container {
    width: calc(100vw - 180px);
    max-width: 1600px;
    box-sizing: border-box;
}


/* -----------------------------------------------------
   PAGE TITLE
   ----------------------------------------------------- */

.smart-prediction-title {
    margin-bottom: 6px;
}

.smart-prediction-title h2 {
    margin: 0 0 6px 0;
    font-size: 28px;
    font-weight: bold;
    color: #2f4657;
}

.smart-prediction-title h2 span {
    color: #e77729;
}

.smart-prediction-title p {
    margin: 0;
    color: #6B92A8;
    font-size: 15px;
}


/* -----------------------------------------------------
   MAIN LAYOUT

   Left  = prediction table
   Right = reserved empty area for future advertisements

   The advertisement area exists but is invisible.
   ----------------------------------------------------- */

.smart-prediction-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 30px;
    align-items: start;
}

#smart-prediction-content {
    width: 100%;
    min-width: 0;
}


/* -----------------------------------------------------
   TOP SUMMARY
   ----------------------------------------------------- */

.prediction-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;

    color: #6B92A8;
    font-size: 13px;
}

.prediction-updated {
    font-size: 12px;
    color: #6B92A8;
}


/* -----------------------------------------------------
   DAY GROUP
   Example:
   Thursday, 24 September 2026
   ----------------------------------------------------- */

.prediction-day {
    width: 100%;
    background-color: #ffffff;

    border-radius: 8px;
    margin-bottom: 20px;

    overflow: hidden;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.prediction-day-header {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 13px 16px;

    color: #2f4657;

    border-bottom: 2px solid #e77729;
}

.prediction-day-header strong {
    font-size: 16px;
    font-weight: bold;
}

.prediction-day-header span {
    font-size: 12px;
    color: #6B92A8;
}


/* -----------------------------------------------------
   TABLE WRAPPER

   Normally there should be no horizontal scroll on
   large desktop screens.

   Scroll remains available on smaller screens.
   ----------------------------------------------------- */

.prediction-table-scroll {
    width: 100%;
    overflow-x: auto;
}


/* -----------------------------------------------------
   TABLE
   ----------------------------------------------------- */

.prediction-table {
    width: 100%;
    min-width: 760px;

    border-collapse: collapse;

    background-color: #ffffff;

    font-size: 13px;
}


/* TABLE HEADER */

.prediction-table th {
    background-color: #6B92A8;
    color: #ffffff;

    font-size: 12px;
    font-weight: bold;

    padding: 11px 14px;

    text-align: center;
    vertical-align: middle;

    white-space: nowrap;
}


/* TABLE CELLS */

.prediction-table td {
    padding: 14px 14px;

    text-align: center;
    vertical-align: middle;

    color: #2f4657;

    border-bottom: 1px solid #eeeeee;
}


/* Remove border from last row */

.prediction-table tbody tr:last-child td {
    border-bottom: none;
}


/* Zebra rows */

.prediction-table tbody tr:nth-child(even) {
    background-color: #f6f9fc;
}


/* Hover */

.prediction-table tbody tr:hover {
    background-color: #eef5fc;

    transition: background-color 0.2s ease-in-out;
}


/* -----------------------------------------------------
   TIME + VENUE COLUMN
   ----------------------------------------------------- */

.prediction-time {
    text-align: left !important;

    min-width: 115px;
    width: 115px;
}

.prediction-time strong {
    display: block;

    font-size: 14px;
    font-weight: bold;

    color: #2f4657;
}

.prediction-time small {
    display: block;

    margin-top: 5px;

    color: #6B92A8;

    font-size: 10px;
    line-height: 1.25;
}


/* -----------------------------------------------------
   TEAMS COLUMN
   ----------------------------------------------------- */

.prediction-teams {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 14px;

    min-width: 320px;
}


/* Individual team */

.prediction-team {
    display: flex;
    align-items: center;

    gap: 8px;

    width: 140px;

    text-align: left;
}


/* Team logo */

.prediction-team img {
    width: 30px;
    height: 30px;

    object-fit: contain;

    flex-shrink: 0;
}


/* Team name */

.prediction-team span {
    font-size: 12px;
    font-weight: 600;

    line-height: 1.2;

    color: #2f4657;
}


/* VS */

.prediction-vs {
    flex-shrink: 0;

    color: #6B92A8;

    font-size: 11px;
    font-weight: normal;
}


/* -----------------------------------------------------
   PREDICTION PICK
   ----------------------------------------------------- */

.prediction-pick {
    min-width: 115px;

    padding: 9px 12px;

    background-color: #fdf2e9;

    color: #e77729;

    border-radius: 8px;

    font-weight: bold;

    line-height: 1.2;

    box-sizing: border-box;
}

.prediction-pick small {
    display: block;

    margin-top: 4px;

    color: #2f4657;

    font-size: 10px;
    font-weight: normal;
}


/* Prediction unavailable */

.prediction-pick.unavailable {
    background-color: #f3f3f3;

    color: #888888;
}


/* -----------------------------------------------------
   WIN PROBABILITY
   ----------------------------------------------------- */

.probability-values {
    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 170px;

    margin: 0 auto 7px auto;

    font-size: 11px;
    font-weight: bold;

    color: #2f4657;
}


/* Probability bar */

.probability-bar {
    display: flex;

    width: 170px;
    height: 6px;

    margin: 0 auto;

    overflow: hidden;

    background-color: #eeeeee;

    border-radius: 10px;
}


/* Home side */

.probability-home {
    background-color: #e77729;

    transition: width 0.3s ease;
}


/* Away side */

.probability-away {
    background-color: #6B92A8;

    transition: width 0.3s ease;
}


/* -----------------------------------------------------
   MARKET ODDS
   ----------------------------------------------------- */

.prediction-odds {
    min-width: 85px;

    white-space: nowrap;

    font-weight: bold;
}

.prediction-odds div {
    margin: 3px 0;
}

.prediction-odds small {
    display: inline-block;

    min-width: 16px;

    margin-right: 3px;

    color: #6B92A8;

    font-size: 10px;
    font-weight: normal;
}


/* -----------------------------------------------------
   BET VALUE
   ----------------------------------------------------- */

.prediction-value-cell {
    min-width: 110px;
    text-align: center;
}

.prediction-value-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 7px 10px;

    border: none;
    background: transparent;

    color: #397997;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    white-space: nowrap;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.prediction-value-button::before {
    content: "▦";
    font-size: 17px;
    line-height: 1;
}

.prediction-value-button:hover {
    color: #e77729;
    transform: translateY(-1px);
}


/* =====================================================
   BET VALUE CALCULATOR MODAL
   ===================================================== */

.bet-value-modal {
    display: none;

    position: fixed;
    inset: 0;

    z-index: 9999;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(26, 45, 58, 0.35);

    box-sizing: border-box;
}


/* Show modal */
.bet-value-modal.active {
    display: flex;
}


/* Calculator box */
.bet-value-modal-box {
    position: relative;

    width: 100%;
    max-width: 480px;

    padding: 24px 28px;

    background: #ffffff;

    border-radius: 10px;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.18);

    box-sizing: border-box;
}


/* Close button */
.bet-value-modal-close {
    position: absolute;

    top: 14px;
    right: 16px;

    border: none;
    background: transparent;

    color: #7a8790;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;
}


.bet-value-modal-close:hover {
    color: #e77729;
}


/* Title */
.bet-value-modal-box h2 {
    margin: 0 0 18px 0;

    color: #2f4657;

    font-size: 21px;
    font-weight: 700;
}


/* =====================================================
   MATCHUP
   ===================================================== */

.bet-value-matchup {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 18px;

    margin-bottom: 18px;
}


.bet-value-team {
    display: flex;

    align-items: center;

    gap: 8px;

    min-width: 160px;
}


.bet-value-team img {
    width: 30px;
    height: 30px;

    object-fit: contain;

    flex-shrink: 0;
}


.bet-value-team span {
    color: #2f4657;

    font-size: 12px;
    font-weight: 700;

    line-height: 1.2;
}


.bet-value-vs {
    color: #6B92A8;

    font-size: 11px;
}


.bet-value-divider {
    height: 1px;

    margin-bottom: 18px;

    background: #e5eaed;
}


/* =====================================================
   CALCULATOR ROWS
   ===================================================== */

.bet-value-row {
    display: grid;

    grid-template-columns: 1fr 180px;

    align-items: center;

    gap: 16px;

    margin-bottom: 10px;
}


.bet-value-row label {
    color: #2f4657;

    font-size: 13px;
    font-weight: 600;
}


/* Read-only model values */
.bet-value-readonly {
    padding: 8px 10px;

    background: #f2f4f5;

    border-radius: 5px;

    color: #6B92A8;

    font-size: 13px;
    font-weight: 600;

    box-sizing: border-box;
}


/* Inputs */
.bet-value-row input {
    width: 100%;

    padding: 8px 10px;

    border: 1px solid #ccd5db;
    border-radius: 5px;

    background: #ffffff;

    color: #2f4657;

    font-size: 13px;

    box-sizing: border-box;

    outline: none;
}


.bet-value-row input:focus {
    border-color: #e77729;

    box-shadow:
        0 0 0 2px rgba(231, 119, 41, 0.10);
}


/* =====================================================
   HOME / AWAY SELECTOR
   ===================================================== */

.bet-value-team-selector {
    display: flex;

    gap: 6px;
}


.bet-value-side-button {
    flex: 1;

    padding: 8px 10px;

    border: 1px solid #d8e0e5;
    border-radius: 5px;

    background: #f2f5f7;

    color: #2f4657;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}


.bet-value-side-button.active {
    border-color: #f4c09a;

    background: #fdf2e9;

    color: #e77729;
}


/* =====================================================
   RESULT
   ===================================================== */

.bet-value-result {
    margin-top: 18px;
    padding-top: 15px;

    border-top: 1px solid #e2e7ea;
}


.bet-value-result-label {
    margin-bottom: 5px;

    color: #2f4657;

    font-size: 13px;
    font-weight: 700;
}


.bet-value-profit {
    font-size: 22px;
    font-weight: 700;

    color: #2f4657;
}


.bet-value-roi {
    margin-top: 3px;

    color: #6B92A8;

    font-size: 12px;
}


.bet-value-status {
    margin-top: 10px;

    padding: 10px 12px;

    border-radius: 6px;

    font-size: 12px;
    font-weight: 600;
}


/* Positive result */
.bet-value-status.positive {
    background: #e4f3ea;
    color: #2f7d4c;
}


/* Negative result */
.bet-value-status.negative {
    background: #f8eaea;
    color: #b44b4b;
}


/* Break-even */
.bet-value-status.neutral {
    background: #eeeeee;
    color: #666666;
}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 600px) {

    .bet-value-modal {
        padding: 12px;
    }

    .bet-value-modal-box {
        max-width: none;

        padding: 22px 18px;
    }

    .bet-value-matchup {
        gap: 8px;
    }

    .bet-value-team {
        min-width: 0;
        flex: 1;
    }

    .bet-value-team img {
        width: 25px;
        height: 25px;
    }

    .bet-value-team span {
        font-size: 11px;
    }

    .bet-value-row {
        grid-template-columns: 1fr;
        gap: 5px;

        margin-bottom: 14px;
    }

}



/* -----------------------------------------------------
   MODEL EDGE
   ----------------------------------------------------- */

.edge-positive {
    color: #2f7d4c;

    font-weight: bold;
}

.edge-negative {
    color: #b44b4b;

    font-weight: bold;
}


/* -----------------------------------------------------
   CONFIDENCE
   ----------------------------------------------------- */

.prediction-confidence {
    display: inline-block;

    min-width: 78px;

    padding: 6px 10px;

    border-radius: 14px;

    font-size: 10px;
    font-weight: bold;

    text-transform: uppercase;

    box-sizing: border-box;
}


/* Strong */

.confidence-strong {
    background-color: #e4f3ea;

    color: #2f7d4c;
}


/* Moderate */

.confidence-moderate {
    background-color: #e7eff5;

    color: #2f4657;
}


/* Lean */

.confidence-lean {
    background-color: #fdf2e9;

    color: #e77729;
}


/* Close */

.confidence-close {
    background-color: #eeeeee;

    color: #666666;
}


/* Unavailable */

.confidence-unavailable {
    background-color: #eeeeee;

    color: #999999;
}


/* Default fallback */

.confidence-default {
    background-color: #eeeeee;

    color: #666666;
}


/* -----------------------------------------------------
   EMPTY / NULL VALUES
   ----------------------------------------------------- */

.prediction-na {
    color: #999999;

    font-weight: normal;
}


/* -----------------------------------------------------
   ADVERTISEMENT AREA

   Keep the column reserved but do not show anything
   until advertisements are actually added.
   ----------------------------------------------------- */

.smart-prediction-ads {
    display: flex;
    flex-direction: column;

    gap: 20px;

    width: 180px;

    min-height: 1px;
}


/*
   visibility:hidden means:
   - box is invisible
   - text is invisible
   - the space is still reserved
*/

.ad-placeholder {
    width: 100%;
    min-height: 250px;

    visibility: hidden;

    border: none;
    background: transparent;
    box-shadow: none;
}


/* -----------------------------------------------------
   EMPTY STATE
   ----------------------------------------------------- */

.prediction-empty {
    padding: 35px;

    background-color: #ffffff;

    border-radius: 8px;

    text-align: center;

    color: #6B92A8;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}


/* =====================================================
   RESPONSIVE
   ===================================================== */


/*
   Medium screens:
   stop reserving advertisement space.
*/

@media (max-width: 1200px) {

    #smart-prediction-container {
        width: 100%;
        max-width: none;
    }

    .smart-prediction-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .smart-prediction-ads {
        display: none;
    }
}


/*
   Tablets / smaller screens
*/

@media (max-width: 950px) {

    .prediction-table {
        min-width: 950px;
    }

    .prediction-teams {
        min-width: 280px;
    }

    .prediction-team {
        width: 120px;
    }

    .probability-values,
    .probability-bar {
        width: 130px;
    }
}


/*
   Mobile
*/

@media (max-width: 600px) {

    #smart-prediction-container {
        width: 100%;
    }

    .smart-prediction-title h2 {
        font-size: 24px;
    }

    .smart-prediction-title p {
        font-size: 13px;
    }

    .prediction-summary {
        flex-direction: column;
        align-items: flex-start;

        gap: 5px;
    }

    .prediction-day-header {
        padding: 11px 12px;
    }

    .prediction-day-header strong {
        font-size: 14px;
    }

    .prediction-table {
        min-width: 900px;
    }

    .prediction-table th {
        padding: 9px 10px;
    }

    .prediction-table td {
        padding: 12px 10px;
    }
    
    /* =====================================================
       SMART PREDICTION - FREEZE TEAMS COLUMN ON MOBILE
       ===================================================== */
    
    .prediction-table-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Sticky works more reliably this way */
    .prediction-table {
        border-collapse: separate;
        border-spacing: 0;
    }
    
    /* Column 2 = Teams */
    .prediction-table th:nth-child(2),
    .prediction-table td:nth-child(2) {
        position: sticky;
        left: 0;
        z-index: 4;
    
        background-color: #ffffff;
    
        min-width: 230px;
        width: 230px;
    
        box-shadow:
            5px 0 6px -6px rgba(0, 0, 0, 0.35);
    }
    
    /* Frozen Teams header */
    .prediction-table th:nth-child(2) {
        background-color: #6B92A8;
        color: #ffffff;
        z-index: 6;
    }
    
    /* Preserve zebra row color */
    .prediction-table tbody tr:nth-child(even)
    td:nth-child(2) {
        background-color: #f6f9fc;
    }
    
    /* Preserve hover */
    .prediction-table tbody tr:hover
    td:nth-child(2) {
        background-color: #eef5fc;
    }
    
    /* Make the teams block narrower on mobile */
    .prediction-teams {
        min-width: 210px;
        gap: 8px;
    }
    
    /* Each individual team */
    .prediction-team {
        width: 92px;
        gap: 5px;
    }
    
    /* Smaller logos */
    .prediction-team img {
        width: 24px;
        height: 24px;
    }
    
    /* Smaller team text */
    .prediction-team span {
        font-size: 11px;
    }    
}

/* =====================================================
   NEW MAIN HEADER / NAVIGATION
   ===================================================== */


/* Full header row */

.header-row {
    width: calc(100vw - 160px);
    max-width: 1600px;

    display: flex;
    align-items: flex-end;

    gap: 36px;

    /* move the whole nav/filter a bit lower
       and keep space on the right so league filter
       ends more in line with the table area */
   padding: 18px 0;

    margin-bottom: 28px;

    border-bottom: 2px solid #dddddd;

    box-sizing: border-box;
}


/* Logo */

.header-row .logo {
    width: 190px;
    max-width: 190px;

    height: auto;

    margin: 0 15px 0 0;

    flex-shrink: 0;
}


/* =====================================================
   MAIN NAVIGATION
   ===================================================== */

.main-nav {
    display: flex;
    align-items: center;

    gap: 38px;

    flex: 0 1 auto;

    white-space: nowrap;
}


/* Navigation items */

.main-nav-link {
    position: relative;

    padding: 12px 3px 11px 3px;

    border: none;
    border-bottom: 3px solid transparent;

    background: transparent;

    color: #2f4657;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    white-space: nowrap;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


/* Hover */

.main-nav-link:hover {
    color: #e77729;

    transform: translateY(-1px);
}


/* Active page */

.main-nav-link.active {
    color: #2f4657;

    border-bottom-color: #e77729;
}


/* =====================================================
   LEAGUE FILTER
   ===================================================== */

.league-filter {
    display: flex;
    align-items: center;

    gap: 10px;

    /* Comfortable separation from main navigation */
    margin-left: 55px;

    /* subtle divider */
    padding-left: 28px;
    border-left: 1px solid #d7dde1;

    flex-shrink: 0;
}

/* League label */

.league-filter label {
    color: #6B92A8;

    font-size: 12px;
    font-weight: 600;
}


/* League dropdown */

#league-select {
    min-width: 135px;

    padding: 9px 30px 9px 12px;

    border: 1px solid #cbd5dc;
    border-radius: 6px;

    background-color: #ffffff;
    color: #2f4657;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
    outline: none;
}


/* Hover */

#league-select:hover {
    border-color: #e77729;
}


/* Focus */

#league-select:focus {
    border-color: #e77729;

    box-shadow:
        0 0 0 2px rgba(231, 119, 41, 0.10);
}


/* =====================================================
   WIDE LAPTOP
   ===================================================== */

@media (max-width: 1350px) {

    .header-row {
        width: calc(100vw - 120px);

        gap: 24px;
        padding-right: 120px;
    }


    .header-row .logo {
        width: 165px;
        max-width: 165px;
    }


    .main-nav {
        gap: 20px;
    }


    .main-nav-link {
        font-size: 14px;
    }


    #league-select {
        min-width: 125px;
        font-size: 13px;
    }
}


/* =====================================================
   SMALLER SCREENS
   ===================================================== */

@media (max-width: 1050px) {

    .header-row {
        width: 100%;

        flex-wrap: wrap;
    }


    .main-nav {
        order: 3;

        width: 100%;

        overflow-x: auto;

        padding-bottom: 3px;
    }


    .league-filter {
        margin-left: auto;
    }
}


/* =====================================================
   SMART PREDICTION DISCLAIMER
   ===================================================== */

.prediction-disclaimer {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    width: fit-content;
    max-width: 850px;

    margin-top: 0;
    margin-bottom: 16px;
    margin-left: -8px;

    padding: 7px 9px 7px 7px;

    background-color: #eef4f7;
    border-radius: 6px;

    color: #6B92A8;

    font-size: 11px;
    line-height: 1.35;
}

.prediction-disclaimer-icon {
    width: 16px;
    height: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background-color: #6B92A8;
    color: #ffffff;

    font-size: 10px;
    font-weight: bold;
}

.main-nav-link {
    text-decoration: none;
}

.page-heading {
    margin-top: 20px;
    margin-bottom: 12px;
}

.page-heading h1 {
    margin: 0;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 600;
    color: #2f4657;
    letter-spacing: -0.2px;
}


@media (max-width: 768px) {
    .page-heading {
        margin-top: 18px;
        margin-bottom: 12px;
    }
}


/* =====================================================
   ROCK & CORRELATION HUB
   ===================================================== */

.correlations-hub {
    margin-top: 10px;
    width: calc(100vw - 180px);
    max-width: 1600px;
    box-sizing: border-box;
}

.correlations-intro {
    max-width: 760px;
    margin: 0 0 24px 0;

    color: #6B92A8;
    font-size: 14px;
    line-height: 1.55;
}


/* Cards */

.correlation-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 22px;
}

.correlation-card {
    display: flex;
    flex-direction: column;

    min-height: 330px;

    padding: 22px;

    background-color: #ffffff;

    border: 1px solid #e3e8ec;
    border-radius: 8px;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);

    box-sizing: border-box;
}


.correlation-card-category {
    margin-bottom: 10px;

    color: #e77729;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.8px;
}


.correlation-card h2 {
    margin: 0 0 18px 0;

    color: #2f4657;

    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
}


.correlation-card-stat {
    margin-top: 4px;

    color: #e77729;

    font-size: 30px;
    font-weight: 700;
}


.correlation-card-stat-label {
    margin-top: 2px;
    margin-bottom: 16px;

    color: #6B92A8;

    font-size: 12px;
    line-height: 1.4;
}


.correlation-card p {
    margin: 0 0 20px 0;

    color: #2f4657;

    font-size: 13px;
    line-height: 1.55;
}


.correlation-read-link {
    margin-top: auto;

    color: #2f4657;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;
}


.correlation-read-link:hover {
    color: #e77729;
}


/* Bottom explanation */

.correlations-about {
    max-width: 900px;

    margin-top: 34px;
    padding-top: 24px;

    border-top: 1px solid #dfe5e9;
}


.correlations-about h2 {
    margin: 0 0 12px 0;

    color: #2f4657;

    font-size: 17px;
    font-weight: 700;
}


.correlations-about p {
    color: #2f4657;

    font-size: 13px;
    line-height: 1.6;
}


.correlations-note {
    color: #6B92A8 !important;
    font-size: 12px !important;
}


/* Responsive */

@media (max-width: 1000px) {

    .correlation-cards {
        grid-template-columns: 1fr;
    }

    .correlation-card {
        min-height: auto;
    }
}


/* =====================================================
   HOME PAGE
   ===================================================== */

#home-container {
    padding-bottom: 50px;
}

.home-hero {
    padding: 8px 0 28px;
}

.home-lead {
    max-width: 720px;

    margin: 0 0 20px;

    color: #6B92A8;

    font-size: 15px;
    line-height: 1.6;
}

.home-actions {
    display: flex;
    gap: 12px;
}

.home-primary-btn,
.home-secondary-btn {
    display: inline-block;

    padding: 10px 16px;

    border-radius: 6px;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;
}

.home-primary-btn {
    background: #e77729;
    color: #ffffff;
}

.home-primary-btn:hover {
    background: #cf6420;
}

.home-secondary-btn {
    background: #ffffff;
    color: #2f4657;

    border: 1px solid #ccd5db;
}

.home-secondary-btn:hover {
    border-color: #e77729;
    color: #e77729;
}


/* Sections */

.home-section {
    margin-top: 28px;
}

.home-section h2 {
    margin: 0 0 16px;

    color: #2f4657;

    font-size: 18px;
    font-weight: 700;
}


/* Main feature cards */

.home-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.home-feature-card {
    display: flex;
    flex-direction: column;

    min-height: 190px;

    padding: 20px;

    background: #ffffff;

    border: 1px solid #e3e8ec;
    border-radius: 8px;

    box-shadow: 0 2px 6px rgba(0,0,0,0.04);

    text-decoration: none;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.home-feature-card:hover {
    transform: translateY(-2px);

    box-shadow: 0 5px 12px rgba(0,0,0,0.08);
}

.home-feature-label {
    margin-bottom: 8px;

    color: #e77729;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.home-feature-card h3 {
    margin: 0 0 10px;

    color: #2f4657;

    font-size: 17px;
}

.home-feature-card p {
    margin: 0 0 16px;

    color: #6B92A8;

    font-size: 13px;
    line-height: 1.55;
}

.home-feature-link {
    margin-top: auto;

    color: #2f4657;

    font-size: 12px;
    font-weight: 700;
}

.home-feature-card:hover .home-feature-link {
    color: #e77729;
}


/* Latest analyses */

.home-latest {
    padding-top: 6px;
}

.home-analysis-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 16px;
}

.home-analysis-card {
    display: block;

    padding: 18px;

    background: #ffffff;

    border: 1px solid #e3e8ec;
    border-top: 3px solid #e77729;
    border-radius: 8px;

    text-decoration: none;
}

.home-analysis-card span {
    color: #e77729;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.home-analysis-card h3 {
    margin: 8px 0 0;

    color: #2f4657;

    font-size: 15px;
    line-height: 1.4;
}

.home-analysis-card:hover h3 {
    color: #e77729;
}


/* Responsive */

@media (max-width: 1000px) {

    .home-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-analysis-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {

    .home-feature-grid {
        grid-template-columns: 1fr;
    }

    .home-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* Smart Prediction - model methodology link */

.prediction-model-info {
    margin-top: 3px;
    margin-bottom: 9px;
}

.prediction-model-info a {
    color: #6B92A8;

    font-size: 15px;
    font-weight: 400;

    text-decoration: none;
}

.prediction-model-info a:hover {
    color: #e77729;
}

/* Rock & Correlation - Show More */

.correlations-more-wrapper {
    margin-top: 24px;
    text-align: center;
}

.correlations-show-more {
    padding: 10px 22px;

    background: #ffffff;
    color: #2f4657;

    border: 1px solid #ccd5db;
    border-radius: 6px;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}

.correlations-show-more:hover {
    color: #e77729;
    border-color: #e77729;
}

.prediction-odds-explanation {
    margin-top: 7px;
    margin-bottom: 10px;
    color: #6B92A8;
    font-size: 12px;
    line-height: 1.5;
}

.prediction-odds-explanation strong {
    color: #2f4657;
    font-weight: 700;
}

.prediction-odds-header {
    cursor: help;
    text-decoration: underline dotted;
    text-underline-offset: 3px;
}


/* =====================================================
   MOBILE - BORING STATS
   ===================================================== */

@media (max-width: 768px) {

    /* -----------------------------
       PAGE WIDTH
       ----------------------------- */

    body {
        padding: 10px;
    }

    .container {
        width: 100%;
        max-width: none;
        margin-left: 0;
    }


    /* -----------------------------
       HEADER
       ----------------------------- */

    .header-row {
        width: 100%;
        padding: 12px 0;
        padding-right: 0;
        gap: 12px;
        margin-bottom: 16px;
    }

    .header-row .logo {
        width: 145px;
        max-width: 145px;
        margin-right: 0;
    }

    .main-nav {
        gap: 18px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .league-filter {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
    }


    /* -----------------------------
       BORING STATS SUB-NAV
       Boring / Shooting /
       Ball Control / Margins
       ----------------------------- */

    .button-container.active {
        gap: 8px;
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-top: 18px;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }

    .table-link {
        flex-shrink: 0;
        white-space: nowrap;
        margin-right: 0;
        padding: 8px 10px;
    }


    /* -----------------------------
       STAT SECTION
       ----------------------------- */

    .stats-section {
        margin-top: 22px;
        margin-bottom: 28px;
        padding: 12px;
    }

    .stats-section h3 {
        position: static;
        font-size: 17px;
        margin-bottom: 10px;
    }


    /* -----------------------------
       HORIZONTAL TABLE SCROLL
       ----------------------------- */

    #boring-stats-container {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #boring-stats-container table {
        width: max-content;
        min-width: 100%;

        /* Sticky columns behave better this way */
        border-collapse: separate;
        border-spacing: 0;

        max-height: none;
        overflow: visible;
    }


    /* Smaller cells on mobile */

    #boring-stats-container th {
        padding: 9px 10px;
        font-size: 12px;
        white-space: nowrap;
    }

    #boring-stats-container td {
        padding: 9px 10px;
        font-size: 12px;
        white-space: nowrap;
    }


    /* =================================================
       FREEZE TEAM COLUMN

       Team is column 3 in your current table:
       1 = position/rank
       2 = trophy
       3 = Team
       ================================================= */

    #boring-stats-container th:nth-child(3),
    #boring-stats-container td:nth-child(3) {
        position: sticky;
        left: 0;
    
        width: 160px;
        min-width: 160px;
        max-width: 160px;
    
        z-index: 3;
    
        background-color: #ffffff;
    
        white-space: normal;
        overflow-wrap: break-word;
        word-break: normal;
    
        line-height: 1.2;
        box-sizing: border-box;
    
        box-shadow:
            5px 0 6px -6px rgba(0, 0, 0, 0.35);
    }


    /* Team column header */

    #boring-stats-container th:nth-child(3) {
        background-color: #6B92A8;
        color: #ffffff;
        z-index: 5;
    }


    /* Preserve alternating row color
       on frozen Team column */

    #boring-stats-container tr:nth-child(even)
    td:nth-child(3) {
        background-color: #f6f9fc;
    }


    /* Preserve hover color */

    #boring-stats-container tr:hover
    td:nth-child(3) {
        background-color: #eef5fc;
    }


    /* -----------------------------
       LEGEND
       ----------------------------- */

    .legend-grid {
        grid-template-columns: 70px 1fr;
        column-gap: 10px;
        row-gap: 10px;
    }

    .badge {
        width: 65px;
        font-size: 11px;
    }

}

/* =====================================================
   MOBILE - ROCK & CORRELATION
   ===================================================== */

@media (max-width: 768px) {

    .correlations-hub {
        width: 100%;
        max-width: none;
        margin-top: 10px;
        box-sizing: border-box;
    }

    .correlation-cards {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .correlation-card {
        width: 100%;
        max-width: none;
        min-height: auto;
        padding: 18px;
        box-sizing: border-box;
    }

    .correlations-intro {
        width: 100%;
        max-width: none;
    }

    .correlations-about {
        width: 100%;
        max-width: none;
    }
}

/* =====================================================
   MOBILE - CRAZY PEANUTS
   ===================================================== */

@media (max-width: 768px) {

    .penates-tab-content {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
        overflow: hidden;
    }

    .penates-tab-content ul {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
    }

    .penates-tab-content li {
        width: auto;
        max-width: 100%;
        padding: 12px;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
        overflow: hidden;
    }

    .penates-tab-content iframe {
        display: block;

        width: 100% !important;
        max-width: 100% !important;

        height: auto !important;
        aspect-ratio: 16 / 9;

        margin: 12px 0 0 0 !important;
        padding: 0;

        border: 0;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    #crazy-peanuts-container,
    #crazy-penates-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden;
        box-sizing: border-box;
    }
}


/* =====================================================
   MOBILE - POWER RANKINGS / TEAM DNA
   ===================================================== */

@media (max-width: 768px) {

    /* ---------------------------------
       TABS + SEASON
       --------------------------------- */

    #quality-components-header {
        width: 100%;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 20px !important;
    }

    #power-ranking-tabs {
        width: 100%;
        display: flex;
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    #power-ranking-tabs::-webkit-scrollbar {
        display: none;
    }

    #power-ranking-tabs .table-link {
        flex-shrink: 0;
        margin-right: 0;
        padding: 8px 10px;
        white-space: nowrap;
    }

    #quality-components-header .season-selector {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        margin-top: 2px;
    }


    /* ---------------------------------
       TABLE SCROLL AREA
       --------------------------------- */

    #quality-components-container {
        width: 100%;
        max-width: 100%;
    }

    #quality-components-table-wrapper {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #quality-components-table-wrapper table {
        width: max-content;
        min-width: 100%;

        border-collapse: separate;
        border-spacing: 0;

        overflow: visible;
    }


    /* ---------------------------------
       SMALLER MOBILE CELLS
       --------------------------------- */

    #quality-components-table-wrapper th {
        padding: 9px 10px;
        font-size: 12px;
        white-space: nowrap;
    }

    #quality-components-table-wrapper td {
        padding: 9px 10px;
        font-size: 12px;
        white-space: nowrap;
    }


    /* =================================================
       FREEZE TEAM COLUMN

       Power Ranking / Team DNA:
       column 1 = Team
       ================================================= */

    #quality-components-table-wrapper th:first-child,
    #quality-components-table-wrapper td:first-child {
        position: sticky;
        left: 0;

        width: 165px;
        min-width: 165px;
        max-width: 165px;

        box-sizing: border-box;

        z-index: 3;

        background-color: #ffffff;

        white-space: normal;
        overflow-wrap: break-word;
        word-break: normal;
        line-height: 1.2;

        box-shadow:
            5px 0 6px -6px rgba(0, 0, 0, 0.35);
    }

    /* Frozen Team header */
    #quality-components-table-wrapper th:first-child {
        background-color: #6B92A8;
        color: #ffffff;
        z-index: 5;
    }

    /* Preserve zebra color on frozen Team column */
    #quality-components-table-wrapper tr:nth-child(even)
    td:first-child {
        background-color: #f6f9fc;
    }

    /* Preserve hover color */
    #quality-components-table-wrapper tr:hover
    td:first-child {
        background-color: #eef5fc;
    }


    /* ---------------------------------
       TEAM + LOGO
       --------------------------------- */

    #quality-components-table-wrapper .power-team {
        min-width: 165px;
    }

    #quality-components-table-wrapper .power-team img {
        width: 20px;
        height: 20px;
        margin-right: 6px;
        object-fit: contain;
    }


    /* ---------------------------------
       POWER RANKING COLUMN WIDTHS
       --------------------------------- */

    .power-ranking-table th:not(:first-child),
    .power-ranking-table td:not(:first-child) {
        min-width: 70px;
    }

    .power-ranking-table th:nth-child(7),
    .power-ranking-table td:nth-child(7),
    .power-ranking-table th:nth-child(8),
    .power-ranking-table td:nth-child(8) {
        min-width: 82px;
    }

    .power-ranking-table th:last-child,
    .power-ranking-table td:last-child {
        min-width: 72px;
    }


    /* ---------------------------------
       TEAM DNA
       --------------------------------- */

    .style-components-table {
        table-layout: auto;
    }

    .style-components-table th:first-child,
    .style-components-table td:first-child {
        width: 165px;
        min-width: 165px;
        max-width: 165px;
    }

    .style-components-table th:not(:first-child),
    .style-components-table td:not(:first-child) {
        width: auto;
        min-width: 105px;
    }


    /* ---------------------------------
       POWER RANKING LEGEND
       --------------------------------- */

    #quality-components-detailed-legend {
        width: 100%;
        max-width: 100%;
        padding: 14px;
        box-sizing: border-box;
    }

    #quality-components-detailed-legend .legend-grid {
        grid-template-columns: 105px minmax(0, 1fr);
        column-gap: 10px;
        row-gap: 10px;
    }

    #quality-components-detailed-legend .badge {
        width: 100px;
        max-width: 100px;
        box-sizing: border-box;
        white-space: normal;
        line-height: 1.15;
        font-size: 10.5px;
    }
}


/* Draggable calculator - desktop only */
@media (min-width: 601px) {

    .bet-value-modal-box h2 {
        cursor: move;
        user-select: none;
    }

}

/* =====================================================
   BET VALUE - NON-BLOCKING DESKTOP WINDOW
   ===================================================== */

@media (min-width: 601px) {

    .bet-value-modal {
        background: transparent;

        /*
         * Allow clicks to pass through
         * to the prediction table.
         */
        pointer-events: none;
    }

    .bet-value-modal-box {
        /*
         * Calculator itself remains clickable.
         */
        pointer-events: auto;
    }

}

/* =====================================================
   BET VALUE - GAME CHANGE HIGHLIGHT
   ===================================================== */

.bet-value-modal-box h2.game-changed {
    animation: bet-value-header-flash 0.65s ease;
}

@keyframes bet-value-header-flash {

    0% {
        color: #e77729;
        background: rgba(231, 119, 41, 0.16);
    }

    50% {
        color: #e77729;
        background: rgba(231, 119, 41, 0.08);
    }

    100% {
        color: #2f4657;
        background: transparent;
    }
}



.correlation-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.correlation-card-link:hover h2 {
    color: #e77729;
}


/* =====================================================
   HOMEPAGE FEATURED GAME
   ===================================================== */

#home-featured-game {
    max-width: 850px;
    margin: 24px 0 12px;
}

#home-featured-game .home-featured-game {
    background: #ffffff;
    border: 1px solid #e3e8ec;
    border-left: 4px solid #e77729;
    border-radius: 10px;
    padding: 22px 26px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.home-featured-game-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.home-featured-game-label,
.home-featured-game-league {
    color: #6B92A8;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.home-featured-game-title {
    color: #2f4657;
    font-size: 23px;
    line-height: 1.3;
    margin: 0 0 8px;
}

.home-featured-game-subtitle {
    color: #6B92A8;
    font-size: 14px;
    margin: 0 0 18px;
}

.home-featured-game-insight {
    color: #2f4657;
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 14px;
}

.home-featured-game-pick {
    background: #fff8f2;
    color: #2f4657;
    padding: 12px 15px;
    border-radius: 7px;
    font-size: 14px;
    line-height: 1.6;
    margin: 16px 0;
}

.home-featured-game-link {
    display: inline-block;
    margin-top: 8px;
    color: #e77729;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.home-featured-game-link:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    #home-featured-game .home-featured-game {
        padding: 18px;
    }

    .home-featured-game-title {
        font-size: 20px;
    }

    .home-featured-game-top {
        flex-wrap: wrap;
    }
}


/* Featured game probability blocks */

#home-featured-game .home-featured-game-probabilities {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

#home-featured-game .home-featured-game-probabilities > div {
    background: #f6f9fc;
    border: 1px solid #e3e8ec;
    border-radius: 8px;
    padding: 14px 16px;
    color: #2f4657;
    font-size: 13px;
    line-height: 1.6;
}

#home-featured-game .home-featured-game-probabilities strong {
    display: block;
    color: #e77729;
    font-size: 26px;
    font-weight: 700;
    margin-top: 4px;
}

@media (max-width: 600px) {
    #home-featured-game .home-featured-game-probabilities {
        grid-template-columns: 1fr;
    }
}


/* Power Rankings SEO introduction */

.power-ranking-intro {
    max-width: 1100px;
    margin: 15px 0 25px;
    padding: 20px 24px;
    background: #ffffff;
    border: 1px solid #e5e9ed;
    border-radius: 10px;
}

.power-ranking-intro h2 {
    font-size: 20px;
    color: #203a50;
    margin: 0 0 14px;
}

.power-ranking-intro p {
    font-size: 15px;
    line-height: 1.7;
    color: #526c80;
    margin: 0 0 12px;
}

.power-ranking-intro p:last-child {
    margin-bottom: 0;
}

