    :root {
      --bg: #0f1115;
      --panel: #151922;
      --panel-2: #111520;
      --text: #eaeef6;
      --muted: #a7b0c0;
      --accent: #7aa2ff;
      --ok: #36d399;
      --warn: #f6c177;
      --danger: #ff6b6b;
      --border: #242a36;
      --chip: #1f2533;
      --shadow: 0 10px 30px rgba(0,0,0,.35);
      --radius: 16px;
    }
    * { box-sizing: border-box; }
    html, body { height:100%; }
    body {
      margin:0;
      background: var(--bg);
      color: var(--text);
      font-family: Inter, ui-sans-serif, system-ui, Segoe UI, Roboto, Helvetica, Arial, Apple Color Emoji, Segoe UI Emoji, Noto Color Emoji, sans-serif;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }
    a { color: inherit; text-decoration: none; }
    .wrap { max-width: 1500px; margin: 32px auto; padding: 0 16px 64px; }

    /* Header layout - slim horizontal design */
    header.top {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      padding: 1rem;
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      margin-bottom: 24px;
      box-shadow: var(--shadow);
    }

    /* Title section */
    .title {
      display: flex;
      align-items: center;
      gap: 14px;
    }
    
    .title h1 {
      margin: 0;
      font-size: 22px;
      font-weight: 600;
      color: var(--text);
      letter-spacing: .2px;
    }

    .title .meta {
      display: flex;
      gap: 10px;
      font-size: 13px;
      color: var(--muted);
    }

    .title .meta span {
      margin: 0 0.25rem;
    }

    /* Controls form - horizontal layout */
    .controls {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      flex-shrink: 0;
    }

    /* Slim form inputs */
    .input,
    .select {
      padding: 0.375rem 0.5rem;
      font-size: 0.875rem;
      line-height: 1.2;
      border: 1px solid var(--border);
      border-radius: 8px;
      background-color: var(--panel);
      color: var(--text);
      transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    }

    .input:focus,
    .select:focus {
      outline: 0;
      border-color: var(--accent);
      box-shadow: 0 0 0 0.2rem rgba(122, 162, 255, 0.25);
    }

    /* Disabled state */
    .input:disabled,
    .select:disabled,
    button:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      background-color: var(--panel-2);
    }

    /* Specific widths for compact layout */
    .input[type="date"] {
      width: 140px;
    }

    .select {
      min-width: 80px;
      max-width: 120px;
    }

    /* Submit button styling */
    button.select {
      background-color: var(--accent);
      color: white;
      border: 1px solid var(--accent);
      cursor: pointer;
      font-weight: 500;
      min-width: 60px;
    }

    button.select:hover:not(:disabled) {
      background-color: #5a8cff;
      border-color: #5a8cff;
    }

    button.select:focus {
      box-shadow: 0 0 0 0.2rem rgba(122, 162, 255, 0.5);
    }

    /* Responsive behavior */
    @media (max-width: 768px) {
      header.top {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
      }
      
      .title {
        justify-content: center;
        text-align: center;
      }
      
      .controls {
        flex-wrap: wrap;
        gap: 0.375rem;
        justify-content: center;
      }
      
      .input,
      .select {
        flex: 1;
        min-width: 0;
        max-width: 120px;
      }
      
      .input[type="date"] {
        width: auto;
      }
    }

    .grid { display:grid; grid-template-columns: 1fr; gap: 16px; }
    @media (min-width: 1100px) {
      .grid { grid-template-columns: 1fr 1fr; }
    }
    
    /* Single game focused layout */
    .game-focus-container {
      display: none;
      grid-template-columns: 2fr 1fr;
      gap: 24px;
      margin-top: 16px;
    }
    
    .game-focus-container.active {
      display: grid;
    }
    
    .focus-main {
      /* Game card goes here */
    }
    
    .focus-sidebar {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 20px;
      height: fit-content;
      position: sticky;
      top: 20px;
    }
    
    .sidebar-section {
      margin-bottom: 24px;
    }
    
    .sidebar-section:last-child {
      margin-bottom: 0;
    }
    
    .sidebar-title {
      font-size: 16px;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    
    .sidebar-content {
      font-size: 14px;
      line-height: 1.5;
      color: var(--muted);
    }
    
    .notes-textarea {
      width: 100%;
      min-height: 120px;
      background: var(--panel-2);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 12px;
      color: var(--text);
      font-size: 13px;
      line-height: 1.4;
      resize: vertical;
      font-family: inherit;
    }
    
    .notes-textarea:focus {
      outline: 0;
      border-color: var(--accent);
      box-shadow: 0 0 0 0.2rem rgba(122, 162, 255, 0.25);
    }
    
    .notes-textarea::placeholder {
      color: var(--muted);
      opacity: 0.7;
    }
    
    .injury-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    
    .injury-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 8px 12px;
      background: var(--chip);
      border: 1px solid var(--border);
      border-radius: 6px;
      font-size: 13px;
    }
    
    .injury-player {
      font-weight: 600;
      color: var(--text);
    }
    
    .injury-status {
      padding: 2px 6px;
      border-radius: 4px;
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.3px;
    }
    
    .injury-status.questionable {
      background: rgba(246, 193, 119, 0.15);
      color: var(--warn);
      border: 1px solid rgba(246, 193, 119, 0.3);
    }
    
    .injury-status.doubtful {
      background: rgba(255, 107, 107, 0.15);
      color: var(--danger);
      border: 1px solid rgba(255, 107, 107, 0.3);
    }
    
    .injury-status.out {
      background: rgba(139, 139, 139, 0.15);
      color: #8b8b8b;
      border: 1px solid rgba(139, 139, 139, 0.3);
    }
    
    .matchup-stats {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      gap: 12px;
      align-items: center;
      margin-bottom: 16px;
    }
    
    .stat-team {
      text-align: center;
    }
    
    .stat-label {
      font-size: 11px;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 4px;
    }
    
    .stat-value {
      font-size: 16px;
      font-weight: 700;
      color: var(--text);
    }
    
    .stat-divider {
      color: var(--muted);
      font-weight: 600;
    }
    
    @media (max-width: 1100px) {
      .game-focus-container {
        grid-template-columns: 1fr;
        gap: 16px;
      }
      
      .focus-sidebar {
        position: static;
      }
    }

    /* Game Selector Styles */
    .game-selector {
      margin-bottom: 24px;
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 16px;
      box-shadow: var(--shadow);
    }

    .selector-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 16px;
    }

    .selector-header h3 {
      margin: 0;
      font-size: 16px;
      font-weight: 600;
      color: var(--text);
    }

    .clear-selection {
      padding: 6px 12px;
      background: var(--chip);
      border: 1px solid var(--border);
      border-radius: 6px;
      color: var(--text);
      font-size: 12px;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .clear-selection:hover {
      background: var(--accent);
      border-color: var(--accent);
      color: white;
    }

    .game-cards {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      justify-content: center;
    }

    .game-selector-card {
      background: var(--chip);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 12px;
      cursor: pointer;
      transition: all 0.2s ease;
      min-width: 140px;
      text-align: center;
    }

    .game-selector-card:hover {
      background: var(--panel-2);
      border-color: var(--accent);
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .game-selector-card.active {
      background: var(--accent);
      border-color: var(--accent);
      color: white;
    }

    .game-selector-card.active .selector-name,
    .game-selector-card.active .selector-vs,
    .game-selector-card.active .selector-time {
      color: white;
    }

    .selector-teams {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      margin-bottom: 6px;
    }

    .selector-team {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
    }

    .selector-logo {
      width: 32px;
      height: 32px;
      border-radius: 6px;
      background: #0b0e15;
      border: 1px solid var(--border);
      display: grid;
      place-items: center;
      overflow: hidden;
    }

    .selector-logo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .selector-name {
      font-size: 10px;
      font-weight: 600;
      color: var(--text);
      text-align: center;
      line-height: 1.2;
    }

    .selector-vs {
      font-size: 12px;
      font-weight: 700;
      color: var(--muted);
      margin: 0 4px;
    }

    .selector-time {
      font-size: 10px;
      color: var(--muted);
      font-weight: 500;
    }

    @media (max-width: 768px) {
      .game-cards {
        gap: 8px;
      }
      
      .game-selector-card {
        min-width: 120px;
        padding: 10px;
      }
      
      .selector-logo {
        width: 28px;
        height: 28px;
      }
      
      .selector-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
      }
      
      .clear-selection {
        align-self: center;
      }
    }

    .card {
      background: linear-gradient(180deg, var(--panel), var(--panel-2));
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      overflow: hidden;
      transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    }

    .card:hover { transform: translateY(-2px); border-color:#2b3344; box-shadow: 0 16px 40px rgba(0,0,0,.45); }
    .card .row { display:flex; align-items:center; gap: 12px; padding: 14px 16px; }
    .card .row.sep { border-top: 1px dashed var(--border); }

    /* TV-style color wash behind the matchup header */
    .teams-bar { 
      position: relative; 
      overflow: hidden; 
      border-radius: 12px; 
      isolation: isolate; 
    }
    .teams-bar::before {
      content: "";
      position: absolute; inset: -1px;
      background:
        linear-gradient(90deg, var(--away1) 0%, var(--away1) 48%, var(--home1) 52%, var(--home1) 100%),
        radial-gradient(120% 160% at 0% 50%, var(--away2) 0%, transparent 60%),
        radial-gradient(120% 160% at 100% 50%, var(--home2) 0%, transparent 60%);
      opacity: .28;
      z-index: 0;
      border-radius: 12px;
    }
    .teams-bar::after {
      content: "";
      position: absolute; inset: -1px;
      background: linear-gradient(0deg, rgba(0,0,0,.28), rgba(0,0,0,.10));
      z-index: 0; border-radius: 12px;
    }
    .teams-bar > * { position: relative; z-index: 1; }

    .teams-bar .team:first-child .logo { box-shadow: 0 0 0 2px var(--away1); }
    .teams-bar .team:last-child  .logo { box-shadow: 0 0 0 2px var(--home1); }
    .teams-bar .name { text-shadow: 0 1px 0 rgba(0,0,0,.25); }
    .teams-bar::before {
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
    }

    .team { flex: 1 1 0; display:flex; align-items:center; gap:12px; min-width:0; }
    .team .logo {
      width: 44px; height: 44px; border-radius: 10px; background:#0b0e15; border:1px solid var(--border);
      display:grid; place-items:center; overflow:hidden;
    }
    .team .logo img { width:100%; height:100%; object-fit:cover; }
    .team .info { min-width:0; }
    .team .name { font-size: 15px; font-weight: 600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .team .sub { font-size: 12px; color: var(--muted); }
    /* O/U display in center */
    .ou-display { 
      display: flex; 
      flex-direction: column; 
      align-items: center; 
      padding: 8px 12px; 
      border-radius: 10px; 
      background: linear-gradient(135deg, var(--ou-bg1), var(--ou-bg2)); 
      border: 1px solid var(--ou-bd); 
      min-width: 60px;
    }
    .ou-display .label { 
      font-size: 9px; 
      font-weight: 600; 
      color: rgba(255,255,255,0.7); 
      letter-spacing: .5px; 
      line-height: 1;
    }
    .ou-display .number { 
      font-size: 16px; 
      font-weight: 800; 
      color: white; 
      text-shadow: 0 1px 2px rgba(0,0,0,.5); 
      line-height: 1;
    }
    
    /* Team info styling */
    .team .info { 
      min-width:0; 
      display: flex; 
      flex-direction: column; 
      justify-content: center;
    }
    
    /* Game info row below teams */
    .game-info {
      padding: 8px 16px !important;
      border-top: 1px dashed var(--border);
      justify-content: space-between;
      font-size: 12px;
    }
    
    .spread-time-info {
      display: flex;
      align-items: center;
    }
    
    .spread-info {
      padding: 4px 8px;
      background: var(--chip);
      border: 1px solid var(--border);
      border-radius: 6px;
      font-weight: 600;
      color: var(--text);
    }
    
    .time-info {
      display: flex;
      align-items: center;
    }
    
    .time-display {
      color: var(--muted);
      font-weight: 500;
    }
    .meta-bar { display:flex; gap:10px; flex-wrap:wrap; margin-left:auto; }
    .chip { background: var(--chip); border: 1px solid var(--border); border-radius: 999px; padding: 6px 10px; font-size: 12px; color: var(--text); }

    .chip-ou{
      background: linear-gradient(135deg, var(--ou-bg1), var(--ou-bg2));
      border-color: var(--ou-bd);
      color: #fff;
      text-shadow: 0 1px 0 rgba(0,0,0,.35);
    }

    .kv { display:flex; gap:10px; flex-wrap:wrap; font-size: 12px; color: var(--muted); }
    .kv b { color: var(--text); }
    :root { --datacol: 92px; }

    .statgrid { display:grid; grid-template-columns: var(--datacol) 1fr var(--datacol) var(--datacol) var(--datacol) var(--datacol); gap:8px; align-items:center; }
    .statgrid.hdr { color: var(--muted); font-weight: 600; padding-top: 2px; }
    .statgrid .num { 
      font-size: 13px; 
      text-align:right; 
      font-variant-numeric: tabular-nums; 
    }
    .posblock { margin-bottom: 10px; }
    .posblock + .posblock { margin-top: 12px; }
    .two-col { display:flex; gap:24px; align-items:flex-start; flex-wrap:wrap; }
    .col { flex:1 1 420px; min-width:320px; }

    /* health chips inline on the unit header */
    .unitbar{
      position: relative;
      margin-bottom: 8px;
      padding: 8px 12px;
      border-radius: 10px;
      border: 1px solid var(--border);
      overflow: hidden;
      isolation: isolate;
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .unitbar .label{
      font-weight: 700;
      letter-spacing: .2px;
      color: var(--text);
      text-shadow: 0 1px 0 rgba(0,0,0,.25);
    }
    .unit-metrics{
      margin-left: auto;
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      font-size: 12px;
      color: var(--muted);
    }
    .hitem{
      padding: 2px 6px;
      border-radius: 6px;
      border: 1px solid var(--border);
      background: var(--chip);
      line-height: 1.2;
    }
    .hitem.good  { background: rgba(54,211,153,.12); border-color: rgba(54,211,153,.35); }
    .hitem.warn  { background: rgba(246,193,119,.12); border-color: rgba(246,193,119,.35); }
    .hitem.bad   { background: rgba(255,107,107,.12); border-color: rgba(255,107,107,.35); }
    .hitem.na    { opacity: .6; }

    /* Player cell (first column in statgrid) */
    .player{
      font-size: 14px;
      display:flex;
      align-items:center;
      gap:10px;
      min-width:0;
    }

    .player b{
      font-weight:600;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
      color:var(--text);
    }

    .player .meta{
      display:block;
      font-size:12px;
      color:var(--muted);
    }

    .player .avatar{
      width:28px;
      height:28px;
      border-radius:50%;
      overflow:hidden;
      flex:0 0 28px;
      background:#0b0e15;
      border:1px solid var(--border);
    }

    .player .tag{
      margin-left:6px;
      padding:2px 6px;
      font-size:11px;
      font-weight:700;
      letter-spacing:.3px;
      border:1px solid var(--border);
      border-radius:6px;
      background:var(--chip);
      color:var(--text);
    }

    .statgrid:hover .player b{
      text-decoration:none;
      filter:brightness(1.05);
    }

    /* Favorite chip uses team gradient via inline CSS vars --fav1/--fav2 */
    .chip-fav{
      background: linear-gradient(35deg, var(--fav1), var(--fav1));
      border-color: rgba(0,0,0,.28);
      color:#fff;
      text-shadow: 0 1px 0 rgba(0,0,0,.35);
      font-weight: 700;
    }

    /* Neutral Pick'em chip */
    .chip-pick{
      background: linear-gradient(135deg, #2a3142, #222a3a);
      border-color: #1b2130;
      color:#dbe2f2;
    }

    /* Team-tinted subheaders */
    .unitbar{
      position: relative;
      margin-bottom: 8px;
      padding: 8px 12px;
      border-radius: 10px;
      border: 1px solid var(--border);
      overflow: hidden;
      isolation: isolate;
    }
    .unitbar .label{
      position: relative;
      z-index: 1;
      font-weight: 700;
      letter-spacing: .2px;
      color: var(--text);
      text-shadow: 0 1px 0 rgba(0,0,0,.25);
    }

    /* Color wash behind the text */
    .unitbar::before{
      content:"";
      position:absolute; inset:-1px;
      background: linear-gradient(135deg, var(--t1), var(--t2));
      opacity: .28;
      border-radius: 10px;
      z-index: 0;
    }
    .unitbar::after{
      content:"";
      position:absolute; inset:-1px;
      background: linear-gradient(0deg, rgba(255,255,255,.04), rgba(0,0,0,0));
      border-radius: 10px;
      z-index: 0;
    }

    /* Wire up team palettes */
    .unit-away{ --t1: var(--away1); --t2: var(--away2); }
    .unit-home{ --t1: var(--home1); --t2: var(--home2); }

    /* Props expandable rows */
    .player-row {
      position: relative;
    }
    
    .expand-btn {
      width: 16px;
      height: 16px;
      border: 1px solid var(--border);
      border-radius: 4px;
      background: var(--chip);
      color: var(--muted);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 10px;
      transition: all 0.2s ease;
      margin-right: 6px;
      flex-shrink: 0;
    }
    
    .expand-btn:hover {
      background: var(--accent);
      color: white;
      border-color: var(--accent);
    }
    
    .expand-btn.expanded {
      background: var(--accent);
      color: white;
      border-color: var(--accent);
    }
    
    .props-row {
      display: none;
      grid-column: 1 / -1;
      padding: 8px 12px;
      margin: 4px 0;
      background: var(--panel-2);
      border: 1px solid var(--border);
      border-radius: 8px;
      font-size: 11px;
    }
    
    .props-row.show {
      display: block;
    }
    
    .props-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 8px;
    }
    
    .prop-item {
      display: flex;
      flex-direction: column;
      gap: 2px;
      padding: 4px 6px;
      background: var(--chip);
      border: 1px solid var(--border);
      border-radius: 4px;
    }
    
    .prop-type {
      font-weight: 600;
      color: var(--text);
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    
    .prop-line {
      color: var(--accent);
      font-weight: 700;
      font-size: 12px;
    }
    
    .prop-odds {
      color: var(--muted);
      font-size: 10px;
    }
    
    .prop-book {
      color: var(--accent);
      font-size: 9px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.3px;
      opacity: 0.8;
    }
    
    /* Player name with expand button */
    .player-name-row {
      display: flex;
      align-items: center;
      min-width: 0;
    }

/* Team Rankings Section */
    .rankings-section {
      padding: 12px 16px;
      border-top: 1px dashed var(--border);
      background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    }
    
    .rankings-layout {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      gap: 20px;
      align-items: start;
      text-align: center;
    }
    
    .team-rankings-side {
      display: flex;
      flex-direction: column;
      gap: 8px;
      align-items: center;
    }
    
    .rankings-tabs-center {
      display: flex;
      justify-content: center;
      align-items: center;
      min-width: 80px;
    }
    
    .rankings-tabs {
      display: flex;
      flex-direction: column;
      background: var(--chip);
      border: 1px solid var(--border);
      border-radius: 8px;
      overflow: hidden;
    }
    
    .rankings-tab {
      padding: 8px 16px;
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      background: transparent;
      border: none;
      color: var(--muted);
      cursor: pointer;
      transition: all 0.2s ease;
      border-bottom: 1px solid var(--border);
      white-space: nowrap;
      min-width: 70px;
    }
    
    .rankings-tab:last-child {
      border-bottom: none;
    }
    
    .rankings-tab.active {
      background: var(--accent);
      color: white;
    }
    
    .rankings-tab:hover:not(.active) {
      background: rgba(255,255,255,0.05);
      color: var(--text);
    }
    
    .team-rankings-header {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      margin-bottom: 8px;
    }
    
    .team-rankings-logo {
      width: 20px;
      height: 20px;
      border-radius: 4px;
      background: #0b0e15;
      border: 1px solid var(--border);
      overflow: hidden;
      flex-shrink: 0;
    }
    
    .team-rankings-logo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
    .team-rankings-name {
      font-size: 12px;
      font-weight: 600;
      color: var(--text);
    }
    
    .ranking-cards {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6px;
      justify-content: center;
    }
    
    .ranking-card {
      background: var(--chip);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 8px;
      text-align: center;
      transition: all 0.2s ease;
      position: relative;
      overflow: hidden;
      min-width: 80px;
    }
    
    .ranking-card:hover {
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    
    .ranking-card-type {
      font-size: 9px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: var(--muted);
      margin-bottom: 2px;
      line-height: 1;
    }
    
    .ranking-card-rank {
      font-size: 14px;
      font-weight: 700;
      line-height: 1;
      margin-bottom: 2px;
    }
    
    .ranking-card-yards {
      font-size: 10px;
      color: var(--muted);
      line-height: 1;
    }
    
    /* Ranking color classes */
    .rank-elite {
      background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.08));
      border-color: rgba(34, 197, 94, 0.3);
    }
    
    .rank-elite .ranking-card-rank {
      color: #22c562;
    }
    
    .rank-good {
      background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.08));
      border-color: rgba(59, 130, 246, 0.3);
    }
    
    .rank-good .ranking-card-rank {
      color: #3b82f6;
    }
    
    .rank-avg {
      background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.08));
      border-color: rgba(251, 191, 36, 0.3);
    }
    
    .rank-avg .ranking-card-rank {
      color: #fbbf24;
    }
    
    .rank-poor {
      background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(249, 115, 22, 0.08));
      border-color: rgba(249, 115, 22, 0.3);
    }
    
    .rank-poor .ranking-card-rank {
      color: #f97316;
    }
    
    .rank-bad {
      background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.08));
      border-color: rgba(239, 68, 68, 0.3);
    }
    
    .rank-bad .ranking-card-rank {
      color: #ef4444;
    }
    
    .rank-na {
      opacity: 0.6;
    }
    
    .rank-na .ranking-card-rank {
      color: var(--muted);
    }
    
    /* Responsive rankings */
    @media (max-width: 768px) {
      .rankings-layout {
        grid-template-columns: 1fr;
        gap: 16px;
      }
      
      .rankings-tabs-center {
        order: 1;
        margin: 0 auto;
      }
      
      .team-rankings-side {
        margin: 0 auto;
      }
      
      .away-side {
        order: 2;
      }
      
      .home-side {
        order: 3;
      }
      
      .ranking-cards {
        gap: 4px;
        max-width: 200px;
      }
      
      .ranking-card {
        padding: 6px;
        min-width: auto;
      }
      
      .ranking-card-type {
        font-size: 8px;
      }
      
      .ranking-card-rank {
        font-size: 12px;
      }
      
      .ranking-card-yards {
        font-size: 9px;
      }
      
      .rankings-tab {
        padding: 6px 12px;
      }
    }

    /* Ranking color classes */
    .rank-elite {
      background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.08));
      border-color: rgba(34, 197, 94, 0.3);
    }
    
    .rank-elite .ranking-card-rank {
      color: #22c562;
    }
    
    .rank-good {
      background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.08));
      border-color: rgba(59, 130, 246, 0.3);
    }
    
    .rank-good .ranking-card-rank {
      color: #3b82f6;
    }
    
    .rank-avg {
      background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.08));
      border-color: rgba(251, 191, 36, 0.3);
    }
    
    .rank-avg .ranking-card-rank {
      color: #fbbf24;
    }
    
    .rank-poor {
      background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(249, 115, 22, 0.08));
      border-color: rgba(249, 115, 22, 0.3);
    }
    
    .rank-poor .ranking-card-rank {
      color: #f97316;
    }
    
    .rank-bad {
      background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.08));
      border-color: rgba(239, 68, 68, 0.3);
    }
    
    .rank-bad .ranking-card-rank {
      color: #ef4444;
    }
    
    .rank-na {
      opacity: 0.6;
    }
    
    .rank-na .ranking-card-rank {
      color: var(--muted);
    }
    
    /* Responsive rankings */
    @media (max-width: 768px) {
      .rankings-layout {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: center;
      }
      
      .away-side {
        align-items: center;
        text-align: center;
        order: 1;
      }
      
      .rankings-tabs-center {
        order: 2;
        margin: 0 auto;
      }
      
      .home-side {
        align-items: center;
        text-align: center;
        order: 3;
      }
      
      .away-side .team-rankings-header,
      .home-side .team-rankings-header {
        justify-content: center;
        flex-direction: row;
      }
      
      .ranking-cards {
        gap: 4px;
        max-width: 200px;
        margin: 0 auto;
      }
      
      .ranking-card {
        padding: 6px;
        min-width: auto;
      }
      
      .ranking-card-type {
        font-size: 8px;
      }
      
      .ranking-card-rank {
        font-size: 12px;
      }
      
      .ranking-card-yards {
        font-size: 9px;
      }
      
      .rankings-tab {
        padding: 6px 12px;
      }
    }
    
    /* Ranking color classes */
    .rank-elite {
      background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.08));
      border-color: rgba(34, 197, 94, 0.3);
    }
    
    .rank-elite .ranking-card-rank {
      color: #22c562;
    }
    
    .rank-good {
      background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.08));
      border-color: rgba(59, 130, 246, 0.3);
    }
    
    .rank-good .ranking-card-rank {
      color: #3b82f6;
    }
    
    .rank-avg {
      background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.08));
      border-color: rgba(251, 191, 36, 0.3);
    }
    
    .rank-avg .ranking-card-rank {
      color: #fbbf24;
    }
    
    .rank-poor {
      background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(249, 115, 22, 0.08));
      border-color: rgba(249, 115, 22, 0.3);
    }
    
    .rank-poor .ranking-card-rank {
      color: #f97316;
    }
    
    .rank-bad {
      background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.08));
      border-color: rgba(239, 68, 68, 0.3);
    }
    
    .rank-bad .ranking-card-rank {
      color: #ef4444;
    }
    
    .rank-na {
      opacity: 0.6;
    }
    
    .rank-na .ranking-card-rank {
      color: var(--muted);
    }
    
    /* Responsive rankings */
    @media (max-width: 768px) {
      .rankings-grid {
        gap: 8px;
      }
      
      .ranking-cards {
        gap: 4px;
      }
      
      .ranking-card {
        padding: 6px;
      }
      
      .ranking-card-type {
        font-size: 8px;
      }
      
      .ranking-card-rank {
        font-size: 12px;
      }
      
      .ranking-card-yards {
        font-size: 9px;
      }
    }

/* Updated center section to accommodate stacked tabs */
    .center-section {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
    }

    /* Integrated Team Rankings */
    .team-rankings-inline {
      margin-top: 6px;
    }
    
    .ranking-cards-inline {
      display: flex;
      gap: 4px;
      justify-content: flex-start;
    }
    
    .team:last-child .ranking-cards-inline {
      justify-content: flex-end;
    }
    
    .ranking-card-mini {
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 4px;
      padding: 3px 6px;
      text-align: center;
      transition: all 0.2s ease;
      backdrop-filter: blur(8px);
      min-width: 32px;
    }
    
    .ranking-card-mini:hover {
      transform: translateY(-1px);
      box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }
    
    .ranking-card-type-mini {
      font-size: 8px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.3px;
      color: rgba(255, 255, 255, 0.8);
      margin-bottom: 1px;
      line-height: 1;
    }
    
    .ranking-card-rank-mini {
      font-size: 10px;
      font-weight: 700;
      line-height: 1;
      text-shadow: 0 1px 2px rgba(0,0,0,.5);
    }
    
    /* Mini ranking color classes */
    .rank-elite .ranking-card-mini {
      background: rgba(34, 197, 94, 0.25);
      border-color: rgba(34, 197, 94, 0.4);
    }
    
    .rank-elite .ranking-card-rank-mini {
      color: #22c562;
    }
    
    .rank-good .ranking-card-mini {
      background: rgba(59, 130, 246, 0.25);
      border-color: rgba(59, 130, 246, 0.4);
    }
    
    .rank-good .ranking-card-rank-mini {
      color: #3b82f6;
    }
    
    .rank-avg .ranking-card-mini {
      background: rgba(251, 191, 36, 0.25);
      border-color: rgba(251, 191, 36, 0.4);
    }
    
    .rank-avg .ranking-card-rank-mini {
      color: #fbbf24;
    }
    
    .rank-poor .ranking-card-mini {
      background: rgba(249, 115, 22, 0.25);
      border-color: rgba(249, 115, 22, 0.4);
    }
    
    .rank-poor .ranking-card-rank-mini {
      color: #f97316;
    }
    
    .rank-bad .ranking-card-mini {
      background: rgba(239, 68, 68, 0.25);
      border-color: rgba(239, 68, 68, 0.4);
    }
    
    .rank-bad .ranking-card-rank-mini {
      color: #ef4444;
    }
    
    .rank-na .ranking-card-mini {
      opacity: 0.7;
    }
    
    .rank-na .ranking-card-rank-mini {
      color: rgba(255, 255, 255, 0.6);
    }
    
    /* Mini stacked tabs */
    .rankings-tabs-mini {
      display: flex;
      flex-direction: column;
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 6px;
      overflow: hidden;
      backdrop-filter: blur(8px);
    }
    
    .rankings-tab-mini {
      padding: 4px 8px;
      font-size: 9px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      background: transparent;
      border: none;
      color: rgba(255, 255, 255, 0.7);
      cursor: pointer;
      transition: all 0.2s ease;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      white-space: nowrap;
      min-width: 36px;
      text-shadow: 0 1px 2px rgba(0,0,0,.5);
    }
    
    .rankings-tab-mini:last-child {
      border-bottom: none;
    }
    
    .rankings-tab-mini.active {
      background: var(--accent);
      color: white;
    }
    
    .rankings-tab-mini:hover:not(.active) {
      background: rgba(255,255,255,0.15);
      color: white;
    }
    
    /* Remove the old rankings section CSS since it's now integrated */
    .rankings-section {
      display: none;
    }
    
    /* Responsive adjustments for integrated rankings */
    @media (max-width: 768px) {
      .team-rankings-inline {
        margin-top: 4px;
      }
      
      .ranking-cards-inline {
        gap: 3px;
        justify-content: center !important;
      }
      
      .ranking-card-mini {
        padding: 2px 4px;
        min-width: 28px;
      }
      
      .ranking-card-type-mini {
        font-size: 7px;
      }
      
      .ranking-card-rank-mini {
        font-size: 9px;
      }
      
      .rankings-tab-mini {
        padding: 3px 6px;
        font-size: 8px;
        min-width: 32px;
      }
      
      .center-section {
        gap: 6px;
      }
    }
    
    @media (max-width: 480px) {
      .team-rankings-inline {
        display: none;
      }
      
      .rankings-tabs-mini {
        display: none;
      }
    }

    footer.page { margin-top: 28px; font-size: 12px; color: var(--muted); text-align:center; }
