
    /* Critical styles for initial paint */
    .research-links {display:flex;flex-wrap:wrap;justify-content:center;gap:.65rem 1.25rem;margin:1rem auto 0;font-size:.9rem;}
    .prop-research {margin:2.5rem 0 1rem;padding:clamp(1rem,2vw,2rem);border:1px solid var(--border-secondary);border-radius:12px;background:var(--bg-secondary);}
    .prop-research h2 {font-size:1.35rem;margin:0 0 1.25rem;}
    .prop-research h3 {font-size:1rem;line-height:1.5;}
    .prop-research p {color:var(--text-secondary);font-size:.95rem;line-height:1.7;}
    .prop-research-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem;}
    .prop-research-access {margin-top:1.5rem;padding-top:1rem;border-top:1px solid var(--border-secondary);}
    @media(max-width:760px){.prop-research-grid{grid-template-columns:1fr;gap:1rem;}}
    body {
        background: var(--bg-primary);
        color: var(--text-primary);
        font-family: var(--font-sans);
        margin: 0;
        padding: 0;
    }
    .props-page .page-title {
        color: var(--text-primary);
    }
    .props-page.props-container {
        width: 100%;
        max-width: none;
        margin: 1.25rem auto 3rem;
        padding: 0 clamp(0.75rem, 2vw, 2.5rem);
    }

    .page-header {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .page-subtitle {
        font-size: 0.9rem;
        color: var(--text-secondary);
    }

    @media (min-width: 768px) {
        .page-header {
            margin-bottom: 3rem;
        }

        .page-subtitle {
            font-size: 1.1rem;
        }
    }

    /* All Players Container */
    .all-players-container {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    @media (min-width: 768px) {
        .all-players-container {
            gap: 2rem;
        }
    }

    /* Day Separator */
    .day-separator {
        position: sticky;
        top: 0;
        z-index: 10;
        padding: 0.5rem 0;
        margin: 0 0 0.75rem 0;
        background: var(--bg-primary);
    }

    @media (min-width: 768px) {
        .day-separator {
            padding: 0.75rem 0;
            margin: 0 0 1rem 0;
        }
    }

    .day-separator-content {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }

    .day-separator-line {
        flex: 1;
        height: 1px;
        background: var(--border-secondary);
    }

    .day-date-text {
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--text-primary);
        white-space: nowrap;
        text-align: center;
    }

    @media (min-width: 768px) {
        .day-date-text {
            font-size: 1.1rem;
        }
    }

    /* Day Players Group */
    .day-players-group {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 390px), 1fr));
        gap: 1rem;
        animation: fadeIn 0.6s ease-out;
    }

    @media (min-width: 768px) {
        .day-players-group {
            gap: 1rem;
        }
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Player Cards - Mobile First Compact Design */
    .player-card {
        background: var(--app-card-bg);
        border: 1px solid var(--app-card-border);
        border-radius: 12px;
        box-shadow: var(--app-card-shadow);
        transition: all 0.2s ease;
        overflow: hidden;
    }

    .player-card:hover {
        background: var(--app-card-hover-bg);
        border-color: var(--app-card-border-hover);
        box-shadow: var(--app-card-shadow-hover);
    }

    .player-card-header {
        padding: 0.75rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    @media (min-width: 768px) {
        .player-card-header {
            padding: 1rem;
        }
    }

    /* Player Top Section */
    .player-top {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .player-image {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid var(--app-card-border);
        flex-shrink: 0;
    }

    @media (min-width: 768px) {
        .player-image {
            width: 56px;
            height: 56px;
        }
    }

    .player-info {
        flex: 1;
        min-width: 0;
    }

    .player-name {
        font-size: 1rem;
        font-weight: 700;
        color: var(--text-primary);
        margin-bottom: 0.25rem;
        line-height: 1.2;
    }

    @media (min-width: 768px) {
        .player-name {
            font-size: 1.2rem;
        }
    }

    .player-matchup {
        font-size: 0.75rem;
        color: var(--text-secondary);
        display: flex;
        align-items: center;
        gap: 0.375rem;
    }

    @media (min-width: 768px) {
        .player-matchup {
            font-size: 0.85rem;
            gap: 0.5rem;
        }
    }

    @media (max-width: 768px) {
        .prop-label-full {
            display: none !important;
        }

        .prop-label-abbr {
            display: inline !important;
        }
    }

    .player-game-time {
        font-size: 0.7rem;
        color: var(--text-muted);
        margin-top: 0.25rem;
        font-weight: 500;
    }

    .props-callout {
        margin-bottom: 1.5rem;
        padding: 1.25rem 1.5rem;
        border-radius: 0.85rem;
        text-align: center;
        background: var(--app-card-bg);
        border: 1px solid var(--app-card-border);
        box-shadow: var(--app-card-shadow);
    }

    .props-callout-text {
        margin: 0;
        color: var(--text-primary);
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .props-ev-toggle {
        display: flex;
        justify-content: center;
        margin-bottom: 1.5rem;
    }

    .props-ev-toggle-group {
        display: inline-flex;
        gap: 0.4rem;
        padding: 0.4rem;
        background: var(--bg-elevated);
        border: 1px solid var(--border-secondary);
        border-radius: 0.6rem;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    }

    .ev-toggle-button {
        padding: 0.5rem 1rem;
        background: transparent;
        color: var(--text-secondary);
        border: 1px solid transparent;
        border-radius: 0.5rem;
        font-weight: 600;
        font-size: 0.85rem;
        cursor: pointer;
        transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    }

    .ev-toggle-button:hover {
        color: var(--text-primary);
    }

    .ev-toggle-button.active {
        background: var(--button-primary);
        color: var(--on-primary);
        border-color: var(--button-primary);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
    }

    .period-button {
        padding: 0.45rem 0.9rem;
        background: var(--bg-elevated);
        color: var(--text-secondary);
        border: 1px solid var(--border-secondary);
        border-radius: 0.5rem;
        font-weight: 600;
        font-size: 0.8rem;
        cursor: pointer;
        transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    }

    .period-button.active {
        background: var(--button-primary);
        color: var(--on-primary);
        border-color: var(--button-primary);
    }

    .player-top-locked {
        align-items: center;
        justify-content: flex-start;
        gap: 0.6rem;
        padding: 0.6rem 0.75rem 0.2rem;
    }

    .player-locked-content {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        width: 100%;
        filter: blur(5px);
        opacity: 0.65;
        pointer-events: none;
    }

    .player-locked-cta {
        display: flex;
        justify-content: flex-start;
        padding: 0.1rem 0.75rem 0.45rem;
    }

    .props-subscribe-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.9rem;
        border-radius: 0.5rem;
        white-space: nowrap;
    }

    .prop-label-full {
        display: inline;
    }

    .prop-label-abbr {
        display: none;
    }

    @media (min-width: 768px) {
        .player-game-time {
            font-size: 0.75rem;
        }
    }

    .team-logo-small {
        width: 16px;
        height: 16px;
        object-fit: contain;
    }

    @media (min-width: 768px) {
        .team-logo-small {
            width: 20px;
            height: 20px;
        }
    }

    .matchup-at {
        color: rgba(255, 255, 255, 0.4);
        font-weight: 600;
    }

    .no-data-message {
        text-align: center;
        padding: 4rem 2rem;
        color: rgba(255, 255, 255, 0.6);
        font-size: 1.1rem;
    }

    .error-message {
        background: var(--ev-negative-bg);
        border: 1px solid var(--status-error);
        border-radius: 8px;
        padding: 1rem;
        margin-bottom: 2rem;
        color: var(--status-error);
    }

    /* Modal Styles */
    .prop-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(3, 3, 3, 0.98);
        z-index: 10000;
        overflow-y: auto;
        padding: 0.5rem;
    }

    @media (min-width: 768px) {
        .prop-modal {
            padding: 2rem;
        }
    }

    .prop-modal.active {
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }

    .modal-content {
        background: #030303;
        border: 2px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        max-width: 1200px;
        width: 100%;
        margin: 0.5rem auto;
        position: relative;
        overflow: hidden;
    }

    @media (min-width: 768px) {
        .modal-content {
            margin: 2rem auto;
        }
    }

    .modal-header {
        position: sticky;
        top: 0;
        z-index: 10;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background: #030303;
        backdrop-filter: blur(10px);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    @media (min-width: 768px) {
        .modal-header {
            padding: 1rem 1.5rem;
        }
    }

    .modal-header h2 {
        margin: 0;
        font-size: 1.2rem;
        color: var(--text-primary);
    }

    @media (min-width: 768px) {
        .modal-header h2 {
            font-size: 1.5rem;
        }
    }

    .modal-close {
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: white;
        font-size: 1.25rem;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        flex-shrink: 0;
    }

    .modal-close:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: rotate(90deg);
    }

    .modal-body {
        padding: 1rem;
        overflow-y: auto;
        max-height: calc(95vh - 80px);
    }

    @media (min-width: 768px) {
        .modal-body {
            padding: 1.5rem;
            max-height: calc(90vh - 100px);
        }
    }

    .loading-spinner {
        text-align: center;
        padding: 2rem;
        color: rgba(255, 255, 255, 0.6);
    }

    /* Modal Button Styles */
    .prop-buttons-container {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 1rem;
        padding: 0 1rem;
    }

    .prop-button {
        padding: 0.5rem 0.875rem;
        background: var(--bg-light, #1b1b1b);
        color: var(--text-secondary, #d0d0d0);
        border: 2px solid var(--border-color, #333333);
        border-radius: 0.5rem;
        font-size: 0.8125rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
        min-width: 55px;
    }

    .prop-button:hover:not(.active) {
        background: var(--bg-medium, #0f0f0f);
        border-color: var(--button-primary);
        transform: translateY(-1px);
    }

    .prop-button.active {
        background: var(--button-primary);
        color: var(--on-primary);
        border-color: var(--button-primary);
    }

    .prop-button.active:hover {
        background: var(--button-hover-primary);
    }

    .prop-tab-abbr {
        display: none;
    }

    @media (max-width: 640px) {
        .prop-button {
            padding: 0.4375rem 0.625rem;
            min-width: 48px;
            font-size: 0 !important;
        }

        .prop-tab-full {
            display: none;
        }

        .prop-tab-abbr {
            display: inline;
            font-size: 0.6875rem !important;
        }
    }

    /* Modal Period Selector */
    .modal-period-selector {
        display: flex;
        gap: 0.5rem;
        justify-content: center;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
        flex-wrap: wrap;
    }

    .modal-period-button {
        padding: 0.5rem 0.875rem;
        background: var(--bg-light, #1b1b1b);
        color: var(--text-secondary, #d0d0d0);
        border: 2px solid var(--border-color, #333333);
        border-radius: 0.5rem;
        font-size: 0.8125rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
        min-width: 70px;
    }

    .modal-period-button:hover:not(.active) {
        background: var(--bg-medium, #0f0f0f);
        border-color: var(--button-primary);
        transform: translateY(-1px);
    }

    .modal-period-button.active {
        background: var(--button-primary);
        color: var(--on-primary);
        border-color: var(--button-primary);
    }

    .modal-period-button.active:hover {
        background: var(--button-hover-primary);
    }

    /* Modal Charts Container */
    .modal-charts-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }

    .modal-charts-container .chart-container {
        height: 320px;
        background: var(--bg-medium, #0f0f0f);
        border: 1px solid var(--border-color, #333333);
        border-radius: 0.75rem;
        padding: 1.5rem;
    }

    @media (max-width: 768px) {
        .modal-charts-container .chart-container {
            height: 280px;
            padding: 1rem;
        }
    }

    /* Modal Analysis Summary */
    .modal-analysis-summary {
        background: var(--bg-medium, #0f0f0f);
        border: 1px solid var(--border-color, #333333);
        border-radius: 0.75rem;
        padding: 1.5rem 1rem;
        margin: 0 1rem 1rem 1rem;
    }

    .modal-summary-stat {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0.5rem 0;
    }

    .modal-summary-label {
        font-size: 0.875rem;
        color: var(--text-muted, #b4b4b4);
        text-transform: uppercase;
        font-weight: 600;
        letter-spacing: 0.05em;
        margin-bottom: 0.375rem;
    }

    .modal-summary-value {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text-primary, #ffffff);
    }

    .modal-summary-value.positive {
        color: var(--status-success);
    }

    .modal-summary-value.negative {
        color: var(--status-error);
    }

    .modal-analysis-summary {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 0.5rem;
    }

    .odds-stack {
        display: flex;
        flex-direction: column;
        gap: 0.125rem;
        font-size: 0.875rem;
        line-height: 1.1;
    }

    .odds-over {
        color: var(--text-primary, #ffffff);
        font-weight: 600;
    }

    .odds-under {
        color: var(--text-primary, #ffffff);
        font-weight: 600;
    }

    @media (max-width: 768px) {
        .modal-analysis-summary {
            padding: 1rem 0.75rem;
            gap: 0.375rem;
        }

        .modal-summary-stat {
            padding: 0.375rem 0;
        }

        .modal-summary-label {
            font-size: 0.75rem;
            margin-bottom: 0.25rem;
        }

        .modal-summary-value {
            font-size: 1.125rem;
        }

        .odds-stack {
            font-size: 0.75rem;
        }
    }

    @media (max-width: 640px) {
        .modal-analysis-summary {
            grid-template-columns: repeat(5, 1fr);
            gap: 0.25rem;
            padding: 0.75rem 0.5rem;
        }

        .modal-summary-label {
            font-size: 0.625rem;
        }

        .modal-summary-value {
            font-size: 0.875rem;
        }

        .odds-stack {
            font-size: 0.625rem;
        }
    }

    /* No Data Overlay */
    .no-data-message {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: rgba(255, 255, 255, 0.6);
        font-size: 1rem;
    }


    /* ========== MODAL STATS CARDS STYLES ========== */
    .modal-stats-card-wrapper {
        background: var(--bg-medium, #0f0f0f);
        border-radius: 0.75rem;
        border: 1px solid var(--border-color, #333333);
        padding: 1.5rem 1rem;
        margin: 0 1rem 1.5rem 1rem;
    }

    .modal-stats-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 1rem;
        width: 100%;
    }

    .modal-stat-card {
        padding: 0.5rem 0;
        text-align: center;
        background: transparent;
    }

    .modal-stat-label {
        font-size: 1rem;
        color: var(--text-muted, #b4b4b4);
        text-transform: uppercase;
        font-weight: 600;
        letter-spacing: 0.05em;
        margin-bottom: 0.375rem;
    }

    .modal-stat-value {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--text-primary, #ffffff);
    }

    .modal-stat-value.large {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    /* Card-specific row styles */
    .modal-average-rows,
    .modal-line-odds,
    .modal-hit-rows,
    .modal-model-rows,
    .modal-ev-rows {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
        margin-top: 0.5rem;
    }

    .modal-avg-row,
    .modal-hit-row,
    .modal-model-row,
    .modal-ev-row,
    .modal-odds-row {
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 0.85rem;
        line-height: 1.3;
        flex-direction: column;
        gap: 0.2rem;
    }

    .modal-avg-row {
        color: var(--text-secondary, #d0d0d0);
        font-weight: 500;
        white-space: nowrap;
    }

    .modal-avg-row-selected {
        font-weight: 600;
        color: var(--text-primary, #ffffff);
    }

    .modal-hit-value,
    .modal-model-value,
    .modal-ev-value {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--text-primary, #ffffff);
    }

    .modal-hit-label,
    .modal-model-label,
    .modal-ev-label {
        font-size: 0.7rem;
        color: var(--text-muted, #b4b4b4);
        text-transform: uppercase;
    }

    .modal-odds-row {
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--text-secondary, #d0d0d0);
    }

    .modal-ev-value.positive {
        color: var(--status-success);
    }

    .modal-ev-value.negative {
        color: var(--status-error);
    }

    /* ========== MODAL EV SUMMARY TABLES ========== */
    .modal-ev-summary-section {
        margin: 0 1rem 1.5rem 1rem;
        padding: 1.5rem;
        background: var(--app-card-bg);
        border: 1px solid var(--app-card-border);
        border-radius: 0.9rem;
        box-shadow: var(--app-card-shadow);
    }

    .modal-ev-summary-section h3 {
        margin: 0 0 0.5rem 0;
    }

    .modal-ev-summary-section h4 {
        margin: 0 0 0.25rem 0;
    }

    /* Mobile styles for modal stats */
    @media (max-width: 768px) {
        .modal-stats-card-wrapper {
            padding: 0.5rem;
        }

        .modal-stats-grid {
            grid-template-columns: repeat(5, 1fr);
            gap: 0.5rem;
        }

        .modal-stat-card {
            padding: 0.5rem 0;
        }

        .modal-stat-label {
            font-size: 0.75rem;
        }

        .modal-stat-value {
            font-size: 1rem;
        }

        .modal-stat-value.large {
            font-size: 1rem;
            margin-bottom: 0.5rem;
        }

        .modal-avg-row,
        .modal-hit-row,
        .modal-model-row,
        .modal-ev-row,
        .modal-odds-row {
            font-size: 0.75rem;
        }

        .modal-hit-value,
        .modal-model-value,
        .modal-ev-value {
            font-size: 0.95rem;
        }

        .modal-hit-label,
        .modal-model-label,
        .modal-ev-label {
            font-size: 0.65rem;
        }

        .modal-ev-summary-section {
            margin: 0 0.5rem 1rem 0.5rem;
            padding: 1rem;
        }

    }

    @media (max-width: 640px) {
        .modal-stats-grid {
            gap: 0.25rem;
        }

        .modal-stat-label {
            font-size: 0.625rem;
            margin-bottom: 0.25rem;
        }

        .modal-stat-value {
            font-size: 0.875rem;
        }

        .modal-stat-value.large {
            font-size: 0.875rem;
        }

        .modal-avg-row,
        .modal-hit-row,
        .modal-model-row,
        .modal-ev-row,
        .modal-odds-row {
            font-size: 0.65rem;
        }

        .modal-hit-value,
        .modal-model-value,
        .modal-ev-value {
            font-size: 0.85rem;
        }

        .modal-hit-label,
        .modal-model-label,
        .modal-ev-label {
            font-size: 0.6rem;
        }

        .modal-ev-summary-section {
            padding: 0.85rem;
        }

    }

/* Detailed analysis: retain context while scrolling and clarify comparisons. */
.prop-modal .modal-content { max-height:92dvh; overflow:auto; }
.prop-modal .modal-header { position:sticky; top:0; z-index:20; background:var(--bg-secondary, #1c1c1c); }
.prop-modal .modal-close { min-width:44px; min-height:44px; }
.prop-modal .analysis-context, .prop-modal .analysis-method { color:var(--text-secondary); font-size:.75rem; line-height:1.6; margin:.75rem 0; }
.prop-modal .analysis-method { padding:.75rem; border:1px solid var(--border-color); border-radius:.5rem; }
.prop-modal .analysis-method summary { cursor:pointer; }
.prop-modal .modal-stat-label { letter-spacing:.04em; }
@media(max-width:600px) { .prop-modal .modal-content { max-height:96dvh; } }

/* Market names open analysis in every tier with access to that player. */
.prop-market-link {
    display:inline-flex;
    align-items:center;
    gap:.15em;
    border:0;
    background:transparent;
    padding:0;
    color:var(--link-color, #8ab4ff);
    font:inherit;
    font-weight:600;
    text-align:left;
    cursor:pointer;
}
.prop-market-link:hover { text-decoration:underline; }
.prop-market-link:focus-visible { outline:2px solid var(--primary-color); outline-offset:2px; }

/* Shared locked cards contain decorative placeholders, never hidden values. */
.player-card[hidden] { display:none; }
.prop-locked-table { position:relative; min-height:145px; }
.prop-locked-placeholder { display:block; height:.65rem; min-width:1.25rem; background:var(--primary-color); opacity:.35; filter:blur(4px); }
.prop-unlock { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); white-space:nowrap; font-size:.8rem; }
.prop-access-notice { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.5rem 1rem; margin-bottom:1rem; padding:.75rem 1rem; border:1px solid var(--app-card-border); border-radius:12px; background:var(--app-card-bg); font-size:.85rem; }
.prop-access-notice p { margin:0; color:var(--text-secondary); }
.prop-access-notice a + a { margin-left:.75rem; }
.prop-search { display:grid; gap:.4rem; margin:1rem 0; font-size:.85rem; color:var(--text-secondary); }
.prop-search input { width:min(100%,320px); min-width:0; box-sizing:border-box; padding:.65rem .75rem; font:inherit; font-size:16px; border:1px solid var(--app-card-border); border-radius:8px; background:var(--app-card-bg); color:var(--text-primary); }
.prop-locked-table .sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
