/* round224 (Jared): roster player cells as rounded cards with a gutter + rounded section bars.
   Scoped to the Team roster only (.rcards wrapper in team.html) so other .rtab tables (Players results,
   standings) are untouched. Loaded after every theme sheet. Themes: Day = html[data-theme=light];
   Night / T3 / DP / Heritage = html[data-skin=night|t3|dp|heritage]. Hand-written, not generated. */
/* round224b (Jared): phone / app layout only; desktop (>=1100px, desktop.css) keeps the pre-R224 roster exactly. */
@media (max-width:1099.98px){
.rcards.rtab-wrap.card{background:transparent!important;box-shadow:none!important;border:0!important;overflow:visible!important;margin-left:8px!important;margin-right:8px!important}
.rcards .rtab{border-collapse:separate!important;border-spacing:0 6px!important}
/* column labels: quiet caption row above the cards */
.rcards .rtab thead th{background:transparent!important;border:0!important;color:var(--muted)!important;font-size:10px!important;letter-spacing:.6px!important;padding:2px 2px 0!important}
.rcards .rtab thead th.num{color:var(--brand,#2563eb)!important}
/* section bars */
.rcards .rtab tr.rsec td{border:0!important;border-radius:12px!important;padding:10px 12px!important;font-size:11.5px!important;background:var(--appbar,#1b2a4a)!important;color:#fff!important;box-shadow:0 2px 6px rgba(15,23,42,.18)}
.rcards .rtab tr.rsec td .rsec-r,.rcards .rtab tr.rsec td .rsec-r b{color:rgba(255,255,255,.88)!important}
.rcards .rtab tr.rsec td::before{content:"★";margin-right:6px;opacity:.85}
.rcards .rtab tr.rsec.ir td{background:#7f1d1d!important}.rcards .rtab tr.rsec.ir td::before{content:"✚"}
.rcards .rtab tr.rsec.ps td{background:#4c1d95!important}.rcards .rtab tr.rsec.ps td::before{content:"◆"}
/* player cards: first cell rounds left, last visible cell (PPG in Stats view, Salary/Years in Cap view) rounds right */
.rcards .rtab tr.rrow>td{background:var(--card,#fff);border:0!important;padding-top:9px!important;padding-bottom:9px!important}
.rcards .rtab tr.rrow>td:first-child{border-radius:12px 0 0 12px;padding-left:6px!important}
.rcards .rtab tr.rrow>td:last-child,.rcards .rtab tr>td.rs-n3,.rcards .rtab tr>td.rs-cap{border-radius:0 12px 12px 0;padding-right:10px!important}
.rcards .rtab .spill{border:0!important;border-radius:8px!important;padding:5px 3px!important;min-width:28px!important}
.rcards .rtab .spill.sp-QB{background:rgba(239,68,68,.14)!important;color:#b42318!important}
.rcards .rtab .spill.sp-RB{background:rgba(34,197,94,.16)!important;color:#15803d!important}
.rcards .rtab .spill.sp-WR{background:rgba(59,130,246,.15)!important;color:#1d4ed8!important}
.rcards .rtab .spill.sp-TE{background:rgba(245,158,11,.18)!important;color:#b45309!important}
.rcards .rtab .spill.sp-K,.rcards .rtab .spill.sp-DEF{background:rgba(139,92,246,.15)!important;color:#6d28d9!important}
.rcards .rtab .rshot{box-shadow:0 0 0 2px rgba(255,255,255,.9),0 1px 3px rgba(0,0,0,.18)}
.rcards .rtab .rs-g{font-size:11px;margin-top:2px}
/* compact fixed columns; names may wrap to 2 lines instead of truncating */
.rcards .rtab col.c-slot{width:38px!important}.rcards .rtab col.c-pic{width:32px!important}.rcards .rtab col.c-act{width:36px!important}
.rcards .rtab col.c-n{width:35px!important}.rcards .rtab col.c-n:last-child{width:38px!important}
.rcards .rtab td.rs-pl{overflow:hidden}
.rcards .rtab .rs-n{white-space:normal!important;overflow:visible!important;display:block!important;line-height:1.2}
.rcards .rtab .rs-n .pname{font-weight:800;white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
.rcards .rtab .rs-n .jn{font-size:10.5px;white-space:nowrap;margin-left:3px!important}
.rcards .rtab tr.rrow:not(.rs-irrow):not(.rs-xtra) .rs-n>*{margin-left:0!important}
.rcards .rtab .rs-n .badge,.rcards .rtab .rs-n .inj{margin-left:3px}
/* Cap view: one line each, slightly smaller, so it fits inside the narrower card so it never runs into the rounded edge */
.rcards .rtab td.rs-cap{white-space:nowrap!important;overflow:hidden;padding-right:8px!important}
.rcards .rtab td.rs-cap .cv-sal{font-size:14px}
.rcards .rtab td.rs-cap .cv-rl{font-size:9px;letter-spacing:-.1px}
.rcards .rtab td.rs-cap .cv-yrs{font-size:10.5px;letter-spacing:-.1px}
html.rv-cap .rcards .rtab col.c-n,html.rv-cap .rcards .rtab col.c-n:last-child{width:42px!important}
/* empty slots (dark skins): dashed outline */
.rcards .rtab tr.empty>td{background:transparent!important;border-top:1px dashed rgba(127,140,160,.5)!important;border-bottom:1px dashed rgba(127,140,160,.5)!important}
.rcards .rtab tr.empty>td:first-child{border-left:1px dashed rgba(127,140,160,.5)!important}
.rcards .rtab tr.empty>td:last-child,.rcards .rtab tr.empty>td.rs-n3,.rcards .rtab tr.empty>td.rs-cap{border-right:1px dashed rgba(127,140,160,.5)!important}

/* ---- Day ---- */
html[data-theme=light] body.tpage .rcards .rtab thead th{color:#1f2937!important}
html[data-theme=light] body.tpage .rcards .rtab tr.rrow>td{background:#fff}
html[data-theme=light] .rcards .rtab tr.rrow{filter:drop-shadow(0 1px 1.5px rgba(15,23,42,.14))}
html[data-theme=light] .rcards .rtab tr.empty>td{background:#fff!important;border-top:1px solid rgba(15,23,42,.08)!important;border-bottom:1px solid rgba(15,23,42,.08)!important}
html[data-theme=light] .rcards .rtab tr.empty>td:first-child{border-left:1px solid rgba(15,23,42,.08)!important}
html[data-theme=light] .rcards .rtab tr.empty>td:last-child,html[data-theme=light] .rcards .rtab tr.empty>td.rs-n3,html[data-theme=light] .rcards .rtab tr.empty>td.rs-cap{border-right:1px solid rgba(15,23,42,.08)!important}

/* ---- Night / T3 / DP (dark skins) ---- */
:is(html[data-skin=night],html[data-skin=t3],html[data-skin=dp],html[data-skin=heritage]) .rcards .rtab tr.rrow>td{background:#23252b!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.10),inset 0 -1px 0 rgba(255,255,255,.10)}
:is(html[data-skin=night],html[data-skin=t3],html[data-skin=dp],html[data-skin=heritage]) .rcards .rtab tr.empty>td{background:transparent!important;box-shadow:none}
:is(html[data-skin=night],html[data-skin=t3],html[data-skin=dp],html[data-skin=heritage]) .rcards .rtab .rshot{box-shadow:0 0 0 2px rgba(255,255,255,.18)}
:is(html[data-skin=night],html[data-skin=t3],html[data-skin=dp],html[data-skin=heritage]) .rcards .rtab thead th{color:#9aa3b2!important}
:is(html[data-skin=night],html[data-skin=t3],html[data-skin=dp],html[data-skin=heritage]) .rcards .rtab .spill.sp-QB{color:#fca5a5!important}
html[data-skin=night] .rcards .rtab .spill.sp-RB{color:#a8b6ff!important}
:is(html[data-skin=t3],html[data-skin=dp],html[data-skin=heritage]) .rcards .rtab .spill.sp-RB{color:#86efac!important}
:is(html[data-skin=night],html[data-skin=t3],html[data-skin=dp],html[data-skin=heritage]) .rcards .rtab .spill.sp-WR{color:#93c5fd!important}
:is(html[data-skin=night],html[data-skin=t3],html[data-skin=dp],html[data-skin=heritage]) .rcards .rtab .spill.sp-TE{color:#fcd34d!important}
:is(html[data-skin=night],html[data-skin=t3],html[data-skin=dp],html[data-skin=heritage]) .rcards .rtab .spill:is(.sp-K,.sp-DEF){color:#c4b5fd!important}
html[data-skin=night] .rcards .rtab tr.rsec td{background:#1f6bff!important}
html[data-skin=night] .rcards .rtab thead th.num{color:#8fb4ff!important}
html[data-skin=t3] .rcards .rtab tr.rsec td{background:#773141!important}
html[data-skin=t3] .rcards .rtab thead th.num{color:#ffc928!important}
html[data-skin=dp] .rcards .rtab tr.rsec td{background:#3c8979!important}
html[data-skin=dp] .rcards .rtab thead th.num{color:#7ef9e4!important}
html[data-skin=dp] .rcards .rtab tr.rrow>td{background:#152421!important}
:is(html[data-skin=night],html[data-skin=t3],html[data-skin=dp],html[data-skin=heritage]) .rcards .rtab tr.rsec.ir td{background:#7f1d1d!important}
:is(html[data-skin=night],html[data-skin=t3],html[data-skin=dp],html[data-skin=heritage]) .rcards .rtab tr.rsec.ps td{background:#4c1d95!important}

/* round225 (Jared): long-press lineup edit lights up the WHOLE card. Same colours as before (selected = yellow,
   legal target = green, hovered target = stronger green); every visible cell gets the fill and a continuous outline,
   and the old name-only ::before box is hidden. lpmove.js is unchanged (lpm-src / lpm-tgt / lpm-hov classes). */
.rcards .rtab tr.lpm-src>td.rs-pl::before,.rcards .rtab tr.lpm-tgt>td.rs-pl::before{display:none!important}
.rcards .rtab tr.lpm-src>td,.rcards .rtab tr.lpm-tgt>td{border-color:transparent!important;--lpc:#eab308;box-shadow:inset 0 2px 0 var(--lpc),inset 0 -2px 0 var(--lpc)!important}
.rcards .rtab tr.lpm-tgt>td{--lpc:#16a34a}
.rcards .rtab tr.lpm-tgt.lpm-hov>td{box-shadow:inset 0 3px 0 var(--lpc),inset 0 -3px 0 var(--lpc)!important}
.rcards .rtab tr.lpm-src>td:first-child,.rcards .rtab tr.lpm-tgt>td:first-child{box-shadow:inset 2px 0 0 var(--lpc),inset 0 2px 0 var(--lpc),inset 0 -2px 0 var(--lpc)!important}
.rcards .rtab tr.lpm-src>td:is(.rs-n3,.rs-cap),.rcards .rtab tr.lpm-tgt>td:is(.rs-n3,.rs-cap){box-shadow:inset -2px 0 0 var(--lpc),inset 0 2px 0 var(--lpc),inset 0 -2px 0 var(--lpc)!important}
.rcards .rtab tr.lpm-tgt.lpm-hov>td:first-child{box-shadow:inset 3px 0 0 var(--lpc),inset 0 3px 0 var(--lpc),inset 0 -3px 0 var(--lpc)!important}
.rcards .rtab tr.lpm-tgt.lpm-hov>td:is(.rs-n3,.rs-cap){box-shadow:inset -3px 0 0 var(--lpc),inset 0 3px 0 var(--lpc),inset 0 -3px 0 var(--lpc)!important}
html[data-theme=light] .rcards .rtab tr.lpm-src>td{background:#fef3c7!important}
html[data-theme=light] .rcards .rtab tr.lpm-tgt>td{background:#dcfce7!important}
html[data-theme=light] .rcards .rtab tr.lpm-tgt.lpm-hov>td{background:#bbf7d0!important}
:is(html[data-skin=night],html[data-skin=t3],html[data-skin=dp],html[data-skin=heritage]) .rcards .rtab tr.lpm-src>td{background:#433b18!important}
:is(html[data-skin=night],html[data-skin=t3],html[data-skin=dp],html[data-skin=heritage]) .rcards .rtab tr.lpm-tgt>td{background:#183b27!important}
:is(html[data-skin=night],html[data-skin=t3],html[data-skin=dp],html[data-skin=heritage]) .rcards .rtab tr.lpm-tgt.lpm-hov>td{background:#1d5235!important}

/* round226 (Jared): every regular card is the same height, laid out on one row: badge, photo, name on ONE line
   (ellipsis; full name in the link title and the player card) with the NFL team / opponent on a smaller line under it;
   swap and stat columns aligned. Stats view keeps actual points over projection (the two numbers sit level with the
   name / game lines); Cap view keeps salary over years. Exempt (grow as needed, nothing clipped): the IR section
   (rs-irrow: IR-week / cap details) and rows carrying a backup or practice-squad claim note (rs-xtra). */
.rcards .rtab tr.rrow:not(.rs-irrow):not(.rs-xtra)>td{height:58px;box-sizing:border-box;padding-top:7px!important;padding-bottom:7px!important;vertical-align:middle}
.rcards .rtab tr.rrow:not(.rs-irrow):not(.rs-xtra) .rs-n{display:flex!important;align-items:center;gap:4px!important;white-space:nowrap!important;overflow:hidden!important;min-width:0}
.rcards .rtab tr.rrow:not(.rs-irrow):not(.rs-xtra) .rs-n .pname{flex:0 1 auto;min-width:0;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.rcards .rtab tr.rrow:not(.rs-irrow):not(.rs-xtra) .rs-n>:not(.pname){flex:none}
.rcards .rtab tr.rrow:not(.rs-irrow):not(.rs-xtra) .rs-g{white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis}
.rcards .rtab tr.rrow.empty>td.rs-pl{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rcards .rtab tr.rrow:not(.rs-irrow):not(.rs-xtra)>td.num{white-space:nowrap}
.rcards .rtab tr.rrow>td.rs-cap>*{white-space:nowrap}
}

html[data-skin=heritage] .rcards .rtab tr.rsec td{background:#3f4f2c!important}
html[data-skin=heritage] .rcards .rtab thead th.num{color:#d4b45a!important}
html[data-skin=heritage] .rcards .rtab tr.rrow>td{background:#211c14!important;box-shadow:none!important;border-bottom:1px solid #3a3428!important}
html[data-skin=heritage] .rcards .rtab .rs-n .pname,html[data-skin=heritage] .rcards .rtab a.pname{color:#f3ecd8!important}
html[data-skin=heritage] .rcards .rtab .rs-n .jn,html[data-skin=heritage] .rcards .rtab .rs-g{color:#b5aa90!important}
html[data-skin=heritage] .rcards .rtab .spill{background:#211c14!important;color:#e6dfc8!important;border:1px solid #3a3428!important}
html[data-skin=heritage] .rcards .rtab .spill.sp-QB{background:#2a181c!important;color:#f0a0b0!important;border-color:#6b3a42!important}
html[data-skin=heritage] .rcards .rtab .spill.sp-RB{background:#1a2014!important;color:#b8c47a!important;border-color:#3f4f2c!important}
html[data-skin=heritage] .rcards .rtab .spill.sp-WR{background:#221c14!important;color:#d4c48a!important;border-color:#6a5428!important}
html[data-skin=heritage] .rcards .rtab .spill.sp-TE{background:#241c10!important;color:#d4b45a!important;border-color:#8a6a28!important}
html[data-skin=heritage] .rcards .rtab .spill.sp-K{background:#1c181e!important;color:#c4b0c8!important;border-color:#4a3a50!important}
html[data-skin=heritage] .rcards .rtab .spill.sp-DEF{background:#241c14!important;color:#e0c090!important;border-color:#6b4a28!important}
