/*
 * RotoBaller Player Card — standalone styles
 * Pairs with js/rb-player-card.js. Extracted from css/rankings-mobile-cards.css.
 *
 * Namespaced to .rb-card* (+ body.rb-card-lock) only — nothing here targets the rankings
 * table (#rb-mc / .rb-mc-*), the Angular tool, or any host-page selector, and nothing here
 * depends on host-page styles. Safe to load on any page or inside an iframe.
 *
 * Fonts are also self-injected by the JS (ensureFonts) so the card looks right even when
 * this stylesheet is inlined without the @import.
 */

@import url('https://fonts.googleapis.com/css2?family=Anton+SC&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ===================== overlay + shell ===================== */
body.rb-card-lock { overflow: hidden; }

.rb-card-ov {
	position: fixed; inset: 0; z-index: 1000003; display: none;
	align-items: center; justify-content: center; padding: 16px;
	background: rgba(15, 23, 42, .55);
	font-family: 'Outfit', -apple-system, "Helvetica Neue", Arial, sans-serif; -webkit-text-size-adjust: 100%;
}
.rb-card-ov.open { display: flex; }
.rb-card {
	position: relative; box-sizing: border-box; --rb-tc: #0076B6;
	width: 100%; max-width: 460px;
	/*
	 * Height is a percentage of the OVERLAY, never `vh`. Standalone the overlay is
	 * position:fixed;inset:0 so 75% == 75% of the viewport; embedded in the draft-kit
	 * iframe the overlay is sized to the PARENT's visible viewport (--rb-vp-h), where
	 * `vh` would resolve against the content-tall iframe and blow the card up to full
	 * document height. Fixed (not max-) height so switching tabs never resizes the card.
	 */
	height: 75%; max-height: 100%; min-height: 340px;
	display: flex; flex-direction: column; overflow: hidden;
	background: #fff; border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); color: #1a2027;
	text-align: left;
}
/* Chrome (trim / header / tabs / profile link) is fixed; only the tab pane scrolls. */
.rb-card-trim, .rb-card-hd, .rb-card-tabs, .rb-card-profile { flex: 0 0 auto; }
.rb-card * { box-sizing: border-box; }
.rb-card-trim { height: 20px; background: var(--rb-tc); }
.rb-card-x {
	position: absolute; top: 28px; right: 10px; z-index: 2; width: 27px; height: 27px;
	border: none; border-radius: 50%; background: rgba(15, 23, 42, .40); color: #fff;
	font-size: 18px; line-height: 1; cursor: pointer;
}

/* ===================== header ===================== */
.rb-card-hd { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px 8px 18px; }
.rb-card-logo { position: relative; width: 54px; height: 54px; border-radius: 50%; background: #fff; border: 2px solid var(--rb-tc); flex: 0 0 auto; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.rb-card-logo img { width: 42px; height: 42px; object-fit: contain; }
.rb-card-logo span { display: none; font-family: 'Anton SC', sans-serif; color: #fff; font-size: 15px; letter-spacing: .5px; }
.rb-card-logo--fb { background: var(--rb-tc); }
.rb-card-logo--fb span { display: block; }
.rb-card-id { flex: 1; min-width: 0; }
.rb-card-nm, .rb-card .rb-card-nm { font-family: 'Anton SC', 'Outfit', sans-serif !important; font-weight: 400; font-size: 25px; line-height: 1; letter-spacing: .4px; color: #1a2027; padding-right: 30px; }
.rb-card-sub { font-size: 13.5px; color: #6b7280; margin-top: 4px; line-height: 1.35; }
.rb-card-sub .sep { display: inline; }
.rb-card-sub .tm { display: inline; }
.rb-card-inj { color: #dc2626; font-weight: 600; font-size: 13px; line-height: 1.35; margin-top: 3px; }
.rb-card-key { flex: 0 0 100%; display: flex; align-items: flex-start; justify-content: space-around; gap: 8px; margin-top: 8px; padding-top: 10px; border-top: 1px solid #eef1f4; }
.rb-card-key > div { text-align: center; }
.rb-card-key span { display: block; font-size: 10px; font-weight: 600; letter-spacing: .3px; color: #9aa0a8; white-space: nowrap; }
.rb-card-key b { font-size: 19px; font-weight: 600; color: #1a2027; display: block; margin-top: 5px; }
.rb-card-key b.rb-card-rk { color: var(--rb-tc); }
.rb-card-sos { font-weight: 600; }

/* ===================== tabs + body ===================== */
.rb-card-tabs { display: flex; border-top: 1px solid #eef1f4; border-bottom: 1px solid #eef1f4; }
.rb-card-tabs button { flex: 1; border: none; background: transparent; font: inherit; font-size: 12.5px; font-weight: 500; color: #6b7280; padding: 11px 2px; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.rb-card-tabs button.on { color: var(--rb-tc); border-bottom-color: var(--rb-tc); }
.rb-card-body { padding: 0; flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.rb-card-split { display: flex; padding: 13px 16px 10px; }
.rb-card-outlook { flex: 0 0 46%; min-width: 0; padding-right: 14px; border-right: 1px solid #eef1f4; }
.rb-card-proj { flex: 1; min-width: 0; padding-left: 14px; }
.rb-card-full { padding: 14px 18px 8px; }
.rb-card-full-sep { border-top: 1px solid #f1f3f6; padding-top: 10px; }

/* ===================== outlook ===================== */
.rb-card-olab { font-size: 11.5px; font-weight: 600; letter-spacing: .3px; color: var(--rb-tc); margin-bottom: 6px; }
.rb-card-otext { font-size: 13.5px; line-height: 1.55; color: #33404d; }
.rb-card-otext.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.rb-card-rm { color: var(--rb-tc); font-weight: 500; cursor: pointer; font-size: 13.5px; }
.rb-card-ph { font-size: 13.5px; line-height: 1.5; color: #9aa0a8; }
.rb-card-byline { font-size: 12px; color: #9aa0a8; font-style: italic; margin-top: 8px; }
.rb-card-note { font-size: 11px; color: #9aa0a8; text-align: center; margin-top: 6px; }

/* locked outlook: first sentence in full, the rest blurred out under a lock CTA */
.rb-card-otext-locked { position: relative; max-height: 8.5em; overflow: hidden; }
.rb-card-otease { color: #6b7280; filter: blur(3.2px); -webkit-filter: blur(3.2px); user-select: none; pointer-events: none; }
.rb-card-otext-locked::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3.2em;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 85%);
	pointer-events: none;
}
/* Scoped to .rb-card so this outlook-lock component can't ALSO match the body
   scroll-lock (body.rb-card-lock) — that collision leaked padding onto <body> and
   shifted the whole page ~12px when a card opened. */
.rb-card .rb-card-lock {
	margin-top: 8px; padding: 11px 12px; border-radius: 10px;
	background: #f4f7fa; border: 1px solid #e4eaf1; text-align: center;
}
.rb-card-lock-in { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.rb-card-lock-ic { font-size: 16px; line-height: 1; }
.rb-card-lock-tx { font-size: 12.5px; line-height: 1.4; font-weight: 500; color: #3a4651; }
.rb-card-lock-btn {
	border: none; border-radius: 999px; cursor: pointer; font: inherit;
	font-size: 12.5px; font-weight: 600; letter-spacing: .2px;
	padding: 7px 18px; background: var(--rb-tc); color: #fff;
}
.rb-card-lock-btn:hover { filter: brightness(1.08); }

/* ===================== projection bars ===================== */
.rb-card-phead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.rb-card-phead-inset { padding: 8px 18px 0; }
.rb-card-plab { font-size: 11.5px; font-weight: 600; letter-spacing: .3px; color: #9aa0a8; }
.rb-card-projlab { font-size: 14px; font-weight: 700; color: #1a2027; text-transform: none; }
.rb-card-scoring { display: inline-flex; border: 1px solid #dfe5ec; border-radius: 12px; overflow: hidden; }
.rb-card-scoring button { border: none; background: transparent; font: inherit; font-size: 11.5px; font-weight: 500; color: #6b7280; padding: 4px 10px; cursor: pointer; }
.rb-card-scoring button.on { background: var(--rb-tc); color: #fff; }
.rb-card-bars { display: flex; }
.rb-card-bar { flex: 1; min-width: 0; text-align: center; }
.rb-card-bar .v { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rb-card-bar .track { display: flex; align-items: flex-end; justify-content: center; margin-top: 2px; }
.rb-card-bar .track i { display: block; background: var(--rb-tc); border-radius: 4px 4px 0 0; }
.rb-card-bar .lab { font-size: 11.5px; color: #15202b; font-weight: 700; margin-top: 4px; }
.rb-card-bar .rk { display: inline-block; font-size: 10px; font-weight: 500; color: var(--rb-tc); background: #f1f4f7; border-radius: 7px; padding: 1px 6px; margin-top: 3px; }

/* ===================== stats highlight ===================== */

/* ===================== news ===================== */
.rb-card-news { padding: 4px 18px 8px; }
.rb-card-newssect { font-size: 13.5px; font-weight: 700; color: #1a2027; margin-top: 6px; padding: 12px 0 6px; border-bottom: 1px solid #006DC8; }
.rb-card-newslink { color: inherit; text-decoration: none; }
.rb-card-newslink:hover { color: var(--rb-tc); text-decoration: underline; }
.rb-card-news-lead { padding: 13px 0; border-bottom: 1px solid #eef1f4; }
.rb-card-news-tag { font-size: 11.5px; font-weight: 600; letter-spacing: .3px; color: var(--rb-tc); margin-bottom: 5px; }
.rb-card-news-h { font-size: 16.5px; font-weight: 600; line-height: 1.3; }
.rb-card-news-h2 { font-size: 15px; font-weight: 600; line-height: 1.3; }
.rb-card-news-meta { font-size: 12.5px; color: #9aa0a8; margin: 5px 0 7px; }
.rb-card-news-body { font-size: 14px; line-height: 1.6; color: #3a4651; }
.rb-card-news-body p { margin: 0 0 10px; }
.rb-card-news-body a { color: var(--rb-tc); }
.rb-card-news-body.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.rb-card-news-item { padding: 13px 0; border-bottom: 1px solid #f4f6f8; }
.rb-card-news-teaser { font-size: 13.5px; line-height: 1.5; color: #5a6675; }

/* ===================== schedule ===================== */
.rb-card-sostitle { font-size: 15px; font-weight: 600; color: #3a4651; padding: 12px 18px 8px; }
.rb-card-schedgrid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; padding: 0 14px 16px; }
.rb-card-wk { border-radius: 6px; padding: 7px 1px; text-align: center; min-width: 0; }
.rb-card-wk .wk { display: block; font-size: 9.5px; font-weight: 600; color: #4a5560; }
.rb-card-wk .num { display: block; font-size: 13px; font-weight: 700; color: #15202b; line-height: 1.15; }
.rb-card-wk .opp { display: block; font-size: 10.5px; font-weight: 600; color: #2a3742; margin-top: 0; white-space: nowrap; }
.rb-card-wk.bye { background: #eef1f4; }
.rb-card-wk.bye .opp { color: #9aa0a8; }
.rb-card-sched { padding: 6px 14px 16px; }
.rb-card-sched .table_schedule_wrapper, .rb-card-sched .card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rb-card-sched table { border-collapse: collapse; font-size: 12px; margin: 0; }
.rb-card-sched .img_loading { display: none; }
.rb-card-sched thead th { font-weight: 600; color: #6b7280; padding: 5px 11px; font-size: 12.5px; white-space: nowrap; text-align: center; }
.rb-card-sched td { padding: 10px 12px; min-width: 36px; text-align: center; white-space: nowrap; font-weight: 500; color: #1a2027; border: 2px solid #fff; line-height: 1.2; }
.rb-card-sched td div { font-size: 16px; font-weight: 600; }
.rb-card-sched h6 { display: none; }

/* ===================== season-stats table ===================== */
.rb-card-tablewrap { overflow-x: auto; padding: 6px 14px 16px; }
.rb-card-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.rb-card-table th { font-size: 11px; font-weight: 600; color: #9aa0a8; text-transform: uppercase; letter-spacing: .2px; padding: 5px 4px; text-align: center; border-bottom: 1px solid #eef1f4; white-space: nowrap; }
.rb-card-table td { padding: 6px 4px; text-align: center; color: #33404d; font-variant-numeric: tabular-nums; border-bottom: 1px solid #f4f6f8; white-space: nowrap; }
.rb-card-table .yr { font-weight: 400; color: #1a2027; }
.rb-card-table td.pr { font-weight: 500; color: var(--rb-tc); }

/* ===================== misc ===================== */
.rb-card-soon { padding: 34px 18px; text-align: center; color: #9aa0a8; font-size: 14.5px; line-height: 1.5; }
.rb-card-profile { display: block; text-align: center; padding: 14px; font-size: 14px; font-weight: 600; color: var(--rb-tc); text-decoration: none; border-top: 1px solid #eef1f4; }

/* ===================== narrow phones ===================== */
@media (max-width: 399px) {
	.rb-card-split { flex-direction: column; }
	.rb-card-outlook { flex: none; padding-right: 0; border-right: none; border-bottom: 1px solid #eef1f4; padding-bottom: 12px; margin-bottom: 12px; }
	.rb-card-proj { padding-left: 0; }
}

/* ===================== desktop refinements ===================== */
@media (min-width: 601px) {
	.rb-card { max-width: 580px; }
	.rb-card-hd { padding-bottom: 13px; }
	.rb-card-key span { font-size: 12px; }
	.rb-card-key b { font-size: 25px; }
	.rb-card-sub .sep { display: inline; }
	.rb-card-sub .tm { display: inline; }
}

/* ===================== overview: outlook summary + latest news · game log · pending season row ===================== */
.rb-card-otext.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
a.rb-card-rm { display: inline-block; margin-top: 4px; text-decoration: none; }
a.rb-card-rm:hover { text-decoration: underline; }
.rb-card-bluesep { height: 1px; background: #006DC8; margin: 12px 0 10px; }   /* thin RotoBaller-blue rule between the outlook and the news */
.rb-card-ovnews .rb-card-news-lead { padding: 0; border-bottom: 0; }
.rb-card-ovnews .rb-card-news-h { font-size: 15px; }
.rb-card-ovnews .rb-card-news-meta { margin: 4px 0 6px; }
.rb-card-ovnews .rb-card-news-body { font-size: 13.5px; line-height: 1.55; }
.rb-card-full-sep { border-top: 1px solid #f1f3f6; padding-top: 10px; }
.rb-card-pending td { color: #b3b9c2; }
.rb-card-pending td.yr { color: #6b7280; }
/* Four tabs: size each to its label (the extra space is shared), 12.5px on phones, and let the row scroll on the narrowest screens. */
.rb-card-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rb-card-tabs button { flex: 1 1 auto; min-width: 0; }
@media (min-width: 601px) { .rb-card-tabs button { font-size: 13.5px; } }

/* header matchup rows: "Week 1 vs TB · Proj 16.2 pts · Matchup [125]" bold on the first line, the Vegas O/U + line on a second */
.rb-card-mu { flex: 0 0 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 3px 12px; margin-top: 8px; font-size: 14px; font-weight: 700; color: #1a2027; }
.rb-card-mu-wk { white-space: nowrap; }
.rb-card-mu b { font-weight: 700; color: #1a2027; }
.rb-card-mu b.rb-card-mu-rt { display: inline-block; padding: 1px 9px; border-radius: 9px; font-variant-numeric: tabular-nums; }
.rb-card-mu-g { flex: 0 0 100%; font-size: 12.5px; font-weight: 600; color: #7a8694; }
.rb-card-news-outlook { padding-top: 10px; }
.rb-card-news-meta time { color: #7a8694; }

/* schedule as a week list: week · opponent · SoS pill (widget colour) · matchup pill (rating colour) */
.rb-card-sostitle small { display: block; font-size: 10.5px; font-weight: 500; color: #9aa0a8; margin-top: 2px; line-height: 1.35; }
.rb-card-sched-list { padding: 8px 14px 14px; }
.rb-card-sched-list .hd, .rb-card-sched-list .r { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-items: center; padding: 7px 0; text-align: center; }   /* four equal columns across the card */
.rb-card-sched-list .hd { font-size: 10.5px; font-weight: 700; color: #9aa0a8; text-transform: uppercase; letter-spacing: .3px; border-bottom: 1px solid #eef1f4; }
.rb-card-sched-list .r { border-bottom: 1px solid #f4f6f8; font-size: 13.5px; }
.rb-card-sched-list .w { font-weight: 600; color: #1a2027; white-space: nowrap; }
.rb-card-sched-list .o { font-weight: 600; color: #2a3742; }
.rb-card-sched-list .p { display: block; width: 62px; justify-self: center; text-align: center; font-weight: 700; font-size: 13px; padding: 4px 0; border-radius: 8px; color: #15202b; font-variant-numeric: tabular-nums; background: #eef1f4; }
.rb-card-sched-list a.p.lock { font-size: 10px; background: #e6e9ee; color: #9aa0a8; text-decoration: none; }
.rb-card-sched-list a.p.lock:hover { background: #dfe3e8; }
.rb-card-sched-list .p.na { color: #9aa0a8; font-weight: 500; }
.rb-card-sched-list .r.bye .o, .rb-card-sched-list .r.bye .p { color: #9aa0a8; font-weight: 500; }

/* Phones: the whole card 15% smaller, so it never runs past the top or bottom of the screen. */
@media (max-width: 600px) {
	.rb-card { zoom: .85; }
}

/* More News: two-line teasers with a Read more link, like the outlook above them */
.rb-card-news-teaser.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rb-card-news-item a.rb-card-rm { margin-top: 3px; }
/* a little air between the header stats and the tab labels */
.rb-card-tabs { margin-top: 5px; }

/* Overview chart title is a dropdown: Week N Projection · <season> Stats · <year> Projection */
.rb-card-projsel { font: inherit; font-size: 14px; font-weight: 700; color: #1a2027; border: none; border-radius: 0; background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%231a2027' stroke-width='1.6' stroke-linecap='round'/></svg>") no-repeat right center; padding: 0 16px 0 0; margin: 0; cursor: pointer; -webkit-appearance: none; -moz-appearance: none; appearance: none; max-width: 60%; }
.rb-card-projsel:focus { outline: none; box-shadow: 0 0 0 2px rgba(30, 127, 214, .25); border-radius: 4px; }
