/* V584 - Mobile player tables final overrides.
 * Single-source mobile skin for player tables with type-specific column widths.
 * It is loaded after legacy mobile/table CSS and is reinforced by the V584 runtime.
 */
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  html body.player-table-mobile-v584-active {
    --pt-v584-font: 0.68rem;
    --pt-v584-line: 1.18;
    --pt-v584-cell-y: 0.42rem;
    --pt-v584-cell-x: 0.5rem;
    --pt-v584-header-bg: rgba(15, 23, 42, 0.99);
    --pt-v584-fg: #f8fafc;
    --pt-v584-border: rgba(248, 250, 252, 0.18);
    --pt-v584-shadow: 8px 0 14px rgba(2, 6, 23, 0.46);
    --pt-v584-player: clamp(5.25rem, 28vw, 7rem);
    --pt-v584-player-max: clamp(6rem, 32vw, 8rem);
    --pt-v584-status: 4.75rem;
    --pt-v584-teamarea-status: 8rem;
    --pt-v584-rose-status: 4.75rem;
    --pt-v584-listone-status: 5.25rem;
    --pt-v584-role: 5.375rem;
    --pt-v584-team: 3.125rem;
    --pt-v584-small: 3.75rem;
    --pt-v584-market: 5.25rem;
    --pt-v584-listone-roster: 6.25rem;
    --pt-v584-listone-change: 6.25rem;
    --pt-v584-free-agent-fg: #fde68a;
    --pt-v584-default-bg: rgba(15, 23, 42, 0.92);
    --pt-v584-gk-bg: linear-gradient(90deg, rgba(120, 53, 15, 0.92), rgba(146, 64, 14, 0.78));
    --pt-v584-def-bg: linear-gradient(90deg, rgba(20, 83, 45, 0.92), rgba(22, 101, 52, 0.76));
    --pt-v584-mid-bg: linear-gradient(90deg, rgba(12, 74, 110, 0.92), rgba(30, 64, 175, 0.76));
    --pt-v584-fwd-bg: linear-gradient(90deg, rgba(127, 29, 29, 0.92), rgba(153, 27, 27, 0.76));
    --pt-v584-gk-first: linear-gradient(90deg, rgba(245, 158, 11, 0.58), rgba(120, 53, 15, 0.98));
    --pt-v584-def-first: linear-gradient(90deg, rgba(34, 197, 94, 0.54), rgba(20, 83, 45, 0.98));
    --pt-v584-mid-first: linear-gradient(90deg, rgba(56, 189, 248, 0.54), rgba(30, 64, 175, 0.98));
    --pt-v584-fwd-first: linear-gradient(90deg, rgba(248, 113, 113, 0.56), rgba(127, 29, 29, 0.98));
    --pt-v584-gk-line: rgba(245, 158, 11, 0.92);
    --pt-v584-def-line: rgba(34, 197, 94, 0.88);
    --pt-v584-mid-line: rgba(56, 189, 248, 0.88);
    --pt-v584-fwd-line: rgba(248, 113, 113, 0.90);
  }

  html body.player-table-mobile-v584-active [data-player-table-wrap-v584] {
    max-width: 100% !important;
    max-height: min(70vh, 620px) !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    border-radius: 14px !important;
    position: relative !important;
    background: rgba(15, 23, 42, 0.96) !important;
  }

  html body.player-table-mobile-v584-active table[data-player-table-v584] {
    table-layout: fixed !important;
    width: max-content !important;
    min-width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    font-size: var(--pt-v584-font) !important;
  }

  html body.player-table-mobile-v584-active table[data-player-table-v584] th,
  html body.player-table-mobile-v584-active table[data-player-table-v584] td,
  html body.player-table-mobile-v584-active table[data-player-table-v584] th *,
  html body.player-table-mobile-v584-active table[data-player-table-v584] td * {
    color: var(--pt-v584-fg) !important;
    text-shadow: none !important;
  }

  html body.player-table-mobile-v584-active table[data-player-table-v584] th,
  html body.player-table-mobile-v584-active table[data-player-table-v584] td {
    box-sizing: border-box !important;
    display: table-cell !important;
    vertical-align: middle !important;
    text-align: left !important;
    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    padding: var(--pt-v584-cell-y) var(--pt-v584-cell-x) !important;
    line-height: var(--pt-v584-line) !important;
    font-size: var(--pt-v584-font) !important;
    border-color: var(--pt-v584-border) !important;
  }

  html body.player-table-mobile-v584-active table[data-player-table-v584] thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 260 !important;
    background: var(--pt-v584-header-bg) !important;
    color: var(--pt-v584-fg) !important;
    border-bottom: 1px solid var(--pt-v584-border) !important;
    font-weight: 800 !important;
    text-align: left !important;
  }

  html body.player-table-mobile-v584-active table[data-player-table-v584] th:first-child,
  html body.player-table-mobile-v584-active table[data-player-table-v584] td:first-child,
  html body.player-table-mobile-v584-active table[data-player-table-v584] .fpt-v584-col-player {
    position: sticky !important;
    left: 0 !important;
    z-index: 250 !important;
    width: var(--pt-v584-player) !important;
    min-width: var(--pt-v584-player) !important;
    max-width: var(--pt-v584-player-max) !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    text-align: left !important;
    background: var(--pt-v584-default-bg) !important;
    box-shadow: var(--pt-v584-shadow) !important;
    color: var(--pt-v584-fg) !important;
    font-weight: 900 !important;
  }

  html body.player-table-mobile-v584-active table[data-player-table-v584] thead th:first-child,
  html body.player-table-mobile-v584-active table[data-player-table-v584] thead .fpt-v584-col-player {
    top: 0 !important;
    z-index: 290 !important;
    background: var(--pt-v584-header-bg) !important;
    color: var(--pt-v584-fg) !important;
  }

  html body.player-table-mobile-v584-active table[data-player-table-v584] .fpt-v584-col-status,
  html body.player-table-mobile-v584-active table[data-player-table-v584] .roster-col-status,
  html body.player-table-mobile-v584-active table[data-player-table-v584] .team-profile-status-cell,
  html body.player-table-mobile-v584-active table[data-player-table-v584] .listone-col-status {
    width: var(--pt-v584-status) !important;
    min-width: var(--pt-v584-status) !important;
    max-width: var(--pt-v584-status) !important;
    overflow-wrap: anywhere !important;
    text-align: left !important;
  }

  html body.player-table-mobile-v584-active table[data-player-table-v584="teamarea"] .fpt-v584-col-status,
  html body.player-table-mobile-v584-active table[data-player-table-v584="teamarea"] .roster-col-status,
  html body.player-table-mobile-v584-active table[data-player-table-v584="teamarea"] .team-profile-status-cell {
    width: var(--pt-v584-teamarea-status) !important;
    min-width: var(--pt-v584-teamarea-status) !important;
    max-width: var(--pt-v584-teamarea-status) !important;
  }

  html body.player-table-mobile-v584-active table[data-player-table-v584="rose"] .fpt-v584-col-status,
  html body.player-table-mobile-v584-active table[data-player-table-v584="rose"] .roster-col-status {
    width: var(--pt-v584-rose-status) !important;
    min-width: var(--pt-v584-rose-status) !important;
    max-width: var(--pt-v584-rose-status) !important;
  }

  html body.player-table-mobile-v584-active table[data-player-table-v584="listone"] .fpt-v584-col-status,
  html body.player-table-mobile-v584-active table[data-player-table-v584="listone"] .listone-col-status {
    width: var(--pt-v584-listone-status) !important;
    min-width: var(--pt-v584-listone-status) !important;
    max-width: var(--pt-v584-listone-status) !important;
  }

  html body.player-table-mobile-v584-active table[data-player-table-v584] .status,
  html body.player-table-mobile-v584-active table[data-player-table-v584] .status-badge,
  html body.player-table-mobile-v584-active table[data-player-table-v584] .player-status,
  html body.player-table-mobile-v584-active table[data-player-table-v584] .mini-badge,
  html body.player-table-mobile-v584-active table[data-player-table-v584] [class*="status-"] {
    min-height: 0 !important;
    padding: 0.16rem 0.34rem !important;
    border-radius: 999px !important;
    border: 1px solid rgba(248, 250, 252, 0.24) !important;
    background: rgba(15, 23, 42, 0.48) !important;
    color: var(--pt-v584-fg) !important;
    font-size: 0.62rem !important;
    line-height: 1.08 !important;
    font-weight: 900 !important;
    letter-spacing: 0.02em !important;
    text-align: left !important;
    white-space: normal !important;
  }

  html body.player-table-mobile-v584-active table[data-player-table-v584] .fpt-v584-col-role,
  html body.player-table-mobile-v584-active table[data-player-table-v584] .roster-col-role,
  html body.player-table-mobile-v584-active table[data-player-table-v584] .team-profile-role-cell,
  html body.player-table-mobile-v584-active table[data-player-table-v584] .listone-col-classicRole {
    width: var(--pt-v584-role) !important;
    min-width: var(--pt-v584-role) !important;
    max-width: var(--pt-v584-role) !important;
    text-align: left !important;
  }

  html body.player-table-mobile-v584-active table[data-player-table-v584] .fpt-v584-col-team,
  html body.player-table-mobile-v584-active table[data-player-table-v584] .roster-col-team,
  html body.player-table-mobile-v584-active table[data-player-table-v584] .team-profile-team-cell,
  html body.player-table-mobile-v584-active table[data-player-table-v584] .listone-col-realTeam {
    width: var(--pt-v584-team) !important;
    min-width: var(--pt-v584-team) !important;
    max-width: var(--pt-v584-team) !important;
    text-align: left !important;
  }

  html body.player-table-mobile-v584-active table[data-player-table-v584] .fpt-v584-col-cost,
  html body.player-table-mobile-v584-active table[data-player-table-v584] .fpt-v584-col-qta,
  html body.player-table-mobile-v584-active table[data-player-table-v584] .roster-col-cost,
  html body.player-table-mobile-v584-active table[data-player-table-v584] .roster-col-qta,
  html body.player-table-mobile-v584-active table[data-player-table-v584] .team-profile-cost-cell,
  html body.player-table-mobile-v584-active table[data-player-table-v584] .team-profile-qta-cell,
  html body.player-table-mobile-v584-active table[data-player-table-v584] .listone-col-quotationCurrent,
  html body.player-table-mobile-v584-active table[data-player-table-v584] .listone-col-rosterCost,
  html body.player-table-mobile-v584-active table[data-player-table-v584] .listone-col-fvm {
    width: var(--pt-v584-small) !important;
    min-width: var(--pt-v584-small) !important;
    max-width: var(--pt-v584-small) !important;
    text-align: left !important;
  }

  html body.player-table-mobile-v584-active table[data-player-table-v584] .fpt-v584-col-market,
  html body.player-table-mobile-v584-active table[data-player-table-v584] .roster-col-market,
  html body.player-table-mobile-v584-active table[data-player-table-v584] .team-profile-market-cell {
    width: var(--pt-v584-market) !important;
    min-width: var(--pt-v584-market) !important;
    max-width: var(--pt-v584-market) !important;
  }

  html body.player-table-mobile-v584-active table[data-player-table-v584="listone"] .fpt-v584-col-roster,
  html body.player-table-mobile-v584-active table[data-player-table-v584="listone"] .listone-col-fantasyRoster {
    width: var(--pt-v584-listone-roster) !important;
    min-width: var(--pt-v584-listone-roster) !important;
    max-width: var(--pt-v584-listone-roster) !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  html body.player-table-mobile-v584-active table[data-player-table-v584="listone"] .fpt-v584-col-change,
  html body.player-table-mobile-v584-active table[data-player-table-v584="listone"] .listone-col-historyChange {
    width: var(--pt-v584-listone-change) !important;
    min-width: var(--pt-v584-listone-change) !important;
    max-width: var(--pt-v584-listone-change) !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  html body.player-table-mobile-v584-active table[data-player-table-v584] tbody tr[data-fpt-v584-role="p"] > * { background: var(--pt-v584-gk-bg) !important; }
  html body.player-table-mobile-v584-active table[data-player-table-v584] tbody tr[data-fpt-v584-role="d"] > * { background: var(--pt-v584-def-bg) !important; }
  html body.player-table-mobile-v584-active table[data-player-table-v584] tbody tr[data-fpt-v584-role="c"] > * { background: var(--pt-v584-mid-bg) !important; }
  html body.player-table-mobile-v584-active table[data-player-table-v584] tbody tr[data-fpt-v584-role="a"] > * { background: var(--pt-v584-fwd-bg) !important; }
  html body.player-table-mobile-v584-active table[data-player-table-v584] tbody tr[data-fpt-v584-role="p"] > *:first-child { background: var(--pt-v584-gk-first) !important; box-shadow: inset 4px 0 var(--pt-v584-gk-line), var(--pt-v584-shadow) !important; }
  html body.player-table-mobile-v584-active table[data-player-table-v584] tbody tr[data-fpt-v584-role="d"] > *:first-child { background: var(--pt-v584-def-first) !important; box-shadow: inset 4px 0 var(--pt-v584-def-line), var(--pt-v584-shadow) !important; }
  html body.player-table-mobile-v584-active table[data-player-table-v584] tbody tr[data-fpt-v584-role="c"] > *:first-child { background: var(--pt-v584-mid-first) !important; box-shadow: inset 4px 0 var(--pt-v584-mid-line), var(--pt-v584-shadow) !important; }
  html body.player-table-mobile-v584-active table[data-player-table-v584] tbody tr[data-fpt-v584-role="a"] > *:first-child { background: var(--pt-v584-fwd-first) !important; box-shadow: inset 4px 0 var(--pt-v584-fwd-line), var(--pt-v584-shadow) !important; }

  html body.player-table-mobile-v584-active table[data-player-table-v584] td:first-child a,
  html body.player-table-mobile-v584-active table[data-player-table-v584] .fpt-v584-col-player a,
  html body.player-table-mobile-v584-active table[data-player-table-v584] td:first-child strong,
  html body.player-table-mobile-v584-active table[data-player-table-v584] .fpt-v584-col-player strong,
  html body.player-table-mobile-v584-active table[data-player-table-v584] td:first-child span,
  html body.player-table-mobile-v584-active table[data-player-table-v584] .fpt-v584-col-player span {
    display: inline !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    line-height: inherit !important;
    color: inherit !important;
    font-size: inherit !important;
  }

  html body.player-table-mobile-v584-active table[data-player-table-v584="listone"] .fpt-v584-free-agent,
  html body.player-table-mobile-v584-active table[data-player-table-v584="listone"] .fpt-v584-free-agent *,
  html body.player-table-mobile-v584-active table[data-player-table-v584="listone"] .listone-col-fantasyRoster .text-warning {
    color: var(--pt-v584-free-agent-fg) !important;
    font-weight: 900 !important;
  }
}
