/**
 * FFToolbox Responsive CSS Framework
 * ==================================
 * 
 * A modular, reusable CSS framework for making FFToolbox pages responsive.
 * Include this file at the end of any page to apply responsive styles.
 * 
 * USAGE:
 *   <link rel="stylesheet" href="/css/responsive.css">
 *   OR inject via JavaScript at end of </body>
 * 
 * COMPONENTS:
 *   1. Base/Reset styles
 *   2. Layout containers
 *   3. Data Tables (.grid, .schedule, .stats)
 *   4. Team Cards (.team)
 *   5. Navigation
 *   6. Forms
 *   7. Ads/Footer handling
 *   8. Typography
 *   9. Utilities
 */

/* ============================================
   1. BASE / RESET
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

/* ============================================
   2. LAYOUT CONTAINERS
   ============================================ */

/* Main page wrapper */
#wrapper,
.page-wrapper {
  width: 100% !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 0 15px !important;
  box-sizing: border-box !important;
}

/* Container - holds sidebar + content side by side on desktop */
#container {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: row !important;
  gap: 20px;
}

/* Sidebar - left column on desktop */
#side-a,
.leftnav {
  width: 200px !important;
  min-width: 200px !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

/* Content - right column on desktop, takes remaining space */
#content,
#content_wide,
#content_nosky,
.main-content {
  flex: 1 !important;
  min-width: 0 !important; /* Allow flex item to shrink below content size */
  box-sizing: border-box !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* Inner content wrapper */
#startcontent {
  width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* Right sidebar if present */
#side-b,
.rightnav,
.sidebar {
  box-sizing: border-box;
}

/* ============================================
   3. DATA TABLES - The Main Component
   ============================================ */

/**
 * Responsive Data Table
 * 
 * Classes: .grid, .schedule, .stats, .rankings, .data-table
 * 
 * Behavior:
 *   - Desktop: Full table, cells expand to fill width
 *   - Tablet: Full width, slightly smaller text
 *   - Mobile: Horizontal scroll with visible scroll hint
 */

/* Base table styles - DESKTOP AND ALL VIEWPORTS */
table.grid,
table.schedule,
table.stats,
table.rankings,
table.data-table,
.responsive-table,
table[cellpadding],
table[align="center"] {
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: collapse;
  table-layout: auto;
  background: #fff;
  margin: 0 auto !important;
}

/* Table headers */
table.grid th,
table.schedule th,
table.stats th,
table.rankings th,
.responsive-table th {
  background: #454545;
  color: #fff;
  font-weight: bold;
  padding: 8px 10px;
  text-align: center;
  white-space: nowrap;
  border: 1px solid #e5e5e5;
}

/* Table cells */
table.grid td,
table.schedule td,
table.stats td,
table.rankings td,
.responsive-table td {
  padding: 10px 12px; /* Increased padding for touch targets */
  text-align: center;
  border: 1px solid #e5e5e5;
  vertical-align: middle;
  font-size: 14px !important; /* Minimum legible size */
}

/* Desktop override for larger screens */
@media (min-width: 1024px) {
  table.grid td,
  table.schedule td,
  table.stats td,
  table.rankings td,
  .responsive-table td {
    font-size: 16px !important; /* Larger for desktop */
    padding: 12px 15px;
  }
}

/* First column (usually team/player name) - left align */
table.grid td:first-child,
table.grid th:first-child,
table.schedule td:first-child,
table.stats td:first-child,
.responsive-table td:first-child,
.responsive-table th:first-child {
  text-align: left;
  font-weight: 500;
}

/* Alternating row colors */
table.grid tr:nth-child(even),
table.schedule tr:nth-child(even),
.responsive-table tr:nth-child(even) {
  background: #f9f9f9;
}

/* Hover effect */
table.grid tr:hover,
table.schedule tr:hover,
.responsive-table tr:hover {
  background: #f0f7ff;
}

/* Links in tables */
table.grid a,
table.schedule a,
table.stats a,
.responsive-table a {
  color: #0066cc;
  text-decoration: none;
}

table.grid a:hover,
.responsive-table a:hover {
  text-decoration: underline;
}

/* Colored cells (best/worst indicators) */
.best,
.good,
.positive {
  background: #caf99b !important;
}

.worst,
.bad,
.negative {
  background: #ff8285 !important;
}

.neutral,
.average {
  background: #ffffcc !important;
}

/* ============================================
   4. TEAM CARDS
   ============================================ */

/**
 * Team Card Grid
 * 
 * Classes: .team, .team-card, .player-card
 * 
 * Behavior:
 *   - Desktop: 4-5 columns
 *   - Tablet: 3 columns
 *   - Mobile: 1-2 columns
 */

.teams-container,
.cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: flex-start;
}

div.team,
.team-card,
.player-card {
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px;
  text-align: center;
}

/* ============================================
   5. NAVIGATION
   ============================================ */

/**
 * Site Navigation
 * Hidden on mobile, replaced with hamburger menu
 */

.site-menu-parent,
.main-nav,
#main-navigation {
  /* Will be hidden on mobile via media query */
}

/* ============================================
   6. FORMS
   ============================================ */

/**
 * Responsive Forms
 * 
 * Form elements stack vertically on mobile
 */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
select,
textarea {
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  font-size: 16px; /* Prevents zoom on iOS */
  border: 1px solid #ccc;
  border-radius: 4px;
}

button,
input[type="submit"],
input[type="button"],
.btn {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 4px;
}

/* ============================================
   7. ADS & FOOTER
   ============================================ */

/**
 * Ad containers - hidden on small screens
 * Footer - stacked on mobile
 */

.FooterBox {
  box-sizing: border-box;
}

/* ============================================
   8. TYPOGRAPHY
   ============================================ */

/* Using explicit pixel values because legacy html font-size is 10px (not 16px) */
h1.newpagetitle,
.page-title {
  font-size: 28px !important;
  margin: 15px 0 25px 0 !important; /* Added bottom margin */
  line-height: 1.3;
  font-weight: 800;
}

@media (min-width: 1024px) {
  h1.newpagetitle,
  .page-title {
    font-size: 32px !important; /* Larger for desktop */
  }
}

h2,
.section-title {
  font-size: 22px !important;
  margin: 12px 0;
}

/* ============================================
   9. UTILITIES
   ============================================ */

/* Hide on specific breakpoints */
.hide-mobile {
}
.hide-tablet {
}
.hide-desktop {
}
.show-mobile {
  display: none;
}
.show-tablet {
  display: none;
}

.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

/* Scroll hint for tables */
.scroll-hint {
  position: relative;
}

.scroll-hint::after {
  content: "→ Scroll";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.scroll-hint:hover::after {
  opacity: 1;
}

/* ============================================
   MEDIA QUERIES - TABLET (768px and below)
   ============================================ */
@media (max-width: 768px) {
  /* --- FIX FOR ACCELERATE TAG WRAPPER --- */
  /* ColdFusion accelerate tag becomes root element in browser, must expand */
  accelerate {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
  }

  /* --- LAYOUT --- */
  #side-a,
  #side-b,
  .leftnav,
  .rightnav,
  .sidebar,
  .site-menu-parent,
  .sub2links,
  .skyscraper,
  .sky {
    display: none !important;
  }

  /* --- NAVIGATION - Hide LEGACY nav, but keep FftNewMenu --- */
  .main-nav,
  #main-navigation,
  .site-menu-parent {
    display: none !important;
  }

  /* Ensure FftNewMenu is visible */
  .new-menu,
  #menu {
    display: block !important;
    width: 100% !important;
  }

  body,
  html,
  #wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    /* FIXED: Keep overflow-x hidden on body to prevent page-level horizontal scroll */
    overflow-x: hidden !important;
    overflow-y: visible !important;
    height: auto !important;
    min-height: 100vh !important;
  }

  /* Switch container to single column on tablet/mobile */
  #container {
    flex-direction: column !important;
    padding: 0 !important;
    gap: 0 !important;
  }

  #content,
  #content_wide,
  #content_nosky,
  .main-content {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 10px !important;
    /* FIX C5/C8: overflow-x:clip clips the container without creating a new scroll context,
       so inner .sos-table-wrap / .schedule-grid-wrap / .sos-details-wrap scrollbars stay visible
       and touch-scroll works. 'hidden' was killing the inner scroll containers. */
    overflow-x: clip !important;
  }

  /* Inner content wrapper allows horizontal scroll for tables */
  #startcontent {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important; /* Allow horizontal scrolling */
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important; /* Smooth scrolling on iOS */
    /* Ensure scrollbar visibility */
    -ms-overflow-style: scrollbar !important;
    scrollbar-width: auto !important;
  }

  /* Visible scroll indicator for tablet */
  #startcontent::-webkit-scrollbar {
    height: 10px !important;
  }

  /* --- HEADER ELEMENTS --- */
  /* Header wrapper needs to allow content to flow - don't clip */
  /* CRITICAL FIX: Reset zoom and min-width that blow up header on mobile */
  #header-stronga-wrapper,
  #header-stronga,
  #header,
  header.stronga,
  header {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important; /* CRITICAL: Don't clip content */
    height: auto !important; /* Allow full height */
    display: block !important;
    zoom: 1 !important; /* CRITICAL: Reset zoom that causes header blowup */
    transform: none !important; /* Reset any transforms */
  }

  /* Specific fix for header-stronga inner element */
  #header-stronga {
    zoom: 1 !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    position: relative !important;
  }

  /* Outer container (around accelerate tag) - must also expand */
  accelerate + *,
  accelerate ~ *,
  body > #container,
  html > body > div#container {
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
  }

  .headlinksBar,
  .headlinks,
  .logoBar,
  .bannerBox {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    display: block !important;
  }

  /* Collapse the logoBar on mobile — ad-adapex injects inline height:250px
     for a video ad that often renders empty (1px/opacity:0), creating a
     giant white gap. height:auto lets it collapse when the ad is empty. */
  .logoBar {
    height: auto !important;
    max-height: 120px !important;
    margin: 5px 0 !important;
  }

  .logoBar img,
  .bannerBox img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* --- DATA TABLES --- */
  table.grid,
  table.schedule,
  table.stats,
  table.rankings,
  .responsive-table {
    width: 100% !important;
    display: table !important;
    /* table-layout: fixed !important; REMOVED to allow expansion */
  }

  table.grid th,
  table.grid td,
  .responsive-table th,
  .responsive-table td {
    padding: 5px 4px !important;
    font-size: 13px !important; /* Improved readability */
  }

  /* NFL Schedule table - 19 columns scroll inside .schedule-grid-wrap; 12px is the text floor */
  table.schedule th,
  table.schedule td {
    padding: 4px 4px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }

  table.schedule span {
    font-size: 12px !important;
  }

  table.schedule a {
    font-size: 12px !important;
  }

  /* --- TEAM CARDS --- */
  div.team,
  .team-card,
  .player-card {
    width: calc(50% - 10px) !important;
    margin: 5px !important;
  }

  /* --- TYPOGRAPHY --- */
  h1.newpagetitle,
  .page-title {
    font-size: 22px !important;
    padding: 0 10px !important;
  }

  h2,
  .section-title {
    font-size: 18px !important;
  }

  /* --- ADS/FOOTER --- */
  .ad,
  .advertisement,
  [id*="usmg_ad"],
  [id*="google_ads"],
  #footer,
  #footer-wrapper,
  .FooterBox,
  .headlinks {
    display: none !important;
  }

  /* --- EMPTY FILTER FIX (Rankings Page) --- */
  /* Hide empty qb-touchdowns containers and empty filter headers */
  .scoring-method + .qb-touchdowns,
  .qb-touchdowns:empty,
  header#qb-filter:empty,
  #qb-filter:empty {
    display: none !important;
  }

  /* Hide any qb-touchdowns that only contains an empty header */
  .qb-touchdowns:has(header:only-child:empty) {
    display: none !important;
  }

  /* Hide empty bordered headers in filter sections */
  #qb-filter,
  header#qb-filter {
    border: none !important;
    background: transparent !important;
    min-height: 0 !important;
    height: auto !important;
  }

  /* Hide ad wrapper divs between filters and Last Updated */
  .topic-finder.compact > header + div:has([id*="usmg_ad"]) {
    display: none !important;
  }

  /* Reduce margin-top: 60px on Last Updated div */
  div[style*="margin-top: 60px"],
  div[style*="margin-top:60px"],
  header + div > div[style*="margin-top: 60px"],
  header + div > div[style*="margin-top:60px"] {
    margin-top: 10px !important;
  }

  /* --- UTILITIES --- */
  .hide-tablet {
    display: none !important;
  }
  .show-tablet {
    display: block !important;
  }
}

/* ============================================
   HEADER FIX - 601px to 800px range
   Overrides zoom: 150% from maincache.css
   ============================================ */
@media only screen and (min-width: 601px) and (max-width: 800px) {
  #header-stronga-wrapper,
  #header-stronga,
  #header,
  header.stronga,
  header {
    zoom: 1 !important; /* CRITICAL: Reset zoom that causes header blowup */
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    transform: none !important;
  }

  #toggle-menu {
    font-size: 18px !important; /* Reset oversized font */
    width: 100% !important;
  }
}

/* ============================================
   ZOOM RESET - Fix ALL zoom from maincache.css
   These selectors blow up content on mobile/tablet
   ============================================ */
@media (max-width: 800px) {
  /* Reset ALL zoom on topic-finder components */
  .topic-finder.compact h1,
  .fantasy-finder .topic-finder.compact h1,
  .player-finder-table .topic-finder.compact h1 {
    zoom: 90% !important;
    font-size: 22px !important;
  }

  .topic-finder.compact header,
  .fantasy-finder .topic-finder.compact header,
  .player-finder-table .topic-finder.compact header {
    zoom: 90% !important;
  }

  .topic-finder.compact #filterbar .scoringmethod-row,
  .topic-finder.compact header > .toggle-filters,
  .topic-finder.compact header > .toggle-filters.closed,
  .fantasy-finder .topic-finder.compact header > .toggle-filters.closed,
  .player-finder-table .topic-finder.compact header > .toggle-filters.closed {
    zoom: 90% !important;
  }

  .topic-finder.compact #filterbar #filters .filter,
  .topic-finder.compact #filterbar #filters .filter.fantasy-week,
  .fantasy-finder .topic-finder.compact #filterbar #filters .filter,
  .player-finder-table .topic-finder.compact #filterbar #filters .filter,
  .ppr-filter {
    zoom: 90% !important;
  }

  /* Universal zoom reset for any element */
  .toggle-filters,
  #filter-btn,
  .filter {
    zoom: 70% !important;
  }

  /* Reset header-stronga zoom at this breakpoint too */
  #header-stronga {
    zoom: 1 !important;
  }

  .topic-finder.compact img#hamburger {
    height: 15px !important;
    width: 15px !important;
  }

  .fantasy-finder .topic-finder.compact #filterbar #filters .filter h6 {
    padding-left: 35px;
  }

  .fantasy-finder
    .topic-finder.compact
    #filterbar
    #filters
    .filter
    h6
    + .icon:before,
  .fantasy-finder
    .topic-finder.compact
    #filterbar
    #filters
    .filter
    h6
    + label
    + .icon:before {
    position: absolute;
    top: 29px;
    padding-right: 10px !important;
  }

  /* ================================================
       ADDITIONAL ZOOM FIXES - "Members Get Downloadable" 
       and "Last Updated" sections + filter buttons
       ================================================ */

  /* Fix the "Members Get Downloadable" and "Last Updated" divs 
       These have zoom: 4 and zoom: 5 in maincache.css! */
  .topic-finder.compact > div,
  .topic-finder.compact > div > div,
  .topic-finder.compact.visible-responsive > div,
  .topic-finder.compact.visible-responsive > div > div,
  .fantasy-finder .topic-finder.compact > div,
  .fantasy-finder .topic-finder.compact > div > div,
  .fantasy-finder .topic-finder.compact.visible-responsive > div,
  .fantasy-finder .topic-finder.compact.visible-responsive > div > div {
    zoom: 90% !important;
  }

  /* Fix position filter buttons (Top 200, QB, RB, etc.) */
  .filter.button-list .buttons,
  .filter.button-list.positions-filter .buttons,
  .filter.positions-filter .buttons,
  #top200-dropdown .buttons,
  .positions-filter.drop-down .buttons {
    zoom: 90% !important;
  }

  /* Fix week filter dropdown */
  .filter.fantasy-week select,
  .filter.fantasy-week .rf-combobox-input,
  #week-dropdown select,
  .week-filter select {
    zoom: 90% !important;
  }

  /* Fix QB touchdowns filter */
  .filter.fantasy-qb-td select,
  #qb-dropdown select,
  .qbTouchdowns-filter select,
  .td-count select {
    zoom: 90% !important;
  }

  /* Nuclear option: Reset zoom on ALL direct children of topic-finder */
  .topic-finder * {
    zoom: 1 !important;
  }

  /* ================================================
       RANKINGS PAGE TABLE SCROLL FIX
       The rankings page uses a different structure:
       .fantasy-finder > .topic-finder > #results > table
       We need to allow horizontal scroll on the table container
       ================================================ */

  /* Allow scroll on the results container */
  #results,
  #results.table-responsive,
  .table-responsive {
    overflow-x: hidden !important; /* Prevent page-level horizontal scroll */
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    max-width: 100% !important;
    width: 100% !important; /* Force to viewport width */
    min-width: 0 !important; /* Override Foundation grid minWidth: 100% */
  }

  /* CRITICAL: Override Foundation grid width calculation on mobile #results */
  /* The .columns.medium-8.large-8 classes calculate percentage-based widths that overflow */
  /* Use maximum specificity with attribute selectors to beat Foundation */
  .topic-finder.compact #results,
  .topic-finder.compact #results.columns,
  .topic-finder.compact #results.medium-8,
  .topic-finder.compact #results.large-8,
  .fantasy-finder .topic-finder.compact #results,
  .fantasy-finder #results.medium-8,
  .fantasy-finder #results.columns.medium-8.large-8,
  div[id="results"].columns,
  div[id="results"].medium-8,
  div[id="results"].large-8,
  div.topic-finder.compact div[id="results"],
  .fantasy-finder #results.medium-8,
  .fantasy-finder .topic-finder.compact #results.medium-8 {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* FLEX FIX: Keep flex layout but constrain width */
  /* Use maximum specificity to beat rankings.css */
  .fantasy-finder #results,
  .fantasy-finder #results.medium-8,
  .fantasy-finder #results.columns.medium-8.large-8,
  .fantasy-finder .topic-finder.compact #results,
  #results.players {
    display: flex !important; /* Keep flex for side-by-side layout */
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    float: none !important; /* Override Foundation .columns float:left */
    box-sizing: border-box !important;
    position: relative !important;
    overflow: visible !important; /* Allow content to be visible */
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Names column - fixed width, no shrink */
  .names-row {
    flex: 0 0 120px !important; /* Fixed 120px for player names */
    width: 120px !important;
    max-width: 120px !important;
    min-width: 120px !important;
    overflow: hidden !important;
  }

  /* Names table should fit within its container */
  .names-row table,
  .names-row .table {
    width: 100% !important;
    max-width: 120px !important;
    table-layout: fixed !important;
  }

  /* Fix Player header - smaller padding, truncate if needed */
  .names-row th.nameHeader,
  .names-row table th.nameHeader,
  .names-row th,
  .names-row table th {
    padding: 5px 3px !important;
    text-align: left !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  /* Player rank column - minimal width */
  .names-row th.playerRank,
  .names-row td.playerRank {
    width: 25px !important;
    min-width: 25px !important;
    max-width: 25px !important;
    padding: 5px 2px !important;
  }

  /* Player name cells */
  .names-row td.name {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 90px !important;
  }

  /* Stats column - takes remaining space, scrolls internally */
  .stats-col {
    flex: 1 1 auto !important; /* Grow to fill remaining space */
    min-width: 0 !important; /* Allow shrinking below content size */
    width: auto !important;
    margin-left: 0 !important; /* Remove float-based margin */
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Allow names to wrap */
  .names-row td.name {
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Keep .players (legacy) styling */
  .players {
    width: auto !important;
    max-width: 140px !important;
    overflow-x: hidden !important;
  }
  /* FIXED: Parent containers should clip overflow to prevent page-level scroll */
  /* The scrolling happens INSIDE .stats-col and .players, not at page level */
  .fantasy-finder,
  .topic-finder,
  #main,
  #content-area {
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }

  /* ONLY the stats-col table should expand for scrolling - NOT the player names table */
  /* The .players table should fit naturally within its container */
  .stats-col table,
  .stats-col .table,
  div.stats-col table {
    min-width: 500px !important;
    width: auto !important;
    max-width: none !important;
  }

  /* The player names table (.players) should NOT have min-width - it should fit the left column */
  .players table {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    table-layout: auto !important;
  }

  /* Ensure the # column and player name columns are reasonably sized */
  .players table th:first-child,
  .players table td:first-child {
    width: 30px !important;
    min-width: 30px !important;
    max-width: 40px !important;
  }

  /* ================================================
       MOBILE CLEANUP FIXES - December 2025
       Reduces whitespace, compacts filters, improves layout
       ================================================ */

  /* TASK 1: Reduce .fantasy-finder margin-top from 50px to 10px */
  .fantasy-finder {
    margin-top: 10px !important;
    margin-bottom: 0 !important;
  }

  /* CRITICAL: Reset zoom on all filter elements to prevent layout collapse */
  .topic-finder.compact.visible-responsive {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    zoom: 1 !important;
  }

  .topic-finder.compact.visible-responsive *,
  .topic-finder.compact.visible-responsive > div,
  .topic-finder.compact.visible-responsive > div > div,
  .fantasy-finder .topic-finder.compact.visible-responsive > div,
  .fantasy-finder .topic-finder.compact.visible-responsive > div > div {
    zoom: 1 !important;
  }

  /* TASK 2: Collapse .topic-finder.compact header height */
  .topic-finder.compact header {
    height: auto !important;
    max-height: none !important;
    padding: 5px 0 !important;
  }

  /* TASK 3: Tighter padding on #content for mobile */
  #content,
  #content_wide,
  #content_nosky {
    padding: 5px !important;
  }

  /* TASK 4-9: Compact filters for mobile */
  /* Reduce individual filter section heights */
  /* Use maximum specificity to override maincache.css */
  .filter,
  .filter.button-list,
  .filter.fantasy-week,
  .filter.fantasy-ppr,
  .filter.fantasy-qb-td,
  .filter.fantasy-scoring-method,
  .filter.selected,
  .positions .filter,
  .week .filter,
  .ppr .filter,
  .topic-finder .filter,
  .topic-finder.compact .filter,
  .topic-finder.compact.visible-responsive .filter,
  .fantasy-finder .topic-finder .filter,
  .fantasy-finder .topic-finder.compact .filter {
    /* display: block !important; REMOVED to allow JS toggling */
    height: auto !important;
    max-height: none !important; /* Allow expansion */
    padding: 0 !important; /* Remove padding from container */
    margin: 0 !important;
    background: transparent !important; /* Remove background from container */
    border: none !important; /* Remove border from container */
    border-radius: 0 !important;
    box-sizing: border-box !important;
    box-shadow: none !important; /* Remove any shadows */
  }

  /* Style the Header specifically to look like a button */
  .filter header,
  .filter h6,
  .positions header,
  .week header,
  .ppr header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 14px !important;
    padding: 12px 15px !important; /* Comfortable touch target */
    margin: 0 0 5px 0 !important;
    height: auto !important;
    line-height: 1.4 !important;
    background: #f8f9fa !important; /* Light gray background */
    border: 1px solid #e9ecef !important; /* Subtle border */
    border-radius: 6px !important;
    color: #333 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
  }

  /* Fix the arrow icon alignment */
  .filter header .icon,
  .filter header span.icon {
    float: none !important;
    margin: 0 !important;
    position: static !important;
  }

  /* Style the Dropdown Content specifically */
  .filter.button-list,
  .filter.fantasy-week,
  .filter.fantasy-ppr,
  .filter.fantasy-qb-td,
  .filter.fantasy-scoring-method,
  .filter.expanded,
  .filter.drop-down {
    background: #fff !important;
    border: 1px solid #e9ecef !important;
    border-radius: 6px !important;
    padding: 15px !important;
    margin-top: 5px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
  }

  /* Remove the blue bar from .selected */
  .filter.selected {
    border-left: none !important;
    padding-left: 0 !important;
  }

  /* CRITICAL FIX: Remove the 100px height pseudo-element from maincache.css */
  .fantasy-finder
    .topic-finder.compact
    #filterbar
    #filters
    .filter.selected:before,
  .player-finder-table
    .topic-finder.compact
    #filterbar
    #filters
    .filter.selected:before,
  .topic-finder.compact.visible-responsive .filter.selected:before,
  .filter.selected:before {
    content: none !important;
    display: none !important;
    height: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Make .ppr, .positions, .week sections compact but allow expansion */
  .ppr,
  .positions,
  .week,
  .qb-touchdowns,
  .scoring-method {
    display: block !important;
    float: none !important;
    clear: both !important;
    height: auto !important;
    max-height: none !important; /* Allow dropdowns to expand */
    padding: 0 !important;
    margin: 0 0 5px 0 !important; /* Reduced from 12px */
    flex: 1 1 100% !important; /* Force full width */
    width: 100% !important;
    min-width: 0 !important;
  }

  /* Hide <br> tags inside filter sections - they add whitespace */
  .ppr br,
  .positions br,
  .week br,
  .qb-touchdowns br,
  .scoring-method br,
  #filterbar br,
  #filters br,
  .filterwrapper br {
    display: none !important;
  }

  /* Ensure the filter inner div fills the container */
  .ppr .filter,
  .positions .filter,
  .week .filter {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Make filter buttons/inputs smaller on mobile */
  .filter select,
  .filter input,
  .filter button,
  #filterbar select,
  #filterbar input,
  #filters select,
  #filters input {
    font-size: 16px !important; /* Prevents iOS zoom */
    padding: 12px !important;
    height: auto !important; /* Allow auto height */
    min-height: 44px !important; /* Standard touch target */
    max-height: none !important;
    width: 100% !important; /* Full width inputs */
    box-sizing: border-box !important;
    zoom: 1 !important; /* Reset zoom to prevent layout issues */
  }

  /* Ensure forms inside filters are full width */
  .filter form,
  #week-dropdown form,
  .week-filter form,
  .filter div {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
  }

  /* Force select visibility */
  .filter select {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    appearance: menulist !important;
    -webkit-appearance: menulist !important;
    background-color: #fff !important;
    color: #000 !important;
    border: 1px solid #ccc !important;
    z-index: 100 !important;
    position: relative !important;
  }

  /* Filter button styling */
  .filter .buttons,
  .button-list .buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: flex-start !important;
  }

  .filter .buttons button,
  .button-list .buttons button {
    font-size: 14px !important;
    padding: 10px 14px !important;
    min-width: 44px !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
  }

  /* Stack filter sections efficiently */
  .filterwrapper,
  #filterbar,
  #filters,
  #filters .basic {
    display: block !important; /* Use block instead of flex to avoid grid conflicts */
    padding: 0 !important;
    width: 100% !important;
  }

  /* Filter headers compact - REMOVED OLD RULE TO AVOID CONFLICT */
  /* See new rule above */

  /* TASK 10 & 11: Reduce h1 title padding and height */
  /* Override maincache.css .fantasy-finder .topic-finder header h1 with higher specificity */
  .topic-finder.compact h1,
  .topic-finder h1,
  .fantasy-finder h1,
  .fantasy-finder .topic-finder header h1,
  .fantasy-finder .topic-finder.compact header h1,
  .player-finder-table .topic-finder header h1,
  .player-finder-table .topic-finder.compact header h1 {
    padding: 5px 0 !important;
    margin: 10px 0 5px 0 !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    height: auto !important;
    text-align: center !important;
    width: 100% !important;
  }

  /* Hide the second H1 (Customize These Rankings) to save space */
  .topic-finder.compact.visible-responsive a h1,
  .topic-finder.compact.visible-responsive a[href*="CustomScoring"] {
    display: none !important;
  }

  /* TASK 12: Hide "Print My One Pager" on mobile */
  .printmyonepagericon,
  .printmyonepager {
    display: none !important;
  }

  /* TASK 13: Compact table header row */
  .players table th,
  .stats-col table th,
  .topic-finder table th {
    padding: 4px 3px !important;
    font-size: 11px !important;
    height: auto !important;
  }

  /* TASK 14: Touch targets for table cells (min 44px) */
  .players table td,
  .stats-col table td,
  .topic-finder table td {
    padding: 8px 4px !important;
    font-size: 12px !important;
    min-height: 44px !important;
    vertical-align: middle !important;
  }

  /* TASK 15: Table row alternating colors */
  .players table tr:nth-child(even),
  .stats-col table tr:nth-child(even),
  .topic-finder table tr:nth-child(even) {
    background-color: #f8f9fa !important;
  }

  .players table tr:nth-child(odd),
  .stats-col table tr:nth-child(odd),
  .topic-finder table tr:nth-child(odd) {
    background-color: #ffffff !important;
  }

  /* Toggle filters button styling */
  .toggle-filters,
  button.toggle-filters {
    display: block !important;
    width: 100% !important;
    padding: 8px 10px !important;
    font-size: 14px !important;
    background: #f0f0f0 !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    margin: 5px 0 !important;
  }

  /* Scoring method row compact */
  .scoringmethod-row {
    padding: 3px !important;
    margin: 2px 0 !important;
    font-size: 11px !important;
  }
}

/* ============================================
   RANKINGS UNIFIED TABLE (UI sweep C1, control #2)
   One table at every width, built on css/fft-ui.css:
   .fft-table-scroll > table.fft-table.fft-table--sticky-first.fft-card-rows.
   One compact table row per player, with horizontal scrolling on phones.
   Rank, team logo, player/status, opponent, points, matchup, then supporting stats.
   The legacy split names/stats tables stay in the source for the old
   scripts but are no longer displayed.
   Breakpoints: 560 / 768 / 1024 only.
   ============================================ */
.rankings-page-content {
  --rankings-rank-col: 48px;
}

/* The legacy split mobile tables and their synced top scroller are retired. */
.rankings-page-content .fantasy-finder #results.rankings-results--mobile,
.rankings-page-content .fantasy-finder .rankings-results-top-scroll {
  display: none !important;
}

/* The unified table lives in .topic-finder.row.visible, which header.css
   hides at <=800px; keep it visible at every width on this page. */
.rankings-page-content .fantasy-finder > .topic-finder.row.visible {
  display: block !important;
}

.rankings-page-content .fantasy-finder #results.rankings-results--unified {
  display: block !important;
  float: none !important;
  overflow: hidden !important;
  min-width: 0 !important;
}

/* Row tint/hover come from fft-ui's --fft-row-bg layer instead of the opaque
   rankings-controls.css cell fills, so the scroll-edge cues stay visible;
   docked cells composite the same tint over an opaque surface. */
.rankings-page-content .fantasy-finder #results.rankings-results--unified table.rankings-table tbody td {
  background: linear-gradient(var(--fft-row-bg, transparent), var(--fft-row-bg, transparent)) !important;
}

.rankings-page-content .fantasy-finder #results.rankings-results--unified table.rankings-table tbody td.playerRank,
.rankings-page-content .fantasy-finder #results.rankings-results--unified table.rankings-table tbody td.name {
  background: linear-gradient(var(--fft-row-bg, transparent), var(--fft-row-bg, transparent)) var(--fft-surface, #fff) !important;
}

.rankings-page-content .fantasy-finder #results.rankings-results--unified .rankings-table-scroll {
  margin: 0 !important;
  border: 0 !important;
  border-radius: inherit;
  box-shadow: none !important;
}

.rankings-page-content .fantasy-finder #results.rankings-results--unified table.rankings-table {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0;
  table-layout: auto !important;
}

.rankings-page-content .fantasy-finder #results.rankings-results--unified table.rankings-table thead th {
  font-size: 12px !important;
}

/* Rank column: fixed width so the player column can dock beside it. */
.rankings-page-content .fantasy-finder #results.rankings-results--unified table.rankings-table th.playerRank,
.rankings-page-content .fantasy-finder #results.rankings-results--unified table.rankings-table td.playerRank {
  width: var(--rankings-rank-col) !important;
  min-width: var(--rankings-rank-col) !important;
  max-width: var(--rankings-rank-col) !important;
  padding-right: 4px !important;
  padding-left: 4px !important;
  text-align: center !important;
  font-variant-numeric: tabular-nums;
}

.rankings-page-content .fantasy-finder #results.rankings-results--unified table.rankings-table td.playerRank {
  color: #14375e;
  font-weight: 800;
}

/* Player identity stays in normal table flow beside the team logo. */
.rankings-page-content .fantasy-finder #results.rankings-results--unified table.rankings-table th.nameHeader,
.rankings-page-content .fantasy-finder #results.rankings-results--unified table.rankings-table td.name {
  position: static;
  min-width: 200px;
  text-align: left !important;
}

.rankings-page-content .fantasy-finder #results.rankings-results--unified table.rankings-table th.nameHeader {
  top: var(--fft-sticky-top, 0px);
  z-index: 4;
}

.rankings-page-content .fantasy-finder #results.rankings-results--unified table.rankings-table td.name {
  z-index: 1;
  box-shadow: 4px 0 6px -4px rgba(11, 28, 45, .25);
}

.rankings-page-content .fantasy-finder #results.rankings-results--unified table.rankings-table td.playerRank {
  box-shadow: none;
}

.rankings-page-content .fantasy-finder #results.rankings-results--unified .rankings-player-cell {
  display: block;
  min-width: 0;
}

.rankings-page-content .fantasy-finder #results.rankings-results--unified .rankings-player-cell__text {
  display: block;
  white-space: nowrap;
  min-width: 0;
}

.rankings-page-content .fantasy-finder #results.rankings-results--unified .rankings-player-cell__text > a {
  width: auto;
  font-weight: 800;
}

.rankings-page-content .fantasy-finder #results.rankings-results--unified .rankings-player-position {
  margin-left: 5px;
  color: #52677c;
  font-size: 10px;
}

.rankings-page-content .fantasy-finder #results.rankings-results--unified td.aav a {
  color: #0768b0 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  font-weight: 700;
}

/* Injury / practice status chips (.fft-chip) with the practice detail kept as text. */
.rankings-page-content .fantasy-finder #results.rankings-results--unified .rankings-availability {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4px 6px;
  margin-top: 3px;
}

.rankings-page-content .fantasy-finder #results.rankings-results--unified .rankings-practice {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.rankings-page-content .fantasy-finder #results.rankings-results--unified .rankings-practice small {
  color: #52677c;
  font-size: 12px;
  line-height: 1.25;
}

/* Desktop >=1025: the full table fits (about 850px of columns in a 1200px
   frame), so the wrapper stops scrolling and the header row sticks to the
   page. overflow: clip (not hidden) keeps the rounded frame without creating
   a scroll container that would defeat position: sticky. */
@media (min-width: 1025px) {
  .rankings-page-content .fantasy-finder #results.rankings-results--unified {
    overflow: visible !important;
    overflow: clip !important;
  }

  .rankings-page-content .fantasy-finder #results.rankings-results--unified .rankings-table-scroll {
    overflow: visible;
    background: none;
  }
}

/* Tablet 561-1024: keep every column, dock rank + player, scroll the rest
   inside a capped frame so the header row also sticks. */
@media (min-width: 561px) and (max-width: 1024px) {
  .rankings-page-content .fantasy-finder #results.rankings-results--unified .rankings-table-scroll {
    max-height: 70vh;
    overflow-y: auto;
  }

  .rankings-page-content .fantasy-finder #results.rankings-results--unified table.rankings-table {
    min-width: 760px;
  }

  .rankings-page-content .fantasy-finder #results.rankings-results--unified table.rankings-table tbody td {
    padding-right: 8px !important;
    padding-left: 8px !important;
    font-size: 13px !important;
  }

  .rankings-page-content .fantasy-finder #results.rankings-results--unified table.rankings-table th.injury,
  .rankings-page-content .fantasy-finder #results.rankings-results--unified table.rankings-table td.injury {
    width: 136px !important;
    min-width: 136px !important;
    max-width: 136px !important;
  }
}

@media (max-width: 768px) {
  .rankings-page-content .fantasy-finder #results.rankings-results--unified table.rankings-table tbody td {
    min-height: 44px;
  }
}

/* Mobile/tablet: preserve native table rows and pan the same table sideways. */
@media (max-width: 1024px) {
  .rankings-page-content .fantasy-finder #results.rankings-results--unified .rankings-table-scroll {
    max-width: 100%;
    max-height: none;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .rankings-page-content .fantasy-finder #results.rankings-results--unified table.rankings-table {
    width: max-content !important;
    min-width: 100% !important;
  }
}

@media (max-width: 560px) {
  .rankings-page-content {
    --rankings-rank-col: 32px;
  }

  .rankings-page-content .fantasy-finder #results.rankings-results--unified table.rankings-table th,
  .rankings-page-content .fantasy-finder #results.rankings-results--unified table.rankings-table td {
    box-sizing: border-box;
    padding: 7px 5px !important;
    white-space: nowrap;
    font-size: 13px !important;
  }

  .rankings-page-content .fantasy-finder #results.rankings-results--unified table.rankings-table th.team,
  .rankings-page-content .fantasy-finder #results.rankings-results--unified table.rankings-table td.team {
    width: 34px !important;
    min-width: 34px !important;
    padding-right: 2px !important;
    padding-left: 2px !important;
  }

  .rankings-page-content .fantasy-finder #results.rankings-results--unified table.rankings-table th.nameHeader,
  .rankings-page-content .fantasy-finder #results.rankings-results--unified table.rankings-table td.name {
    width: 132px !important;
    min-width: 132px;
    max-width: 132px !important;
    box-shadow: none;
  }

  .rankings-page-content .fantasy-finder #results.rankings-results--unified table.rankings-table th.pts,
  .rankings-page-content .fantasy-finder #results.rankings-results--unified table.rankings-table td.pts {
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
  }

  .rankings-page-content .fantasy-finder #results.rankings-results--unified .rankings-player-cell__text > a {
    font-weight: 800 !important;
    white-space: nowrap;
  }

  .rankings-page-content .fantasy-finder #results.rankings-results--unified .rankings-player-cell {
    width: 122px;
  }

  .rankings-page-content .fantasy-finder #results.rankings-results--unified .rankings-player-cell__text {
    white-space: normal;
  }

  .rankings-page-content .fantasy-finder #results.rankings-results--unified .rankings-player-cell__text .player-detail-icons {
    width: auto;
  }

  .rankings-page-content .fantasy-finder #results.rankings-results--unified .rankings-availability {
    flex-wrap: wrap;
  }

  .rankings-page-content .fantasy-finder #results.rankings-results--unified .rankings-practice {
    flex-direction: row;
    align-items: center;
  }

  .rankings-page-content .fantasy-finder #results.rankings-results--unified .rankings-availability .fft-chip,
  .rankings-page-content .fantasy-finder #results.rankings-results--unified .rankings-practice small {
    font-size: 10px;
    line-height: 1.2;
  }
}

/* ============================================
   SCROLLBAR VISIBILITY & TOUCH IMPROVEMENTS
   ============================================ */

/* Custom scrollbar for webkit browsers (Chrome, Safari, Edge) */
#startcontent::-webkit-scrollbar,
#results::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar,
.stats-col::-webkit-scrollbar,
.players::-webkit-scrollbar {
  height: 10px !important; /* Thicker scrollbar for visibility */
  background: #f0f0f0;
}

#startcontent::-webkit-scrollbar-track,
#results::-webkit-scrollbar-track,
.table-responsive::-webkit-scrollbar-track,
.stats-col::-webkit-scrollbar-track,
.players::-webkit-scrollbar-track {
  background: #e0e0e0;
  border-radius: 5px;
}

#startcontent::-webkit-scrollbar-thumb,
#results::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb,
.stats-col::-webkit-scrollbar-thumb,
.players::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #666, #888);
  border-radius: 5px;
  border: 1px solid #ddd;
}

#startcontent::-webkit-scrollbar-thumb:hover,
#results::-webkit-scrollbar-thumb:hover,
.table-responsive::-webkit-scrollbar-thumb:hover,
.stats-col::-webkit-scrollbar-thumb:hover,
.players::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #555, #777);
}

/* Firefox scrollbar styling */
#startcontent,
#results,
.table-responsive,
.stats-col,
.players {
  scrollbar-width: auto;
  scrollbar-color: #666 #e0e0e0;
}

/* Scroll shadow indicators - show when content can scroll */
.scroll-container,
#startcontent {
  background: 
        /* Shadow on left */
    linear-gradient(to right, white 30%, rgba(255, 255, 255, 0)),
    linear-gradient(to right, rgba(255, 255, 255, 0), white 70%),
    /* Shadow reveals */
    linear-gradient(to right, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0)),
    linear-gradient(to left, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0));
  background-position:
    left center,
    right center,
    left center,
    right center;
  background-repeat: no-repeat;
  background-size:
    40px 100%,
    40px 100%,
    15px 100%,
    15px 100%;
  background-attachment: local, local, scroll, scroll;
}

/* ============================================
   MEDIA QUERIES - MOBILE (480px and below)
   ============================================ */
@media (max-width: 480px) {
  /* --- SCROLL CONTAINER FOR TABLES --- */
  /* Make #startcontent the scroll container for wide tables */
  #startcontent {
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 10px !important;
    /* Ensure scrollbar is always visible on mobile */
    -ms-overflow-style: scrollbar !important;
  }

  /* More prominent scrollbar on mobile */
  #startcontent::-webkit-scrollbar {
    height: 12px !important; /* Even thicker for touch */
  }

  #startcontent::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #0066cc, #0088ff) !important;
    min-width: 60px; /* Easier to grab */
  }

  /* --- DATA TABLES - Horizontal Scroll --- */
  /* Tables expand to fit content, parent container scrolls */
  table.grid,
  table.schedule,
  table.stats,
  table.rankings,
  .responsive-table,
  table[cellpadding],
  table[align="center"] {
    display: table !important;
    width: auto !important; /* Let table size to content */
    min-width: 600px !important; /* Force horizontal scroll on narrow screens */
    max-width: none !important;
    table-layout: auto !important; /* Allow columns to size naturally */
  }

  /* Inner table structure - Reset to defaults */
  table.grid tbody,
  table.grid thead,
  table.schedule tbody,
  table.schedule thead,
  .responsive-table tbody,
  .responsive-table thead {
    display: table-row-group !important;
    width: auto !important;
    min-width: 0 !important;
  }
  table.grid thead,
  table.schedule thead,
  .responsive-table thead {
    display: table-header-group !important;
  }

  table.grid th,
  table.grid td,
  .responsive-table th,
  .responsive-table td {
    padding: 5px 3px !important;
    font-size: 13px !important; /* Improved readability */
  }

  /* NFL Schedule table - needs extra small text for 19 columns */
  table.schedule th,
  table.schedule td {
    padding: 2px 1px !important;
    font-size: 10px !important; /* Smaller for many columns */
    white-space: nowrap !important;
  }

  table.schedule span {
    font-size: 10px !important;
  }

  table.grid a,
  .responsive-table a {
    font-size: 13px !important;
  }

  table.schedule a {
    font-size: 10px !important;
  }

  /* Fix nowrap cells that cause overflow */
  td[nowrap],
  th[nowrap] {
    white-space: normal !important;
  }

  /* --- HEADER FIX FOR MOBILE --- */
  /* CRITICAL: Reset zoom and min-width on header elements */
  #header-stronga-wrapper,
  #header-stronga,
  #header,
  header.stronga,
  header {
    zoom: 1 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* --- TEAM CARDS - Single Column --- */
  div.team,
  .team-card,
  .player-card {
    width: 100% !important;
    margin: 8px 0 !important;
  }

  /* --- TYPOGRAPHY --- */
  h1.newpagetitle,
  .page-title {
    font-size: 19px !important;
  }

  h2,
  .section-title {
    font-size: 16px !important;
  }

  body {
    font-size: 14px !important;
  }

  /* --- UTILITIES --- */
  .hide-mobile {
    display: none !important;
  }
  .show-mobile {
    display: block !important;
  }
}

/* ============================================
   CATCH-ALL: Pages Without Standard Containers
   Handles pages that don't use #wrapper/#content/#startcontent
   (e.g., all-time-leaderboard.cfm, draftchart.cfm, error pages)
   These pages have tables/content directly in <body>.
   ============================================ */

/* --- Tablet and below (768px) --- */
@media (max-width: 768px) {
  /* Tables outside standard containers: make horizontally scrollable.
       display:block allows overflow-x:auto to create a scroll container. */
  body > table,
  body > center > table,
  body > form > table,
  body > div:not(#wrapper) > table,
  body > div:not(#wrapper) > div > table,
  body > div:not(#wrapper) > center > table {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    max-width: 100vw !important;
  }

  /* Override inline width styles that exceed viewport (e.g., draftchart.cfm) */
  body > div > div[style*="width:"],
  body > div[style*="width:"],
  body > center > div[style*="width:"],
  body > center div[style*="width:"] {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Constrain images in non-standard layout pages (e.g., error page yellow-flag) */
  body > table img,
  body > center > table img,
  body > center img,
  body > div:not(#wrapper) > table img,
  body > div:not(#wrapper) img[width],
  body > div:not(#wrapper) img[style*="width:"] {
    max-width: 100% !important;
    height: auto !important;
  }
}

/* --- Phone screens (480px) --- */
@media (max-width: 480px) {
  /* Tighter scroll rules + smaller font for phone */
  body > table,
  body > center > table,
  body > form > table,
  body > div:not(#wrapper) > table,
  body > div:not(#wrapper) > div > table,
  body > div:not(#wrapper) > center > table {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    max-width: 100vw !important;
    font-size: 12px !important;
  }

  /* Compact table cells on phone */
  body > table td,
  body > center > table td,
  body > div:not(#wrapper) > table td,
  body > div:not(#wrapper) > div > table td {
    padding: 4px 2px !important;
  }

  body > table th,
  body > center > table th,
  body > div:not(#wrapper) > table th,
  body > div:not(#wrapper) > div > table th {
    padding: 3px 2px !important;
    font-size: 11px !important;
  }
}

/* Scrollbar styling for body-level scrollable tables */
body > table::-webkit-scrollbar,
body > center > table::-webkit-scrollbar,
body > div:not(#wrapper) > table::-webkit-scrollbar,
body > div:not(#wrapper) > div > table::-webkit-scrollbar {
  height: 10px !important;
  background: #f0f0f0;
}

body > table::-webkit-scrollbar-thumb,
body > center > table::-webkit-scrollbar-thumb,
body > div:not(#wrapper) > table::-webkit-scrollbar-thumb,
body > div:not(#wrapper) > div > table::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #666, #888);
  border-radius: 5px;
  border: 1px solid #ddd;
}

body > table::-webkit-scrollbar-track,
body > center > table::-webkit-scrollbar-track,
body > div:not(#wrapper) > table::-webkit-scrollbar-track,
body > div:not(#wrapper) > div > table::-webkit-scrollbar-track {
  background: #e0e0e0;
  border-radius: 5px;
}

/* Firefox scrollbar for body-level tables */
body > table,
body > center > table,
body > div:not(#wrapper) > table,
body > div:not(#wrapper) > div > table {
  scrollbar-width: auto;
  scrollbar-color: #666 #e0e0e0;
}

/* ============================================
   MEDIA QUERIES - LARGE DESKTOP (1200px+)
   ============================================ */
@media (min-width: 1200px) {
  /* --- LAYOUT --- */
  #wrapper,
  #container,
  .page-wrapper {
    max-width: 1400px;
  }

  /* --- TEAM CARDS --- */
  div.team,
  .team-card,
  .player-card {
    width: calc(20% - 12px);
  }

  /* --- UTILITIES --- */
  .hide-desktop {
    display: none !important;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  #side-a,
  #side-b,
  .sidebar,
  .site-menu-parent,
  .ad,
  .advertisement,
  #footer,
  .FooterBox,
  nav,
  .navigation {
    display: none !important;
  }

  #content,
  #content_wide,
  .main-content {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  table.grid,
  table.schedule,
  .responsive-table {
    font-size: 10px !important;
  }

  a {
    text-decoration: none;
    color: black;
  }
}

/* ============================================
   FANTASY FOOTBALL DEPTH CHARTS
   ============================================ */

.depth-chart-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  align-items: stretch;
  margin: 18px 0 26px;
}

.depth-chart-grid > div.team {
  float: none !important;
  width: auto !important;
  min-width: 0;
  max-width: none;
  min-height: 0;
  margin: 0 !important;
  padding: 0 0 12px !important;
  overflow: hidden;
  border: 1px solid #d6e0eb !important;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 5px 18px rgba(20, 61, 107, 0.08);
  text-align: left;
}

.depth-chart-grid > div.team > h3 {
  position: relative;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 16px 8px 82px !important;
  margin: 0 0 6px !important;
  border: 0 !important;
  font-size: 19px !important;
  line-height: 1.2;
}

.depth-chart-grid > div.team > h3 img {
  position: absolute;
  left: 14px;
  width: 56px !important;
  height: 56px !important;
  object-fit: contain;
  float: none !important;
  padding-left: 0 !important;
}

.depth-chart-grid > div.team > h3 a {
  overflow-wrap: anywhere;
  font-size: inherit;
  font-weight: 800;
  text-decoration: none;
}

.depth-chart-grid > div.team > ul {
  display: grid;
  gap: 0;
  margin: 0 !important;
  padding: 0 14px !important;
}

.depth-chart-grid > div.team > ul > li {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  min-height: 38px;
  margin: 0 !important;
  padding: 8px 2px !important;
  border-bottom: 1px solid #edf1f5;
  font-size: 16px !important;
  line-height: 1.35;
  text-align: left;
}

.depth-chart-grid > div.team > ul > li:last-child {
  border-bottom: 0;
}

.depth-chart-position {
  color: #526477;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.depth-chart-player {
  min-width: 0;
  color: #172b43;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.depth-chart-player > a {
  color: #086fbd;
  font-size: 16px;
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.depth-chart-player > a:hover,
.depth-chart-player > a:focus {
  color: #064f89;
  text-decoration: underline;
}

.depth-chart-meta {
  color: #68798b;
  font-size: 13px;
  font-weight: 600;
}

.depth-chart-intro {
  max-width: 850px;
  font-size: 16px;
  line-height: 1.55;
}

.depth-chart-options fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid #d6e0eb;
  border-radius: 12px;
  background: #f6f9fc;
}

.depth-chart-options legend {
  padding: 0 7px;
  color: #173a63;
  font-size: 14px;
  font-weight: 800;
}

.depth-chart-options label {
  margin-right: 4px;
  font-size: 15px;
}

.depth-chart-options input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

.depth-chart-options input[type="submit"] {
  min-height: 42px;
  padding: 9px 20px;
  border: 0;
  border-radius: 8px;
  background: #0b7fd3;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 767px) {
  .depth-chart-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 14px;
  }

  .depth-chart-grid > div.team {
    min-height: 0;
  }

  .depth-chart-grid > div.team > h3 {
    min-height: 62px;
    padding-left: 74px !important;
    font-size: 18px !important;
  }

  .depth-chart-grid > div.team > h3 img {
    left: 12px;
    width: 50px !important;
    height: 50px !important;
  }

  .depth-chart-grid > div.team > ul {
    padding: 0 12px !important;
  }

  .depth-chart-grid > div.team > ul > li {
    grid-template-columns: 56px minmax(0, 1fr);
    min-height: 42px;
    padding: 10px 2px !important;
  }

  .depth-chart-options fieldset {
    align-items: center;
  }

  .depth-chart-options input[type="submit"] {
    width: 100%;
  }
}

@media print {
  .depth-chart-grid {
    display: block !important;
  }

  .depth-chart-grid > div.team {
    float: left !important;
    width: 194px !important;
    min-height: 320px;
    margin-right: 5px !important;
    margin-bottom: 0.5em !important;
    padding: 0.25em !important;
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
  }

  .depth-chart-grid > div.team > h3 {
    min-height: 38px;
    padding: 5px 32px !important;
    font-size: 15px !important;
  }

  .depth-chart-grid > div.team > h3 img {
    left: 6px;
    width: auto !important;
    height: 20px !important;
  }

  .depth-chart-grid > div.team > ul {
    display: block;
    padding: 0 0 0 0.25em !important;
  }

  .depth-chart-grid > div.team > ul > li {
    display: block;
    min-height: 0;
    padding: 0 !important;
    border-bottom: 0;
    font-size: 80% !important;
  }

  .depth-chart-position {
    margin-right: 4px;
    font-size: inherit;
  }
}

/* ============================================
   STRENGTH OF SCHEDULE TOOL
   ============================================ */
.sos-toolbar {
  display: grid;
  grid-template-columns: minmax(210px, 2fr) minmax(160px, 1fr) minmax(210px, 2fr) minmax(150px, 1fr);
  gap: 10px;
  align-items: stretch;
  margin: 16px auto 12px;
  max-width: 1040px;
}

.sos-toolbar-title {
  grid-column: 1 / -1;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #4a5568;
}

.sos-control-group {
  border: 1px solid #cfd8e3;
  background: #f8fafc;
  padding: 9px;
  min-width: 0;
}

.sos-control-label {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #1f2937;
}

.sos-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sos-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid #b8c3cf;
  background: #ffffff;
  color: #1f2937 !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
}

.sos-option:hover,
.sos-option:focus {
  border-color: #475569;
  background: #eef2f7;
  color: #111827 !important;
}

.sos-option.is-active {
  border-color: #143d6b;
  background: #143d6b;
  color: #ffffff !important;
}

.sos-control-group-compact .sos-options {
  height: calc(100% - 22px);
}

.sos-control-group-compact .sos-option {
  width: 100%;
  min-height: 62px;
  white-space: normal;
  text-align: center;
}

.sos-context {
  margin: 12px 0 14px;
}

.sos-context p {
  margin-bottom: 8px;
}

body.fft-data-tool .logoBar {
  height: auto !important;
  min-height: 0 !important;
  max-height: 44px !important;
  margin: 4px 0 !important;
  overflow: hidden !important;
}

body.fft-data-tool .bannerBox {
  min-height: 0 !important;
  max-height: 44px !important;
  overflow: hidden !important;
}

body.fft-data-tool .bannerBox:empty {
  display: none !important;
}

#content.no-leftnav,
#content_nosky.no-leftnav,
#content_wide.no-leftnav {
  float: none !important;
  width: 100% !important;
  max-width: 965px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

/* Route opt-in for modern tools that intentionally omit both legacy rails. */
body.fft-full-width-page > #container {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  gap: 0 !important;
}

#wrapper.full-width-tool-wrapper {
  max-width: none !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

#container.full-width-tool-shell {
  width: min(1600px, calc(100% - 32px)) !important;
  max-width: 1600px !important;
  gap: 0 !important;
}

/* Opt-in report shell for data-heavy tools that need the available viewport.
   Keep the standard full-width cap for every existing tool unless the route
   explicitly enables FullBleedTool. */
#container.full-width-tool-shell.full-bleed-tool-shell {
  width: calc(100% - 24px) !important;
  max-width: none !important;
}

#content.no-leftnav.full-width-tool,
#content_nosky.no-leftnav.full-width-tool,
#content_wide.no-leftnav.full-width-tool {
  width: 100% !important;
  max-width: none !important;
}

@media (max-width: 800px) {
  #container.full-width-tool-shell {
    width: 100% !important;
  }

  #container.full-width-tool-shell.full-bleed-tool-shell {
    width: 100% !important;
  }
}

.sos-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #374151;
}

.sos-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sos-legend-swatch {
  display: inline-block;
  width: 16px;
  height: 10px;
  border: 1px solid rgba(0, 0, 0, 0.18);
}

.sos-best-swatch {
  background: #c6f6d5;
}

.sos-worst-swatch {
  background: #fed7d7;
}

.sos-playoff-swatch {
  background: #1a365d;
}

/* SoS heat scale (rank 1 easiest -> 32 hardest, 8 buckets of 4 ranks).
   Shared by the legend and the rankings cells; .best/.worst keep the
   top/bottom-5 emphasis on top of the scale. */
.sos-heat-1 { background-color: #b9f0cb; }
.sos-heat-2 { background-color: #d3f5de; }
.sos-heat-3 { background-color: #e7f9ed; }
.sos-heat-4 { background-color: #f6fbf8; }
.sos-heat-5 { background-color: #fdf6f6; }
.sos-heat-6 { background-color: #fdeaea; }
.sos-heat-7 { background-color: #fddcdc; }
.sos-heat-8 { background-color: #fbcaca; }

.sos-heat-legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sos-heat-legend__label {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  white-space: nowrap;
}

.sos-heat-legend__scale {
  display: inline-flex;
  border: 1px solid rgba(0, 0, 0, 0.18);
}

.sos-heat-legend__scale i {
  display: block;
  width: 14px;
  height: 10px;
}

.sos-details-legend {
  margin: 8px 0 10px;
}

.sos-table-wrap {
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: auto !important;
  scrollbar-color: #667085 #eef2f7;
}

.schedule-grid-wrap,
.sos-details-wrap {
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: auto !important;
  scrollbar-color: #667085 #eef2f7;
  padding-bottom: 8px;
}

.sos-table-wrap::-webkit-scrollbar,
.schedule-grid-wrap::-webkit-scrollbar,
.sos-details-wrap::-webkit-scrollbar {
  height: 10px;
}

.sos-table-wrap::-webkit-scrollbar-track,
.schedule-grid-wrap::-webkit-scrollbar-track,
.sos-details-wrap::-webkit-scrollbar-track {
  background: #eef2f7;
}

.sos-table-wrap::-webkit-scrollbar-thumb,
.schedule-grid-wrap::-webkit-scrollbar-thumb,
.sos-details-wrap::-webkit-scrollbar-thumb {
  background: #667085;
  border-radius: 999px;
}

.sos-table-wrap::after,
.schedule-grid-wrap::after,
.sos-details-wrap::after {
  content: "";
  position: sticky;
  right: 0;
  display: block;
  width: 36px;
  height: 1px;
  margin-top: -1px;
  margin-left: auto;
  pointer-events: none;
  box-shadow: inset -18px 0 16px -16px rgba(20, 61, 107, 0.65);
}

.sos-rankings-grid {
  min-width: 760px;
}

@media (max-width: 800px) {
  .sos-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .sos-control-group-compact .sos-option {
    min-height: 36px;
  }
}

@media (max-width: 520px) {
  .sos-toolbar {
    grid-template-columns: 1fr;
  }

  .sos-option {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* Mobile header: keep login helper copy from overlapping the menu/login bar. */
@media (min-width: 801px) {
  /* The legacy container is narrower than the viewport. Paint the two header
     rows across the page without changing the content or ad layout. */
  body.player.fantasy {
    background-color: #fff !important;
    background-image: linear-gradient(#0b1c2d, #0b1c2d) !important;
    background-repeat: no-repeat !important;
    background-size: 100% 105px !important;
  }

  body.player.fantasy accelerate > #container {
    background-color: transparent !important;
  }

  body.player.fantasy accelerate > #container > #header,
  body.player.fantasy #header-stronga-wrapper {
    width: 100% !important;
    max-width: none !important;
  }

  body.player.fantasy accelerate > #container > #header {
    background-color: transparent !important;
    background-image: linear-gradient(#0b1c2d, #0b1c2d) !important;
    background-repeat: no-repeat !important;
    background-size: 100% 105px !important;
  }

  #header-stronga-wrapper header.stronga,
  #header-stronga-wrapper .black-strip {
    background: #0b1c2d !important;
  }

  #header-stronga-wrapper #header-stronga,
  #header-stronga-wrapper #header-logo {
    background: transparent !important;
  }
}

@media (max-width: 600px) {
  /* Absolute logo/account children need a real first row before the menu. */
  #header-stronga-wrapper #header-stronga {
    min-height: 72px !important;
    background: #0b1c2d !important;
  }

  #header-stronga-wrapper #header-stronga #header-logo {
    top: 6px !important;
    left: 8px !important;
    width: calc(100% - 118px) !important;
    height: 60px !important;
    background: transparent !important;
  }

  #header-stronga-wrapper .black-strip { background: #0b1c2d !important; }

  #header-stronga-wrapper .new-menu,
  #header-stronga-wrapper .new-menu #menu,
  #header-stronga-wrapper .new-menu #toggle-menu {
    background: #0b1c2d !important;
    color: #fff !important;
  }

  #header-stronga-wrapper .new-menu #toggle-menu {
    min-height: 52px !important;
    padding: 12px 18px !important;
    border-top: 1px solid rgba(255,255,255,.16) !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    letter-spacing: .06em !important;
  }

  #header-stronga-wrapper .new-menu #toggle-menu .drop-icon {
    right: 18px !important;
    top: 15px !important;
  }

  #header-stronga #user-menu-stronga,
  #user-menu-stronga {
    top: 20px !important;
    right: 24px !important;
    width: auto !important;
    max-width: 104px !important;
    min-width: 0 !important;
    line-height: 1 !important;
    text-align: right !important;
  }

  #header-stronga .lgn-btn-msg,
  #user-menu-stronga .lgn-btn-msg {
    position: static !important;
    display: none !important;
  }

  #header-stronga #user-menu-stronga .button-reset,
  #user-menu-stronga .button-reset {
    min-width: 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }
}

/* SoS rankings table — remove per-cell inline styles */
.sos-rankings-grid {
  min-width: 760px;
  border-collapse: collapse;
}

.sos-rankings-grid th {
  background: #454545;
  color: #ffffff;
  border: 1px solid #e5e5e5;
  padding: 6px 8px;
  white-space: nowrap;
}

.sos-rankings-grid th a {
  color: #ffffff !important;
  text-decoration: none;
}

.sos-rankings-grid th a:hover {
  color: #a8d4ff !important;
  text-decoration: underline;
}

/* Active sort column: highlight with arrow indicator */
.sos-rankings-grid th.sorted {
  background: #2c5282;
}

.sos-rankings-grid td {
  padding: 5px 8px;
  border: 1px solid #e5e5e5;
  text-align: center;
}

.sos-rankings-grid td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #ffffff;
  text-align: left;
}

.sos-rankings-grid tr:nth-child(even) td:first-child {
  background: #f8fafc;
}

.sos-rankings-grid th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
}

.sos-rankings-grid .best a,
.sos-rankings-grid .worst a {
  color: inherit !important;
  font-weight: 700;
}

/* U0.5 reference pattern: tabular numbers, sticky header row inside the
   scroll wrapper (the wrapper scrolls on both axes), 12px minimum text. */
.sos-rankings-grid th,
.sos-rankings-grid td {
  font-variant-numeric: tabular-nums;
}

.sos-rankings-grid td.sos-cell a {
  display: block;
  color: #1f2937;
  text-decoration: none;
}

.sos-rankings-grid td.sos-cell a:hover,
.sos-rankings-grid td.sos-cell a:focus {
  text-decoration: underline;
}

.sos-rankings-grid tbody tr:hover td {
  box-shadow: inset 0 0 0 999px rgba(20, 61, 107, 0.06);
}

/* inseason-table-scroll.js wraps the SoS grid in an .inseason-table-scroll
   region inside .sos-table-wrap; that region is the two-axis scroller so the
   sticky header row has a vertical scroll container. */
.sos-table-wrap > .inseason-scroll-group > .inseason-table-scroll {
  max-height: min(80vh, 1200px);
  overflow: auto;
}

.sos-rankings-grid thead th {
  position: sticky;
  top: 0;
  z-index: 3;
}

.sos-rankings-grid thead th:first-child {
  left: 0;
  z-index: 4;
}

/* The grid also carries .fft-table/.fft-table--sticky-first (css/fft-ui.css,
   loaded after this file). Keep the SoS look: dark header, centered ranks,
   compact cells, single-pixel grid lines on a separate-border table. */
.sos-rankings-grid.fft-table {
  width: auto;
  font-size: inherit;
}

.sos-rankings-grid.fft-table th,
.sos-rankings-grid.fft-table td {
  padding: 5px 8px;
  border: 0;
  border-right: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  text-align: center;
}

.sos-rankings-grid.fft-table thead th,
.sos-rankings-grid.fft-table thead th:first-child {
  padding: 6px 8px;
  background-color: #454545;
  color: #ffffff;
  box-shadow: none;
}

.sos-rankings-grid.fft-table thead th.sorted {
  background-color: #2c5282;
}

.sos-rankings-grid.fft-table td.sos-team {
  text-align: left;
}

@media (max-width: 768px) {
  .sos-rankings-grid td {
    height: 44px;
  }
}

.sos-details-grid {
  min-width: 980px;
}

.sos-details-grid th,
.sos-details-grid td {
  white-space: nowrap;
}

.sos-details-grid th:first-child,
.sos-details-grid td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #ffffff;
}

.sos-details-grid th:first-child {
  z-index: 2;
}

.nfl-schedule-grid {
  min-width: 1120px;
}

.schedule-grid-wrap .schedule th,
.schedule-grid-wrap .schedule td {
  white-space: nowrap;
}

.schedule-grid-wrap .schedule th:first-child,
.schedule-grid-wrap .schedule td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #ffffff;
}

.schedule-grid-wrap .schedule th:first-child {
  z-index: 2;
  background: #454545;
}

.schedule-grid-wrap .schedule tr:nth-child(even) td:first-child {
  background: #f6f6f6;
}

/* Best/Worst highlighting — modernized but still clearly green/red */
.best {
  background: #c6f6d5 !important;
  color: #1a4731;
}

.worst {
  background: #fed7d7 !important;
  color: #5a1a1a;
}


/* ─── NFL Schedule Grid: full styling ─── */
.nfl-schedule-grid {
  border-collapse: collapse;
  font-size: 12px !important;
  line-height: 1.35 !important;
  width: 100%;
}
.nfl-schedule-grid th,
.nfl-schedule-grid td {
  padding: 4px 6px;
  height: 24px;
  font-size: 12px !important;
  line-height: 1.35 !important;
  text-align: center;
  border: 1px solid #d1d5db;
  white-space: nowrap;
}

table.schedule.nfl-schedule-grid th,
table.schedule.nfl-schedule-grid td,
table.schedule.nfl-schedule-grid a,
table.grid.sos-details-grid th,
table.grid.sos-details-grid td,
table.grid.sos-details-grid a {
  font-size: 12px !important;
  line-height: 1.35 !important;
}
.nfl-schedule-grid thead tr {
  background: #454545;
  color: #fff;
}
.nfl-schedule-grid thead th {
  color: #fff;
  font-weight: 700;
}
.nfl-schedule-grid tbody tr:nth-child(even) {
  background: #f7f8fa;
}
.nfl-schedule-grid tbody tr:hover {
  background: #eff6ff;
}
.nfl-schedule-grid td:first-child,
.nfl-schedule-grid th:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  z-index: 1;
}
.nfl-schedule-grid tbody tr:nth-child(odd) td:first-child {
  background: #fff;
}
.nfl-schedule-grid tbody tr:nth-child(even) td:first-child {
  background: #f7f8fa;
}
.nfl-schedule-grid tbody tr:hover td:first-child {
  background: #eff6ff;
}
.nfl-schedule-grid thead th:first-child {
  background: #454545;
  z-index: 2;
}
/* BYE week: bold red */
.nfl-schedule-grid td.bye {
  color: #dc2626;
  font-weight: 700;
}
/* Away game: muted */
.nfl-schedule-grid td.away {
  color: #4b5563;
}
/* Playoff weeks 14-18: dark blue header */
.nfl-schedule-grid th.playoff-col {
  background: #1a365d !important;
}
@media (max-width: 600px) {
  .nfl-schedule-grid {
    font-size: 12px !important;
  }
  .nfl-schedule-grid th,
  .nfl-schedule-grid td {
    padding: 4px 6px;
    height: 24px;
    font-size: 12px !important;
  }

  table.schedule.nfl-schedule-grid th,
  table.schedule.nfl-schedule-grid td,
  table.schedule.nfl-schedule-grid a {
    font-size: 12px !important;
    line-height: 1.35 !important;
  }
}

/* ─── SoS Details Grid: full styling + heat map ─── */
.sos-details-grid {
  border-collapse: collapse;
  font-size: 12px !important;
  line-height: 1.35 !important;
  width: 100%;
}

/* ─── Season hub: controlled annual launch page ─── */
.season-hub {
  margin: 0 auto 28px;
  max-width: 980px;
}

.season-hub-header p,
.season-hub-status p {
  color: #3f4a59;
  font-size: 15px;
  line-height: 1.55;
  margin: 8px 0 18px;
}

.season-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 22px;
}

.season-hub-link {
  background: #ffffff;
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  color: #172033 !important;
  display: block;
  min-height: 112px;
  padding: 14px 16px;
  text-decoration: none !important;
}

.season-hub-link:hover,
.season-hub-link:focus {
  border-color: #1f6fb2;
  box-shadow: 0 2px 8px rgba(25, 77, 126, 0.15);
}

.season-hub-link strong {
  display: block;
  font-size: 18px;
  line-height: 1.25;
  margin: 6px 0;
}

.season-hub-link span:last-child {
  color: #4c5968;
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.season-hub-kicker {
  color: #086a3b;
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.season-hub-status {
  border-top: 1px solid #d7e0ea;
  padding-top: 16px;
}

.season-hub-status h2 {
  color: #172033 !important;
  font-size: 20px;
  margin: 0 0 6px;
}

/* Controlled data-review fallback for public pages whose source table is not approved. */
.controlled-unavailable {
  max-width: 860px;
  margin: 20px auto 36px;
  padding: 22px;
  border: 1px solid #d9e2ea;
  background: #f8fbfd;
}

.controlled-unavailable p {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.55;
}

.controlled-unavailable-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.controlled-unavailable-actions a {
  display: inline-block;
  padding: 9px 13px;
  border: 1px solid #b9c8d5;
  background: #fff;
  color: #174c78;
  font-weight: 700;
  text-decoration: none !important;
}

.controlled-unavailable-actions a:hover,
.controlled-unavailable-actions a:focus {
  border-color: #174c78;
  background: #eef6fb;
}

@media (max-width: 640px) {
  .season-hub {
    margin-bottom: 20px;
  }

  .season-hub-grid {
    grid-template-columns: 1fr;
  }

  .season-hub-link {
    min-height: 0;
  }

  .controlled-unavailable {
    margin: 14px 0 28px;
    padding: 16px;
  }

  .controlled-unavailable-actions {
    display: block;
  }

  .controlled-unavailable-actions a {
    display: block;
    margin-bottom: 10px;
    text-align: center;
  }
}
.sos-details-grid th,
.sos-details-grid td {
  padding: 5px 7px;
  height: 24px;
  font-size: 12px !important;
  line-height: 1.35 !important;
  text-align: center;
  border: 1px solid #d1d5db;
}
.sos-details-grid thead tr:first-child th {
  background: #454545;
  color: #fff;
  font-weight: 700;
}
.sos-details-grid thead tr:nth-child(2) th {
  background: #2d3748;
  color: #e2e8f0;
  font-size: 0.88em;
}
.sos-details-grid tbody tr:nth-child(even) {
  background: #f7f8fa;
}
.sos-details-grid tbody tr:hover {
  background: #eff6ff;
}
.sos-details-grid td:first-child {
  font-weight: 700;
  text-align: left;
  background: #fff;
  border-right: 2px solid #d1d5db;
}
.sos-details-grid tbody tr:nth-child(even) td:first-child {
  background: #f7f8fa;
}
/* Away game week header */
.sos-details-grid thead tr:nth-child(2) th.week-away {
  background: #374151;
}
/* BYE week header */
.sos-details-grid thead tr:nth-child(2) th.week-bye {
  background: #7f1d1d;
  color: #fef2f2;
}
/* Playoff week headers 14-18 */
.sos-details-grid thead tr:nth-child(2) th.playoff-col {
  background: #1a365d !important;
  color: #93c5fd;
}
/* Heat map: high pts allowed = easy matchup = green */
.sos-details-grid td.pts-easy {
  background: #c6f6d5 !important;
  color: #1a4731;
  font-weight: 700;
}
/* Heat map: low pts allowed = hard matchup = red */
.sos-details-grid td.pts-hard {
  background: #fed7d7 !important;
  color: #5a1a1a;
  font-weight: 700;
}
@media (max-width: 600px) {
  .sos-details-grid {
    font-size: 12px !important;
  }
  .sos-details-grid th,
  .sos-details-grid td {
    padding: 4px 6px;
    height: 24px;
    font-size: 12px !important;
  }

  table.grid.sos-details-grid th,
  table.grid.sos-details-grid td,
  table.grid.sos-details-grid a {
    font-size: 12px !important;
    line-height: 1.35 !important;
  }
}

/* ─── WCAG floor at 375px: schedule + details grids must stay ≥12px / ≥22px row ─── */
@media (max-width: 480px) {
  /* FIX C7: Schedule grid — WCAG minimum font/row-height */
  table.schedule.nfl-schedule-grid,
  table.schedule.nfl-schedule-grid th,
  table.schedule.nfl-schedule-grid td,
  table.schedule.nfl-schedule-grid a {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }
  table.schedule.nfl-schedule-grid th,
  table.schedule.nfl-schedule-grid td {
    min-height: 22px !important;
    height: auto !important;
    padding: 3px 5px !important;
  }
  /* FIX C7: SoS details grid — same WCAG floor */
  table.grid.sos-details-grid,
  table.grid.sos-details-grid th,
  table.grid.sos-details-grid td,
  table.grid.sos-details-grid a {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }
  table.grid.sos-details-grid th,
  table.grid.sos-details-grid td {
    min-height: 22px !important;
    height: auto !important;
    padding: 3px 5px !important;
  }
}

/* Dev WordPress theme shell and cheatsheets column fixes */
.ftf-shell {
  max-width: 100% !important;
  overflow-x: auto !important;
}

.col2 {
  max-width: 100% !important;
  overflow-x: auto !important;
}

.col2 table,
.ftf-shell table {
  max-width: 100% !important;
  height: auto !important;
}

/* ============================================
   10. NETLIFY DESIGN SYSTEM & HOMEPAGE STYLES
   ============================================ */
:root {
  --ink: #0b0c10;
  --ink-2: #111319;
  --panel: #181b24;
  --accent: #ff6a1a;
  --accent-dark: #cc5414;
  --green: #1f8a4c;
  --line: #262a36;
  --text: #f3f4f7;
  --text-soft: #9aa0b4;
  --font-display: 'Anton', Impact, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-label: 'Space Mono', monospace;
  --radius: 6px;
  --shadow: 0 16px 40px rgba(0,0,0,.45);
}

[data-mood="crimson"] { --accent: #e8332f; --accent-dark: #b8231f; }
[data-mood="gold"] { --accent: #e8ac1a; --accent-dark: #b8850f; }
[data-mood="cobalt"] { --accent: #2f7fe8; --accent-dark: #1f5eb8; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #111; padding: 10px 18px; z-index: 999; font-weight: 700; }
.skip-link:focus { left: 0; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.tag { font-family: var(--font-label); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.display { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .01em; line-height: .98; }

/* Utility Bar */
.utility { background: #000; color: #7d8298; font-family: var(--font-label); font-size: .7rem; }
.utility .wrap { display: flex; justify-content: space-between; padding: 6px 24px; flex-wrap: wrap; gap: 6px; }
.utility a { color: #9aa0b4; }
.utility a:hover { color: #fff; }
.utility .u-links { display: flex; gap: 18px; }

/* Masthead Navigation */
.masthead { background: rgba(11,12,16,.92); backdrop-filter: blur(6px); border-bottom: 3px solid var(--accent); position: sticky; top: 0; z-index: 60; }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-badge { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.1rem; color: var(--accent); flex: none; }
.brand .word { font-family: var(--font-display); font-size: 1.3rem; color: #fff; letter-spacing: .01em; line-height: 1; }
.nav-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; font-family: var(--font-label); font-weight: 700; font-size: .76rem; letter-spacing: .03em; text-transform: uppercase; }
.nav-links a { color: #d6d9e4; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a:focus-visible { color: #fff; border-color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-label); font-weight: 700; font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; padding: 11px 20px; border-radius: 3px; border: 2px solid transparent; cursor: pointer; }
.btn-accent { background: var(--accent); color: #0b0c10; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: #3a3f52; color: #e7e9f2; }
.btn-ghost:hover { border-color: #fff; }
.burger { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }
.mobile-menu { display: none; background: var(--ink-2); border-top: 1px solid var(--line); }
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 10px 24px 18px; display: flex; flex-direction: column; gap: 2px; }
.mobile-menu a { display: block; color: #e7e9f2; padding: 11px 0; font-family: var(--font-label); font-weight: 700; border-bottom: 1px solid #232838; text-transform: uppercase; font-size: .8rem; }
@media (max-width: 960px) { .nav-links, .nav-cta .btn-ghost { display: none; } .burger { display: block; } }

/* Hero */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; overflow: hidden; background: var(--ink); }
.hero-bg { position: absolute; inset: 0; z-index: 1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; opacity: .55; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,12,16,.55) 0%, rgba(11,12,16,.75) 55%, var(--ink) 100%); }
.hero-content { position: relative; z-index: 2; padding: 100px 0 70px; }
.hero h1 { font-size: clamp(2.6rem,6vw,4.6rem); color: #fff; margin: 0 0 18px; }
.hero h1 .accent { color: var(--accent); }
.hero p.dek { font-size: 1.1rem; color: #c9cce0; max-width: 56ch; margin: 0 0 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stat .num { font-family: var(--font-display); font-size: 2rem; color: var(--accent); display: block; }
.hero-stat .lbl { font-family: var(--font-label); font-size: .68rem; letter-spacing: .08em; color: #9aa0b4; text-transform: uppercase; }

/* Contests */
.contests { background: var(--ink-2); padding: 60px 0 70px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 30px; }
.section-head .tag { display: block; margin-bottom: 8px; }
.section-head h2 { font-family: var(--font-display); font-size: 2rem; margin: 0; color: #fff; }
.contest-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.contest-hero { position: relative; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg,#1b1006,#0b0c10); border: 2px solid var(--accent); padding: 34px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 340px; }
.contest-hero .frame-img { position: absolute; inset: 0; z-index: 1; }
.contest-hero .frame-img img { width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.contest-hero .frame-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,12,16,.94), rgba(11,12,16,.3)); }
.contest-hero > * { position: relative; z-index: 2; }
.contest-hero .prize { font-family: var(--font-display); font-size: 3rem; color: var(--accent); margin: 0 0 6px; }
.contest-hero h3 { font-family: var(--font-display); font-size: 1.7rem; color: #fff; margin: 0 0 10px; }
.contest-hero p { color: #c9cce0; margin: 0 0 20px; max-width: 46ch; }
.contest-small-grid { display: grid; grid-template-rows: 1fr 1fr 1fr; gap: 16px; }
.contest-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.contest-card h4 { font-family: var(--font-display); font-size: 1.05rem; margin: 0 0 4px; color: #fff; }
.contest-card p { margin: 0; font-size: .82rem; color: var(--text-soft); }
.contest-card .stakes { font-family: var(--font-label); font-size: .68rem; color: var(--accent); text-transform: uppercase; font-weight: 700; }
.contest-card .btn { flex: none; padding: 8px 14px; font-size: .68rem; }

/* Rankings Widget */
.rankings { padding: 64px 0; background: var(--ink); }
.rankings-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
.rankings-copy p { color: var(--text-soft); margin: 0 0 20px; max-width: 44ch; }
.rankings-copy .btn { margin-top: 6px; }
.rankings-widget { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rw-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); background: #14161e; }
.rw-head h4 { margin: 0; font-family: var(--font-label); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.rw-filters { display: flex; gap: 6px; }
.rw-filters button { background: none; border: 1px solid var(--line); color: var(--text-soft); font-family: var(--font-label); font-size: .68rem; padding: 5px 10px; border-radius: 3px; cursor: pointer; text-transform: uppercase; }
.rw-filters button.active { background: var(--accent); color: #0b0c10; border-color: var(--accent); font-weight: 700; }
table.rw-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
table.rw-table th { text-align: left; font-family: var(--font-label); font-size: .66rem; letter-spacing: .05em; text-transform: uppercase; color: var(--text-soft); padding: 10px 20px; cursor: pointer; user-select: none; border-bottom: 1px solid var(--line); }
table.rw-table th:hover { color: #fff; }
table.rw-table td { padding: 11px 20px; border-bottom: 1px solid #1c202b; }
table.rw-table tr:last-child td { border-bottom: 0; }
.rw-rank { font-family: var(--font-display); color: var(--accent); width: 36px; }
.rw-name { font-weight: 600; color: #fff; }
.rw-pos { font-family: var(--font-label); font-size: .7rem; color: var(--text-soft); }
.rw-pts { font-family: var(--font-label); color: var(--green); text-align: right; }
.rw-note { padding: 12px 20px; font-size: .72rem; color: var(--text-soft); border-top: 1px solid var(--line); font-style: italic; }

/* Draft Rail */
.draftrail { background: var(--ink-2); padding: 60px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.draft-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.story-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.story-frame { position: relative; aspect-ratio: 4/3; background: #0c0e14; }
.story-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-body { padding: 16px; }
.story-body h4 { font-family: var(--font-display); font-size: 1.05rem; margin: 0 0 6px; color: #fff; line-height: 1.15; }
.story-body p.meta { font-family: var(--font-label); font-size: .66rem; letter-spacing: .05em; color: var(--accent); text-transform: uppercase; margin: 0; }

/* Weekly Tools Band */
.weekly { padding: 60px 0; background: var(--ink); }
.weekly-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.weekly-card { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/6; }
.weekly-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Experts Grid */
.experts { background: var(--ink-2); padding: 56px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.experts-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.expert-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; }
.expert-avatar { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px; background: linear-gradient(135deg,var(--accent),var(--accent-dark)); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); color: #0b0c10; font-size: 1.3rem; }
.expert-card h4 { font-family: var(--font-display); font-size: 1rem; margin: 0 0 4px; color: #fff; }
.expert-card p { margin: 0; font-size: .78rem; color: var(--text-soft); }

/* Community & Newsletter */
.community { background: var(--accent); color: #12130f; padding: 52px 0; text-align: center; }
.community h2 { font-family: var(--font-display); font-size: 2rem; margin: 0 0 10px; }
.community p { margin: 0 0 24px; }
.community .btn-ghost { border-color: #12130f; color: #12130f; }
.community .btn-ghost:hover { background: #12130f; color: var(--accent); }

.newsletter { background: var(--ink-2); padding: 54px 0; text-align: center; border-top: 1px solid var(--line); }
.newsletter h2 { font-family: var(--font-display); font-size: 1.8rem; margin: 0 0 10px; color: #fff; }
.newsletter p { color: var(--text-soft); margin: 0 0 22px; }
.nl-form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.nl-form input[type="email"] { flex: 1; min-width: 220px; padding: 13px 16px; border-radius: 3px; border: 1px solid var(--line); background: var(--panel); color: #fff; font-family: var(--font-body); font-size: .9rem; }

/* Netlify Footer */
.netlify-footer { background: #000; color: #7d8298; padding: 50px 0 22px; font-size: .86rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 34px; }
.foot-brand .word { font-family: var(--font-display); color: #fff; font-size: 1.2rem; }
.foot-brand p { color: #666c85; font-size: .82rem; max-width: 34ch; }
.netlify-footer h5 { font-family: var(--font-label); color: #fff; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; }
.netlify-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.netlify-footer a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid #1c1f28; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .76rem; color: #565c72; }

@media (max-width: 960px) {
  .contest-grid { grid-template-columns: 1fr; }
  .contest-small-grid { grid-template-rows: none; grid-template-columns: 1fr; }
  .rankings-grid { grid-template-columns: 1fr; }
  .draft-grid { grid-template-columns: repeat(2,1fr); }
  .weekly-grid { grid-template-columns: 1fr; }
  .experts-grid { grid-template-columns: repeat(2,1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .draft-grid { grid-template-columns: 1fr; }
  .experts-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}


/* 2026 rankings and cheat sheets introduction */
.cheatsheet-intro {
  margin: 0 0 24px;
  color: #25364a;
}

.cheatsheet-intro__copy {
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid #c9deef;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(135deg, #f5faff 0%, #e7f3fc 58%, #d6ebfa 100%);
  color: #243b53;
}

.cheatsheet-intro .newpagetitle {
  margin: 4px 0 12px;
  color: #071d35 !important;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.05;
  text-wrap: balance;
}

.cheatsheet-intro__eyebrow {
  margin: 0 0 6px;
  color: #f6b93b;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .09em;
  line-height: 1.35;
  text-transform: uppercase;
}

.cheatsheet-intro__copy .cheatsheet-intro__eyebrow {
  display: inline-flex;
  padding: 6px 10px;
  border: 1px solid #a9cce6;
  border-radius: 999px;
  background: #d9edfb;
  color: #084f86;
}

.cheatsheet-intro__lead {
  max-width: 780px;
  margin: 0;
  color: #243b53;
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.55;
}

.cheatsheet-intro .byline {
  margin-top: 14px;
  color: #34546f;
}

.cheatsheet-intro__accuracy {
  padding: clamp(20px, 3.5vw, 36px);
  border: 1px solid #d9e4ee;
  border-top: 0;
  background: #f7fafc;
}

.cheatsheet-intro__proven {
  display: block;
  overflow: hidden;
  width: 100%;
  max-width: 980px;
  height: auto;
  margin: 0 auto;
  background: #071d35;
}

.cheatsheet-intro__proven img {
  display: block;
  width: 100%;
  max-width: 980px;
  height: auto;
  margin: 0 auto;
  border: 0;
}

.cheatsheet-intro__accuracy-copy {
  max-width: 760px;
  margin-bottom: 20px;
}

.cheatsheet-intro__accuracy h2,
.cheatsheet-intro__promo h2 {
  margin: 0 0 8px;
  color: #102c48;
  font-size: clamp(23px, 3.2vw, 32px);
  line-height: 1.15;
}

.cheatsheet-intro__accuracy p,
.cheatsheet-intro__promo p {
  margin-top: 0;
  line-height: 1.55;
}

.cheatsheet-intro__awards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cheatsheet-intro__awards figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid #ccd9e5;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(11, 47, 78, .09);
}

.cheatsheet-intro__awards img {
  display: block;
  width: 100%;
  height: auto;
}

.cheatsheet-intro__awards figcaption {
  padding: 10px 14px;
  color: #31465c;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.cheatsheet-intro__promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 3.5vw, 34px);
  border: 1px solid #c9deef;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #eef6fc;
  color: #243b53;
}

.cheatsheet-intro__promo h2 {
  color: #071d35;
}

.cheatsheet-intro__promo .cheatsheet-intro__eyebrow {
  display: inline-flex;
  padding: 6px 10px;
  border: 1px solid #a9cce6;
  border-radius: 999px;
  background: #d9edfb;
  color: #084f86;
}

.cheatsheet-intro__promo p:last-child {
  margin-bottom: 0;
  color: #243b53;
}

.cheatsheet-intro__cta {
  flex: 0 0 auto;
  padding: 13px 20px;
  border: 2px solid #f6b93b;
  border-radius: 7px;
  background: #f6b93b;
  color: #102c48 !important;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
}

.cheatsheet-intro__cta:hover,
.cheatsheet-intro__cta:focus {
  background: #fff;
  border-color: #fff;
  color: #102c48 !important;
}

.cheatsheet-intro__actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.cheatsheet-intro__subscribe {
  color: #084f86 !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 700px) {
  .cheatsheet-intro {
    margin-right: -4px;
    margin-left: -4px;
  }

  .cheatsheet-intro__awards {
    grid-template-columns: 1fr;
  }

  .cheatsheet-intro__promo {
    align-items: stretch;
    flex-direction: column;
  }

  .cheatsheet-intro__cta {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .cheatsheet-intro__actions {
    width: 100%;
  }
}
/* Team stats: preserve readable section headers when legacy header rules win the cascade. */
.team-stats-panel > .team-stats-panel__header {
  background-color: #0b4f82 !important;
  background-image: linear-gradient(135deg, #173a5e 0%, #0b79c9 100%) !important;
  color: #ffffff !important;
}

.team-stats-panel > .team-stats-panel__header h2 {
  color: #ffffff !important;
}

.team-stats-panel > .team-stats-panel__header p {
  color: #ffffff !important;
  background: transparent !important;
}

/* Legacy .content p paints every paragraph white, including text on dark modern cards. */
.content .survivor-hero > p {
  background: transparent !important;
}

/* Premium tools use their parent card backgrounds. The legacy site rule gives
   every paragraph a white fill, which obscures light text in dark feature cards. */
body.fft-premium-tool .content p,
body.fft-premium-tool #content p,
body.fft-premium-tool #content_wide p,
body.fft-premium-tool #content_nosky p {
  background: transparent !important;
}

/* Current season reports share compact controls and readable mobile data regions. */
#tabnav.inseason-tabs {
  display: flex !important;
  clear: both;
  flex-wrap: nowrap !important;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  height: auto !important;
  min-height: 56px;
  overflow-x: auto;
  margin: 16px 0 12px !important;
  padding: 0 0 8px !important;
  border-bottom: 1px solid #d8e2ed;
  -webkit-overflow-scrolling: touch;
}

#tabnav.inseason-tabs li {
  float: none !important;
  flex: 0 0 auto;
  margin: 0 !important;
  list-style: none;
}

#tabnav.inseason-tabs a {
  display: flex !important;
  float: none !important;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 40px;
  line-height: 1.2 !important;
  padding: 7px 12px !important;
  border: 1px solid #c7d7e6 !important;
  border-radius: 8px;
  background: #f3f7fb !important;
  color: #174166 !important;
  font-weight: 700;
  text-decoration: none !important;
}

#tabnav.inseason-tabs a.active,
#tabnav.inseason-tabs a[aria-current="page"] {
  border-color: #0876bc !important;
  background: #0876bc !important;
  color: #ffffff !important;
}

.inseason-scoring-note,
.inseason-matchup-copy {
  max-width: 75ch;
  margin: 12px 0 16px;
  color: #43566a;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.inseason-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #d8e2ed;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(19, 48, 75, 0.08);
  -webkit-overflow-scrolling: touch;
}

.inseason-scroll-group {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.inseason-top-scroll {
  width: 100%;
  height: 23px;
  overflow-x: scroll;
  overflow-y: hidden;
  margin: 8px 0 0;
  border: 1px solid #d8e2ed;
  border-radius: 8px 8px 0 0;
  background: #eef4fa;
  scrollbar-color: #0876bc #d9e7f2;
  scrollbar-width: auto;
}

.inseason-top-scroll[hidden] {
  display: none !important;
}

.inseason-top-scroll::-webkit-scrollbar {
  height: 14px;
}

.inseason-top-scroll::-webkit-scrollbar-track {
  background: #d9e7f2;
}

.inseason-top-scroll::-webkit-scrollbar-thumb {
  border: 2px solid #d9e7f2;
  border-radius: 8px;
  background: #0876bc;
}

.inseason-top-scroll__track {
  height: 1px;
}

.inseason-top-scroll:not([hidden]) + .inseason-table-scroll {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

table.grid.inseason-points-table {
  width: max-content !important;
  min-width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.inseason-points-table th,
.inseason-points-table td {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.inseason-points-table th {
  background: #203d59 !important;
  color: #ffffff !important;
}

.inseason-points-table tr:nth-child(even) td {
  background: #f2f7fb !important;
}

.inseason-sticky-first > tbody > tr:first-child > th:first-child,
.inseason-sticky-first > thead > tr:first-child > th:first-child,
.inseason-sticky-first td:first-child:not([colspan]) {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #ffffff !important;
}

.inseason-sticky-first > tbody > tr:first-child > th:first-child,
.inseason-sticky-first > thead > tr:first-child > th:first-child {
  z-index: 5;
  background: #203d59 !important;
}

.inseason-sticky-two > tbody > tr:first-child > th:first-child,
.inseason-sticky-two > thead > tr:first-child > th:first-child,
.inseason-sticky-two td:first-child:not([colspan]) {
  min-width: 42px;
  width: 42px;
}

.inseason-sticky-two > tbody > tr:first-child > th:nth-child(2),
.inseason-sticky-two > thead > tr:first-child > th:nth-child(2),
.inseason-sticky-two td:nth-child(2):not([colspan]) {
  position: sticky;
  left: 42px;
  z-index: 3;
  min-width: 128px;
  background: #ffffff !important;
  box-shadow: 2px 0 4px rgba(19, 48, 75, 0.12);
}

.inseason-sticky-two > tbody > tr:first-child > th:nth-child(2),
.inseason-sticky-two > thead > tr:first-child > th:nth-child(2) {
  z-index: 5;
  background: #203d59 !important;
}

.inseason-sticky-two > tbody > tr:first-child > th:nth-child(2) a,
.inseason-sticky-two > thead > tr:first-child > th:nth-child(2) a {
  background: transparent !important;
  color: #ffffff !important;
}

.inseason-sticky-first tr:nth-child(even) td:first-child:not([colspan]),
.inseason-sticky-two tr:nth-child(even) td:nth-child(2):not([colspan]) {
  background: #f2f7fb !important;
}

.inseason-preview-table-scroll table.grid {
  min-width: 520px !important;
  margin: 0 !important;
}

.inseason-auto-table-scroll table.grid {
  width: max-content !important;
  min-width: 100% !important;
  margin: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

@media (max-width: 800px) {
  .inseason-scroll-group--auto,
  .inseason-auto-table-scroll {
    max-width: calc(100vw - 16px);
  }
}

.inseason-preview-table-scroll table.grid > tbody > tr:first-child > th:first-child,
.inseason-preview-table-scroll table.grid td:first-child:not([colspan]) {
  position: sticky;
  left: 0;
  z-index: 3;
  min-width: 170px;
  background: #ffffff !important;
  box-shadow: 2px 0 4px rgba(19, 48, 75, 0.12);
}

.inseason-preview-table-scroll table.grid > tbody > tr:first-child > th:first-child {
  z-index: 5;
  background: #454545 !important;
}

.inseason-game-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 100%;
  margin: 18px 0;
  padding: 4px 2px;
}

.inseason-game-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #c7d7e6;
  border-radius: 9px;
  background: #f3f7fb;
  color: #173a5e !important;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
}

.inseason-game-chip small {
  color: #667b8e;
  font-size: 0.75em;
  font-weight: 500;
}

.inseason-game-chip.is-active {
  border-color: #0876bc;
  background: #0876bc;
  color: #ffffff !important;
}

.inseason-game-chip.is-active small {
  color: #e4f3ff;
}

.inseason-game-preview-layout {
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.matchup-filters form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 0;
}

.matchup-filters select,
.matchup-filters input[type="submit"] {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #bfd0df;
  border-radius: 8px;
  background: #ffffff;
  color: #173a5e;
}

.matchup-filters input[type="submit"] {
  border-color: #0876bc;
  background: #0876bc;
  color: #ffffff;
  font-weight: 700;
}

ol.matchups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  padding: 0 !important;
  margin: 16px 0 !important;
  list-style: none;
}

ol.matchups > li {
  min-width: 0;
  padding: 16px !important;
  border: 1px solid #d8e2ed;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(19, 48, 75, 0.06);
  overflow-wrap: anywhere;
}

ol.matchups .players {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 800px) {
  .inseason-table-scroll {
    margin-right: 0;
  }

  table.grid.inseason-points-table {
    min-width: 780px !important;
  }

  table.inseason-game-preview-layout,
  .inseason-game-preview-layout > tbody,
  .inseason-game-preview-layout > tbody > tr,
  .inseason-game-preview-layout > tbody > tr > td {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .inseason-game-preview-layout > tbody > tr > td {
    overflow-x: auto;
    padding: 6px 0;
  }

  .inseason-game-preview-layout h3 {
    font-size: clamp(1.3rem, 5vw, 1.8rem) !important;
  }

  .inseason-game-preview-layout table.grid {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed;
  }

  .inseason-game-preview-layout table.grid th,
  .inseason-game-preview-layout table.grid td {
    box-sizing: border-box;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .inseason-game-preview-layout table.grid th:first-child,
  .inseason-game-preview-layout table.grid td:first-child {
    width: auto;
  }

  .inseason-game-preview-layout table.grid th:nth-child(2),
  .inseason-game-preview-layout table.grid td:nth-child(2) {
    width: 64px;
  }

  .inseason-game-preview-layout table.grid th:nth-child(3),
  .inseason-game-preview-layout table.grid td:nth-child(3) {
    width: 92px;
  }

  .inseason-game-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  ol.matchups {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Shared presentation for the in-season report family. Keep each report's
   existing data and advertising containers in place. */
body.fft-weekly-tool h1.newpagetitle {
  max-width: 1200px;
  margin: 20px auto 14px;
  color: #12365a;
  font: 800 clamp(25px, 3vw, 36px)/1.15 Arial, Helvetica, sans-serif;
  letter-spacing: -.025em;
}

body.fft-weekly-tool #tabnav {
  display: flex;
  flex-wrap: nowrap;
  height: auto !important;
  min-height: 64px;
  box-sizing: border-box;
  gap: 8px;
  max-width: 100%;
  padding: 8px 2px 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-color: #6ca8d9 #e9f2fa;
}

body.fft-weekly-tool #tabnav li {
  flex: 0 0 auto;
  margin: 0;
}

body.fft-weekly-tool #tabnav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 15px;
  border: 1px solid #c5d9eb;
  border-radius: 9px;
  background: #fff;
  color: #16436d;
  font: 700 14px/1.2 Arial, Helvetica, sans-serif;
  white-space: nowrap;
}

body.fft-weekly-tool #tabnav a.active,
body.fft-weekly-tool #tabnav a:hover {
  border-color: #0879d4;
  background: #0879d4;
  color: #fff;
}

body.fft-weekly-tool table.grid th,
body.fft-weekly-tool table.schedule th {
  background: #173a5d;
  color: #fff;
  vertical-align: middle;
}

body.fft-weekly-tool table.grid td,
body.fft-weekly-tool table.schedule td {
  vertical-align: middle;
}

/* Modern shared shell for weekly research reports. */
.weekly-report,
.weekly-report * {
  box-sizing: border-box;
}

.weekly-report {
  width: 100%;
  margin: 0 auto;
  padding: 0 0 28px;
  color: #19354e;
}

.weekly-report > p {
  max-width: 76ch;
  margin: 0 0 18px;
  color: #52677a;
  font-size: 17px;
  line-height: 1.55;
}

.weekly-report #tabnav.inseason-tabs {
  margin: 18px 0 14px !important;
}

.weekly-report-table-scroll {
  width: 100%;
  overflow-x: auto;
  margin: 4px 0 22px;
  border: 1px solid #cfdeeb;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(12, 48, 80, .08);
  -webkit-overflow-scrolling: touch;
}

.weekly-report-table-scroll:focus-visible {
  outline: 3px solid #4aa3df;
  outline-offset: 2px;
}

.weekly-report table.weekly-report-table {
  width: 100% !important;
  min-width: 680px;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: separate;
  border-spacing: 0;
}

.weekly-report table.weekly-report-table th {
  padding: 12px 10px !important;
  border-color: #2d4e6e !important;
  background: #173a5d !important;
  color: #fff !important;
  font-size: 13px;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.weekly-report table.weekly-report-table td {
  padding: 10px !important;
  border-color: #dbe5ed !important;
  background: #fff;
}

.weekly-report table.weekly-report-table tr:nth-child(even) td {
  background: #f5f9fc;
}

.weekly-report table.weekly-report-table a {
  color: #0874bf;
  font-weight: 700;
}

.weekly-report-section-title {
  margin: 28px 0 12px;
  color: #153b5f;
  font-size: clamp(20px, 2.3vw, 28px);
  line-height: 1.2;
}

.h2h-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin: 0 0 24px;
  padding: 18px;
  border: 1px solid #d2e0ec;
  border-radius: 14px;
  background: linear-gradient(135deg, #f5f9fc, #edf5fb);
  box-shadow: 0 8px 22px rgba(12, 48, 80, .07);
}

.h2h-controls label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #264863;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.h2h-controls select,
.h2h-controls input[type="submit"] {
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 10px 13px;
  border: 1px solid #b9ccdc;
  border-radius: 9px;
  background: #fff;
  color: #173650;
  font: 700 16px/1.2 Arial, Helvetica, sans-serif;
}

.h2h-controls input[type="submit"] {
  border-color: #0878c5;
  background: #0878c5;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.h2h-controls input[type="submit"]:hover,
.h2h-controls input[type="submit"]:focus-visible {
  border-color: #075f9c;
  background: #075f9c;
}

.h2h-versus {
  align-self: center;
  padding-top: 18px;
  color: #698095;
  font-weight: 800;
}

.h2h-results {
  min-width: 980px !important;
  font-variant-numeric: tabular-nums;
}

.injury-report-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 24px;
  align-items: center;
  margin: 10px 0 20px;
  padding: 26px 28px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(125deg, #092f50 0%, #075f91 70%, #078ab4 100%);
  box-shadow: 0 14px 34px rgba(5, 46, 78, .2);
}

.injury-report-hero h1.newpagetitle {
  max-width: none;
  margin: 5px 0 9px;
  color: #fff !important;
  font-size: clamp(27px, 3vw, 38px);
  text-shadow: 0 1px 2px rgba(0, 20, 38, .22);
}

.injury-report-hero p {
  max-width: 720px;
  margin: 0;
  color: #e5f5ff;
  font-size: 16px;
  line-height: 1.5;
}

.injury-report-eyebrow {
  color: #8ce9ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.injury-report-freshness {
  display: grid;
  min-width: 190px;
  gap: 5px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 14px;
  background: rgba(3, 26, 45, .35);
}

.injury-report-freshness span {
  color: #8ce9ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.injury-report-freshness strong {
  color: #fff;
  font-size: 18px;
}

.injury-report-freshness small {
  color: #cfeaff;
  font-size: 13px;
}

.injury-report-controls {
  margin: 0 0 20px;
  padding: 18px;
  border: 1px solid #cbddea;
  border-radius: 15px;
  background: linear-gradient(145deg, #f8fbfe, #edf5fa);
  box-shadow: 0 8px 22px rgba(12, 48, 80, .07);
}

.injury-report-controls__topline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.injury-report-controls__label {
  display: block;
  color: #31566f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.injury-report .injury-report-controls #tabnav.inseason-tabs {
  min-height: 0;
  margin: 5px 0 0 !important;
  padding: 0;
}

.injury-report-note {
  flex: 0 1 auto;
  margin: 0 0 10px;
  color: #60758a;
  font-size: 13px;
  font-style: italic;
}

.injury-report .injury-report-toolbar[hidden],
.injury-report .injury-filter-empty[hidden],
.injury-report .injurypage [hidden] {
  display: none !important;
}

.injury-report .injury-report-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 18px;
  align-items: center;
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid #cbddea;
}

.injury-report .injury-report-toolbar__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.injury-report .injury-filter-chip {
  min-height: 40px;
  gap: 7px;
  padding: 7px 12px;
  border-width: 1px;
  font-size: 13px;
  cursor: pointer;
}

.injury-report .injury-filter-chip span {
  display: inline-flex;
  min-width: 21px;
  min-height: 21px;
  align-items: center;
  justify-content: center;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: currentColor;
  font-size: 11px;
}

.injury-report .injury-filter-chip[aria-pressed="true"] {
  box-shadow: 0 0 0 2px currentColor;
  font-weight: 900;
}

.injury-report .injury-filter-chip:focus-visible,
.injury-report .injury-report-toolbar__pos select:focus-visible {
  outline: 3px solid #4aa3df;
  outline-offset: 2px;
}

.injury-report .injury-report-toolbar__pos {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #264863;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.injury-report .injury-report-toolbar__pos select {
  min-height: 44px;
  padding: 8px 34px 8px 12px;
  border: 1px solid #b9ccdc;
  border-radius: 9px;
  background-color: #fff;
  color: #173650;
  font-size: 15px;
  text-transform: none;
  letter-spacing: 0;
}

.injury-report-results {
  grid-column: 1 / -1;
  margin: 0;
  color: #60758a;
  font-size: 13px;
  font-weight: 700;
}

.injury-report .injury-filter-empty {
  margin: 0 0 18px;
  padding: 20px;
  border: 1px dashed #b9ccdc;
  border-radius: 12px;
  color: #60758a;
  background: #f7fafc;
  font-size: 15px;
  text-align: center;
}

.injurypage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 18px;
  width: 100%;
  margin: 0 0 28px;
}

.injurypage .team {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #cadbe8;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(16, 52, 83, .09);
}

.injurypage .team > h3 {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin: 0 !important;
  padding: 14px 17px !important;
  border-bottom: 1px solid #d7e3ed;
  background: linear-gradient(120deg, #153957, #215b82);
  color: #fff;
  font-size: 18px !important;
  line-height: 1.25;
  text-align: left;
}

.injurypage .team > h3 a {
  color: #fff !important;
  text-decoration: none;
}

.injurypage .team > h3 small {
  display: inline-flex;
  margin-left: 7px;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 999px;
  color: #e5f2fa;
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.injury-team-count {
  flex: 0 0 auto;
  color: #cfeaff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.injurypage .team > ul {
  margin: 0;
  padding: 4px 16px;
  list-style: none;
}

.injurypage .team > ul > li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(104px, auto);
  gap: 12px;
  align-items: center;
  min-height: 68px;
  margin: 0;
  padding: 10px 2px;
  border-bottom: 1px solid #e5edf3;
  line-height: 1.25;
}

.injurypage .team > ul > li:hover {
  background: #f7fbfe;
}

.injurypage .team > ul > li:last-child {
  border-bottom: 0;
}

.injury-position {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: 8px;
  background: #e5f1f9;
  color: #245474;
  font-size: 12px;
  font-weight: 900;
}

.injury-player {
  min-width: 0;
}

.injury-player a {
  color: #0a70b5;
  font-size: 15px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.injury-player small {
  display: block;
  margin-top: 4px;
  color: #64798c;
  font-size: 12px;
  line-height: 1.35;
}

.injury-report .injury-player.fft-player-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.injury-report .injury-player__text {
  min-width: 0;
}

.injury-report .injury-status-chip {
  min-width: 104px;
  justify-self: end;
  justify-content: center;
  white-space: nowrap;
}

.injurypage .injury {
  display: inline-flex;
  justify-content: center;
  min-width: 58px;
  padding: 5px 7px;
  border-radius: 999px;
  background: #edf2f6;
  color: #536778;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.injurypage .injury--out,
.injurypage .injury--dou {
  background: #fee7e5;
  color: #a22b25;
}

.injurypage .injury--que {
  background: #fff1cf;
  color: #8a5a00;
}

.injurypage .injury--pro {
  background: #e1f5e8;
  color: #197044;
}

.injurypage .team.bye {
  border-color: #c9d0d6;
  background: #eef1f3;
  filter: grayscale(.55);
}

.noinjuries {
  padding: 24px 17px;
  color: #738493;
  background: #f8fafc;
  font-size: 14px;
}

.injury-definitions {
  margin: 24px 0 10px;
  padding: 18px;
  border: 1px solid #d4e1eb;
  border-radius: 13px;
  background: #f7fafc;
}

.injury-definitions h2 {
  margin: 0 0 12px;
  color: #173a5d;
  font-size: 20px;
}

.injury-definitions dl {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px minmax(0, 1fr);
  gap: 9px 10px;
  margin: 0;
}

.injury-definitions dt,
.injury-definitions dd {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}

.injury-definitions dt {
  color: #17496f;
  font-weight: 900;
}

.injury-definitions dd {
  color: #5a6f81;
}

@media (max-width: 780px) {
  .injury-report-hero {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px;
  }

  .injury-report-freshness {
    min-width: 0;
  }

  .injury-report-controls__topline {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .injury-report-note {
    margin: 0;
  }

  .injury-report .injury-report-toolbar {
    grid-template-columns: 1fr;
  }

  .injury-report .injury-report-toolbar__pos {
    justify-content: space-between;
  }

  .injury-report-results {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .weekly-report {
    padding-right: 10px;
    padding-left: 10px;
  }

  .h2h-controls {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .h2h-versus {
    display: none;
  }

  .injurypage {
    grid-template-columns: 1fr;
  }

  .injury-report .injurypage .team {
    overflow: visible;
  }

  .injury-report .injurypage .team > h3 {
    position: sticky;
    top: calc(var(--fft-sticky-top, 0px) + var(--injury-sticky-top, 0px));
    z-index: 2;
    border-radius: 13px 13px 0 0;
  }

  .injury-definitions dl {
    grid-template-columns: 52px minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .injury-report-hero {
    margin-top: 6px;
    padding: 19px 17px;
    border-radius: 14px;
  }

  .injury-report-controls {
    padding: 14px;
  }

  .injury-report .injury-report-toolbar {
    overflow: visible;
  }

  .injury-report .injury-report-toolbar__chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 3px;
    -webkit-overflow-scrolling: touch;
  }

  .injury-report .injury-filter-chip {
    flex: 0 0 auto;
    min-height: 44px;
  }

  .injury-report .injury-report-toolbar__pos select {
    flex: 1 1 auto;
  }

  .injurypage .team > h3 {
    padding: 13px 14px !important;
    font-size: 16px !important;
  }

  .injury-team-count {
    font-size: 10px;
  }

  .injurypage .team > ul {
    padding: 3px 10px;
  }

  .injurypage .team > ul > li {
    grid-template-columns: 34px minmax(0, 1fr) minmax(86px, auto);
    gap: 8px;
    min-height: 62px;
    padding: 8px 0;
  }

  .injury-position {
    min-height: 28px;
    font-size: 11px;
  }

  .injury-report .injury-player.fft-player-cell {
    gap: 7px;
  }

  .injury-player a {
    font-size: 14px;
  }

  .injury-player small {
    font-size: 11px;
  }

  .injury-report .injury-status-chip {
    min-width: 86px;
    padding-inline: 7px;
    font-size: 10px;
  }
}

@media print {
  .injury-report-hero {
    color: #173a5d;
    background: #fff;
    box-shadow: none;
  }

  .injury-report-controls,
  .injury-report .injury-report-toolbar {
    display: none !important;
  }

  .weekly-report-table-scroll {
    overflow: visible;
    box-shadow: none;
  }

  .injurypage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .injurypage .team {
    break-inside: avoid;
    box-shadow: none;
  }
}

.snap-report { width: 100%; max-width: none; margin: 0 auto; padding: 18px clamp(12px, 1.4vw, 24px) 38px; box-sizing: border-box; color: #102f4d; }
.snap-report p { line-height: 1.5; }
.snap-report-hero { display: grid; grid-template-columns: minmax(320px, .8fr) minmax(0, 1.2fr); gap: 28px; align-items: center; margin: 12px 0 18px; padding: 28px 30px; border-radius: 20px; color: #fff; background: linear-gradient(125deg, #092f50 0%, #075f91 70%, #078ab4 100%); box-shadow: 0 14px 34px rgba(5, 46, 78, .2); }
.snap-report-hero h1.newpagetitle { margin: 4px 0 8px; color: #fff !important; text-shadow: 0 1px 2px rgba(0, 20, 38, .22); }
.snap-report-hero p { max-width: 850px; margin: 0; color: #e5f5ff; font-size: 16px; }
.snap-report-eyebrow { color: #8ce9ff; font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.snap-report-freshness { display: grid; min-width: 0; gap: 5px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.3); border-radius: 14px; background: rgba(3, 26, 45, .35); }
.snap-report-freshness strong { color: #fff; font-size: 19px; }
.snap-report-freshness span, .snap-report-help { color: #557086; font-size: 14px; }
.snap-report-freshness span { color: #cfeaff; overflow-wrap: anywhere; }
.snap-report-freshness b { width: max-content; margin-top: 4px; padding: 4px 8px; border-radius: 999px; color: #063b5e; background: #8ce9ff; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.snap-report-feature-graphic { width: min(760px, 100%); margin: 0 auto 18px; overflow: hidden; border: 1px solid #bed9ea; border-radius: 16px; background: #072746; box-shadow: 0 10px 28px rgba(5, 46, 78, .16); }
.snap-report-feature-graphic img { display: block; width: 100%; height: auto; }
.snap-position-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.snap-position-tabs form { margin: 0; }
.snap-position-tabs button { width: 100%; min-height: 54px; border: 2px solid #bad5e8; border-radius: 12px; color: #174f78; background: #fff; font: 900 18px/1 inherit; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.snap-position-tabs button:hover { border-color: #0786bc; transform: translateY(-1px); }
.snap-position-tabs button.is-active { border-color: #0a78aa; color: #fff; background: linear-gradient(135deg, #075b8e, #0799c3); box-shadow: 0 7px 18px rgba(7, 111, 159, .22); }
.snap-report-controls { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)) auto; align-items: end; gap: 12px; margin: 14px 0 18px; padding: 16px; border: 1px solid #d5e2ee; border-radius: 14px; background: #f5f9fc; }
.snap-report-controls label, .snap-report-rank-controls label { display: grid; gap: 6px; font-weight: 800; }
.snap-report-controls select, .snap-report-controls button, .snap-report-rank-controls input, .snap-report-rank-controls select { min-height: 46px; border: 1px solid #b9cedf; border-radius: 9px; padding: 8px 12px; color: #173a5d; background: #fff; font: inherit; }
.snap-report-controls button { padding-inline: 22px; border-color: #0879d4; color: #fff; background: #0879d4; font-weight: 900; cursor: pointer; }
.snap-report-leaders { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.snap-report-leaders article { display: grid; gap: 4px; min-height: 108px; padding: 17px 18px; border: 1px solid #cee0ed; border-radius: 14px; background: #fff; box-shadow: 0 7px 20px rgba(23, 63, 94, .08); }
.snap-report-leaders article:nth-child(n+3) { border-color: #a9dfc6; background: linear-gradient(150deg, #f7fffb, #e4f8ee); }
.snap-report-leaders span { color: #507087; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.snap-report-leaders strong { overflow: hidden; color: #103f65; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.snap-report-leaders article:nth-child(n+3) strong { color: #087b4e; }
.snap-report-leaders small { color: #5a7184; }
.snap-report-rank-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin: 12px 0; }
.snap-report-rank-controls__fields { display: grid; grid-template-columns: minmax(240px, 1.5fr) minmax(220px, 1fr) minmax(150px, .7fr); gap: 12px; width: min(900px, 100%); }
.snap-report-rank-controls p { margin: 0 0 10px auto; color: #536d82; white-space: nowrap; }
.snap-report-help { margin: 8px 0 12px; }
.snap-report-scroll { border: 1px solid #cbddea; border-radius: 14px; box-shadow: 0 9px 28px rgba(20, 58, 86, .09); }
.snap-report-table { --snap-rank-width: 48px; --snap-player-width: 200px; --snap-snaps-width: 80px; min-width: 1410px; width: 100%; table-layout: fixed; }
.snap-report-table col.snap-col-rank { width: var(--snap-rank-width); }
.snap-report-table col.snap-col-player { width: var(--snap-player-width); }
.snap-report-table col.snap-col-snaps { width: var(--snap-snaps-width); }
.snap-report-table col.snap-col-percent { width: 74px; }
.snap-report-table col.snap-col-touches { width: 72px; }
.snap-report-table col.snap-col-points { width: 88px; }
.snap-report-table col.snap-col-efficiency { width: 84px; }
.snap-report-table col.snap-col-efficiency--regressed { width: 116px; }
.snap-report-table col.snap-col-games { width: 44px; }
.snap-report-table col.snap-col-stat { width: 66px; }
.snap-report-table col.snap-col-share { width: 78px; }
.snap-report-table col.snap-col-rate { width: 92px; }
.snap-report-table td, .snap-report-table th { overflow: hidden; padding: 10px 8px; box-sizing: border-box; white-space: nowrap; text-overflow: ellipsis; }
.snap-report-table > thead > tr > th:first-child,
.snap-report-table > tbody > tr:not(.snap-report-team) > td:first-child { width: var(--snap-rank-width); min-width: var(--snap-rank-width); max-width: var(--snap-rank-width); padding-inline: 6px; text-align: center; }
.snap-report-table > thead > tr > th:nth-child(2),
.snap-report-table > tbody > tr:not(.snap-report-team) > th[scope="row"] { width: var(--snap-player-width); min-width: var(--snap-player-width); max-width: var(--snap-player-width); }
.snap-report-table > thead > tr > th:nth-child(3),
.snap-report-table > tbody > tr:not(.snap-report-team) > td:nth-child(3) { width: var(--snap-snaps-width); min-width: var(--snap-snaps-width); padding-inline: 10px; text-align: center; }
.snap-report-table thead th { color: #fff; background: #203d59; }
.snap-report-table thead th:nth-child(n+7):nth-child(-n+10) { color: #fff; background: #08734c; line-height: 1.15; white-space: normal; }
.snap-report-table thead th:nth-child(n+7):nth-child(-n+10) small { color: #d9f5e9; font-size: 10px; }
.snap-report-table tbody tr:not(.snap-report-team) th[scope="row"] { color: #075d99; background: inherit; text-align: left; }
.snap-report-table tbody tr:not(.snap-report-team) td:nth-child(n+7):nth-child(-n+10) { color: #08734c; background: #effaf5; font-weight: 900; }
.snap-report-table .snap-report-team th { position: static !important; left: auto !important; padding: 11px 14px; color: #123b5d !important; background: #dbeaf6 !important; font-size: 16px; letter-spacing: .04em; text-align: left; }
.snap-report-table.inseason-sticky-first > tbody > tr.snap-report-team:first-child > th:first-child { color: #123b5d !important; background: #dbeaf6 !important; }
.snap-report-lock { max-width: 760px; margin: 28px auto; padding: 38px; border: 1px solid #c8ddeb; border-radius: 20px; background: linear-gradient(145deg, #f8fcff, #edf7fc); box-shadow: 0 12px 32px rgba(20, 58, 86, .1); text-align: center; }
.snap-report-lock span { color: #08734c; font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.snap-report-lock h2 { margin: 8px 0 10px; color: #103f65; font-size: clamp(24px, 4vw, 34px); }
.snap-report-lock p { max-width: 620px; margin: 0 auto 22px; color: #536d82; }
.snap-report-lock a { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 10px 22px; border-radius: 9px; color: #fff; background: #0879d4; font-weight: 900; text-decoration: none; }

@media (max-width: 900px) {
  .snap-report-hero { grid-template-columns: 1fr; padding: 22px; }
  .snap-report-freshness { min-width: 0; }
  .snap-report-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .snap-report-leaders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .snap-report { padding-inline: 10px; }
  .snap-report-controls, .snap-report-leaders { grid-template-columns: 1fr; }
  .snap-report-rank-controls { align-items: stretch; flex-direction: column; }
  .snap-report-rank-controls__fields { grid-template-columns: 1fr; }
  .snap-report-rank-controls p { margin: 0; white-space: normal; }
  .snap-report-table { --snap-rank-width: 42px; --snap-player-width: 132px; --snap-snaps-width: 74px; }
  .snap-position-tabs { gap: 6px; }
  .snap-position-tabs button { min-height: 48px; font-size: 16px; }
}

@media print {
  .snap-position-tabs, .snap-report-controls, .snap-report-rank-controls { display: none; }
  .snap-report-scroll { overflow: visible; box-shadow: none; }
}

@media (max-width: 800px) {
  body.fft-weekly-tool h1.newpagetitle {
    margin: 15px 10px 10px;
  }

  body.fft-weekly-tool #tabnav {
    margin: 0 10px 12px;
  }
}

/* Quality Games consistency report */
.quality-games-report { max-width: 1320px; margin: 0 auto; padding: 18px 22px 38px; color: #102f4d; }
.quality-games-report p { line-height: 1.5; }
.quality-games-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; margin: 12px 0 18px; padding: 28px 30px; border-radius: 20px; color: #fff; background: linear-gradient(125deg, #092f50 0%, #075f91 70%, #078ab4 100%); box-shadow: 0 14px 34px rgba(5, 46, 78, .2); }
.quality-games-hero h1.newpagetitle { margin: 4px 0 8px; color: #fff !important; background: transparent !important; text-shadow: 0 1px 2px rgba(0,20,38,.22); }
.quality-games-hero p { max-width: 820px; margin: 0; padding: 0 !important; border: 0 !important; color: #e5f5ff !important; background: transparent !important; box-shadow: none !important; font-size: 16px; }
.quality-games-eyebrow { color: #8ce9ff; font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.quality-games-window { display: grid; min-width: 175px; gap: 5px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.3); border-radius: 14px; background: rgba(3,26,45,.35); }
.quality-games-window strong { color: #fff; font-size: 20px; }
.quality-games-window span { color: #cfeaff; font-size: 13px; }
.quality-games-tabs { display: grid; grid-template-columns: repeat(8, minmax(64px, 1fr)); gap: 8px; margin: 0 0 16px; }
.quality-games-tabs form { margin: 0; }
.quality-games-tabs button { width: 100%; min-height: 48px; border: 2px solid #bad5e8; border-radius: 11px; color: #174f78; background: #fff; font: 900 16px/1 inherit; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.quality-games-tabs button:hover { border-color: #0786bc; transform: translateY(-1px); }
.quality-games-tabs button.is-active { border-color: #0a78aa; color: #fff; background: linear-gradient(135deg, #075b8e, #0799c3); box-shadow: 0 7px 18px rgba(7,111,159,.22); }
.quality-games-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.quality-games-summary article { display: grid; gap: 4px; min-height: 100px; padding: 16px 18px; border: 1px solid #cee0ed; border-radius: 14px; background: #fff; box-shadow: 0 7px 20px rgba(23,63,94,.08); }
.quality-games-summary span { color: #507087; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.quality-games-summary strong { color: #103f65; font-size: 20px; line-height: 1.15; }
.quality-games-summary small { color: #5a7184; }
.quality-games-summary .quality-games-leader { border-color: #a9dfc6; background: linear-gradient(150deg, #f7fffb, #e4f8ee); }
.quality-games-summary .quality-games-leader strong { color: #087b4e; }
.quality-games-explainer { margin: 0 0 12px; padding: 14px 16px; border-left: 4px solid #0a78aa; border-radius: 0 10px 10px 0; color: #425f76; background: #f2f8fc; }
.quality-games-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin: 12px 0; }
.quality-games-toolbar label { display: grid; width: min(420px, 100%); gap: 6px; color: #173a5d; font-weight: 800; }
.quality-games-toolbar input { min-height: 46px; border: 1px solid #b9cedf; border-radius: 9px; padding: 8px 12px; color: #173a5d; background: #fff; font: inherit; }
.quality-games-toolbar p { margin: 0 0 10px; color: #536d82; }
.quality-games-scroll { border: 1px solid #cbddea; border-radius: 14px; box-shadow: 0 9px 28px rgba(20,58,86,.09); }
.quality-games-table { min-width: 760px; width: 100%; table-layout: fixed; }
.quality-games-table.has-ppr { min-width: 1040px; }
.quality-games-table col.quality-col-rank { width: 62px; }
.quality-games-table col.quality-col-player { width: 210px; }
.quality-games-table col.quality-col-ppr-rate { width: 108px; }
.quality-games-table col.quality-col-ppr-games { width: 118px; }
.quality-games-table col.quality-col-games { width: 68px; }
.quality-games-table col.quality-col-pos { width: 58px; }
.quality-games-table col.quality-col-depth { width: 72px; }
.quality-games-table col.quality-col-team { width: 70px; }
.quality-games-table col.quality-col-age { width: 58px; }
.quality-games-table col.quality-col-quality-games { width: 112px; }
.quality-games-table col.quality-col-game-rate { width: 92px; }
.quality-games-table td, .quality-games-table th { padding: 11px 12px; white-space: nowrap; text-align: center; }
.quality-games-table thead th { color: #fff; background: #203d59; }
.quality-games-table thead .quality-games-ppr-heading { background: #08734c; }
.quality-games-table tbody th[scope="row"] { min-width: 190px; color: #075d99; background: inherit; text-align: left; }
.quality-games-table .quality-games-ppr { color: #08734c; background: #effaf5; font-size: 16px; font-weight: 900; }
.quality-games-empty { padding: 34px 20px; border: 1px solid #d4e2ec; border-radius: 14px; color: #536d82; background: #f6f9fb; text-align: center; }

@media (max-width: 900px) {
  .quality-games-hero { grid-template-columns: 1fr; padding: 22px; }
  .quality-games-window { min-width: 0; }
  .quality-games-tabs { grid-template-columns: repeat(4, minmax(64px, 1fr)); }
  .quality-games-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .quality-games-report { padding-inline: 10px; }
  .quality-games-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .quality-games-tabs button { min-height: 44px; padding: 0; font-size: 14px; }
  .quality-games-summary { grid-template-columns: 1fr; }
  .quality-games-toolbar { align-items: stretch; flex-direction: column; }
  .quality-games-toolbar p { margin: 0; }
}

@media print {
  .quality-games-tabs, .quality-games-toolbar { display: none; }
  .quality-games-scroll { overflow: visible; box-shadow: none; }
}
