/* ==========================================================================
   GoalLogic Match Insights Stylesheet
   - Monte Carlo Poisson Match Simulator & Top Scorelines
   - Upgraded Fan Sentiment & Community Poll
   - 15-Minute Goal Timing & Danger Zone Distribution
   - Key Player Duel & Talisman Spotlight
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. SHARED INSIGHT CARD BASE STYLES
   -------------------------------------------------------------------------- */
.gl-insight-card {
    background: var(--bg-secondary, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 14px;
    padding: 18px 20px;
    margin-top: 18px;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gl-insight-card:hover {
    border-color: rgba(49, 94, 255, 0.3);
    box-shadow: 0 6px 18px -2px rgba(0, 0, 0, 0.07);
}

.gl-insight-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color, #f1f5f9);
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

.gl-insight-title-wrap {
    display: flex;
    align-items: center;
    gap: 9px;
}

.gl-insight-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(49, 94, 255, 0.1);
    color: #315eff;
    font-size: 13.5px;
    flex-shrink: 0;
}

.gl-insight-icon.danger {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.gl-insight-icon.sim {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.gl-insight-icon.duel {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.gl-insight-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gl-insight-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    background: var(--bg-primary, #f1f5f9);
    color: var(--text-secondary, #64748b);
    border: 1px solid var(--border-color, #e2e8f0);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.gl-insight-badge.sim-badge {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.25);
}

.gl-insight-badge.danger-badge {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.25);
}

/* --------------------------------------------------------------------------
   2. MONTE CARLO SIMULATOR CARD
   -------------------------------------------------------------------------- */
.mc-outcomes-wrap {
    margin-bottom: 12px;
}

.mc-prob-track {
    display: flex;
    height: 10px;
    border-radius: 8px;
    overflow: hidden;
    background: #e2e8f0;
    margin-bottom: 8px;
}

.mc-prob-seg {
    height: 100%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.mc-prob-seg.home {
    background: linear-gradient(90deg, #10b981, #059669);
}

.mc-prob-seg.draw {
    background: #94a3b8;
}

.mc-prob-seg.away {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.mc-prob-legend {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary, #475569);
    gap: 4px;
    flex-wrap: wrap;
}

.mc-legend-name {
    display: inline-block;
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

.mc-legend-val {
    font-weight: 800;
    color: var(--text-primary, #0f172a);
}

.mc-fair-odd-pill {
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: rgba(16, 185, 129, 0.12);
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 2px;
}

.mc-legend-item.home .mc-legend-val { color: #059669; }
.mc-legend-item.draw .mc-legend-val { color: #64748b; }
.mc-legend-item.away .mc-legend-val { color: #2563eb; }

/* SIMULATED DERIVED MARKETS ROW */
.mc-derived-markets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.mc-market-stat {
    background: var(--bg-tertiary, rgba(0, 0, 0, 0.02));
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
    padding: 7px 10px;
}

.mc-mstat-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.mc-mstat-title {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    display: flex;
    align-items: center;
    gap: 5px;
}

.mc-mstat-title i {
    color: #315eff;
    font-size: 10.5px;
}

.mc-mstat-val {
    font-size: 12px;
    font-weight: 800;
    color: #315eff;
}

.mc-mstat-sub {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted, #94a3b8);
}

/* HEADER ROW & VIEW TOGGLE */
.mc-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 6px;
}

.mc-section-label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-secondary, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mc-view-toggle {
    display: inline-flex;
    background: var(--bg-tertiary, rgba(0, 0, 0, 0.04));
    padding: 2px;
    border-radius: 6px;
    gap: 2px;
    border: 1px solid var(--border-color, #e2e8f0);
}

.mc-toggle-btn {
    background: transparent;
    border: none;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-secondary, #64748b);
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.mc-toggle-btn:hover {
    color: var(--text-primary, #0f172a);
}

.mc-toggle-btn.active {
    background: var(--bg-primary, #ffffff);
    color: var(--text-primary, #0f172a);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    font-weight: 700;
}

.mc-scores-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.mc-score-item {
    background: var(--bg-primary, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 10px;
    padding: 8px 6px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.mc-score-item:hover {
    transform: translateY(-2px);
    border-color: #315eff;
}

.mc-score-item.modal-top {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.04);
}

.mc-rank-tag {
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 1px 5px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 2px;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-muted, #64748b);
}

.mc-score-item.modal-top .mc-rank-tag {
    background: #10b981;
    color: #ffffff;
}

.mc-score-text {
    font-size: 15.5px;
    font-weight: 800;
    color: var(--text-primary, #0f172a);
    margin-top: 3px;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.mc-score-pct {
    font-size: 12px;
    font-weight: 700;
    color: #315eff;
}

.mc-score-item.modal-top .mc-score-pct {
    color: #059669;
}

.mc-score-subcount {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-muted, #94a3b8);
    margin-top: 1px;
}

/* 4x4 HEATMAP MATRIX */
.mc-heatmap-wrap {
    background: var(--bg-tertiary, rgba(0, 0, 0, 0.02));
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 12px;
}

.mc-heatmap-desc {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary, #64748b);
    margin-bottom: 8px;
    text-align: center;
}

.mc-matrix-table-wrap {
    overflow-x: auto;
}

.mc-matrix-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 4px;
    font-size: 11.5px;
}

.mc-matrix-table th {
    padding: 4px 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary, #64748b);
    text-align: center;
}

.mc-th-corner {
    font-size: 10px;
    color: var(--text-muted, #94a3b8);
}

.mc-row-header {
    width: 32px;
}

.mc-cell {
    padding: 7px 4px;
    border-radius: 6px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: default;
}

.mc-cell:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mc-cell.heat-0 {
    background: rgba(0, 0, 0, 0.02);
    color: var(--text-muted, #94a3b8);
}

.mc-cell.heat-1 {
    background: rgba(49, 94, 255, 0.08);
    color: #1e40af;
}

.mc-cell.heat-2 {
    background: rgba(49, 94, 255, 0.16);
    color: #1e40af;
    font-weight: 600;
}

.mc-cell.heat-3 {
    background: rgba(16, 185, 129, 0.18);
    color: #065f46;
    font-weight: 700;
}

.mc-cell.heat-4 {
    background: rgba(16, 185, 129, 0.28);
    color: #047857;
    font-weight: 800;
}

.mc-cell.heat-5 {
    background: rgba(16, 185, 129, 0.42);
    color: #064e3b;
    font-weight: 800;
    border: 1px solid #10b981;
}

.mc-cell-score {
    font-size: 12px;
    font-weight: 800;
}

.mc-cell-pct {
    font-size: 9.5px;
    opacity: 0.9;
    margin-top: 1px;
}

.mc-narrative-box {
    margin-top: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    background: var(--bg-primary, #f8fafc);
    border-left: 3px solid #10b981;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary, #475569);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.mc-narrative-box i {
    color: #10b981;
    margin-top: 2px;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   3. UPGRADED VOTING SYSTEM
   -------------------------------------------------------------------------- */
.voting_system {
    margin-top: 18px;
    margin-bottom: 18px;
    background: var(--bg-secondary, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.04);
}

.gl-poll-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color, #f1f5f9);
    flex-wrap: wrap;
    gap: 8px;
}

.gl-poll-header-left {
    display: flex;
    align-items: center;
    gap: 9px;
}

.gl-poll-status {
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
}

.gl-poll-status.open {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.gl-poll-status.closed {
    background: rgba(100, 116, 139, 0.12);
    color: #64748b;
}

.gl-poll-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: glPulse 2s infinite ease-in-out;
}

@keyframes glPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* POLL QUESTION SWITCHER TABS */
.gl-poll-nav-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.gl-poll-tab {
    flex: 1;
    padding: 6px 8px;
    font-size: 11.5px;
    font-weight: 700;
    border-radius: 20px;
    border: 1px solid var(--border-color, #e2e8f0);
    background: var(--bg-primary, #f8fafc);
    color: var(--text-secondary, #64748b);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.gl-poll-tab.active {
    background: #315eff;
    color: #ffffff;
    border-color: #315eff;
    box-shadow: 0 2px 6px rgba(49, 94, 255, 0.25);
}

.vote-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.vote-slider::-webkit-scrollbar {
    display: none;
}

.vote-block {
    min-width: 100%;
    background: var(--bg-primary, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    padding: 14px 14px;
    scroll-snap-align: start;
    box-sizing: border-box;
}

.vote-block h3 {
    margin: 0 0 4px 0;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
}

.vote-sub {
    margin: 0 0 10px 0;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-secondary, #64748b);
    line-height: 1.4;
}

.vote-options {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.vote-btn {
    flex: 1;
    border: 1px solid #315eff;
    border-radius: 12px;
    padding: 8px 8px;
    background: var(--bg-secondary, #ffffff);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-primary, #0f172a);
}

.vote-choice-name {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vote-choice-sub {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-secondary, #64748b);
}

.vote-btn:hover:not(:disabled) {
    background: #315eff;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(49, 94, 255, 0.25);
}

.vote-btn:hover:not(:disabled) .vote-choice-sub {
    color: rgba(255, 255, 255, 0.85);
}

.vote-btn:hover:not(:disabled) img {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.vote-btn.voted {
    border-color: #cbd5e1;
    color: var(--text-primary, #0f172a);
    cursor: default;
}

.vote-btn.voted::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--fill-pct, 0%);
    background: rgba(49, 94, 255, 0.15);
    z-index: -1;
    transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 12px;
}

.vote-btn img {
    height: 20px;
    width: 20px;
    object-fit: contain;
    z-index: 2;
    flex-shrink: 0;
}

.vote-btn .vote-pct-text {
    z-index: 2;
    font-weight: 800;
    color: #315eff;
}

.vote-total {
    font-size: 11.5px;
    color: var(--text-tertiary, #94a3b8);
    text-align: right;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   4. GOAL TIMING & DANGER ZONE DISTRIBUTION
   -------------------------------------------------------------------------- */
.gt-card {
    position: relative;
}

.gl-insight-title-group {
    display: flex;
    flex-direction: column;
}

.gl-insight-subtitle {
    font-size: 11.5px;
    color: var(--text-muted, #94a3b8);
    font-weight: 500;
    margin-top: 1px;
}

.gt-header-badges {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gl-insight-badge.conf-high {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.28);
}

.gl-insight-badge.conf-mod {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.28);
}

.gl-insight-badge.conf-early {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.28);
}

.gt-controls-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 12px;
}

.gt-view-tabs {
    display: inline-flex;
    background: var(--bg-tertiary, rgba(0, 0, 0, 0.04));
    padding: 3px;
    border-radius: 8px;
    gap: 3px;
    border: 1px solid var(--border-color, #e2e8f0);
    max-width: 100%;
    overflow-x: auto;
}

.gt-tab-btn {
    background: transparent;
    border: none;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-secondary, #64748b);
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.gt-tab-label-short {
    display: none;
}

.gt-tab-team-name {
    display: inline-block;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.gt-tab-btn:hover {
    color: var(--text-primary, #0f172a);
    background: rgba(0, 0, 0, 0.03);
}

.gt-tab-btn.active {
    background: var(--bg-primary, #ffffff);
    color: var(--text-primary, #0f172a);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    font-weight: 700;
}

.gt-team-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.gt-team-dot.home-dot {
    background: #315eff;
}

.gt-team-dot.away-dot {
    background: #8b5cf6;
}

.gt-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(245, 158, 11, 0.08));
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 10px;
    padding: 9px 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

.gt-banner-left {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 700;
    color: #dc2626;
}

.gt-half-split-wrap {
    display: flex;
    align-items: center;
}

.gt-momentum-bar {
    display: flex;
    width: 146px;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.gt-momentum-part {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    transition: width 0.4s ease;
}

.gt-momentum-part.h1-part {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.gt-momentum-part.h2-part {
    background: linear-gradient(90deg, #f97316, #ef4444);
}

.gt-momentum-label {
    font-size: 9.5px;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    padding: 0 4px;
    letter-spacing: -0.2px;
}

.gt-chart-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    margin-bottom: 16px;
    align-items: end;
    height: auto;
    padding-top: 18px;
}

.gt-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.gt-bar-wrap {
    width: 100%;
    height: 72px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 5px 5px 0 0;
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: visible;
    transition: background 0.2s ease;
}

.gt-col.quiet .gt-bar-wrap {
    background: rgba(0, 0, 0, 0.02);
    border: 1px dashed rgba(0, 0, 0, 0.08);
    border-bottom: none;
}

.gt-bar-fill {
    width: 100%;
    background: linear-gradient(180deg, #315eff, #1e40af);
    border-radius: 4px 4px 0 0;
    transition: height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
    position: relative;
}

.gt-col.danger .gt-bar-fill {
    background: linear-gradient(180deg, #ef4444, #b91c1c);
}

.gt-pct-label {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    white-space: nowrap;
    pointer-events: none;
}

.gt-col.danger .gt-pct-label {
    color: #ef4444;
}

.gt-col.quiet .gt-pct-label {
    color: var(--text-muted, #94a3b8);
}

.gt-col-name {
    margin-top: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary, #64748b);
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
}

.gt-col.danger .gt-col-name {
    color: #ef4444;
    font-weight: 700;
}

.gt-col-subcount {
    font-size: 9.5px;
    font-weight: 600;
    color: var(--text-muted, #94a3b8);
    margin-top: 2px;
    line-height: 1.2;
}

.gt-danger-slot {
    min-height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 3px;
    width: 100%;
}

.gt-danger-badge {
    font-size: 8px;
    font-weight: 800;
    background: #ef4444;
    color: #ffffff;
    padding: 1.5px 5px;
    border-radius: 3px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

/* BETTING ANGLES / MARKET SIGNALS */
.gt-insights-deck {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.gt-insight-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-tertiary, rgba(0, 0, 0, 0.02));
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
}

.gt-chip-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(49, 94, 255, 0.1);
    color: #315eff;
    font-size: 12px;
    flex-shrink: 0;
}

.gt-chip-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.gt-chip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
}

.gt-chip-title {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
}

.gt-chip-hint {
    font-size: 9.5px;
    font-weight: 700;
    color: #059669;
    background: rgba(16, 185, 129, 0.12);
    padding: 1px 6px;
    border-radius: 4px;
}

.gt-chip-desc {
    font-size: 11px;
    color: var(--text-secondary, #64748b);
    line-height: 1.3;
}

/* --------------------------------------------------------------------------
   5. KEY PLAYER DUEL & TALISMAN SPOTLIGHT
   -------------------------------------------------------------------------- */
.duel-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
    align-items: center;
    margin-top: 8px;
    margin-bottom: 10px;
}

.duel-player-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-primary, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    padding: 12px;
    transition: transform 0.2s ease;
}

.duel-player-card:hover {
    transform: translateY(-2px);
}

.duel-player-card.away {
    flex-direction: row-reverse;
    text-align: right;
}

.duel-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.duel-player-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color, #cbd5e1);
    background: #e2e8f0;
}

.duel-player-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #cbd5e1;
    color: #475569;
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 700;
}

.duel-team-crest {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    padding: 2px;
}

.duel-player-card.away .duel-team-crest {
    right: auto;
    left: -2px;
}

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

.duel-player-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.duel-player-team {
    font-size: 12px;
    color: var(--text-secondary, #64748b);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.duel-stats-row {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.duel-player-card.away .duel-stats-row {
    justify-content: flex-end;
}

.duel-pill {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(49, 94, 255, 0.1);
    color: #315eff;
    white-space: nowrap;
}

.duel-pill.goals {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.duel-vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.duel-vs-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-secondary, #ffffff);
    border: 1px solid var(--border-color, #cbd5e1);
    display: grid;
    place-items: center;
    font-size: 10.5px;
    font-weight: 800;
    color: var(--text-secondary, #64748b);
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    flex-shrink: 0;
}


/* ==========================================================================
   6. MOBILE OPTIMIZATIONS (@media max-width: 600px)
   ========================================================================== */
@media (max-width: 600px) {
    .gl-insight-card {
        padding: 13px 12px;
        margin-top: 14px;
        margin-bottom: 14px;
        border-radius: 12px;
    }

    .gl-insight-header {
        padding-bottom: 9px;
        margin-bottom: 10px;
        gap: 6px;
    }

    .gl-insight-title {
        font-size: 13px;
        letter-spacing: 0.3px;
    }

    .gl-insight-icon {
        width: 24px;
        height: 24px;
        font-size: 12px;
        border-radius: 6px;
    }

    .gl-insight-badge {
        font-size: 9.5px;
        padding: 2px 7px;
    }

    /* 1. Monte Carlo Mobile */
    .mc-scores-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 5px;
        margin-top: 8px;
        margin-bottom: 10px;
    }

    .mc-score-item {
        padding: 7px 3px;
        border-radius: 8px;
    }

    .mc-score-text {
        font-size: 14px;
        margin-top: 4px;
        margin-bottom: 2px;
    }

    .mc-score-pct {
        font-size: 11px;
    }

    .mc-prob-legend {
        font-size: 11px;
    }

    .mc-legend-name {
        max-width: 80px;
    }

    .mc-narrative-box {
        font-size: 11.5px;
        padding: 8px 10px;
        margin-top: 8px;
    }

    /* 2. Voting System Mobile */
    .voting_system {
        padding: 13px 12px;
        margin-top: 14px;
        margin-bottom: 14px;
        border-radius: 12px;
    }

    .vote-block {
        padding: 12px 10px;
        border-radius: 10px;
    }

    .vote-block h3 {
        font-size: 14.5px;
    }

    .vote-sub {
        font-size: 11.5px;
        margin-bottom: 8px;
    }

    .vote-options {
        gap: 6px;
    }

    .vote-btn {
        flex-direction: column !important;
        text-align: center;
        gap: 3px;
        padding: 9px 4px !important;
        min-height: 64px;
        border-radius: 10px;
    }

    .vote-btn img {
        height: 22px;
        width: 22px;
        margin-bottom: 2px;
    }

    .vote-choice-name {
        font-size: 11px;
        line-height: 1.15;
        max-width: 100%;
        display: block;
    }

    .vote-choice-sub {
        font-size: 9px;
        display: block;
    }

    .vote-btn .vote-pct-text {
        font-size: 12px;
        margin-top: 1px;
    }

    /* 3. Goal Timing Mobile */
    .gt-controls-row {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-bottom: 10px;
        padding-bottom: 2px;
    }

    .gt-controls-row::-webkit-scrollbar {
        display: none;
    }

    .gt-view-tabs {
        width: max-content;
        min-width: 100%;
        padding: 2.5px;
        gap: 3px;
        box-sizing: border-box;
    }

    .gt-tab-btn {
        padding: 4.5px 8px;
        font-size: 10.5px;
        gap: 4px;
    }

    .gt-tab-label-full {
        display: none;
    }

    .gt-tab-label-short {
        display: inline;
    }

    .gt-tab-team-name {
        max-width: 105px;
    }

    .gt-banner {
        padding: 9px 10px;
        margin-bottom: 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .gt-banner-left {
        font-size: 11.5px;
        line-height: 1.35;
    }

    .gt-half-split-wrap {
        width: 100%;
    }

    .gt-momentum-bar {
        width: 100%;
        max-width: 220px;
        height: 22px;
    }

    .gt-chart-grid {
        height: auto;
        min-height: 116px;
        gap: 3px;
        padding-top: 16px;
        margin-bottom: 14px;
    }

    .gt-bar-wrap {
        height: 56px;
        overflow: visible;
    }

    .gt-pct-label {
        font-size: 9px;
        top: -14px;
    }

    .gt-col-name {
        font-size: 9px;
        margin-top: 4px;
    }

    .gt-col-subcount {
        font-size: 8.5px;
        margin-top: 1px;
    }

    .gt-danger-slot {
        min-height: 16px;
        margin-top: 2px;
    }

    .gt-danger-badge {
        font-size: 7px;
        padding: 1px 3px;
    }

    .gt-insights-deck {
        grid-template-columns: 1fr;
        gap: 6px;
        margin-bottom: 10px;
    }

    .gt-insight-chip {
        padding: 8px 10px;
        gap: 8px;
    }

    .gt-chip-icon {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    .gt-chip-title {
        font-size: 11.5px;
    }

    .gt-chip-hint {
        font-size: 9px;
        padding: 1px 5px;
    }

    .gt-chip-desc {
        font-size: 10.5px;
    }

    /* 4. Player Duel Mobile */
    .duel-container {
        display: flex;
        flex-direction: column;
        gap: 6px;
        margin-top: 4px;
        margin-bottom: 6px;
    }

    .duel-player-card {
        padding: 9px 10px;
        gap: 10px;
        border-radius: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .duel-player-card.away {
        flex-direction: row;
        text-align: left;
    }

    .duel-player-card.away .duel-stats-row {
        justify-content: flex-start;
    }

    .duel-player-card.away .duel-team-crest {
        right: -2px;
        left: auto;
    }

    .duel-avatar-wrap {
        flex-shrink: 0;
    }

    .duel-player-img,
    .duel-player-placeholder {
        width: 42px;
        height: 42px;
    }

    .duel-team-crest {
        width: 18px;
        height: 18px;
    }

    .duel-player-name {
        font-size: 13.5px;
    }

    .duel-player-team {
        font-size: 11px;
    }

    .duel-stats-row {
        gap: 4px;
        margin-top: 4px;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .duel-pill {
        font-size: 10px;
        padding: 2px 5px;
    }

    .duel-vs-divider {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        width: 100%;
        margin: 2px 0;
    }

    .duel-vs-divider::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        height: 1px;
        background: var(--border-color, #e2e8f0);
    }

    .duel-vs-badge {
        width: 25px;
        height: 25px;
        font-size: 9px;
        z-index: 2;
    }
}
