:root {
            --pf-scoring-navy: #002244;
            --pf-scoring-red: #C60C30;
            --pf-scoring-silver: #B0B7BC;
            --pf-scoring-white: #FFFFFF;
            --pf-scoring-dark: #0a1628;
            --pf-scoring-gradient: linear-gradient(135deg, #002244 0%, #0a1628 50%, #002244 100%);
            --pf-scoring-accent-glow: rgba(198, 12, 48, 0.3);
            --pf-scoring-positive: #22c55e;
            --pf-scoring-negative: #ef4444;
            --pf-scoring-neutral: #94a3b8;
    --pf-table-head-row1: 45px;      /* height/spacing of the first header row (tweak if needed) */
    --pf-season-col-w: 92px;         /* width of Season column on mobile */
  
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Roboto Condensed', sans-serif;
            background: var(--pf-scoring-dark);
            color: var(--pf-scoring-white);
            min-height: 100vh;
        }

        .pf-scoring-container {
            max-width: 1800px;
            margin: 0 auto;
            padding: 40px 20px;
            overflow-x: hidden;
        }

        .pf-scoring-header {
            text-align: center;
            margin-bottom: 40px;
            position: relative;
        }

        .pf-scoring-header::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 400px;
            height: 400px;
            background: radial-gradient(circle, var(--pf-scoring-accent-glow) 0%, transparent 70%);
            pointer-events: none;
            z-index: 0;
        }

        .pf-scoring-title {
            font-family: 'Oswald', sans-serif;
            font-size: 3.5rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 4px;
            background: linear-gradient(180deg, var(--pf-scoring-white) 0%, var(--pf-scoring-silver) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            position: relative;
            z-index: 1;
            text-shadow: 0 0 60px rgba(255,255,255,0.1);
        }

        .pf-scoring-subtitle {
            font-family: 'Roboto Condensed', sans-serif;
            font-size: 1.1rem;
            color: var(--pf-scoring-silver);
            margin-top: 10px;
            letter-spacing: 2px;
            text-transform: uppercase;
            position: relative;
            z-index: 1;
        }

        .pf-scoring-stats-bar {
            display: flex;
            justify-content: center;
            gap: 60px;
            margin: 30px 0;
            flex-wrap: wrap;
        }

        .pf-scoring-stat-item {
            text-align: center;
            padding: 20px 30px;
            background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
            border-radius: 12px;
            border: 1px solid rgba(255,255,255,0.08);
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
        }

        .pf-scoring-stat-item:hover {
            transform: translateY(-3px);
            border-color: var(--pf-scoring-red);
            box-shadow: 0 10px 40px rgba(198, 12, 48, 0.2);
        }

        .pf-scoring-stat-value {
            font-family: 'Oswald', sans-serif;
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--pf-scoring-white);
        }

        .pf-scoring-stat-label {
            font-size: 0.85rem;
            color: var(--pf-scoring-silver);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-top: 5px;
        }

        .pf-scoring-table-wrapper {
            overflow-x: auto;
            border-radius: 16px;
            background: linear-gradient(145deg, rgba(0,34,68,0.8) 0%, rgba(10,22,40,0.9) 100%);
            border: 1px solid rgba(255,255,255,0.1);
            box-shadow: 0 25px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
        }

        .pf-scoring-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.9rem;
        }

        .pf-scoring-table thead {
            position: sticky;
            top: 0;
        }

        .pf-scoring-table thead th {
            position: sticky;
            top: 0;
        }

        .pf-scoring-table th {
            font-family: 'Oswald', sans-serif;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            padding: 16px 12px;
            background: var(--pf-scoring-navy);
            border-bottom: 3px solid var(--pf-scoring-red);
            cursor: pointer;
            transition: all 0.2s ease;
            white-space: nowrap;
            position: relative;
            user-select: none;
        }

        .pf-scoring-table th:hover {
            background: linear-gradient(180deg, #003366 0%, var(--pf-scoring-navy) 100%);
        }

        .pf-scoring-table th::after {
            content: '⇅';
            margin-left: 6px;
            opacity: 0.4;
            font-size: 0.8em;
        }

        .pf-scoring-table th.pf-scoring-sort-asc::after {
            content: '↑';
            opacity: 1;
            color: var(--pf-scoring-red);
        }

        .pf-scoring-table th.pf-scoring-sort-desc::after {
            content: '↓';
            opacity: 1;
            color: var(--pf-scoring-red);
        }

        .pf-scoring-table th.pf-scoring-no-sort {
            cursor: default;
        }

        .pf-scoring-table th.pf-scoring-no-sort::after {
            content: '';
        }

        .pf-scoring-header-group {
            background: var(--pf-scoring-dark) !important;
            border-bottom: 2px solid rgba(255,255,255,0.1) !important;
            font-size: 0.75rem;
            letter-spacing: 2px;
        }

        .pf-scoring-header-patriots {
            background: linear-gradient(90deg, var(--pf-scoring-navy) 0%, rgba(0,34,68,0.7) 100%) !important;
            color: var(--pf-scoring-white);
        }

        .pf-scoring-header-opponent {
            background: linear-gradient(90deg, rgba(80,80,80,0.7) 0%, rgba(60,60,60,0.7) 100%) !important;
            color: var(--pf-scoring-silver);
        }

        .pf-scoring-header-diff {
            background: linear-gradient(90deg, rgba(198, 12, 48, 0.3) 0%, rgba(198, 12, 48, 0.1) 100%) !important;
            color: var(--pf-scoring-red);
        }

        .pf-scoring-table td {
            padding: 14px 12px;
            text-align: center;
            border-bottom: 1px solid rgba(255,255,255,0.05);
            transition: all 0.2s ease;
        }

        .pf-scoring-table tbody tr {
            transition: all 0.2s ease;
        }

        .pf-scoring-table tbody tr:hover {
            background: rgba(198, 12, 48, 0.1);
        }

        .pf-scoring-table tbody tr:hover td {
            border-bottom-color: rgba(198, 12, 48, 0.3);
        }

        .pf-scoring-col-season {
            font-family: 'Oswald', sans-serif;
            font-weight: 600;
            font-size: 1.1rem;
            color: var(--pf-scoring-white);
            background: rgba(0,34,68,0.3);
            position: sticky;
            left: 0;
        }

        .pf-scoring-col-patriots {
            color: var(--pf-scoring-white);
        }

        .pf-scoring-col-total-pats {
            font-weight: 700;
            color: var(--pf-scoring-white);
            background: rgba(0,34,68,0.2);
        }

        .pf-scoring-col-opponent {
            color: var(--pf-scoring-silver);
        }

        .pf-scoring-col-total-opp {
            font-weight: 700;
            color: var(--pf-scoring-silver);
            background: rgba(80,80,80,0.15);
        }

        .pf-scoring-col-diff {
            font-weight: 700;
            font-family: 'Oswald', sans-serif;
        }

        .pf-scoring-positive {
            color: var(--pf-scoring-positive);
        }

        .pf-scoring-negative {
            color: var(--pf-scoring-negative);
        }

        .pf-scoring-neutral {
            color: var(--pf-scoring-neutral);
        }

        .pf-scoring-divider {
            width: 3px;
            background: rgba(255,255,255,0.1);
            padding: 0 !important;
        }

        .pf-scoring-table td.pf-scoring-col-sorted {
            background: rgba(198, 12, 48, 0.15) !important;
            box-shadow: inset 0 0 20px rgba(198, 12, 48, 0.1);
        }

        .pf-scoring-table th.pf-scoring-sort-asc,
        .pf-scoring-table th.pf-scoring-sort-desc {
            background: linear-gradient(180deg, var(--pf-scoring-red) 0%, #8a0a22 100%) !important;
            color: var(--pf-scoring-white);
        }

        .pf-scoring-footer {
            text-align: center;
            margin-top: 30px;
            padding: 20px;
            color: var(--pf-scoring-silver);
            font-size: 0.85rem;
        }

        .pf-scoring-legend {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-top: 20px;
            flex-wrap: wrap;
        }

        .pf-scoring-legend-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.8rem;
            color: var(--pf-scoring-silver);
        }

        .pf-scoring-legend-color {
            width: 12px;
            height: 12px;
            border-radius: 3px;
        }

        .pf-scoring-legend-positive {
            background: var(--pf-scoring-positive);
        }

        .pf-scoring-legend-negative {
            background: var(--pf-scoring-negative);
        }


        .pf-scoring-table-wrapper::-webkit-scrollbar {
            height: 8px;
        }

        .pf-scoring-table-wrapper::-webkit-scrollbar-track {
            background: rgba(0,0,0,0.3);
            border-radius: 4px;
        }

        .pf-scoring-table-wrapper::-webkit-scrollbar-thumb {
            background: var(--pf-scoring-red);
            border-radius: 4px;
        }

        .pf-scoring-table-wrapper::-webkit-scrollbar-thumb:hover {
            background: #e01040;
        }


@media (max-width: 768px){

  .pf-scoring-header{
    margin-top: 60px;
  }

  .pf-scoring-title{
    font-size: 2rem;
    letter-spacing: 2px;
  }

  .pf-scoring-subtitle{
    font-size: 0.9rem;
  }

  .pf-scoring-stats-bar{
    gap: 20px;
  }

  .pf-scoring-stat-item{
    padding: 15px 20px;
  }

  .pf-scoring-stat-value{
    font-size: 1.8rem;
  }

  .pf-scoring-container{
    padding: 20px 10px;
  }

  .pf-scoring-table thead th{
    position: sticky !important;
    z-index: 30;
  }

  .pf-scoring-table thead tr:first-child th{
    top: var(--pf-table-sticky-offset);
    z-index: 40;
  }

  .pf-scoring-table thead tr:nth-child(2) th{
    top: calc(var(--pf-table-sticky-offset) + var(--pf-table-head-row1));
    z-index: 39;
  }

  .pf-scoring-table thead tr:first-child th:first-child,
  .pf-scoring-table thead tr:nth-child(2) th.pf-scoring-col-season,
  .pf-scoring-table tbody td.pf-scoring-col-season{
    width: var(--pf-season-col-w);
    min-width: var(--pf-season-col-w);
    max-width: var(--pf-season-col-w);
  }

  .pf-scoring-table thead tr:first-child th:first-child{
    position: sticky !important;
    left: 0;
    z-index: 60; /* top-most corner */
    background: var(--pf-scoring-navy) !important;
    box-shadow: 10px 0 18px rgba(0,0,0,0.35);
  }

  .pf-scoring-table thead tr:nth-child(2) th.pf-scoring-col-season{
    position: sticky !important;
    left: 0;
    z-index: 59;
    background: var(--pf-scoring-navy);
    box-shadow: 10px 0 18px rgba(0,0,0,0.35);
  }


  .pf-scoring-table tbody td.pf-scoring-col-season{
    position: sticky;
    left: 0;
    z-index: 15; 
    background: rgba(0,34,68,0.92);
    box-shadow: 10px 0 18px rgba(0,0,0,0.30);
  }

  .pf-scoring-divider{
    display: none;
  }

  .pf-scoring-table-wrapper{
    -webkit-overflow-scrolling: touch;
  }
}