/**
 * Hot Streaks page styles
 * File: styles/hot-streaks.css
 * Used by: /hot-streaks/
 */

/* Page padding: .content-wrapper.tmb-page in front.css. This page keeps the
   desktop 90px on a phone too (the default there is 60px). */
.content-wrapper.tmb-page { --page-top-mobile: 90px; }

.sp-subtitle {
    font-size: 0.85rem;
    color: var(--tmb-gray-600);
    margin: 0 0 8px;
}

/* Explainer: X+ is an alt-line milestone, not today's posted line */
.sp-note {
    font-size: 0.8rem;
    color: var(--tmb-gray-600);
    background: var(--tmb-gray-100);
    border-left: 3px solid var(--tmb-gray-400);
    border-radius: 3px;
    padding: 7px 10px;
    margin: 0 0 14px;
}
.sp-note .fa-info-circle {
    color: var(--tmb-gray-500);
}

.sp-loading,
.sp-empty {
    padding: 30px 10px;
    text-align: center;
    color: var(--tmb-gray-600);
    font-size: 0.9rem;
}

/* ---- Graceful empty state (off day / off-season / lines not posted) ---- */
.sp-empty-state {
    max-width: 420px;
    margin: 40px auto;
    padding: 32px 24px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--tmb-gray-300);
    border-radius: 8px;
}
.sp-empty-icon {
    font-size: 1.9rem;
    color: var(--tmb-gray-400);
    margin-bottom: 10px;
}
.sp-empty-headline {
    font-size: 1rem;
    font-weight: 600;
    color: var(--tmb-gray-700);
    margin-bottom: 4px;
}
.sp-empty-detail {
    font-size: 0.85rem;
    color: var(--tmb-gray-600);
    margin-bottom: 14px;
}
.sp-empty-state .sp-empty-jump {
    font-size: 0.8rem;
}

/* ---- Anonymous teaser: locked matchup cards ----
   The card body is replaced by TMBPaywall.lockElement() with a skeleton
   shimmer under the site's one paywall card (styles/paywall.css). Only the
   container sizing lives here: tall enough for the whole card, which the
   lock's overflow would otherwise cut. */
.sp-locked {
    position: relative;
    min-height: 240px;
    padding: 12px 16px;
    color: var(--tmb-gray-600);
}
.sp-locked .tmb-paywall-skeleton { min-height: 140px; }
.sp-locked-count {
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* ---- Matchup card ---- */
.sp-matchup {
    background: #fff;
    border: 1px solid var(--tmb-gray-300);
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.sp-matchup-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 14px;
    background: var(--tmb-gray-100);
    border-bottom: 1px solid var(--tmb-gray-300);
}

.sp-matchup-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--tmb-gray-900);
}

.sp-matchup-time {
    font-size: 0.75rem;
    color: var(--tmb-gray-600);
    white-space: nowrap;
}

/* ---- Two team columns ---- */
.sp-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.sp-team-col {
    padding: 12px 14px;
    min-width: 0;
}

.sp-team-col + .sp-team-col {
    border-left: 1px solid var(--tmb-gray-100);
}

.sp-team-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--tmb-gray-700);
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--tmb-gray-300);
}

.sp-none {
    font-size: 0.8rem;
    color: var(--tmb-gray-500);
    font-style: italic;
}

/* ---- Player blocks ---- */
.sp-player {
    margin-bottom: 10px;
}

.sp-player:last-child {
    margin-bottom: 0;
}

/* Player name lives in the grid's first header cell, on the row with the
   opponents/dates. */
.sp-grid-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--tmb-gray-900) !important;
    vertical-align: middle;
    /* Fixed 112px column: long names wrap rather than bleeding into game cols */
    white-space: normal;
    line-height: 1.2;
}

/* Wraps in the fixed 112px column, as a long name does: "15+ Longest
   Reception" and "60+ Rush+Rec Yards" ran into the first game's cell. */
.sp-prop-label {
    color: var(--tmb-in);
    font-weight: 600;
    white-space: normal;
    line-height: 1.2;
}

.sp-grid td.sp-grid-prop {
    white-space: normal;
}

/* ---- Per-player game grid ---- */
/* Wide windows (up to 10 games) scroll inside the player block rather than
   blowing out the team column. */
.sp-grid-wrap {
    overflow-x: auto;
    margin: 2px 0 0;
}

/* table-layout:fixed + pinned first/avg widths = the game columns split the
   remaining width equally, so every player's grid in a column lines up
   (content-sized auto layout gave each player different column widths).
   sp-core.js sets a min-width per table from the game count; wide windows
   scroll inside .sp-grid-wrap. */
.sp-grid {
    border-collapse: collapse;
    width: 100%;
    /* 154 = the 112px label column + the 42px avg column; --sp-games is the
       window's game count, set by sp-core.js renderPlayer() */
    min-width: calc(154px + var(--sp-games, 0) * 44px);
    table-layout: fixed;
    font-size: 0.76rem;
}

.sp-grid th,
.sp-grid td {
    padding: 2px 6px;
    text-align: center;
    white-space: nowrap;
    border-bottom: 1px solid var(--tmb-gray-100);
}

.sp-grid thead th {
    border-bottom: 1px solid var(--tmb-gray-300);
    font-weight: 600;
    color: var(--tmb-gray-600);
}

.sp-grid tbody tr:last-child th,
.sp-grid tbody tr:last-child td {
    border-bottom: none;
}

.sp-grid-prop {
    text-align: left !important;
    padding-left: 15px !important;
    width: 112px;
}

.sp-grid-game .sp-grid-opp {
    display: block;
    font-size: 0.68rem;
    line-height: 1.2;
}

.sp-grid-game .sp-grid-date {
    display: block;
    font-size: 0.62rem;
    font-weight: 400;
    color: var(--tmb-gray-500);
    line-height: 1.2;
}

.sp-grid-val {
    color: var(--tmb-gray-700);
}

/* Below-100% hit rate: a game that fell short of the rung */
.sp-grid-val.sp-miss {
    color: var(--tmb-red-700);
    background: var(--tmb-danger-bg-light);
}

/* Injury report: Questionable tag on the player name; Out list under the team */
.sp-inj-q {
    display: inline-block;
    margin-left: 4px;
    padding: 0 4px;
    border-radius: 3px;
    background: var(--tmb-warning-bg);
    color: var(--tmb-warning-text);
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.4;
    vertical-align: 1px;
}

.sp-out {
    margin: 6px 0 2px 15px;
    font-size: 0.7rem;
    color: color-mix(in srgb, var(--tmb-red), black 17%);
}

/* "4/5" hit count next to the prop label when the prop carries misses */
.sp-hits {
    color: var(--tmb-gray-600);
    font-size: 0.68rem;
    font-weight: 400;
    margin-left: 3px;
}

.sp-grid-avg-h {
    color: var(--tmb-gray-500) !important;
    font-weight: 400 !important;
    font-size: 0.68rem;
    width: 42px;
}

/* Faded average for quick reference */
.sp-avg {
    color: var(--tmb-gray-500);
    font-size: 0.72rem;
    white-space: nowrap;
    cursor: default;
}

/* ---- Mobile: stack the two team columns ---- */
@media (max-width: 575.98px) {
    .sp-cols {
        grid-template-columns: 1fr;
    }
    .sp-team-col + .sp-team-col {
        border-left: none;
        border-top: 1px solid var(--tmb-gray-100);
    }
    /* A compact card (Zach, 2026-11-26; the Odds page's table had it first):
       less padding, smaller text, rows 31 -> 18px, and the label, game and avg
       columns narrower, so a 5-game window fits a 375px screen with no
       sideways scroll (it was 374px wide in a 345px box). The cell padding
       needs !important: front.css gives every cell 6px !important. */
    .sp-matchup-header { padding: 6px 10px; }
    .sp-matchup-title { font-size: 0.85rem; }
    .sp-team-col { padding: 6px 10px; }
    .sp-team-name { font-size: 0.76rem; margin-bottom: 4px; padding-bottom: 3px; }
    .sp-player { margin-bottom: 6px; }
    .sp-grid {
        font-size: 0.7rem;
        min-width: calc(126px + var(--sp-games, 0) * 36px);
    }
    .sp-grid th,
    .sp-grid td {
        padding: 1px 3px !important;
        line-height: 1.25;
    }
    .sp-grid-prop { width: 96px; padding-left: 4px !important; }
    .sp-grid-name { font-size: 0.72rem; }
    .sp-grid-avg-h { width: 30px; font-size: 0.6rem; }
    .sp-avg { font-size: 0.64rem; }
    .sp-grid-game .sp-grid-opp { font-size: 0.6rem; }
    .sp-grid-game .sp-grid-date { font-size: 0.55rem; }
    .sp-hits { font-size: 0.6rem; }
    .sp-out { margin-left: 4px; font-size: 0.64rem; }
}

/* A long name wraps in its column: .sp-grid th's nowrap (later in the file,
   same specificity) kept it on one line, into the first game's cell. */
.sp-grid th.sp-grid-name {
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Wider than a phone, the grid is as wide as it needs to be (Zach,
   2026-11-26, as the Odds page's first columns): a 134px name column (a
   long name no longer breaks mid-word, "Antetokounm / po") and 62px a game,
   where the game columns used to split the whole card (about 94px each for
   two-digit figures, far from their labels). A window too wide for the card
   still fills it and scrolls (min()). !important: front.css gives every
   table width: 100% !important. */
@media (min-width: 576px) {
    .sp-grid {
        width: min(100%, calc(176px + var(--sp-games, 0) * 62px)) !important;
        min-width: calc(176px + var(--sp-games, 0) * 44px);
    }
    .sp-grid-prop {
        width: 134px;
    }
}

/* Player Prop Edges, the section under the streaks (since 2026-10-17;
   edges-body.php's markup). */
.sp-edges-section {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid var(--tmb-gray-300);
    scroll-margin-top: 170px; /* under the header and a two-row sticky sport bar */
}
.sp-edges-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--tmb-gray-900);
    margin: 0 0 4px;
}
.sp-edges-controls {
    margin-bottom: 10px;
}

/* ==========================================================================
   The app look (Zach, 2026-12-02: "look more app like", as the Odds page's).
   Every rule is under html.tmb-app-look.tmb-hs: tmb-app-look is set by
   scripts/app-look.js inside the TMB app only, tmb-hs by sp-core.js on this
   page (never a dashboard widget), so the website is untouched.
   - the grey page and white rounded cards;
   - the filters in two even lines: sport, date, window / hit %, matchup, At Site;
   - a Hot Streaks / Prop Edges switch pinned under the bar (sp-core.js
     appSections()), so each list is a screen of its own;
   - the repeated page heading and the Edges section's own title go (the
     switch names it; the how-it-works text is behind the title bar's (i)).
   ========================================================================== */
html.tmb-app-look.tmb-hs body,
html.tmb-app-look.tmb-hs .content-wrapper { background: var(--tmb-gray-100) !important; }
html.tmb-app-look.tmb-hs .content-wrapper h1 { display: none !important; }

/* The bar: three a line, one height. */
html.tmb-app-look.tmb-hs .sp-navigation-header .tmb-sport-ddline { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px 6px !important; }
html.tmb-app-look.tmb-hs .sp-navigation-header .tmb-sport-ddline > :is(select, input, .custom-switch) {
    flex: 1 1 calc((100% - 12px) / 3) !important; width: auto !important; min-width: 0 !important; max-width: none !important;
    height: 34px !important; min-height: 34px; margin: 0 !important; font-size: 14px !important; box-sizing: border-box; }
html.tmb-app-look.tmb-hs .sp-navigation-header .tmb-sport-ddline > select { padding-left: 12px !important; padding-right: 22px !important; background-position: right 8px center !important; }
html.tmb-app-look.tmb-hs .sp-navigation-header #sp-date-picker { padding-left: 10px !important; padding-right: 6px !important; font-size: 13px !important; }
html.tmb-app-look.tmb-hs .sp-navigation-header .tmb-sport-ddline > .tmb-sport-dd { order: 0; }
/* Line 1: the date (NFL: "Week 13 · Dec 3-8") takes the room the sport and the window leave. */
html.tmb-app-look.tmb-hs .sp-navigation-header .tmb-sport-ddline > :is(.tmb-sport-dd, #sp-n-select, #tmb-x) { flex: 0 0 88px !important; }
/* Line 2: the matchup takes the room the hit rate and At Site leave ("All matchups" was cut at a third). */
html.tmb-app-look.tmb-hs .sp-navigation-header .tmb-sport-ddline > :is(#sp-pct-select, #tmb-x) { flex: 0 0 112px !important; }
html.tmb-app-look.tmb-hs .sp-navigation-header .tmb-sport-ddline > :is(.custom-switch, #tmb-x) { flex: 0 0 106px !important; }
/* At Site as a box of the same size, its switch at the left. */
html.tmb-app-look.tmb-hs .sp-navigation-header .custom-switch { display: flex !important; align-items: center; padding: 0 10px 0 48px !important;
    border: 1px solid var(--app-chipline, var(--tmb-gray-300)); border-radius: 17px; background: var(--tmb-surface, #fff);
    font-size: 14px !important; color: var(--tmb-gray-700) !important; }
html.tmb-app-look.tmb-hs .sp-navigation-header .custom-switch .custom-control-label { line-height: 32px !important; }
html.tmb-app-look.tmb-hs .sp-navigation-header .custom-switch .custom-control-label::before { top: 7px; }
html.tmb-app-look.tmb-hs .sp-navigation-header .custom-switch .custom-control-label::after { top: calc(7px + 2px); }

/* The switch: the Odds page's Games / Props row. sp-core.js measures the bar into --sp-bar-bottom. */
html.tmb-app-look.tmb-hs .sp-app-tabs { position: sticky; top: var(--sp-bar-bottom, 150px); z-index: 94; display: flex; width: 100vw;
    margin: -8px 0 12px calc(50% - 50vw); padding: 4px 16px 12px; background: var(--tmb-gray-100); box-shadow: 0 4px 8px var(--tmb-black-10); }
html.tmb-app-look.tmb-hs .sp-app-tabs-in { display: flex; flex: 1; gap: 2px; padding: 3px; border-radius: 11px; background: color-mix(in srgb, var(--tmb-gray-300), transparent 45%); }
/* !important: front.css paints every button. */
html.tmb-app-look.tmb-hs .sp-app-tabs button { flex: 1 1 0; height: auto !important; padding: 7px 0 !important; border: 0 !important; border-radius: 8px !important;
    background: none !important; color: var(--tmb-gray-700) !important; box-shadow: none !important; font: 600 14px/1.2 -apple-system, BlinkMacSystemFont, sans-serif !important; }
html.tmb-app-look.tmb-hs .sp-app-tabs button:focus { outline: none !important; }
html.tmb-app-look.tmb-hs .sp-app-tabs button[aria-selected="true"] { background: var(--tmb-surface, #fff) !important; color: var(--tmb-gray-900) !important;
    box-shadow: 0 1px 3px var(--tmb-black-10), 0 0 0 0.5px var(--tmb-black-5) !important; }
html.tmb-app-look.tmb-hs.sp-show-streaks #prop-edges,
html.tmb-app-look.tmb-hs.sp-show-edges #sp-results { display: none !important; }
html.tmb-app-look.tmb-hs :is(#sp-results, #prop-edges) { padding: 0 12px; }
html.tmb-app-look.tmb-hs .sp-edges-section { margin-top: 0; padding-top: 0; border-top: 0; }
html.tmb-app-look.tmb-hs .sp-edges-section > :is(.sp-edges-title, .sp-subtitle) { display: none !important; }

/* A matchup: a white card, its title on white, each team a small label. */
html.tmb-app-look.tmb-hs .sp-matchup { margin-bottom: 12px; border: 0; border-radius: 16px; background: var(--tmb-surface, #fff);
    box-shadow: 0 1px 2px var(--tmb-black-5); }
html.tmb-app-look.tmb-hs .sp-matchup-header { align-items: center; padding: 12px 14px 4px; background: none; border-bottom: 0; }
html.tmb-app-look.tmb-hs .sp-matchup-title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
html.tmb-app-look.tmb-hs .sp-matchup-time { font-size: 13px; font-weight: 600; color: var(--tmb-green-700); }
html.tmb-app-look.tmb-hs .sp-team-col { padding: 6px 14px 12px; }
html.tmb-app-look.tmb-hs .sp-team-col + .sp-team-col { border-top: 0.5px solid var(--tmb-gray-300); padding-top: 10px; }
html.tmb-app-look.tmb-hs .sp-team-name { margin-bottom: 6px; padding-bottom: 0; border-bottom: 0; font-size: 11px; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase; color: var(--tmb-gray-600); }

/* A player: his grid in a tinted block of its own, roomier rows. */
html.tmb-app-look.tmb-hs .sp-player { margin-bottom: 8px; padding: 4px 6px 6px; border-radius: 12px; background: var(--tmb-gray-100); }
html.tmb-app-look.tmb-hs .sp-grid { font-size: 13px; min-width: calc(122px + var(--sp-games, 0) * 38px); }
html.tmb-app-look.tmb-hs .sp-grid th,
html.tmb-app-look.tmb-hs .sp-grid td { padding: 3px 3px !important; line-height: 1.3; border-bottom: 0; background: none; }
html.tmb-app-look.tmb-hs .sp-grid thead th { border-bottom: 0.5px solid var(--tmb-gray-300); }
html.tmb-app-look.tmb-hs .sp-grid-prop { width: 96px; padding-left: 4px !important; }
html.tmb-app-look.tmb-hs .sp-grid-name { font-size: 15px; font-weight: 700; }
html.tmb-app-look.tmb-hs .sp-grid-avg-h { width: 30px; font-size: 11px; }
html.tmb-app-look.tmb-hs .sp-avg { font-size: 12px; }
html.tmb-app-look.tmb-hs .sp-grid-game .sp-grid-opp { font-size: 11px; }
html.tmb-app-look.tmb-hs .sp-grid-game .sp-grid-date { font-size: 10px; }
html.tmb-app-look.tmb-hs .sp-grid-val { color: var(--tmb-gray-900); font-variant-numeric: tabular-nums; }
html.tmb-app-look.tmb-hs .sp-grid-val.sp-miss { border-radius: 6px; background: var(--tmb-danger-bg-light); }
html.tmb-app-look.tmb-hs .sp-hits { font-size: 11px; }
html.tmb-app-look.tmb-hs .sp-out { margin: 4px 0 0 2px; font-size: 12px; }
html.tmb-app-look.tmb-hs :is(.sp-empty-state, .sp-locked) { border: 0; border-radius: 16px; background: var(--tmb-surface, #fff); }

/* Prop Edges cards in the app (Zach, 2026-12-02: "the same for the prop edges cards"). edges-core.js's
   markup (positive-expected-value-props.css is the website's look): a white rounded card an edge on the
   grey page, the four number boxes as soft grey tiles with bigger figures, the write-up a tinted block,
   the injury lines quiet. A below-threshold edge is dimmed less (0.5 washed out the whole card) and its
   warning is a small amber line, not a solid bar. Scoped to this page's #prop-edges: no dashboard widget. */
html.tmb-app-look.tmb-hs #prop-edges #edges-list { display: flex; flex-direction: column; gap: 10px; }
html.tmb-app-look.tmb-hs #prop-edges .edge-card { padding: 12px 14px !important; border: 0 !important; border-radius: 16px;
    background: var(--tmb-surface, #fff) !important; box-shadow: 0 1px 2px var(--tmb-black-5); }
html.tmb-app-look.tmb-hs #prop-edges .edge-card.below-threshold { opacity: .72; }
html.tmb-app-look.tmb-hs #prop-edges .edge-below-threshold-banner,
html.tmb-app-look.tmb-hs #prop-edges .edge-game-started-banner { display: inline-flex; align-items: center; max-width: 100%; margin: 0 0 8px; padding: 2px 9px;
    border-radius: 10px; background: var(--tmb-warning-bg) !important; color: var(--tmb-warning-text) !important; font-size: 11px; letter-spacing: 0; }
html.tmb-app-look.tmb-hs #prop-edges .edge-game-started-banner { background: var(--tmb-gray-300) !important; color: var(--tmb-gray-700) !important; }
html.tmb-app-look.tmb-hs #prop-edges .edge-top-row { gap: 8px 10px; margin-bottom: 0; }
html.tmb-app-look.tmb-hs #prop-edges .edge-box { min-width: 62px; max-width: none; padding: 5px 9px; border: 0; border-radius: 12px; }
html.tmb-app-look.tmb-hs #prop-edges .edge-box-label { font-size: 10px; }
html.tmb-app-look.tmb-hs #prop-edges .edge-box-value { font-size: 17px; }
html.tmb-app-look.tmb-hs #prop-edges .edge-headshot { width: 40px; height: 40px; }
html.tmb-app-look.tmb-hs #prop-edges .edge-player-name { font-size: 16px; font-weight: 700; }
html.tmb-app-look.tmb-hs #prop-edges .edge-player-meta { font-size: 12px; }
html.tmb-app-look.tmb-hs #prop-edges .edge-drill-btn { margin-top: 3px; padding: 2px 9px; font-size: 11px; }
html.tmb-app-look.tmb-hs #prop-edges .edge-columns-right { gap: 6px; }
html.tmb-app-look.tmb-hs #prop-edges :is(.edge-stat-col, .edge-projected-col, .edge-best-odds-col, .edge-fair-muted-col) {
    padding: 7px 3px !important; border: 0 !important; border-radius: 12px; background: var(--tmb-gray-100) !important; }
html.tmb-app-look.tmb-hs #prop-edges :is(.edge-prop-value, .edge-projected-value, .edge-best-odds-value, .edge-fair-muted-value) { font-size: 17px; font-weight: 700; line-height: 1.2; }
html.tmb-app-look.tmb-hs #prop-edges :is(.edge-projected-label, .edge-best-odds-label, .edge-fair-muted-label) { font-size: 9.5px; letter-spacing: .03em; }
html.tmb-app-look.tmb-hs #prop-edges :is(.edge-projected-sub, .edge-best-odds-book, .edge-fair-muted-pct, .edge-sample-badge) { font-size: 11px; }
html.tmb-app-look.tmb-hs #prop-edges :is(.edge-stat-badge, .edge-direction) { font-size: 10px; }
html.tmb-app-look.tmb-hs #prop-edges .edge-ai-text { margin-top: 10px; padding: 9px 11px; border-left: 0; border-radius: 12px; background: var(--tmb-gray-100);
    font-size: 13px; line-height: 1.45; color: var(--tmb-gray-700); }
html.tmb-app-look.tmb-hs #prop-edges .edge-injury-sections { margin-top: 8px; padding-top: 4px; border-top: 0.5px solid var(--tmb-gray-300); }
html.tmb-app-look.tmb-hs #prop-edges .edge-injury-group { border-left: 0; padding-left: 0; }
html.tmb-app-look.tmb-hs #prop-edges .edge-bracket-header { min-height: 30px; }
