/* Additions on top of the original styles.css */

/* Tables scroll inside a window-height box, so the sideways scrollbar is always on screen
   (not 100 rows down), with the header row and player column pinned while scrolling. */
.tablewrap {
  max-height: calc(100vh - 110px);
  max-height: calc(100dvh - 110px);
  overscroll-behavior-x: contain;
}
.tablewrap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8f9f8;
  box-shadow: 0 1px 0 #edf0ee;
}
.tablewrap td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fff;
  box-shadow: 1px 0 0 #edf0ee;
}
.tablewrap thead th:first-child { left: 0; z-index: 3; }
.logtable td:first-child { position: static; box-shadow: none; }
.logtable thead th:first-child { left: auto; }

/* SmartProp brand in the header */
a.brand { text-decoration: none; color: inherit; }
.brand .wordmark { font-size: 25px; font-weight: 800; letter-spacing: -.6px; color: #1f3a5f; line-height: 1; }
.brand .wordmark span { color: #087e65; }
.brand .brand-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #5f7d72;
  border: 1px solid #dce8e4;
  border-radius: 4px;
  padding: 4px 7px;
  margin-left: 2px;
}
@media (max-width: 700px) {
  .brand .wordmark { font-size: 22px; }
}

/* Sport switcher in the header */
.sportnav { display: flex; gap: 4px; margin-right: auto; margin-left: 18px; }
.sportnav a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
  color: #5f6f66;
  text-decoration: none;
  padding: 7px 11px;
  border-radius: 7px;
}
.sportnav a:hover { background: #f1f5f3; color: #1c2420; }
.sportnav a.active { background: #e8f3ef; color: #087e65; }
.tabs button:disabled { cursor: default; opacity: .55; }
@media (max-width: 700px) {
  /* More specific than the phone header rule further down, which keeps headers on one line */
  main header { flex-wrap: wrap; row-gap: 8px; }
  .sportnav { order: 3; width: 100%; margin: 0; justify-content: space-between; }
  .sportnav a { flex: 1; text-align: center; padding: 8px 0; background: #f6f8f7; }
}

em.lg { font-style: normal; }
.filters-toggle { display: none; }

/* ---- Desktop: slimmer player/prop columns and padding so every column, odds included, fits a laptop screen ---- */
@media (min-width: 701px) {
  table.cards { min-width: 0; }
  table.cards th, table.cards td { padding-left: 10px; padding-right: 10px; }
  table.cards td.c-player { min-width: 165px; max-width: 200px; }
  table.cards td.c-player .player { white-space: normal; gap: 10px; }
  table.cards td.c-player .player strong { line-height: 1.25; }
  table.cards td.c-prop { min-width: 150px; }
  table.cards td.c-price { min-width: 96px; }
}
/* Narrower laptops: drop the "Has hit … for" wording; the column header already says which window */
@media (min-width: 701px) and (max-width: 1340px) {
  table.cards .lg { display: none; }
}
/* Small windows: let headers wrap and trim side margins */
@media (min-width: 701px) and (max-width: 1240px) {
  main { padding-left: 20px; padding-right: 20px; }
  table.cards thead th { white-space: normal; line-height: 1.35; }
  table.cards th, table.cards td { padding-left: 8px; padding-right: 8px; }
  table.cards td.c-prop { min-width: 135px; }
  table.cards td.rate { min-width: 110px; }
}

/* ---- Phones: cards instead of a wide table, filters in a drawer, 16px fields (stops iOS zoom) ---- */
@media (max-width: 700px) {
  main { padding: 0 14px 20px; }
  header { height: auto; padding: 10px 0; flex-wrap: nowrap; }
  .brand > span:first-of-type, header .brand .chevron { display: none; }
  .actions { gap: 6px; }
  .actions button, header a.button { padding: 8px 10px; font-size: 12px; white-space: nowrap; }

  .intro { padding: 14px 0 10px; }
  main:not(.seo-page) .intro .eyebrow,
  main:not(.seo-page) .intro > div > p { display: none; }
  h1 { font-size: 22px; margin: 0 0 6px; }
  .update { text-align: left; max-width: none; }
  .update small:last-child { display: none; }
  .sample-note { display: none; }
  .banner { font-size: 12px; padding: 10px 12px; }

  .filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 12px; }
  .filters > .field { display: none; flex: 1 1 calc(50% - 5px); min-width: 0; }
  .filters > .field:first-child { display: block; flex: 1 1 0; }
  .filters > .field:first-child > span { display: none; }
  .filters.open > .field { display: block; }
  .filters-toggle { display: block; flex: 0 0 auto; min-height: 46px; align-self: flex-end; }
  .filters-toggle.on { border-color: #087e65; color: #087e65; }
  .field input, .field select, .tablemeta select, .prop input { font-size: 16px; }
  .prop input { width: 58px; }

  .tablewrap { border: 0; border-radius: 0; overflow: visible; max-height: none; }
  table.cards, table.cards tbody { display: block; width: 100%; min-width: 0; }
  table.cards thead { display: none; }
  table.cards tr {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    border: 1px solid #dfe4e1;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    background: #fff;
  }
  table.cards td {
    display: block;
    height: auto;
    padding: 0;
    border: 0;
    min-width: 0 !important;
    position: static !important;
    box-shadow: none !important;
  }
  table.cards td.c-player { grid-column: 1 / 4; }
  table.cards td.c-price { grid-column: 4; grid-row: 1; text-align: right; min-width: 0; }
  table.cards td.c-price small { font-size: 11px; line-height: 1.3; }
  table.cards td.c-prop { grid-column: 1 / -1; font-size: 15px; padding: 2px 0 4px; }
  table.cards.noplayer td.c-prop { grid-column: 1 / 4; grid-row: 1; }
  table.cards td.rate { border-radius: 8px; padding: 6px 2px 7px; text-align: center; }
  table.cards td.rate::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .4px;
    color: #6b7a71;
    text-transform: uppercase;
  }
  table.cards td.rate > div { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; }
  table.cards td.rate b { min-width: 0; padding: 3px 6px; font-size: 13px; }
  table.cards td.rate small { display: block; font-size: 10px; margin-top: 2px; }
  table.cards .lg { display: none; }
  table.cards .player { white-space: normal; font-size: 15px; gap: 10px; }
  table.cards .player small { font-size: 11px; }
}

.rg-note {
  color: #8e9a92;
  font-size: 11px;
  margin: 0 0 28px;
}
.rg-note a { color: inherit; }

.empty .retry { margin-top: 6px; }

/* ---- Static SEO pages (/nfl/...) and the homepage links block ---- */
a.button {
  display: inline-block;
  background: #fff;
  border: 1px solid #dce0df;
  border-radius: 7px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 13px;
  color: #1c2420;
  text-decoration: none;
}
a.button:hover { border-color: #087e65; color: #087e65; }
.seo-page header a.brand { text-decoration: none; color: inherit; }
.crumbs { font-size: 12px; color: #8e9a92; padding: 14px 0 0; }
.crumbs a { color: #5f6f66; }
.crumbs .chevron { margin: 0 4px; }
.seo-page h2, .seo-links h2 { font-size: 18px; margin: 34px 0 14px; }
.seo-page h2 a { color: inherit; }
.seo-page h3 { font-size: 14px; margin: 18px 0 8px; }
.seo-page .intro p { max-width: 720px; line-height: 1.55; }
.facts { margin: 10px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.6; }
.seo-actions { margin: 4px 0 8px; }
.seo-note { color: #6b7a71; font-size: 12px; line-height: 1.6; max-width: 820px; margin-top: 30px; }
.empty-note { color: #6b7a71; }
.seo-page td .player { display: flex; align-items: center; gap: 10px; }
.seo-page td .player a { color: inherit; }
.seo-page td .player small { display: block; color: #8e9a92; }
.logtable td { height: auto; padding: 10px 15px; }
.logtable td:first-child, .logtable th:first-child { min-width: 60px; }
.logtable td:nth-child(2) { min-width: 110px; }
.linkgrid, .linklist, .gamelist { list-style: none; padding: 0; margin: 0; }
.linkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 18px; font-size: 13px; }
.linklist li { padding: 3px 0; font-size: 13px; }
.linklist small { color: #8e9a92; }
.gamelist { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.gamelist a { display: block; border: 1px solid #dfe4e1; border-radius: 10px; padding: 12px 14px; text-decoration: none; color: #1c2420; }
.gamelist a:hover { border-color: #087e65; }
.gamelist small { display: block; color: #8e9a92; margin-top: 3px; font-size: 11px; }
.teamcols { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 24px; }
.policy { max-width: 760px; font-size: 14px; line-height: 1.65; }
.policy ul { padding-left: 20px; color: #4d5b53; }
.policy li { margin: 4px 0; }
.seo-links { border-top: 1px solid #edf0ee; margin-top: 10px; padding-top: 6px; font-size: 13px; }
