/* Player props (templates/markets/_props.html, props.js): Kalshi and Novig
   side by side, one row per player and stat. Terminal Light tokens; the
   exchange colors match the Markets hero (Kalshi green, Novig ink). */
.props { --props-kalshi: #00a878; --props-novig: var(--tl-ink); margin: 0 0 24px; }
html:not(.si-light) .props { --props-kalshi: #00ce8e; }
.props [hidden] { display: none !important; }
.props.is-loading .props-list, .props.is-loading [data-props-list] { opacity: 0.55; transition: opacity 0.15s; }

/* Toolbar: search, game, exchange, freshness. */
.props-bar { margin-bottom: 10px; }
.props-search { position: relative; display: flex; align-items: center; flex: 0 1 280px; min-width: 180px; margin: 0; }
.props-search svg { position: absolute; left: 10px; color: var(--tl-ink-50); pointer-events: none; }
.props .props-search input { width: 100% !important; height: 32px !important; margin: 0 !important; padding: 0 10px 0 30px !important; border: 1px solid var(--tl-line-10) !important; border-radius: var(--tl-r-btn); background: var(--tl-control) !important; color: var(--tl-ink) !important; font-size: 13px !important; }
.props-select { display: flex; align-items: center; gap: 0; height: 32px; margin: 0; padding: 0 0 0 10px; border: 1px solid var(--tl-line-10); border-radius: var(--tl-r-btn); background: var(--tl-control); }
.props-select-k { font-size: 12px; color: var(--tl-ink-55); }
.props .props-select select { width: auto !important; max-width: 260px; height: 30px !important; margin: 0 !important; padding: 0 28px 0 8px !important; border: 0 !important; background-color: transparent !important; color: var(--tl-ink) !important; font-size: 12.5px !important; font-weight: 600; box-shadow: none !important; }
.props-bar .tl-seg img { display: block; border-radius: 3px; }
.props-status { font: 11px var(--tl-mono); color: var(--tl-ink-50); white-space: nowrap; }
/* Its own style: the game page doesn't load markets.css (.mk-tool-btn). */
.props .props-refresh { display: inline-flex; align-items: center; justify-content: center; width: 32px !important; height: 32px; margin: 0 !important; padding: 0 !important; border: 1px solid var(--tl-line-10) !important; border-radius: var(--tl-r-btn); background: var(--tl-control) !important; color: var(--tl-ink-60) !important; box-shadow: none !important; cursor: pointer; }
.props .props-refresh:hover { color: var(--tl-ink) !important; }

/* Stat tabs: one scrolling row. */
.props-stats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 14px; padding-bottom: 2px; }
.props-stats::-webkit-scrollbar { display: none; }
.props .props-stat-tab { flex: none; width: auto; height: 28px; margin: 0; padding: 0 12px; border: 1px solid var(--tl-line-10); border-radius: 999px; background: transparent; color: var(--tl-ink-60); font-size: 12.5px; font-weight: 500; white-space: nowrap; box-shadow: none; cursor: pointer; }
.props .props-stat-tab:hover { color: var(--tl-ink); border-color: var(--tl-line-20, var(--tl-line-12)); }
.props .props-stat-tab[aria-selected="true"] { background: var(--tl-ink); border-color: var(--tl-ink); color: var(--tl-on-ink); }

/* Game cards. */
.props-list { display: flex; flex-direction: column; gap: 14px; }
.props-matchup { display: inline-flex; align-items: center; gap: 8px; }
.props-logo { display: block; object-fit: contain; background: transparent; flex: none; }
/* Beat lazy-load.css's dark fill on img[loading=lazy] (it shows behind crests). */
.props img.props-logo, .props img[loading="lazy"] { background-color: transparent !important; }

/* The table. */
.props-scroll { overflow-x: auto; }
.props-table { width: 100%; margin: 0; border-collapse: collapse; font-size: 13px; }
.props-table th, .props-table td { padding: 0 10px; border: 0; background: transparent; text-align: right; white-space: nowrap; }
.props-table thead th { height: 26px; font: 500 10.5px var(--tl-mono); letter-spacing: 0.4px; text-transform: uppercase; color: var(--tl-ink-50); }
.props-th-group th { height: 30px; padding-top: 6px; }
.props-table .props-th-ex { text-align: center; color: var(--tl-ink-70, var(--tl-ink-60)); }
.props-th-ex img { display: inline-block; vertical-align: -2px; margin-right: 6px; border-radius: 3px; }
.props-table th:first-child, .props-table td:first-child { padding-left: 18px; text-align: left; }
.props-table th:last-child, .props-table td:last-child { padding-right: 14px; }
.props-table .props-th-player, .props-table .props-th-stat, .props-table .props-stat { text-align: left; }
.props-table thead tr:last-child th { border-bottom: 1px solid var(--tl-line-06); }
.props-row { cursor: pointer; }
.props-row td { height: 46px; border-top: 1px solid var(--tl-line-05); }
.props-row:first-child td { border-top: 0; }
.props-row:hover td, .props-row.is-open td { background: var(--tl-fill-025, var(--tl-fill-03)); }
.props-row:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--tl-focus, var(--tl-ink-50)); }
.props-who { max-width: 260px; }
.props-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.props-id-text { min-width: 0; }
.props-name { display: block; overflow: hidden; text-overflow: ellipsis; font-weight: 600; color: var(--tl-ink); }
.props-sub { display: block; margin-top: 1px; font: 10.5px var(--tl-mono); color: var(--tl-ink-50); }
.props-stat { color: var(--tl-ink-60); }
.props-line { font: 600 12.5px var(--tl-mono); color: var(--tl-ink); }
.props-alts { margin-left: 6px; font: 500 10px var(--tl-mono); color: var(--tl-ink-50); }
.props-px { width: 64px; font: 500 13px var(--tl-mono); font-variant-numeric: tabular-nums; color: var(--tl-ink); }
.props-px.is-empty { color: var(--tl-ink-40, var(--tl-ink-50)); }
/* The cheaper side across the exchanges. */
.props-px.is-best { color: var(--tl-up); font-weight: 700; }
.props-px.is-best::before { content: ''; display: inline-block; width: 5px; height: 5px; margin: 0 6px 2px 0; border-radius: 50%; background: currentColor; }
.props-vol { font: 12px var(--tl-mono); color: var(--tl-ink-55); }
.props-x { width: 18px; color: var(--tl-ink-50); }
.props-x svg { transition: transform 0.15s var(--tl-ease, ease); }
.props-row.is-open .props-x svg { transform: rotate(180deg); }

/* The open row. */
.props-detail td { padding: 0 !important; text-align: left; border-top: 1px solid var(--tl-line-05); background: var(--tl-fill-025, var(--tl-fill-03)); }
.props-detail-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px; padding: 14px 18px 18px; white-space: normal; }
.props-k { display: block; margin-bottom: 8px; font: 500 10.5px var(--tl-mono); letter-spacing: 0.4px; text-transform: uppercase; color: var(--tl-ink-50); }
.props-ladder-t { width: 100%; margin: 0; border-collapse: collapse; font-size: 12.5px; }
.props-ladder-t th, .props-ladder-t td { padding: 0 8px; height: 30px; border: 0; border-bottom: 1px solid var(--tl-line-05); background: transparent; text-align: right; white-space: nowrap; }
.props-ladder-t th { height: 26px; font: 500 10px var(--tl-mono); text-transform: uppercase; color: var(--tl-ink-50); }
.props-ladder-t th:first-child, .props-ladder-t td:first-child { padding-left: 0; text-align: left; }
.props-ladder-t tr.is-main td { background: var(--tl-fill-04); }
.props-ladder-t .props-px { width: auto; font-size: 12.5px; }
.props-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.props-plot { position: relative; min-height: 96px; font-size: 12px; color: var(--tl-ink-50); }
.props-plot svg { display: block; width: 100%; height: 96px; overflow: visible; }
.props-path { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.props-path.is-kalshi { stroke: var(--props-kalshi); }
.props-path.is-novig { stroke: var(--props-novig); }
.props-plot-key { display: flex; gap: 14px; margin-top: 8px; font: 11px var(--tl-mono); color: var(--tl-ink-60); }
.props-plot-key span { display: inline-flex; align-items: center; gap: 6px; }
.props-plot-key i { width: 14px; height: 2px; border-radius: 1px; background: var(--props-novig); }
.props-plot-key .is-kalshi i { background: var(--props-kalshi); }
.props-links { display: flex; flex-direction: column; gap: 6px; }
.props-link-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.props-rules { flex: 1; min-width: 0; margin: 0; padding: 0; border: 0; }
.props-rules summary { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--tl-ink-70, var(--tl-ink)); cursor: pointer; list-style: none; }
.props-rules summary::-webkit-details-marker { display: none; }
.props-rules summary::after { content: '+'; margin-left: 2px; color: var(--tl-ink-50); }
.props-rules[open] summary::after { content: '−'; }
.props-rules img { border-radius: 3px; }
.props-rules p { max-height: 200px; overflow: auto; margin: 8px 0 4px; font-size: 12px; line-height: 1.55; white-space: pre-wrap; color: var(--tl-ink-60); }
.props-out { white-space: nowrap; }

.props-empty { padding: 36px 18px; text-align: center; font-size: 13px; color: var(--tl-ink-55); }
.props-list > .props-empty { border: 1px dashed var(--tl-line-10); border-radius: var(--tl-r-card, 12px); }
.props-more { display: block; margin: 16px auto 0; }
.props-note { margin: 12px 2px 0; font-size: 11.5px; line-height: 1.5; color: var(--tl-ink-50); }
.props-note b { color: var(--tl-up); font-weight: 600; }

/* Markets Overview preview: a strip of prop cards, as the games strip's
   tiles (markets.css .mk-mkt-strip, .mk-mkt-tile). */
.props.is-preview { margin-top: 14px; }
.props.is-preview .props-note { margin-top: 8px; }
.props-strip-card { overflow: hidden; }
.props-strip:empty { min-height: 108px; }
.props-strip > .props-empty { flex: 1; }
.props .props-tile { display: flex; flex-direction: column; align-items: stretch; gap: 8px; width: 230px; min-width: 230px; color: var(--tl-ink); text-decoration: none; }
.props-tile-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.props-tile-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.props-tile-who .props-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.props-tile .props-name { font-size: 13.5px; }
.props-tile .props-sub { flex: none; margin: 0; }
.props-tile-bet { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--tl-ink-60); }
.props-tile-stat { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.props-tile-px { display: flex; gap: 14px; padding-top: 9px; border-top: 1px solid var(--tl-line-06); }
.props-tile-ex { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--tl-ink-60); }
.props-tile-ex img { border-radius: 4px; }
.props-tile-ex b { font: 600 12px var(--tl-mono); color: var(--tl-ink); }
.props-tile-ex.is-best b { color: var(--tl-up); }

@media (max-width: 860px) {
  .props-detail-in { grid-template-columns: minmax(0, 1fr); }
  .props-search { flex-basis: 100%; }
  .props-status { flex-basis: 100%; order: 9; }
}
@media (max-width: 640px) {
  .props-th-vol, .props-vol, .props-table .props-th-stat, .props-stat { display: none; }
  .props-table th, .props-table td { padding: 0 6px; }
  .props-table th:first-child, .props-table td:first-child { padding-left: 12px; position: sticky; left: 0; z-index: 1; background: var(--tl-card); }
  .props-px { width: 48px; font-size: 12.5px; }
  .props-who { max-width: 140px; }
}
@media (prefers-reduced-motion: reduce) { .props-x svg { transition: none; } }
