.search-results-wrapper.stats-table-shell .quarter-summary-container {
    margin: clamp(0.75rem, 2vw, 1.75rem) 0;
    padding: 0;
    background: transparent;
    width: 100%;
    display: block;
}

.search-results-wrapper.stats-table-shell .quarter-summary-card {
    border-radius: 20px;
    box-shadow: 0 18px 36px -28px rgba(15, 23, 42, 0.55);
}

.search-results-wrapper.stats-table-shell .quarter-summary-metric {
    background: #ffffff;
}

.comparison-summary-container {
    margin: clamp(0.35rem, 1vw, 0.75rem) 0 clamp(0.9rem, 2vw, 1.25rem);
}

.comparison-summary-card {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    box-shadow: 0 14px 28px -24px rgba(15, 23, 42, 0.5);
    padding: clamp(0.85rem, 2vw, 1.2rem);
}

.comparison-summary-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--team-primary, #0b2240);
}

.comparison-summary-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.comparison-summary-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.18rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--team-primary);
    background: rgba(15, 23, 42, 0.06);
}

.comparison-summary-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.comparison-summary-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.85rem;
    align-items: center;
}

.comparison-summary-player {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    padding: 0.7rem 0.75rem;
    background: #ffffff;
}

.comparison-summary-name {
    margin: 0;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.2;
}

.comparison-summary-value {
    margin: 0.22rem 0 0;
    color: var(--team-primary);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
}

.comparison-summary-meta {
    margin: 0.3rem 0 0;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
}

.comparison-summary-divider {
    text-align: center;
    min-width: 120px;
}

.comparison-summary-result {
    margin: 0;
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 700;
}

.comparison-summary-gap {
    margin: 0.24rem 0 0;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .search-results-wrapper.stats-table-shell .quarter-summary-card {
        padding: clamp(1.1rem, 5vw, 1.55rem);
    }

    .comparison-summary-grid {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .comparison-summary-divider {
        min-width: 0;
    }
}

.opponent-chip-spacer {
    display: inline-block;
    width: 0.45rem;
}
.streak-summary-container {
    margin: clamp(0.75rem, 2vw, 1.75rem) auto;
    width: 100%;
    max-width: 1100px;
}

.streak-summary-card {
    position: relative;
    background: #ffffff;
    border-radius: 22px;
    padding: clamp(1.15rem, 2.5vw, 1.8rem);
    box-shadow: 0 24px 46px -32px rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(12, 24, 54, 0.08);
    color: #0f172a;
    overflow: hidden;
}

.streak-summary-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--team-primary, #0b2240);
}

.streak-summary-card.team-themed {
    background: #ffffff;
}

.streak-summary-header {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: clamp(0.65rem, 1.5vw, 0.9rem);
    padding: clamp(0.85rem, 1.8vw, 1.1rem) clamp(0.95rem, 2.2vw, 1.25rem);
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.05) 0%, rgba(255, 255, 255, 0.98) 64%);
    overflow: hidden;
}

.streak-summary-header::before {
    content: none;
}

.streak-summary-header-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.streak-summary-chip {
    align-self: flex-start;
    background: var(--team-primary, #0b2240);
    color: #ffffff;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    text-transform: uppercase;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 10px 18px -14px rgba(15, 23, 42, 0.6);
}

.streak-summary-eyebrow {
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: rgba(71, 85, 105, 0.95);
    font-weight: 700;
}

.streak-summary-heading {
    margin: 0;
    font-size: clamp(1.05rem, 2.1vw, 1.24rem);
    line-height: 1.25;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.01em;
}

.streak-summary-text {
    margin: 0;
    font-size: clamp(0.92rem, 1.95vw, 1.02rem);
    line-height: 1.52;
    color: rgba(15, 23, 42, 0.78);
}

.streak-summary-card-collection {
    display: grid;
    gap: clamp(0.75rem, 1.8vw, 1rem);
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.streak-summary-item {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.05rem 1.15rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 30px -24px rgba(15, 23, 42, 0.35);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.streak-summary-item.is-current {
    border-color: var(--team-primary, #0b2240);
    box-shadow: 0 22px 40px -24px rgba(15, 23, 42, 0.45);
}

.streak-summary-item-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.streak-summary-item-title {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.75);
}

.streak-summary-item-value {
    font-size: clamp(1.8rem, 4vw, 2.1rem);
    font-weight: 700;
    color: var(--team-primary, #0b2240);
}

.streak-summary-item-span {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.65);
}

.streak-summary-item-range {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(100, 116, 139, 0.95);
}

.streak-summary-team {
    margin: 0;
    align-self: flex-start;
    font-size: 0.76rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 0.24rem 0.62rem;
    border-radius: 999px;
    background: var(--team-primary, #0b2240);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.streak-summary-games {
    margin: 0.35rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
    list-style: none;
    font-size: 0.82rem;
    color: rgba(15, 23, 42, 0.78);
}

.streak-summary-games li {
    margin: 0;
}

.streak-summary-games li:last-child {
    margin-bottom: 0;
}

.streak-game-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.6rem;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 0.78rem;
}

.streak-game-link {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.streak-game-link:hover {
    text-decoration: none;
}

.streak-game-link:focus-visible {
    outline: 2px solid var(--team-primary, #0b2240);
    outline-offset: 2px;
    border-radius: 8px;
}

.streak-game-round {
    font-weight: 700;
    color: #0f172a;
}

.streak-game-opponent {
    color: rgba(15, 23, 42, 0.85);
    font-weight: 600;
}

.streak-game-date {
    color: rgba(100, 116, 139, 0.95);
}

.streak-game-result {
    margin-left: auto;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    border: 1px solid transparent;
}

.streak-game-result.win {
    background: #D1FAE5;
    color: #065F46;
    border-color: #A7F3D0;
}

.streak-game-result.loss {
    background: #FEE2E2;
    color: #991B1B;
    border-color: #FECACA;
}

.streak-game-result.draw {
    background: #FEF3C7;
    color: #92400E;
    border-color: #FDE68A;
}

.streak-game-text {
    color: rgba(15, 23, 42, 0.78);
}

.longest-streak-bridge {
    margin: clamp(0.65rem, 1.8vw, 1rem) auto clamp(0.55rem, 1.5vw, 0.9rem);
    width: 100%;
    max-width: 1100px;
    display: flex;
    justify-content: flex-start;
}

.longest-streak-bridge-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.46rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.16);
    background: #ffffff;
    box-shadow: 0 12px 24px -22px rgba(15, 23, 42, 0.62);
}

.longest-streak-bridge-title {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    font-weight: 800;
    color: var(--team-primary, #0b2240);
    white-space: nowrap;
}

.longest-streak-bridge-divider {
    width: 1px;
    height: 0.85rem;
    background: rgba(15, 23, 42, 0.2);
}

.longest-streak-bridge-value {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 0.83rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

.longest-streak-games-container {
    margin: clamp(0.25rem, 0.8vw, 0.45rem) auto 0;
    width: 100%;
    max-width: 1100px;
}

.longest-streak-games-header {
    margin: 0 0 0.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.longest-streak-games-title {
    margin: 0;
    font-size: clamp(0.95rem, 1.95vw, 1.1rem);
    font-weight: 800;
    color: #0f172a;
}

.longest-streak-games-subtitle {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(15, 23, 42, 0.7);
}

.longest-streak-toggle {
    margin-top: 0.65rem;
    display: flex;
    justify-content: flex-start;
}

.longest-streak-toggle-btn {
    appearance: none;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(15, 23, 42, 0.04);
    color: var(--team-primary, #0b2240);
    border-radius: 999px;
    padding: 0.34rem 0.82rem;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    cursor: pointer;
}

.longest-streak-toggle-btn:hover {
    background: rgba(15, 23, 42, 0.08);
}

.longest-streak-toggle-btn:focus-visible {
    outline: 2px solid rgba(15, 23, 42, 0.32);
    outline-offset: 2px;
}

.streak-detail-subject {
    display: inline-flex;
    max-width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.32rem;
}

.streak-detail-subject-primary {
    min-width: 0;
    max-width: 100%;
}

.streak-detail-toggle {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    min-height: 1.65rem;
    margin: 0;
    padding: 0.26rem 0.58rem;
    border: 1px solid color-mix(in srgb, var(--team-primary, #0b2240) 24%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--team-primary, #0b2240) 7%, #ffffff);
    color: var(--team-primary, #0b2240);
    font: inherit;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.streak-detail-toggle:hover {
    border-color: color-mix(in srgb, var(--team-primary, #0b2240) 38%, transparent);
    background: color-mix(in srgb, var(--team-primary, #0b2240) 12%, #ffffff);
}

.streak-detail-toggle:focus-visible,
.streak-detail-retry:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--team-primary, #0b2240) 56%, transparent);
    outline-offset: 2px;
}

.streak-detail-toggle[aria-busy="true"] {
    cursor: progress;
}

.streak-detail-toggle-chevron {
    display: inline-block;
    font-size: 0.86rem;
    line-height: 0.8;
    transform-origin: center;
    transition: transform 160ms ease;
}

.streak-detail-toggle[aria-expanded="true"] .streak-detail-toggle-chevron {
    transform: rotate(180deg);
}

tr.streak-detail-row[hidden] {
    display: none !important;
}

.unified-stats-table > tbody > tr.streak-detail-row,
.unified-stats-table > tbody > tr.streak-detail-row:hover {
    background: transparent !important;
}

.unified-stats-table > tbody > tr.streak-detail-row > td.streak-detail-cell,
.unified-stats-table > tbody > tr.streak-detail-row:hover > td.streak-detail-cell {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    border-top: 0 !important;
    background: transparent !important;
    overflow: visible !important;
    position: static !important;
    left: auto !important;
    z-index: auto !important;
    box-shadow: none !important;
    white-space: normal !important;
}

.streak-detail-panel {
    margin: 0.18rem 0.55rem 0.72rem;
    padding: clamp(0.72rem, 1.7vw, 1rem);
    border: 1px solid rgba(15, 23, 42, 0.11);
    border-left: 3px solid var(--team-primary, #0b2240);
    border-radius: 12px;
    background: linear-gradient(180deg, #fbfdff 0%, #f8fafc 100%);
    box-shadow: 0 12px 26px -24px rgba(15, 23, 42, 0.65);
    animation: streak-detail-reveal 160ms ease-out both;
}

.scoring-detail-row .streak-detail-panel {
    /* Evidence scrolls inside its row without widening the parent leaderboard. */
    contain: inline-size;
}

.streak-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.65rem;
}

.streak-detail-eyebrow {
    margin: 0 0 0.12rem;
    color: color-mix(in srgb, var(--team-primary, #0b2240) 80%, #475569);
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.streak-detail-title {
    margin: 0;
    color: #0f172a;
    font-size: 0.94rem;
    font-weight: 850;
    line-height: 1.25;
}

.streak-detail-count {
    flex: 0 0 auto;
    padding: 0.3rem 0.62rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 999px;
    background: #ffffff;
    color: #334155;
    font-size: 0.69rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.streak-detail-loading,
.streak-detail-error,
.streak-detail-empty {
    min-height: 3.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 1px dashed rgba(15, 23, 42, 0.14);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.72);
    color: #475569;
    font-size: 0.78rem;
    font-weight: 650;
    text-align: center;
}

.streak-detail-spinner {
    width: 0.9rem;
    height: 0.9rem;
    flex: 0 0 auto;
    border: 2px solid color-mix(in srgb, var(--team-primary, #0b2240) 18%, transparent);
    border-top-color: var(--team-primary, #0b2240);
    border-radius: 50%;
    animation: streak-detail-spin 650ms linear infinite;
}

.streak-detail-error {
    flex-wrap: wrap;
    color: #991b1b;
    border-color: rgba(185, 28, 28, 0.18);
    background: rgba(254, 242, 242, 0.78);
}

.streak-detail-retry {
    appearance: none;
    padding: 0.28rem 0.58rem;
    border: 1px solid rgba(185, 28, 28, 0.25);
    border-radius: 999px;
    background: #ffffff;
    color: #991b1b;
    font: inherit;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
}

.streak-detail-retry:hover {
    background: #fff7f7;
}

.streak-detail-scroll {
    width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: 9px;
    background: #ffffff;
    scrollbar-width: thin;
}

.streak-detail-table {
    width: 100%;
    min-width: 620px;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
}

.unified-stats-table.streak-detail-table.profile-data-table > thead > tr > th {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0.52rem 0.58rem !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1) !important;
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 0.64rem;
    font-weight: 850;
    letter-spacing: 0.035em;
    line-height: 1.2;
    text-align: left !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    overflow: visible !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    z-index: auto !important;
    box-shadow: none !important;
}

.unified-stats-table.streak-detail-table.profile-data-table > tbody > tr > td {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0.48rem 0.58rem !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.065) !important;
    background: #ffffff !important;
    color: #1e293b;
    font-size: 0.75rem;
    line-height: 1.25;
    text-align: left !important;
    text-transform: none !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    position: static !important;
    left: auto !important;
    z-index: auto !important;
    box-shadow: none !important;
}

.unified-stats-table.streak-detail-table.profile-data-table > tbody > tr:last-child > td {
    border-bottom: 0 !important;
}

.unified-stats-table.streak-detail-table.profile-data-table > tbody > tr:hover > td {
    background: #f8fafc !important;
}

.unified-stats-table.streak-detail-table.profile-data-table .streak-detail-stat-header,
.unified-stats-table.streak-detail-table.profile-data-table .streak-detail-stat-cell {
    background: color-mix(in srgb, var(--team-primary, #0b2240) 6%, #ffffff) !important;
    color: var(--team-primary, #0b2240) !important;
    font-weight: 850 !important;
}

.streak-detail-table .merged-result-score {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
}

.streak-detail-table .merged-result-value,
.streak-detail-table .merged-score-value {
    display: inline-flex;
    align-items: center;
}

.count-detail-pagination.profile-pagination-container {
    margin-top: 0.62rem;
    padding: 0.56rem 0 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0;
    background: transparent;
}

.count-detail-pagination .profile-pagination-btn:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--team-primary, #0b2240) 56%, transparent);
    outline-offset: 2px;
}

@keyframes streak-detail-reveal {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes streak-detail-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 680px) {
    .longest-streak-bridge-bubble {
        border-radius: 14px;
        padding: 0.56rem 0.72rem;
        gap: 0.32rem;
    }

    .longest-streak-bridge-title,
    .longest-streak-bridge-value {
        width: 100%;
        text-align: left;
        white-space: normal;
    }

    .longest-streak-bridge-divider {
        display: none;
    }

    .streak-detail-toggle {
        min-height: 1.55rem;
        padding: 0.23rem 0.5rem;
        font-size: 0.66rem;
    }

    .streak-detail-panel {
        margin: 0.12rem 0.2rem 0.58rem;
        padding: 0.62rem;
        border-radius: 10px;
    }

    .streak-detail-header {
        align-items: flex-start;
        margin-bottom: 0.52rem;
    }

    .streak-detail-title {
        font-size: 0.86rem;
    }

    .streak-detail-table {
        min-width: 540px;
    }

    .count-detail-pagination.profile-pagination-container {
        justify-content: flex-start;
        gap: 0.36rem;
        overflow-x: auto;
        padding-bottom: 0.2rem;
    }

    .count-detail-pagination .profile-pagination-info {
        flex: 0 0 auto;
    }

    .unified-stats-table.streak-detail-table.profile-data-table > thead > tr > th,
    .unified-stats-table.streak-detail-table.profile-data-table > tbody > tr > td {
        padding: 0.43rem 0.48rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .streak-detail-panel,
    .streak-detail-spinner,
    .streak-detail-toggle-chevron {
        animation: none;
        transition: none;
    }
}

.games-interpretation-container {
    margin: clamp(2.1rem, 5vw, 3.2rem) auto 0;
    width: 100%;
    max-width: 1100px;
}

.games-interpretation-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.78) 0%, #ffffff 46%);
    box-shadow: 0 14px 28px -26px rgba(15, 23, 42, 0.55);
    padding: clamp(0.9rem, 2vw, 1.2rem);
}

.games-interpretation-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--team-primary, #0b2240);
}

.games-interpretation-title {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.58rem;
    color: #0f172a;
    font-size: clamp(1rem, 2.1vw, 1.14rem);
    font-weight: 800;
    letter-spacing: 0.01em;
}

.games-interpretation-title::before {
    content: "";
    width: 0.56rem;
    height: 0.56rem;
    border-radius: 999px;
    background: var(--team-primary, #0b2240);
    box-shadow: 0 0 0 4px rgba(11, 34, 64, 0.15);
}

.games-interpretation-summary {
    margin-top: 0.72rem;
    padding-top: 0.72rem;
    border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.games-interpretation-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

.games-interpretation-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.65rem;
    align-items: start;
    padding: 0.58rem 0.72rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 11px;
    background: #f8fafc;
}

.games-interpretation-index {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: var(--team-primary, #0b2240);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-top: 0.08rem;
}

.games-interpretation-text {
    margin: 0;
    font-size: 0.91rem;
    line-height: 1.45;
    color: rgba(15, 23, 42, 0.84);
}

.games-interpretation-refine-host {
    margin-top: 0.88rem;
    padding-top: 0.84rem;
    border-top: 1px dashed rgba(15, 23, 42, 0.16);
}

.games-interpretation-inline-control-wrap {
    display: inline-flex;
    align-items: center;
    margin: 0;
    vertical-align: baseline;
}

.games-interpretation-index::before {
    content: attr(data-step);
}

.games-interpretation-refine-field-control {
    appearance: none;
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.2);
    border-radius: 10px;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.84rem;
    line-height: 1.25;
    padding: 0.5rem 0.62rem;
}

.games-interpretation-inline-control {
    width: auto;
    min-width: 7ch;
    max-width: min(100%, 34ch);
    margin: 0;
    padding: 0.34rem 0.5rem;
    border-radius: 8px;
    font-size: 0.8rem;
}

.games-interpretation-inline-control[type="number"] {
    min-width: 10ch;
}

.games-interpretation-inline-tabs-wrap {
    margin-left: 0.24rem;
    margin-right: 0.24rem;
}

.games-interpretation-inline-tabs {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.14rem;
    border: 1px solid rgba(15, 23, 42, 0.2);
    border-radius: 999px;
    background: #ffffff;
}

.games-interpretation-inline-tab {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 0.3rem 0.56rem;
    font-size: 0.76rem;
    line-height: 1;
    font-weight: 600;
    color: #334155;
    background: transparent;
    cursor: pointer;
    transition: background-color 120ms ease, color 120ms ease;
}

.games-interpretation-inline-tab:hover {
    background: rgba(15, 23, 42, 0.08);
}

.games-interpretation-inline-tab.is-active {
    background: var(--team-primary, #0b2240);
    color: #ffffff;
}

.games-interpretation-refine-field-control:focus-visible {
    outline: 2px solid rgba(15, 23, 42, 0.28);
    outline-offset: 1px;
}

.games-interpretation-refine-actions {
    margin-top: 0.72rem;
    display: flex;
    justify-content: flex-end;
}

.games-interpretation-refine-button {
    appearance: none;
    border: 1px solid rgba(15, 23, 42, 0.18);
    border-radius: 999px;
    background: var(--team-primary, #0b2240);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    padding: 0.56rem 1rem;
    cursor: pointer;
}

.games-interpretation-refine-button:hover {
    filter: brightness(0.94);
}

.games-interpretation-refine-button:focus-visible {
    outline: 2px solid rgba(15, 23, 42, 0.32);
    outline-offset: 2px;
}

@media (max-width: 680px) {
    .games-interpretation-inline-control {
        min-width: 6ch;
        max-width: min(100%, 30ch);
    }

    .games-interpretation-refine-actions {
        justify-content: stretch;
    }

    .games-interpretation-refine-button {
        width: 100%;
    }
}

.related-questions-container {
    margin: clamp(1rem, 2.5vw, 1.5rem) auto 0;
    width: 100%;
    max-width: 1100px;
}

.related-questions-shell {
    position: relative;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.related-questions-header {
    position: relative;
    margin: 0 0 0.72rem 0;
    padding: 0;
}

.related-questions-title {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    user-select: none;
}

.related-questions-title::before,
.related-questions-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.18), rgba(10, 25, 49, 0.28), rgba(148, 163, 184, 0.18));
}

.related-questions-title::before {
    display: none;
}

.related-questions-title span {
    white-space: nowrap;
}

.related-questions-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.72rem;
}

.related-question-item {
    display: block;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: calc(98px * 1.4);
    min-height: calc(98px * 1.4);
}

.related-question-card {
    position: relative;
    display: block;
    border-radius: 16px;
    border: 0;
    background: var(--team-primary, var(--brand-blue));
    color: #ffffff;
    text-decoration: none;
    overflow: hidden;
    height: calc(98px * 1.4);
    min-height: calc(98px * 1.4);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.related-question-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.24);
}

.related-question-card:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.88);
    outline-offset: 2px;
}

.related-question-card.is-placeholder {
    pointer-events: none;
    cursor: default;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.12));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.related-question-card.is-placeholder:hover {
    transform: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.related-question-card-body {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: calc(98px * 1.4);
    height: 100%;
    padding: 0.62rem 0.76rem;
}

.related-question-card-copy {
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    white-space: normal;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    max-height: calc(1.2em * 3);
}

.related-question-card-skeleton {
    width: 100%;
    display: grid;
    gap: 0.48rem;
}

.related-question-placeholder-line {
    position: relative;
    display: block;
    height: 0.72rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
    overflow: hidden;
}

.related-question-placeholder-line::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    animation: relatedQuestionShimmer 1.25s ease-in-out infinite;
}

.related-question-placeholder-line.line-1 {
    width: 94%;
}

.related-question-placeholder-line.line-2 {
    width: 86%;
}

.related-question-placeholder-line.line-3 {
    width: 70%;
}

.related-questions-empty {
    margin: 0;
    padding: 0.8rem;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.87rem;
    font-weight: 600;
}

.entity-profile-cards-container {
    margin-top: clamp(0.9rem, 2.3vw, 1.35rem);
}

.entity-profile-cards-grid .entity-profile-item {
    height: calc(98px * 1.4);
    min-height: calc(98px * 1.4);
}

.entity-profile-card {
    --entity-leader-avatar-size: 112px;
    --entity-leader-avatar-right: 0.35rem;
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    height: calc(98px * 1.4);
    min-height: calc(98px * 1.4);
    border-radius: 16px;
    border: 0;
    background: var(--team-primary, #0b2240);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.entity-profile-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.24);
}

.entity-profile-card:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.88);
    outline-offset: 2px;
}

.entity-profile-card-body {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.62rem;
    width: 100%;
    min-height: calc(98px * 1.4);
    height: 100%;
    padding: 0.86rem calc(var(--entity-leader-avatar-size) + 0.56rem) 0.78rem 0.9rem;
}

.entity-profile-item--team .entity-profile-card-body,
.entity-profile-item--coach .entity-profile-card-body {
    padding-right: 0.9rem;
}

.entity-profile-media {
    position: absolute;
    right: var(--entity-leader-avatar-right);
    bottom: 0;
    width: var(--entity-leader-avatar-size);
    height: var(--entity-leader-avatar-size);
    min-width: var(--entity-leader-avatar-size);
    min-height: var(--entity-leader-avatar-size);
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    display: block;
    line-height: 0;
    font-size: 0;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    pointer-events: none;
}

.entity-profile-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    vertical-align: bottom;
}

.entity-profile-copy-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

.entity-profile-name {
    margin: 0;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: left;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    max-height: calc(1.2em * 2);
}

@keyframes relatedQuestionShimmer {
    100% {
        transform: translateX(100%);
    }
}

@media (max-width: 820px) {
    /* The global mobile header uses 100vw for its full-bleed layout. On
       platforms with non-overlay scrollbars that unit includes the scrollbar
       gutter and creates page-level horizontal overflow. Keep modular result
       pages contained to their actual layout viewport. */
    .top-bar {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 720px) {
    .entity-profile-card {
        --entity-leader-avatar-size: 94px;
        --entity-leader-avatar-right: 0.28rem;
    }

    .entity-profile-card-body {
        padding-right: calc(var(--entity-leader-avatar-size) + 0.45rem);
    }

    .entity-profile-item--team .entity-profile-card-body,
    .entity-profile-item--coach .entity-profile-card-body {
        padding-right: 0.9rem;
    }

    .related-questions-grid {
        grid-template-columns: 1fr;
    }

    .streak-summary-card {
        padding: clamp(1rem, 4.2vw, 1.35rem);
    }
}
