/**
 * Meu Time — Fase 1 visual (premium campinho)
 * Estende hero-lab.css / tokens --hl-* · não altera lógica JS.
 */
.mt-page.mt-premium-v1 {
    --mt-grass-a: #0b7a38;
    --mt-grass-b: #0a6b32;
    --mt-grass-c: #095c2b;
    --mt-pitch-line: rgba(255, 255, 255, 0.42);
    --mt-cmd-bg: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
    --mt-bench-bg: transparent;
}

html[data-theme="dark"] .mt-page.mt-premium-v1 {
    --mt-cmd-bg: color-mix(in srgb, #1a1a1a 94%, transparent);
    --mt-bench-bg: transparent;
}

/* —— Shell do campinho —— */
.mt-premium-v1 .mt-board-wrap {
    max-width: 560px;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(
        165deg,
        color-mix(in srgb, var(--bg-elevated) 96%, #fff) 0%,
        var(--bg-elevated) 48%,
        color-mix(in srgb, var(--bg-elevated) 94%, #0f172a) 100%
    );
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 16px 48px rgba(15, 23, 42, 0.12),
        0 2px 8px rgba(15, 23, 42, 0.06);
}

html[data-theme="dark"] .mt-premium-v1 .mt-board-wrap {
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 20px 56px rgba(0, 0, 0, 0.45),
        0 2px 10px rgba(0, 0, 0, 0.25);
}

/* —— Barra de comando unificada —— */
.mt-premium-v1 .mt-pitch-toolbar {
    margin: 0 0 12px;
    padding: 10px 12px 10px;
    border-radius: 14px;
    background: var(--mt-cmd-bg);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    gap: 0;
}

.mt-premium-v1 .mt-summary-bar {
    padding: 0 0 10px;
    border: none;
    background: transparent;
    border-radius: 0;
    gap: 10px;
}

@media (min-width: 520px) {
    .mt-premium-v1 .mt-summary-bar {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }
    .mt-premium-v1 .mt-toolbar-team {
        flex: 1 1 120px;
        min-width: 0;
    }
    .mt-premium-v1 .mt-summary-metrics {
        flex: 1 1 240px;
        max-width: 100%;
    }
}

.mt-premium-v1 .mt-toolbar-nome {
    font-size: 0.92rem;
    letter-spacing: -0.02em;
}

.mt-premium-v1 .mt-summary-metric {
    min-height: 48px;
    padding: 6px 8px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--bg-elevated) 80%, transparent);
    border-color: color-mix(in srgb, var(--border-subtle) 90%, transparent);
}

.mt-premium-v1 .mt-summary-metric-label {
    font-size: 0.54rem;
    letter-spacing: 0.06em;
    opacity: 0.85;
}

.mt-premium-v1 .mt-summary-metric-val {
    font-size: 0.88rem;
    letter-spacing: -0.02em;
}

.mt-premium-v1 .mt-pitch-toolbar-actions {
    padding: 10px 0 0;
    margin: 0;
    border-top: 1px solid var(--border-subtle);
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.mt-premium-v1 .mt-formacao {
    min-height: 36px;
    padding: 7px 12px;
    border-radius: 10px;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    background: var(--bg-elevated);
    border-color: var(--border-subtle);
    box-shadow: none;
}

.mt-premium-v1 .mt-pitch-toolbar-actions .mt-btn-icon,
.mt-premium-v1 .mt-pitch-toolbar-actions .mt-btn-trash,
.mt-premium-v1 .mt-pitch-toolbar-actions .mt-btn-logout,
.mt-premium-v1 .mt-pitch-toolbar-actions .mt-btn-enviar,
.mt-premium-v1 .mt-pitch-toolbar-actions .mt-btn-sync,
.mt-premium-v1 .mt-pitch-toolbar-actions .mt-btn-share {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 10px;
    transition: transform 0.14s ease, filter 0.14s ease, background 0.14s ease;
}

.mt-premium-v1 .mt-pitch-toolbar-actions button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.mt-premium-v1 .mt-pitch-toolbar-actions button:active:not(:disabled) {
    transform: translateY(0);
}

/* —— Gramado —— */
.mt-premium-v1 .pitch-board {
    min-height: 600px;
    max-height: 760px;
    padding: 28px 16px 14px;
    border-radius: 16px 16px 0 0;
    border: none;
    background:
        radial-gradient(ellipse 120% 80% at 50% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse 90% 60% at 50% 100%, rgba(0, 0, 0, 0.22) 0%, transparent 60%),
        linear-gradient(180deg, rgba(25, 25, 112, 0.14) 0%, transparent 22%, transparent 78%, rgba(25, 25, 112, 0.18) 100%),
        repeating-linear-gradient(
            0deg,
            var(--mt-grass-a) 0 10%,
            var(--mt-grass-b) 10% 20%,
            var(--mt-grass-c) 20% 30%
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -24px 48px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    margin-bottom: 0;
}

.mt-premium-v1 .pitch-board::before {
    opacity: 0.07;
    width: 52%;
    height: 52%;
}

.mt-premium-v1 .pitch-board::after {
    border-radius: 16px 16px 0 0;
    opacity: 0.92;
}

/* —— Cards titulares: minimalista (1 métrica = bolha xPTS/pts) —— */
.mt-premium-v1 .pitch-board .player-card-on-pitch {
    width: 88px;
    padding-top: 24px;
}

.mt-premium-v1 .pitch-board .player-card-on-pitch:not(.empty-slot) .pc-mpv,
.mt-premium-v1 .pitch-board .player-card-on-pitch:not(.empty-slot) .pc-badge-val {
    display: none !important;
}

.mt-premium-v1 .pitch-board .pc-avatar-wrap {
    width: 54px;
    height: 54px;
}

.mt-premium-v1 .pitch-board .pc-avatar-ring {
    width: 54px;
    height: 54px;
    border: 2px solid rgba(255, 255, 255, 0.94);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.mt-premium-v1 .pitch-board .player-card-on-pitch:hover .pc-avatar-ring {
    transform: scale(1.05);
}

.mt-premium-v1 .pitch-board .pc-escudo {
    width: 20px;
    height: 20px;
    right: -1px;
    bottom: -1px;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.mt-premium-v1 .pitch-board .pc-bubble {
    top: -2px;
    padding: 4px 9px 5px;
    border-radius: 999px;
    font-size: 10px;
    background: rgba(15, 23, 42, 0.88);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.mt-premium-v1 .pitch-board .pc-bubble::after {
    display: none;
}

.mt-premium-v1 .pitch-board .pc-bubble-unit {
    color: rgba(248, 250, 252, 0.72);
    font-size: 7.5px;
}

.mt-premium-v1 .pitch-board .pc-name {
    margin-top: 4px;
    max-width: 86px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    letter-spacing: -0.02em;
}

.mt-premium-v1 .pitch-board .pc-badge-cap,
.mt-premium-v1 .pitch-board .pc-badge-luxo {
    width: 17px;
    height: 17px;
    font-size: 9px;
    border-width: 1.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.mt-premium-v1 .pitch-board .empty-slot {
    padding-top: 20px;
}

.mt-premium-v1 .pitch-board .empty-slot-pitch .pc-avatar-ring {
    background: rgba(255, 255, 255, 0.06);
    border: 2px dashed rgba(255, 255, 255, 0.48);
    backdrop-filter: blur(2px);
}

.mt-premium-v1 .pitch-board .empty-slot-pitch:hover .pc-avatar-ring {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.85);
}

.mt-premium-v1 .pitch-board .empty-plus {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.82);
}

/* —— Banco: slots centralizados, fundo transparente —— */
.mt-premium-v1 .bench-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 12px 14px 6px;
    text-align: center;
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    border: none;
    background: transparent;
    border-radius: 0;
}

.mt-premium-v1 .bench-title::before {
    content: '';
    width: 3px;
    height: 12px;
    border-radius: 2px;
    background: var(--accent-orange, #ff6600);
    flex-shrink: 0;
    opacity: 0.85;
}

.mt-premium-v1 .bench-board {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 12px 14px;
    padding: 8px 12px 14px;
    margin: 0;
    overflow-x: visible;
    overflow-y: visible;
    scroll-snap-type: none;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.mt-premium-v1 .bench-board::-webkit-scrollbar {
    height: 4px;
}

.mt-premium-v1 .bench-board::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: 4px;
}

.mt-premium-v1 .bench-board .player-card-on-pitch {
    width: 72px;
    flex: 0 0 auto;
    scroll-snap-align: center;
    padding-top: 22px;
}

.mt-premium-v1 .bench-board .pc-avatar-wrap,
.mt-premium-v1 .bench-board .pc-avatar-ring {
    width: 46px;
    height: 46px;
}

.mt-premium-v1 .bench-board .pc-name {
    max-width: 72px;
    font-size: 10.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.mt-premium-v1 .bench-board .pc-mpv {
    font-size: 8px;
    height: 14px;
    padding: 0 5px;
    margin-top: 3px;
}

.mt-premium-v1 .bench-board .pc-badge-val {
    transform: scale(0.92);
    transform-origin: center top;
}

.mt-premium-v1 .bench-board .empty-slot-bench .pc-avatar-ring {
    border-radius: 12px;
    background: color-mix(in srgb, var(--bg-elevated) 70%, transparent);
}

.mt-premium-v1 .bench-board .empty-slot-bench:hover .pc-avatar-ring {
    border-color: var(--accent-orange, #ff6600);
}

/* —— Capitão / luxo —— */
.mt-premium-v1 .card-capitao .pc-avatar-ring {
    box-shadow: 0 0 0 2px #f97316, 0 0 12px rgba(249, 115, 22, 0.35) !important;
}

.mt-premium-v1 .card-luxo:not(.card-capitao) .pc-avatar-ring {
    box-shadow: 0 0 0 2px #fbbf24, 0 0 10px rgba(251, 191, 36, 0.28) !important;
}

/* ============================================================
   Fase 2 — Modal scout (estética Cartola FC)
   ============================================================ */

/* —— Overlay + shell —— */
.mt-scout-overlay {
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.mt-scout-modal {
    width: min(400px, 100%);
    max-height: min(90vh, 720px);
    border-radius: 14px;
    background: #12161a;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55);
    animation: mt-scout-in 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    box-sizing: border-box;
}

@keyframes mt-scout-in {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* —— Header —— */
.mt-scout-head {
    padding: 18px 16px 14px;
    border-bottom: none;
    background: #12161a;
    text-align: left;
}

.mt-scout-close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #1f2328;
    color: #9ca3af;
    font-size: 1.15rem;
    line-height: 1;
    z-index: 2;
}

.mt-scout-close:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
    background: #2a2f36;
}

.mt-scout-head-top {
    padding-right: 36px;
}

.mt-scout-head-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mt-scout-avatar-wrap {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.mt-scout-foto {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 18%;
    display: block;
    background: #1f2328;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.mt-scout-escudo {
    position: absolute;
    width: 20px;
    height: 20px;
    right: -2px;
    bottom: -1px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.mt-scout-head-meta {
    flex: 1;
    min-width: 0;
}

.mt-scout-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mt-scout-head .mt-scout-name {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.15;
}

.mt-scout-status-badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.mt-scout-status-badge .mt-mercado-status-icon,
.mt-scout-status-badge img {
    width: 18px;
    height: 20px;
    display: block;
}

.mt-scout-head .mt-scout-sub {
    margin: 4px 0 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9ca3af;
    line-height: 1.3;
}

.mt-scout-foto-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mt-scout-body {
    padding: 0 12px 12px;
}

/* —— Grid Cartola (6 colunas) —— */
.mt-scout-bento {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 12px;
}

.mt-scout-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
    min-height: 56px;
    padding: 10px 11px;
    border-radius: 8px;
    background: #1f2328;
    border: none;
    min-width: 0;
}

.mt-scout-tile.span-2 { grid-column: span 2; }
.mt-scout-tile.span-3 { grid-column: span 3; }
.mt-scout-tile.span-4 { grid-column: span 4; }
.mt-scout-tile.span-6 { grid-column: 1 / -1; }

.mt-scout-tile.is-live {
    background: color-mix(in srgb, #1f2328 85%, #f27405 15%);
}

.mt-scout-tile.is-val.is-up {
    background: rgba(22, 163, 74, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.28);
}

.mt-scout-tile.is-val.is-down {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.28);
}

.mt-scout-tile.is-val.is-neutral {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.22);
}

.mt-scout-tile.is-val.is-up .mt-scout-tile-val {
    color: #4ade80;
}

.mt-scout-tile.is-val.is-down .mt-scout-tile-val {
    color: #f87171;
}

.mt-scout-tile.is-val.is-neutral .mt-scout-tile-val {
    color: #fde68a;
}

.mt-scout-tile-val {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
}

.mt-scout-tile.is-match .mt-scout-tile-val {
    min-height: 32px;
}

.mt-scout-tile .mt-mercado-match {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mt-scout-tile .mt-mercado-crest,
.mt-scout-tile .mt-mercado-match img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.mt-scout-tile .mt-mercado-vs {
    font-size: 0.75rem;
    font-weight: 800;
    color: #6b7280;
    letter-spacing: 0.04em;
}

.mt-scout-tile.is-xpts .mt-scout-tile-val {
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.01em;
}

.mt-scout-tile.is-xpts .mt-scout-tile-lbl {
    color: #9aa0d8;
}

.mt-scout-tile-lbl {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
    line-height: 1.25;
}

.mt-scout-tile-lbl.is-hint,
.mt-scout-tile-lbl.is-hint-val {
    color: #9aa0d8;
}

/* —— Lista de scouts —— */
.mt-scout-scouts-wrap {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 10px;
}

.mt-scout-scouts-wrap summary.mt-scout-section-lbl {
    cursor: pointer;
    list-style: none;
    user-select: none;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 8px;
}

.mt-scout-scouts-wrap summary::-webkit-details-marker {
    display: none;
}

.mt-scout-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    overflow: hidden;
    background: #1a1e23;
}

.mt-scout-row {
    display: grid;
    grid-template-columns: 36px 1fr auto auto;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mt-scout-row:last-child {
    border-bottom: none;
}

.mt-scout-sig {
    font-size: 0.65rem;
    font-weight: 800;
    color: #f27405;
    letter-spacing: 0.02em;
}

.mt-scout-lbl {
    font-size: 0.7rem;
    font-weight: 600;
    color: #e5e7eb;
}

.mt-scout-qty {
    font-size: 0.65rem;
    font-weight: 700;
    color: #6b7280;
}

.mt-scout-pts {
    font-size: 0.72rem;
    font-weight: 800;
    color: #4ade80;
}

.mt-scout-pts.neg {
    color: #f87171;
}

.mt-scout-empty {
    padding: 14px 12px;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: #6b7280;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: transparent;
}

/* —— Rodapé Cartola: capitão largo + remover —— */
.mt-scout-foot {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: #12161a;
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
}

.mt-scout-foot-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.mt-scout-foot .pc-menu-btn {
    min-height: 44px;
    border-radius: 8px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #1f2328;
    color: #e5e7eb;
    padding: 0 10px;
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.mt-scout-foot-row .pc-menu-btn.is-primary {
    flex: 1 1 0;
    background: var(--accent-orange, #ff6600);
    border-color: var(--accent-orange, #ff6600);
    color: #fff;
}

.mt-scout-foot-row .pc-menu-btn.is-cap.is-primary {
    background: var(--accent-orange, #ff6600);
    border-color: var(--accent-orange, #ff6600);
    color: #fff;
}

.mt-scout-foot-row .pc-menu-btn.is-luxo.is-primary {
    background: #1f2328;
    border-color: rgba(251, 191, 36, 0.45);
    color: #fde68a;
}

.mt-scout-foot-row .pc-menu-btn.is-rem {
    flex: 0 1 30%;
    max-width: 34%;
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
    padding: 0 8px;
}

.mt-scout-foot-row .pc-menu-btn.is-rem:hover {
    background: #dc2626;
    border-color: #dc2626;
    filter: none;
}

.mt-scout-foot-row .pc-menu-btn.is-rem:only-child {
    flex: 1 1 auto;
    max-width: 100%;
    width: 100%;
}

.mt-scout-foot-row .pc-menu-btn span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.mt-scout-foot .pc-menu-btn.is-ghost {
    width: 100%;
    min-height: 38px;
    background: transparent;
    border-color: transparent;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #6b7280;
}

.mt-scout-foot .pc-menu-btn:hover {
    filter: brightness(1.08);
}

.mt-scout-foot .pc-menu-ico {
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
    border-radius: 4px;
}

.mt-scout-foot .pc-menu-ico.cap {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.mt-scout-foot .pc-menu-ico.rem {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 0.85rem;
}

/* —— Mobile: bottom sheet —— */
@media (max-width: 719px) {
    .mt-scout-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .mt-scout-modal {
        width: 100%;
        max-height: 92vh;
        border-radius: 16px 16px 0 0;
        border-bottom: none;
    }

    .mt-scout-head .mt-scout-name {
        font-size: 1.2rem;
    }

    .mt-scout-bento {
        gap: 5px;
    }

    .mt-scout-tile {
        min-height: 52px;
        padding: 9px 10px;
    }

    .mt-scout-tile-val {
        font-size: 0.88rem;
    }

    .mt-scout-foot {
        padding-bottom: max(16px, env(safe-area-inset-bottom, 16px));
    }

    .mt-scout-foot-row {
        flex-direction: row;
    }
}

/* —— Campinho: hover no avatar (sutil) —— */
.mt-premium-v1 .player-card-on-pitch:hover {
    filter: none;
}

.mt-premium-v1 .player-card-on-pitch:hover .pc-avatar-ring {
    box-shadow:
        0 0 0 2.5px rgba(255, 255, 255, 0.95),
        0 4px 12px rgba(15, 23, 42, 0.28);
}

.mt-premium-v1 .player-card-on-pitch:active .pc-avatar-ring {
    transform: scale(0.97);
    transition: transform 0.1s ease;
}

.mt-premium-v1 .pc-avatar-ring {
    transition: box-shadow 0.15s ease, transform 0.1s ease;
}

/* —— Mercado: hero patrimônio / fechamento —— */
.mt-mercado-hero {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-subtle);
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--accent-orange) 12%, var(--bg-elevated)) 0%,
        var(--bg-elevated) 55%
    );
}

.mt-mercado-hero-fecha,
.mt-mercado-hero-budget,
.mt-mercado-hero-slots {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
    min-width: 0;
}

.mt-mercado-hero-label {
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.mt-mercado-hero-fecha strong,
.mt-mercado-hero-budget strong,
.mt-mercado-hero-slots strong {
    font-size: 0.92rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    color: var(--text-strong);
    line-height: 1.2;
}

.mt-mercado-hero-countdown {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--accent-orange, #ff6600);
    font-variant-numeric: tabular-nums;
}

.mt-mercado-hero-rest {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.mt-mercado-status-icon {
    display: inline-block;
    vertical-align: middle;
    width: 16px;
    height: 18px;
    flex-shrink: 0;
}

.mt-mercado-budget,
.mt-mercado-sticky-foot {
    display: none !important;
}

/* —— Mercado: lista desktop + cards mobile —— */
.mt-mercado-list-wrap {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mt-mercado-table-head {
    display: none;
}

.mt-mercado-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 8px 12px 16px;
}

.mt-mercado-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 36px 16px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.mt-mercado-sticky-foot {
    flex-shrink: 0;
    padding: 10px 14px;
    border-top: 1px solid var(--border-subtle);
    background: color-mix(in srgb, var(--bg-elevated) 96%, var(--accent-orange) 4%);
}

.mt-mercado-sticky-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.mt-mercado-sticky-budget {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.mt-mercado-sticky-budget strong {
    color: var(--text-strong);
}

.mt-mercado-sticky-meta {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.mt-mercado-toolbar {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--hub-surface-card, var(--bg-elevated));
}

.mt-mercado-chips-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
}

.mt-mercado-chips-row::-webkit-scrollbar {
    display: none;
}

.mt-mercado-chips {
    flex-wrap: nowrap;
}

.mt-mercado-chip {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Desktop: tabela com subgrid (head + linhas compartilham trilhos) */
@media (min-width: 720px) {
    .mt-mercado-panel {
        width: min(1040px, 100%);
    }

    .mt-mercado-list-wrap {
        --mt-mercado-cols-pro: minmax(0, 1.55fr) 72px 60px 72px 48px 48px 108px;
        --mt-mercado-cols-free: minmax(0, 1.7fr) 72px 60px 108px;
        display: grid;
        grid-template-columns: var(--mt-mercado-cols-pro);
        column-gap: 8px;
        padding: 0 14px;
        overflow-y: auto;
        align-content: start;
    }

    #mt-mercado-modal:not(.mt-mercado-pro) .mt-mercado-list-wrap {
        grid-template-columns: var(--mt-mercado-cols-free);
    }

    .mt-mercado-list {
        display: contents;
        padding: 0;
        overflow: visible;
    }

    .mt-mercado-table-head {
        display: grid;
        grid-template-columns: subgrid;
        grid-column: 1 / -1;
        position: sticky;
        top: 0;
        z-index: 2;
        padding: 8px 0 6px;
        font-size: 0.58rem;
        font-weight: 900;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--text-muted);
        border-bottom: 1px solid var(--border-subtle);
        background: var(--hub-surface-card, var(--bg-elevated));
    }

    .mt-mercado-th {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
    }

    .mt-mercado-th:first-child {
        justify-content: flex-start;
    }

    #mt-mercado-modal:not(.mt-mercado-pro) .mt-mercado-col-pro {
        display: none;
    }

    .mt-mercado-row {
        display: grid;
        grid-template-columns: subgrid;
        grid-column: 1 / -1;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid var(--border-subtle);
    }

    .mt-mercado-stats-strip {
        display: contents;
    }

    .mt-mercado-row:hover {
        background: color-mix(in srgb, var(--accent-orange) 6%, transparent);
    }

    .mt-mercado-player-inner {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }

    .mt-mercado-cell {
        min-width: 0;
    }

    .mt-mercado-cell:not(.mt-mercado-cell-player) {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .mt-mercado-cell-action {
        display: flex;
        justify-content: center;
    }

    .mt-mercado-cell-val {
        font-size: 0.82rem;
        font-weight: 900;
        font-variant-numeric: tabular-nums;
        color: var(--text-strong);
    }

    .mt-mercado-xpts-hero {
        display: block;
        font-size: 0.88rem;
        font-weight: 900;
        color: var(--ds-verde, #22c55e);
    }

    .mt-mercado-xpts-sub {
        display: block;
        font-size: 0.58rem;
        color: var(--text-muted);
        font-weight: 700;
    }

    .mt-mercado-posline {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.62rem;
        font-weight: 700;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }

    .mt-mercado-buy {
        width: 100%;
        min-width: 0;
    }

    .mt-mercado-buy-price {
        display: none;
    }
}

/* Mobile: card por jogador */
@media (max-width: 719px) {
    .mt-mercado-hero {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .mt-mercado-list-wrap {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding: 0;
    }

    .mt-mercado-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 8px 12px 16px;
        overflow-y: auto;
    }

    .mt-mercado-row {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 12px;
        border-radius: 14px;
        border: 1px solid var(--border-subtle);
        background: var(--bg-secondary);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    }

    .mt-mercado-cell-player {
        width: 100%;
        padding-bottom: 10px;
    }

    .mt-mercado-player-inner {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .mt-mercado-player-text {
        flex: 1;
        min-width: 0;
    }

    .mt-mercado-name {
        max-width: none;
        font-size: 0.86rem;
        white-space: normal;
        line-height: 1.25;
    }

    .mt-mercado-posline {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.62rem;
        font-weight: 800;
        color: var(--text-muted);
        text-transform: uppercase;
        margin: 4px 0;
    }

    .mt-mercado-match {
        margin-top: 2px;
    }

    .mt-mercado-stats-strip {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding: 10px 0;
        border-top: 1px solid var(--border-subtle);
        border-bottom: 1px solid var(--border-subtle);
    }

    #mt-mercado-modal.mt-mercado-pro .mt-mercado-stats-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    #mt-mercado-modal:not(.mt-mercado-pro) .mt-mercado-col-pro {
        display: none;
    }

    .mt-mercado-cell-price {
        display: none !important;
    }

    .mt-mercado-cell-media,
    .mt-mercado-cell-xpts,
    .mt-mercado-cell-score,
    .mt-mercado-cell-mpv {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-height: 52px;
        padding: 6px 4px;
        border-radius: 10px;
        background: color-mix(in srgb, var(--bg-elevated) 88%, var(--accent-orange) 12%);
    }

    .mt-mercado-cell-price::before,
    .mt-mercado-cell-media::before,
    .mt-mercado-cell-xpts::before,
    .mt-mercado-cell-score::before,
    .mt-mercado-cell-mpv::before {
        content: attr(data-label);
        font-size: 0.54rem;
        font-weight: 900;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--text-muted);
    }

    .mt-mercado-cell-val {
        font-size: 0.84rem;
        font-weight: 900;
        font-variant-numeric: tabular-nums;
        color: var(--text-strong);
        line-height: 1.1;
    }

    .mt-mercado-xpts-hero {
        font-size: 0.84rem;
        font-weight: 900;
        color: var(--ds-verde, #22c55e);
        line-height: 1.1;
    }

    .mt-mercado-xpts-sub {
        font-size: 0.58rem;
        color: var(--text-muted);
        font-weight: 700;
        line-height: 1.1;
    }

    .mt-mercado-cell-action {
        width: 100%;
        padding-top: 10px;
    }

    .mt-mercado-buy {
        width: 100%;
        min-height: 50px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2px;
        padding: 10px 14px;
        border-radius: 12px;
    }

    .mt-mercado-buy-label {
        line-height: 1.1;
        letter-spacing: 0.06em;
    }

    .mt-mercado-buy-price {
        display: block;
        font-size: 0.74rem;
        font-weight: 800;
        opacity: 0.92;
        line-height: 1.1;
        margin-top: 0;
    }
}
