:root {
    --bg-main: #050712;
    --bg-panel: rgba(14, 18, 36, 0.9);
    --bg-input: rgba(7, 11, 24, 0.9);
    --border-color: rgba(130, 151, 255, 0.24);
    --accent-purple: #7c3aed;
    --accent-cyan: #22d3ee;
    --accent-pink: #f472b6;
    --accent-lime: #a3e635;
    --accent-glow: #facc15;
    --text-main: #f8fbff;
    --text-muted: #9fb2d6;
    --success: #2dd4bf;
    --danger: #fb7185;
    --warning: #f59e0b;
    --info: #38bdf8;
    --surface-raised: rgba(20, 25, 52, 0.88);
    --surface-soft: rgba(11, 16, 34, 0.86);
    --font-display: 'Orbitron', 'Space Grotesk', sans-serif;
    --font-body: 'Space Grotesk', 'Inter', sans-serif;
    --font-data: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
}

body,
html {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background:
        linear-gradient(135deg, rgba(34, 211, 238, 0.08) 0%, rgba(5, 7, 18, 0) 28%),
        linear-gradient(225deg, rgba(244, 114, 182, 0.08) 0%, rgba(5, 7, 18, 0) 32%),
        repeating-linear-gradient(90deg, rgba(130, 151, 255, 0.035) 0 1px, transparent 1px 88px),
        repeating-linear-gradient(0deg, rgba(130, 151, 255, 0.028) 0 1px, transparent 1px 88px),
        var(--bg-main);
    color: var(--text-main);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-size: 14px;
}

.topbar {
    height: 60px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    z-index: 30;
}

.logo {
    font-size: 1.12rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0;
    text-shadow: 0 0 10px rgba(20, 184, 166, 0.35);
    width: 340px;
    white-space: nowrap;
}

.logo span {
    color: var(--accent-purple);
}

.main-nav {
    display: flex;
    gap: 10px;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 700;
    padding: 10px 20px;
    cursor: pointer;
    transition: 0.2s;
    border-radius: 6px;
}

.nav-btn:hover {
    color: #fff;
    background: rgba(20, 184, 166, 0.1);
}

.nav-btn.active {
    color: #fff;
    background: var(--accent-purple);
    box-shadow: 0 0 15px rgba(20, 184, 166, 0.28);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    justify-content: flex-end;
    width: 350px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 8px currentColor;
}

.status-dot.warning {
    background: #f59e0b;
    color: #f59e0b;
}

.status-dot.success {
    background: var(--success);
    color: var(--success);
}

.btn-secondary {
    background: rgba(20, 184, 166, 0.12);
    border: 1px solid var(--accent-purple);
    color: var(--accent-glow);
    padding: 6px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: 0.2s;
}

.btn-secondary:hover {
    background: var(--accent-purple);
    color: #fff;
}

.btn-primary {
    background: var(--accent-purple);
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.24);
    transition: 0.2s;
}

.btn-primary:hover {
    background: #0f766e;
}

.app-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: calc(100vh - 60px);
}

.settings-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 34px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 30px;
    z-index: 20;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.settings-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 0;
    min-width: 0;
}

.settings-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0;
}

.inputs-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.inputs-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.inputs-row input {
    width: 72px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--accent-glow);
    padding: 6px;
    border-radius: 6px;
    text-align: center;
    font-weight: 700;
    outline: none;
}

.inputs-row input:focus {
    border-color: var(--accent-purple);
}

.settings-divider {
    width: 1px;
    height: 40px;
    background-color: var(--border-color);
}

.main-content {
    flex: 1;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.07) 0%, rgba(13, 17, 23, 0) 34%), var(--bg-main);
    position: relative;
}

.view-section {
    display: none;
    height: 100%;
    width: 100%;
    padding: 25px;
}

.view-section.active {
    display: flex;
    gap: 25px;
    justify-content: center;
}

.trade-col {
    width: 360px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.col-header {
    text-align: center;
    font-weight: 800;
    padding: 14px;
    border-radius: 8px;
    font-size: 1rem;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.cedi-header {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.ricevi-header {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

.roster-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding-right: 5px;
}

.roster-list::-webkit-scrollbar {
    width: 6px;
}

.roster-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 6px;
}

.col-total {
    text-align: center;
    padding: 20px;
    background: rgba(22, 12, 36, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 900;
    font-size: 1.8rem;
    color: #fff;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(22, 12, 36, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    outline: none;
}

.search-box input:focus {
    border-color: var(--accent-purple);
    background: var(--bg-main);
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.search-item {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-item:hover {
    background: rgba(20, 184, 166, 0.12);
}

.search-item strong {
    color: #fff;
}

.search-item span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.trade-center {
    width: 360px;
    display: flex;
    flex-direction: column;
}

.center-panel {
    background: rgba(22, 12, 36, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.btn-clear {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    align-self: center;
    margin-bottom: 35px;
}

.btn-clear:hover {
    background: var(--border-color);
    color: #fff;
    border-color: var(--accent-purple);
}

.verdict-module {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.verdict-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 8px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 900;
    background: var(--bg-main);
}

.verdict-text h2 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    font-weight: 900;
}

.analysis-details {
    text-align: left;
    background: rgba(10, 5, 18, 0.8);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.detail-header {
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    color: var(--text-muted);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 600;
}

.detail-row span:first-child {
    color: var(--text-muted);
}

.detail-row span.pos {
    color: var(--success);
    font-weight: 900;
}

.detail-row span.neg {
    color: var(--danger);
    font-weight: 900;
}

.player-card {
    background: rgba(33, 19, 53, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: 0.2s;
}

.player-card:hover {
    border-color: var(--accent-purple);
    transform: translateY(-2px);
}

.remove-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.player-card:hover .remove-btn {
    opacity: 1;
}

.remove-btn:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

.card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.role-badge {
    font-size: 0.8rem;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 6px;
    color: #fff;
}

.player-name {
    font-size: 1.1rem;
    font-weight: 800;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hype-input {
    width: 45px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--accent-glow);
    text-align: center;
    padding: 4px;
    border-radius: 6px;
    outline: none;
    margin-left: 6px;
    font-weight: 800;
}

.season-tags {
    display: flex;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 800;
}

.season-tag {
    padding: 3px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent-glow);
    border-color: rgba(246, 200, 95, 0.38);
}

.card-stats {
    display: flex;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.4);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.5);
}

.stat-box {
    text-align: center;
    flex: 1;
}

.stat-val {
    font-size: 1.1rem;
    font-weight: 900;
    color: #fff;
}

.stat-lbl {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 800;
}

.traits-row {
    display: flex;
    justify-content: space-between;
    background: rgba(20, 184, 166, 0.08);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(20, 184, 166, 0.18);
    margin-top: -4px;
}

.trait-box {
    font-size: 0.8rem;
    font-weight: 600;
}

.trait-lbl {
    color: var(--text-muted);
    margin-right: 4px;
}

.trait-box span:last-child {
    color: var(--accent-glow);
    font-weight: 800;
}

#view-rose {
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

#view-rose.active {
    display: flex;
    justify-content: flex-start;
}

.rose-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-panel);
    padding: 15px 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0%, rgba(34, 211, 238, 0.05) 48%, rgba(244, 114, 182, 0.05) 52%, transparent 100%),
        repeating-linear-gradient(135deg, transparent 0 18px, rgba(250, 204, 21, 0.035) 18px 19px, transparent 19px 58px);
    mix-blend-mode: screen;
    opacity: 0.75;
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

.persist-badge {
    background: rgba(246, 200, 95, 0.12);
    border: 1px solid rgba(246, 200, 95, 0.32);
    border-radius: 6px;
    color: #fde68a;
    font-size: 0.8rem;
    font-weight: 900;
    padding: 8px 10px;
    white-space: nowrap;
}

.league-tabs {
    display: flex;
    gap: 10px;
}

.tab-league-btn {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.2s;
}

.tab-league-btn:hover {
    background: rgba(20, 184, 166, 0.08);
    color: #fff;
}

.tab-league-btn.active {
    background: var(--accent-purple);
    color: #fff;
    border-color: var(--accent-purple);
}

.rose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 20px;
    padding-bottom: 40px;
}

.team-table-container {
    background: rgba(22, 12, 36, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.team-table-header {
    background: rgba(0, 0, 0, 0.5);
    padding: 12px;
    text-align: center;
    font-weight: 900;
    color: var(--accent-glow);
    border-bottom: 2px solid var(--accent-purple);
    font-size: 1.1rem;
    text-transform: uppercase;
}

.team-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 0.85rem;
}

.team-table th {
    background: rgba(20, 184, 166, 0.08);
    padding: 8px;
    color: var(--text-muted);
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
}

.team-table td {
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    font-weight: 600;
}

.team-table .club-cell {
    color: #a5f3fc;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.team-table tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}

.roster-value-cell {
    font-weight: 900;
    text-shadow: 0 0 10px currentColor;
}

.roster-value-cell.complete {
    color: #7cff4f;
}

.roster-value-cell.incomplete {
    color: #facc15;
}

.roster-value-cell.neutral {
    color: var(--text-muted);
    text-shadow: none;
}

/* Colori Titolarità per le celle "Nome" nelle Rose */
.tit-color-1 {
    background-color: rgba(239, 68, 68, 0.3) !important;
    color: #fff !important;
}

.tit-color-2 {
    background-color: rgba(249, 115, 22, 0.3) !important;
    color: #fff !important;
}

.tit-color-3 {
    background-color: rgba(234, 179, 8, 0.3) !important;
    color: #fff !important;
}

.tit-color-4 {
    background-color: rgba(16, 185, 129, 0.3) !important;
    color: #fff !important;
}

.tit-color-5 {
    background-color: rgba(76, 29, 149, 0.6) !important;
    color: #fff !important;
    font-weight: 900 !important;
}

/* Modale Scambio */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-panel);
    border: 1px solid var(--accent-purple);
    border-radius: 8px;
    width: 750px;
    max-width: 95%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    color: var(--accent-glow);
    font-size: 1.4rem;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.close-btn:hover {
    color: var(--danger);
}

.modal-body {
    padding: 30px;
}

.trade-form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.trade-form-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.team-select {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-glow) !important;
    margin-bottom: 15px;
    width: 100%;
    padding: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: 'Inter';
    outline: none;
}

.team-select:focus {
    border-color: var(--accent-purple);
}

.slot-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.slot-selector select {
    width: 120px;
    padding: 6px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: #fff;
    border-radius: 4px;
    outline: none;
}

.players-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.players-container select {
    width: 100%;
    padding: 10px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: #fff;
    border-radius: 6px;
    font-family: 'Inter';
    outline: none;
    font-size: 0.95rem;
}

.players-container select:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 8px rgba(20, 184, 166, 0.28);
}

.trade-icon {
    font-size: 2.5rem;
    color: var(--accent-purple);
    font-weight: 900;
}

.full-width {
    width: 100%;
    font-size: 1.1rem;
    padding: 15px;
}

.modal-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

/* Colori Ruoli Mantra */
.role-Por {
    background-color: #f59e0b;
}

.role-Dc,
.role-B {
    background-color: #00c3ff;
}

.role-Dd,
.role-Ds,
.role-E {
    background-color: #3b82f6;
}

.role-M,
.role-C {
    background-color: #10b981;
}

.role-T,
.role-W {
    background-color: #ef4444;
}

.role-A,
.role-Pc {
    background-color: #991b1b;
}

/* Premium pass */
.topbar {
    height: 64px;
    gap: 18px;
    padding: 0 22px;
    background: rgba(21, 27, 35, 0.96);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.logo {
    width: 340px;
    letter-spacing: 0;
    text-shadow: none;
}

.logo span {
    color: var(--accent-glow);
}

.app-container {
    height: calc(100vh - 64px);
}

.main-content {
    background:
        linear-gradient(180deg, rgba(96, 165, 250, 0.07) 0%, rgba(13, 17, 23, 0) 34%),
        var(--bg-main);
}

.settings-toolbar,
.rose-toolbar,
.center-panel,
.team-table-container,
.analysis-details,
.player-card,
.modal-content {
    background: rgba(21, 27, 35, 0.86);
    border-color: rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.settings-toolbar {
    justify-content: space-between;
    gap: 24px;
    padding: 12px 24px;
}

.settings-label {
    letter-spacing: 0;
}

.btn-primary,
.nav-btn.active {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    box-shadow: 0 10px 24px rgba(20, 184, 166, 0.2);
}

.btn-primary:hover,
.nav-btn.active:hover,
.btn-secondary:hover {
    background: #0f766e;
}

.btn-secondary,
.btn-ghost {
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.35);
    color: #99f6e4;
    padding: 7px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.2s;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-ghost:disabled {
    cursor: default;
    opacity: 0.6;
}

.quality-badge {
    min-width: 64px;
    padding: 3px 7px;
    border-radius: 6px;
    text-align: center;
    font-size: 0.72rem;
    color: #06131b;
    white-space: nowrap;
}

.quality-badge.success {
    background: #86efac;
}

.quality-badge.warning {
    background: #fcd34d;
}

.quality-badge.danger {
    background: #fda4af;
}

.nav-btn:hover,
.tab-league-btn:hover,
.search-item:hover {
    background: rgba(20, 184, 166, 0.12);
}

.status-indicator {
    width: auto;
    min-width: 420px;
}

.btn-clear {
    border-radius: 6px;
    margin-bottom: 24px;
}

.verdict-module {
    margin-bottom: 24px;
}

.verdict-circle {
    width: 112px;
    height: 112px;
    background: #0b1220;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.analysis-details {
    background: rgba(15, 22, 32, 0.88);
}

.trade-kpis,
.rose-summary,
.quality-summary {
    display: grid;
    gap: 12px;
}

.trade-kpis {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 14px;
}

.kpi-box,
.summary-tile,
.quality-card {
    background: rgba(15, 22, 32, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    padding: 12px;
}

.kpi-box span,
.summary-tile span,
.quality-card span {
    display: block;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.kpi-box strong,
.summary-tile strong,
.quality-card strong {
    color: var(--text-main);
    font-size: 1.05rem;
}

.quality-card strong small {
    color: var(--accent-glow);
    font-size: 0.72rem;
    margin-left: 4px;
}

.summary-tile em,
.quality-card em {
    display: block;
    margin-top: 4px;
    color: var(--accent-glow);
    font-style: normal;
    font-size: 0.8rem;
    font-weight: 800;
}

.pos {
    color: var(--success) !important;
}

.neg {
    color: var(--danger) !important;
}

.neutral {
    color: var(--text-main) !important;
}

.player-card {
    background: rgba(27, 36, 48, 0.82);
}

.player-card:hover {
    border-color: rgba(20, 184, 166, 0.75);
    transform: translateY(-1px);
}

.card-top {
    min-width: 0;
}

.value-pill {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 50px;
    color: var(--accent-glow);
}

.value-pill span {
    color: var(--text-muted);
    font-size: 0.62rem;
    font-weight: 900;
}

.value-pill strong {
    font-size: 1rem;
    line-height: 1.1;
}

.season-tag {
    border-color: rgba(246, 200, 95, 0.38);
    color: #fde68a;
}

.traits-row {
    background: rgba(20, 184, 166, 0.08);
    border-color: rgba(20, 184, 166, 0.18);
}

.search-box input,
.inputs-row input,
.team-select,
.players-container select,
.slot-selector select,
.hype-input {
    background: var(--bg-input);
    border-color: rgba(148, 163, 184, 0.2);
}

.search-box input:focus,
.inputs-row input:focus,
.team-select:focus,
.players-container select:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

.search-dropdown {
    background: #111821;
    border-color: rgba(148, 163, 184, 0.22);
}

.rose-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.team-table-header {
    color: #fde68a;
    background: rgba(15, 22, 32, 0.96);
    border-bottom-color: rgba(20, 184, 166, 0.6);
}

.team-table th {
    background: rgba(20, 184, 166, 0.08);
}

.tit-color-5 {
    background-color: rgba(37, 99, 235, 0.45) !important;
}

.modal-content {
    border-color: rgba(20, 184, 166, 0.55);
}

.modal-content-wide {
    width: 980px;
}

.modal-header h2 {
    color: #fde68a;
}

.quality-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

.quality-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.quality-grid h3 {
    margin: 0 0 10px;
    font-size: 0.95rem;
    color: var(--text-main);
}

.quality-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 420px;
    overflow: auto;
}

.quality-row,
.quality-empty {
    background: rgba(15, 22, 32, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    padding: 12px;
}

.quality-row-warning {
    border-color: rgba(250, 204, 21, 0.36);
    background: rgba(250, 204, 21, 0.08);
}

.quality-row-main {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.quality-row-main strong {
    color: #fff;
}

.quality-row-main small,
.quality-empty {
    color: var(--text-muted);
}

.quality-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.quality-suggestions span {
    background: rgba(96, 165, 250, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 6px;
    color: #bfdbfe;
    font-size: 0.78rem;
    padding: 4px 8px;
}

.role-Pc {
    background-color: #991b1b;
}

.tool-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding-bottom: 26px;
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    background: rgba(21, 27, 35, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    padding: 18px 20px;
}

.tool-header h1 {
    margin: 0;
    font-size: 1.35rem;
}

.tool-header p {
    margin: 5px 0 0;
    color: var(--text-muted);
}

.tool-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.columns-menu {
    position: relative;
}

.columns-menu summary {
    align-items: center;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.32);
    border-radius: 6px;
    color: #a5f3fc;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 900;
    min-height: 38px;
    padding: 8px 12px;
    user-select: none;
}

.columns-panel {
    background: rgba(7, 11, 28, 0.98);
    border: 1px solid rgba(130, 151, 255, 0.26);
    border-radius: 8px;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    min-width: 300px;
    padding: 12px;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 40;
}

.columns-panel label {
    align-items: center;
    color: var(--text-main);
    display: flex;
    font-size: 0.78rem;
    font-weight: 800;
    gap: 7px;
}

.compact-select {
    width: auto;
    min-width: 150px;
    margin-bottom: 0;
    font-size: 0.92rem;
    padding: 9px 12px;
}

.tool-input {
    min-width: 260px;
    background: var(--bg-input);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 6px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    outline: none;
    padding: 10px 12px;
}

.tool-input:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.tool-layout,
.lineup-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    align-items: stretch;
}

.panel-large,
.side-panel,
.pitch-panel {
    background: rgba(21, 27, 35, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    padding: 16px;
    min-width: 0;
}

.section-title {
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 900;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.section-note {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 10px;
}

.calendar-matrix {
    overflow: auto;
}

.calendar-table {
    width: 100%;
    min-width: 980px;
    border-collapse: separate;
    border-spacing: 6px;
}

.calendar-table th {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-align: left;
    padding: 6px;
    text-transform: uppercase;
}

.calendar-table td {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 6px;
    padding: 8px;
    min-width: 86px;
}

.fixture-cell strong,
.fixture-cell span {
    display: block;
}

.fixture-cell strong {
    color: #fff;
    font-size: 0.82rem;
    text-transform: capitalize;
}

.fixture-cell span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    margin-top: 3px;
}

.fixture-cell.easy {
    background: rgba(34, 197, 94, 0.26);
}

.fixture-cell.medium {
    background: rgba(246, 200, 95, 0.2);
}

.fixture-cell.hard {
    background: rgba(244, 63, 94, 0.24);
}

.fantasy-fixtures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.fantasy-fixture-summary,
.fantasy-fixture-card {
    background: rgba(21, 27, 35, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    padding: 12px;
    min-width: 0;
}

.fantasy-fixture-summary {
    border-color: rgba(45, 212, 191, 0.32);
}

.fantasy-fixture-summary span,
.fantasy-fixture-summary strong,
.fantasy-fixture-summary em,
.fantasy-fixture-card span,
.fantasy-fixture-card strong,
.fantasy-fixture-card em {
    display: block;
}

.fantasy-fixture-summary span,
.fantasy-fixture-card span {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.fantasy-fixture-summary strong,
.fantasy-fixture-card strong {
    color: #fff;
    font-size: 0.95rem;
    margin-top: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fantasy-fixture-summary em,
.fantasy-fixture-card em {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-style: normal;
    margin-top: 6px;
}

.fantasy-fixture-card.good {
    border-color: rgba(34, 197, 94, 0.34);
    background: rgba(34, 197, 94, 0.12);
}

.fantasy-fixture-card.even {
    border-color: rgba(246, 200, 95, 0.28);
    background: rgba(246, 200, 95, 0.08);
}

.fantasy-fixture-card.bad {
    border-color: rgba(244, 63, 94, 0.34);
    background: rgba(244, 63, 94, 0.1);
}

.fantasy-fixture-card.neutral {
    background: rgba(15, 22, 32, 0.8);
}

.side-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.mini-row {
    display: grid;
    grid-template-columns: minmax(66px, 0.7fr) minmax(0, 1.4fr) minmax(54px, 0.6fr);
    align-items: center;
    gap: 8px;
    background: rgba(15, 22, 32, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 8px;
    padding: 9px 10px;
}

.mini-row span,
.mini-row em {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-style: normal;
}

.mini-row strong {
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.target-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: rgba(21, 27, 35, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    padding: 14px;
}

.target-card strong,
.target-card span {
    display: block;
}

.target-card span {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 4px;
}

.target-score {
    text-align: right;
    color: var(--accent-glow);
    min-width: 72px;
}

.mini-action {
    background: rgba(20, 184, 166, 0.12);
    border: 1px solid rgba(20, 184, 166, 0.34);
    border-radius: 6px;
    color: #99f6e4;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 900;
    padding: 7px 9px;
}

.mini-action:hover {
    background: rgba(20, 184, 166, 0.22);
}

.mini-action:disabled,
.mini-action.disabled {
    cursor: default;
    opacity: 0.45;
}

.history-row {
    background: rgba(15, 22, 32, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    padding: 14px;
}

.history-main {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.history-main strong {
    color: #fff;
}

.history-main small {
    color: var(--text-muted);
}

.history-sides {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.history-sides div {
    background: rgba(21, 27, 35, 0.8);
    border-radius: 8px;
    padding: 10px;
}

.history-sides span,
.history-sides strong {
    display: block;
}

.history-sides span {
    color: var(--text-muted);
    font-size: 0.76rem;
    margin-bottom: 5px;
}

.history-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

.listone-table-container {
    overflow: auto;
}

.listone-table {
    width: 100%;
    min-width: 1360px;
    border-collapse: collapse;
    font-size: 0.84rem;
    font-family: var(--font-data);
}

.listone-table th,
.listone-table td {
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    padding: 9px 10px;
    text-align: center;
}

.listone-table th {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 900;
    padding: 0;
    position: sticky;
    top: 0;
    background: rgba(13, 18, 38, 0.98);
    text-transform: uppercase;
    z-index: 1;
}

.sortable-th {
    align-items: center;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    font-family: var(--font-data);
    font-size: 0.72rem;
    font-weight: 900;
    gap: 6px;
    justify-content: center;
    min-height: 38px;
    padding: 9px 10px;
    text-transform: uppercase;
    width: 100%;
}

.sortable-th:hover,
.sortable-th.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(244, 114, 182, 0.12));
}

.sortable-th em {
    color: var(--accent-glow);
    font-size: 0.58rem;
    font-style: normal;
    min-width: 28px;
}

.listone-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.035);
}

.listone-name {
    text-align: left !important;
    min-width: 190px;
}

.listone-name strong,
.listone-name span {
    display: block;
}

.listone-name span {
    color: var(--text-muted);
    font-size: 0.76rem;
    margin-top: 3px;
}

.performance-pill {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 900;
    gap: 6px;
    justify-content: center;
    min-width: 92px;
    padding: 5px 8px;
    text-transform: uppercase;
}

.performance-pill em {
    font-size: 0.66rem;
    font-style: normal;
    opacity: 0.86;
}

.perf-over {
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.42);
    color: #86efac;
}

.perf-normal {
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.34);
    color: #bae6fd;
}

.perf-under {
    background: rgba(250, 204, 21, 0.16);
    border: 1px solid rgba(250, 204, 21, 0.38);
    color: #fde68a;
}

.perf-nd {
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.26);
    color: #cbd5e1;
}

.season-status {
    align-items: center;
    display: inline-flex;
    gap: 6px;
    justify-content: center;
    min-width: 38px;
}

.season-dot {
    display: inline-flex;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 8px currentColor;
}

.season-status small {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
}

.season-dot.ok {
    background: #22c55e;
    color: #22c55e;
}

.season-dot.single {
    background: #facc15;
    color: #facc15;
}

.season-dot.current {
    background: #38bdf8;
    color: #38bdf8;
    opacity: 0.72;
}

.season-dot.youth {
    background: #a78bfa;
    color: #a78bfa;
    opacity: 0.82;
}

.season-dot.missing {
    background: #94a3b8;
    color: #94a3b8;
    opacity: 0.6;
}

.value-cell {
    color: var(--accent-glow);
    font-weight: 900;
}

.empty-state,
.warning-box {
    color: var(--text-muted);
    background: rgba(15, 22, 32, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 8px;
    padding: 14px;
}

.warning-box {
    color: #fecdd3;
    border-color: rgba(244, 63, 94, 0.26);
    margin-bottom: 16px;
}

.lineup-pitch {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    border-radius: 8px;
    background:
        linear-gradient(90deg, transparent calc(50% - 1px), rgba(255, 255, 255, 0.55) calc(50% - 1px), rgba(255, 255, 255, 0.55) calc(50% + 1px), transparent calc(50% + 1px)),
        repeating-linear-gradient(90deg, #66b51f 0 12.5%, #75c827 12.5% 25%);
    border: 2px solid rgba(255, 255, 255, 0.74);
    box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.12);
}

.lineup-pitch::before,
.lineup-pitch::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.lineup-pitch::before {
    top: 42%;
    width: 160px;
    height: 160px;
    border-radius: 50%;
}

.lineup-pitch::after {
    bottom: 0;
    width: 190px;
    height: 80px;
    border-bottom: none;
}

.pitch-player {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 112px;
    min-height: 58px;
    padding: 7px;
    border-radius: 8px;
    background: rgba(15, 22, 32, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22);
    text-align: center;
}

.pitch-player span {
    color: #fde68a;
    font-size: 0.72rem;
    font-weight: 900;
}

.pitch-player strong {
    width: 100%;
    color: #fff;
    font-size: 0.78rem;
    line-height: 1.15;
    margin: 3px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pitch-player em {
    color: #99f6e4;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 800;
}

.pitch-player.missing {
    background: rgba(127, 29, 29, 0.76);
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
}

.module-card {
    text-align: left;
    background: rgba(21, 27, 35, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    color: var(--text-main);
    padding: 14px;
    cursor: pointer;
}

.module-card.active {
    border-color: rgba(20, 184, 166, 0.78);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

.module-card strong,
.module-card span,
.module-card em {
    display: block;
}

.module-card span,
.module-card em {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-style: normal;
    margin-top: 5px;
}

/* Responsive + Formazione visual refresh */
.pitch-panel {
    overflow-x: auto;
    padding: 18px;
}

.lineup-pitch {
    isolation: isolate;
    min-width: 620px;
    background:
        radial-gradient(circle at 50% 50%, rgba(250, 204, 21, 0.11) 0 9%, transparent 10%),
        linear-gradient(90deg, transparent calc(50% - 1px), rgba(255, 255, 255, 0.6) calc(50% - 1px), rgba(255, 255, 255, 0.6) calc(50% + 1px), transparent calc(50% + 1px)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0 2px, transparent 2px calc(50% - 1px), rgba(255, 255, 255, 0.48) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px) calc(100% - 2px), rgba(255, 255, 255, 0.5) calc(100% - 2px)),
        repeating-linear-gradient(90deg, #155e34 0 12.5%, #19713c 12.5% 25%);
    border-color: rgba(165, 243, 252, 0.72);
    box-shadow:
        inset 0 0 0 8px rgba(255, 255, 255, 0.1),
        inset 0 0 55px rgba(5, 9, 22, 0.42),
        0 18px 36px rgba(0, 0, 0, 0.28);
}

.lineup-pitch::before {
    top: 39%;
    width: 170px;
    height: 170px;
    border-color: rgba(255, 255, 255, 0.64);
}

.lineup-pitch::after {
    width: 210px;
    height: 86px;
    border-color: rgba(255, 255, 255, 0.64);
}

.pitch-player {
    background:
        linear-gradient(145deg, rgba(34, 211, 238, 0.18), rgba(124, 58, 237, 0.18) 48%, rgba(244, 114, 182, 0.14)),
        rgba(7, 11, 28, 0.93);
    border-color: rgba(165, 243, 252, 0.46);
    box-shadow: 0 14px 22px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pitch-player span {
    align-self: center;
    background: rgba(250, 204, 21, 0.16);
    border: 1px solid rgba(250, 204, 21, 0.26);
    border-radius: 999px;
    color: #fde68a;
    padding: 2px 7px;
}

.pitch-player strong {
    font-family: var(--font-body);
    font-size: 0.82rem;
}

.pitch-player em {
    background: rgba(20, 184, 166, 0.16);
    border-radius: 999px;
    color: #a5f3fc;
    padding: 2px 8px;
}

.pitch-player.missing {
    background:
        linear-gradient(145deg, rgba(244, 63, 94, 0.22), rgba(124, 58, 237, 0.14)),
        rgba(39, 18, 32, 0.9);
    border-color: rgba(251, 113, 133, 0.42);
}

.module-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.module-card {
    min-height: 112px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.module-card:hover {
    transform: translateY(-1px);
    border-color: rgba(34, 211, 238, 0.5);
}

.module-card strong {
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.02rem;
}

/* Multiverse visual pass */
.topbar {
    background:
        linear-gradient(90deg, rgba(34, 211, 238, 0.16), transparent 22%, rgba(244, 114, 182, 0.12) 78%, rgba(250, 204, 21, 0.08)),
        rgba(7, 10, 24, 0.94);
    border-bottom: 1px solid rgba(130, 151, 255, 0.34);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.42), inset 0 -1px 0 rgba(34, 211, 238, 0.16);
}

.logo,
.tool-header h1,
.verdict-text h2,
.team-table-header,
.section-title,
.modal-header h2 {
    font-family: var(--font-display);
}

.logo {
    color: #fff;
    font-size: 1.12rem;
    text-shadow: 0 0 18px rgba(34, 211, 238, 0.5);
}

.logo span {
    color: var(--accent-pink);
    text-shadow: 0 0 18px rgba(244, 114, 182, 0.55);
}

.nav-btn {
    border: 1px solid transparent;
    font-family: var(--font-body);
}

.nav-btn:hover {
    background: rgba(34, 211, 238, 0.1);
    border-color: rgba(34, 211, 238, 0.22);
}

.btn-primary,
.nav-btn.active {
    background: linear-gradient(135deg, #22d3ee 0%, #7c3aed 52%, #f472b6 100%);
    color: #fff;
    box-shadow: 0 0 24px rgba(34, 211, 238, 0.24), 0 10px 28px rgba(124, 58, 237, 0.28);
}

.btn-primary:hover,
.nav-btn.active:hover,
.btn-secondary:hover {
    background: linear-gradient(135deg, #0891b2 0%, #6d28d9 55%, #db2777 100%);
}

.btn-secondary,
.btn-ghost,
.mini-action {
    background: rgba(34, 211, 238, 0.08);
    border-color: rgba(34, 211, 238, 0.32);
    color: #a5f3fc;
}

.settings-toolbar,
.rose-toolbar,
.tool-header,
.panel-large,
.side-panel,
.pitch-panel,
.center-panel,
.team-table-container,
.analysis-details,
.player-card,
.modal-content,
.summary-tile,
.quality-card,
.kpi-box,
.target-card,
.history-row,
.fantasy-fixture-summary,
.fantasy-fixture-card,
.module-card {
    background:
        linear-gradient(145deg, rgba(34, 211, 238, 0.055), rgba(244, 114, 182, 0.035) 46%, rgba(250, 204, 21, 0.025)),
        rgba(10, 14, 32, 0.88);
    border-color: rgba(130, 151, 255, 0.22);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.tool-header,
.rose-toolbar,
.settings-toolbar {
    backdrop-filter: blur(12px);
}

.tool-header h1 {
    color: #fff;
    font-size: 1.45rem;
    text-shadow: 0 0 18px rgba(34, 211, 238, 0.36);
}

.tool-header p,
.section-note,
.status-indicator,
.summary-tile span,
.quality-card span,
.kpi-box span {
    color: var(--text-muted);
}

.section-title {
    color: #c4b5fd;
    text-shadow: 0 0 14px rgba(124, 58, 237, 0.36);
}

.summary-tile strong,
.quality-card strong,
.kpi-box strong,
.value-cell,
.target-score {
    color: var(--accent-glow);
    text-shadow: 0 0 12px rgba(250, 204, 21, 0.18);
}

.search-box input,
.inputs-row input,
.team-select,
.players-container select,
.slot-selector select,
.hype-input,
.tool-input {
    background: rgba(5, 9, 22, 0.88);
    border-color: rgba(130, 151, 255, 0.24);
    color: #f8fbff;
}

.search-box input:focus,
.inputs-row input:focus,
.team-select:focus,
.players-container select:focus,
.tool-input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.13), 0 0 24px rgba(124, 58, 237, 0.14);
}

.col-total,
.search-dropdown,
.card-stats,
.quality-row,
.quality-empty,
.mini-row,
.history-sides div {
    background: rgba(5, 9, 22, 0.82);
    border-color: rgba(130, 151, 255, 0.18);
}

.player-card:hover,
.module-card.active {
    border-color: rgba(34, 211, 238, 0.7);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12), 0 16px 34px rgba(0, 0, 0, 0.32);
}

.cedi-header {
    background: linear-gradient(135deg, rgba(251, 113, 133, 0.2), rgba(124, 58, 237, 0.12));
    border-color: rgba(251, 113, 133, 0.45);
}

.ricevi-header {
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.18), rgba(34, 211, 238, 0.1));
    border-color: rgba(45, 212, 191, 0.45);
}

.team-table-header {
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.12), rgba(124, 58, 237, 0.2), rgba(244, 114, 182, 0.12));
    border-bottom-color: rgba(34, 211, 238, 0.55);
    color: #fff;
}

.team-table th,
.listone-table th {
    background: rgba(7, 11, 28, 0.98);
}

.fixture-cell.easy,
.fantasy-fixture-card.good {
    background: rgba(45, 212, 191, 0.16);
}

.fixture-cell.medium,
.fantasy-fixture-card.even {
    background: rgba(250, 204, 21, 0.11);
}

.fixture-cell.hard,
.fantasy-fixture-card.bad {
    background: rgba(244, 114, 182, 0.13);
}

@media (max-width: 1180px) {
    body,
    html {
        overflow: auto;
        height: auto;
        min-height: 100vh;
    }

    .topbar,
    .settings-toolbar,
    .view-section.active,
    .trade-form {
        flex-wrap: wrap;
    }

    .topbar,
    .app-container {
        height: auto;
    }

    .status-indicator {
        min-width: 0;
        flex: 1 1 100%;
        justify-content: flex-start;
    }

    .main-content {
        overflow: visible;
    }

    .view-section,
    #view-rose {
        min-height: auto;
        overflow: visible;
    }

    .trade-col,
    .trade-center {
        width: min(100%, 420px);
    }

    .rose-summary,
    .analysis-grid,
    .quality-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tool-layout,
    .lineup-layout {
        grid-template-columns: 1fr;
    }

    .topbar {
        align-items: flex-start;
        gap: 12px;
        padding-bottom: 12px;
        padding-top: 12px;
    }

    .logo {
        width: auto;
        min-width: 260px;
    }

    .main-nav {
        flex: 1 1 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .nav-btn {
        flex: 0 0 auto;
    }

    .settings-toolbar {
        align-items: stretch;
        justify-content: flex-start;
    }

    .settings-group {
        min-width: min(100%, 360px);
    }

    .tool-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .tool-controls {
        justify-content: flex-start;
        width: 100%;
    }

    .compact-select,
    .tool-input {
        flex: 1 1 210px;
    }

    .team-table-container {
        overflow-x: auto;
    }

    .team-table {
        min-width: 420px;
    }

    .module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .topbar,
    .settings-toolbar,
    .view-section {
        padding-left: 14px;
        padding-right: 14px;
    }

    .logo {
        width: auto;
        min-width: 0;
        font-size: 1rem;
    }

    .main-nav,
    .inputs-row,
    .league-tabs,
    .status-indicator {
        flex-wrap: wrap;
    }

    .main-nav {
        gap: 8px;
        width: 100%;
    }

    .nav-btn {
        font-size: 0.86rem;
        padding: 9px 12px;
    }

    .status-indicator {
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }

    .status-indicator .btn-ghost,
    .status-indicator .btn-secondary {
        min-height: 36px;
    }

    .settings-toolbar {
        gap: 16px;
    }

    .settings-group {
        flex: 1 1 100%;
    }

    .inputs-row {
        gap: 10px;
    }

    .inputs-row label {
        flex: 1 1 92px;
        justify-content: space-between;
    }

    .inputs-row input {
        width: 64px;
    }

    .settings-divider {
        display: none;
    }

    .trade-kpis,
    .rose-summary,
    .analysis-grid,
    .quality-summary,
    .quality-grid {
        grid-template-columns: 1fr;
    }

    .tool-header {
        align-items: stretch;
        flex-direction: column;
    }

    .tool-controls,
    .compact-select,
    .tool-input {
        width: 100%;
    }

    .columns-menu,
    .columns-menu summary {
        width: 100%;
    }

    .columns-menu summary {
        justify-content: center;
    }

    .columns-panel {
        grid-template-columns: 1fr;
        left: 0;
        min-width: 0;
        right: 0;
    }

    .trade-col,
    .trade-center {
        width: 100%;
    }

    .roster-list {
        max-height: 56vh;
    }

    .history-sides {
        grid-template-columns: 1fr;
    }

    .pitch-panel {
        padding: 12px;
    }

    .lineup-pitch {
        min-height: 540px;
        min-width: 500px;
    }

    .pitch-player {
        width: 98px;
        min-height: 54px;
        padding: 6px;
    }

    .pitch-player strong {
        font-size: 0.74rem;
    }

    .pitch-player span,
    .pitch-player em {
        font-size: 0.66rem;
    }

    .rose-grid {
        grid-template-columns: 1fr;
    }

    .module-grid {
        grid-template-columns: 1fr;
    }

    .calendar-table {
        min-width: 760px;
    }

    .listone-table {
        font-size: 0.78rem;
    }

    .modal-content-wide {
        width: min(100%, 980px);
    }

    .modal-body {
        padding: 18px;
    }
}

@media (max-width: 520px) {
    .view-section {
        padding: 12px;
    }

    .topbar {
        padding-left: 12px;
        padding-right: 12px;
    }

    .logo {
        font-size: 0.9rem;
    }

    .tool-page {
        gap: 14px;
    }

    .tool-header,
    .panel-large,
    .side-panel,
    .pitch-panel,
    .summary-tile,
    .quality-card,
    .kpi-box {
        padding: 12px;
    }

    .tool-header h1 {
        font-size: 1.18rem;
    }

    .tool-header p {
        font-size: 0.84rem;
    }

    .lineup-pitch {
        min-height: 500px;
        min-width: 470px;
    }

    .pitch-player {
        width: 90px;
    }

    .calendar-table {
        min-width: 680px;
    }

    .team-table {
        min-width: 390px;
    }

    .history-main {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Responsiveness pass + Formazione polish */
html {
    -webkit-text-size-adjust: 100%;
}

button,
input,
select {
    font: inherit;
    min-width: 0;
}

img,
svg,
canvas {
    max-width: 100%;
}

.topbar,
.main-nav,
.status-indicator,
.settings-toolbar,
.rose-toolbar,
.tool-header,
.tool-controls,
.view-section,
.tool-page,
.panel-large,
.side-panel,
.pitch-panel,
.center-panel,
.trade-col,
.trade-center {
    min-width: 0;
}

.main-nav,
.league-tabs,
.listone-table-container,
.calendar-matrix,
.team-table-container,
.pitch-panel {
    -webkit-overflow-scrolling: touch;
    scrollbar-color: rgba(34, 211, 238, 0.42) rgba(7, 11, 28, 0.6);
    scrollbar-width: thin;
}

.main-nav::-webkit-scrollbar,
.league-tabs::-webkit-scrollbar,
.listone-table-container::-webkit-scrollbar,
.calendar-matrix::-webkit-scrollbar,
.team-table-container::-webkit-scrollbar,
.pitch-panel::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

.main-nav::-webkit-scrollbar-thumb,
.league-tabs::-webkit-scrollbar-thumb,
.listone-table-container::-webkit-scrollbar-thumb,
.calendar-matrix::-webkit-scrollbar-thumb,
.team-table-container::-webkit-scrollbar-thumb,
.pitch-panel::-webkit-scrollbar-thumb {
    background: rgba(34, 211, 238, 0.42);
    border-radius: 999px;
}

.rose-toolbar {
    gap: 12px;
    flex-wrap: wrap;
}

.league-tabs {
    overflow-x: auto;
    padding-bottom: 2px;
}

.tab-league-btn,
.nav-btn {
    white-space: nowrap;
}

.tool-controls {
    align-items: stretch;
}

.rose-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

.modal-content {
    max-height: calc(100vh - 28px);
    overflow: auto;
}

#view-formazione .tool-page {
    gap: 20px;
}

#view-formazione .analysis-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

#view-formazione .summary-tile {
    position: relative;
    overflow: hidden;
}

#view-formazione .summary-tile::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple), var(--accent-pink));
}

#view-formazione .lineup-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
    align-items: start;
}

#view-formazione .pitch-panel {
    overflow: visible;
    padding: clamp(14px, 2vw, 22px);
    background:
        linear-gradient(145deg, rgba(34, 211, 238, 0.08), rgba(124, 58, 237, 0.08) 45%, rgba(244, 114, 182, 0.055)),
        rgba(6, 10, 25, 0.92);
}

#view-formazione .lineup-pitch {
    width: min(100%, 740px);
    min-width: 0;
    height: clamp(590px, calc(100vh - 300px), 760px);
    min-height: 590px;
    margin: 0 auto;
    isolation: isolate;
    border: 1px solid rgba(165, 243, 252, 0.72);
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 50%, rgba(250, 204, 21, 0.18) 0 1.2%, transparent 1.4%),
        radial-gradient(circle at 50% 50%, transparent 0 12%, rgba(255, 255, 255, 0.1) 12.2% 12.6%, transparent 12.8%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px),
        repeating-linear-gradient(90deg, #0e5a39 0 12.5%, #127044 12.5% 25%),
        linear-gradient(180deg, rgba(8, 47, 73, 0.5), rgba(20, 83, 45, 0.38));
    background-size: auto, auto, 12.5% 100%, auto, auto;
    box-shadow:
        inset 0 0 0 10px rgba(255, 255, 255, 0.08),
        inset 0 0 80px rgba(3, 7, 18, 0.5),
        0 24px 44px rgba(0, 0, 0, 0.34);
}

#view-formazione .lineup-pitch::before {
    top: 50%;
    width: 156px;
    height: 156px;
    transform: translate(-50%, -50%);
    border-color: rgba(255, 255, 255, 0.56);
    border-radius: 50%;
    z-index: 1;
}

#view-formazione .lineup-pitch::after {
    top: 50%;
    bottom: auto;
    width: calc(100% - 28px);
    height: 2px;
    transform: translate(-50%, -50%);
    border: 0;
    background: rgba(255, 255, 255, 0.48);
    z-index: 1;
}

#view-formazione .pitch-lines {
    position: absolute;
    inset: 14px;
    z-index: 1;
    pointer-events: none;
    border: 2px solid rgba(255, 255, 255, 0.52);
    border-radius: 6px;
}

#view-formazione .pitch-lines::before,
#view-formazione .pitch-lines::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 42%;
    height: 15%;
    transform: translateX(-50%);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

#view-formazione .pitch-lines::before {
    top: 0;
    border-top: 0;
}

#view-formazione .pitch-lines::after {
    bottom: 0;
    border-bottom: 0;
}

#view-formazione .pitch-player {
    z-index: 2;
    width: 112px;
    min-height: 62px;
    gap: 3px;
    padding: 7px 8px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    background:
        linear-gradient(145deg, rgba(15, 23, 42, 0.72), rgba(17, 24, 39, 0.76)),
        rgba(7, 11, 28, 0.95);
}

#view-formazione .pitch-player span {
    min-width: 42px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    line-height: 1.2;
}

#view-formazione .pitch-player strong {
    margin: 2px 0;
    font-family: var(--font-body);
    font-size: 0.78rem;
    line-height: 1.12;
}

#view-formazione .pitch-player em {
    padding: 2px 8px;
    line-height: 1.2;
}

#view-formazione .pitch-role-keeper {
    border-color: rgba(250, 204, 21, 0.7);
    box-shadow: 0 14px 22px rgba(0, 0, 0, 0.32), 0 0 24px rgba(250, 204, 21, 0.18);
}

#view-formazione .pitch-role-def {
    border-color: rgba(56, 189, 248, 0.64);
}

#view-formazione .pitch-role-mid {
    border-color: rgba(45, 212, 191, 0.64);
}

#view-formazione .pitch-role-att {
    border-color: rgba(244, 114, 182, 0.68);
}

#view-formazione .pitch-role-keeper span {
    background: rgba(250, 204, 21, 0.22);
    border-color: rgba(250, 204, 21, 0.38);
}

#view-formazione .pitch-role-def span {
    background: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.36);
}

#view-formazione .pitch-role-mid span {
    background: rgba(45, 212, 191, 0.18);
    border-color: rgba(45, 212, 191, 0.34);
}

#view-formazione .pitch-role-att span {
    background: rgba(244, 114, 182, 0.2);
    border-color: rgba(244, 114, 182, 0.34);
}

#view-formazione .pitch-player.missing {
    color: #fecdd3;
    background:
        linear-gradient(145deg, rgba(244, 63, 94, 0.22), rgba(76, 29, 149, 0.2)),
        rgba(39, 18, 32, 0.92);
}

#view-formazione .side-panel {
    position: sticky;
    top: 14px;
    max-height: calc(100vh - 180px);
    overflow: auto;
    padding: 0;
}

#view-formazione .side-panel .section-title {
    margin: 0;
    padding: 16px 16px 10px;
    border-top: 1px solid rgba(130, 151, 255, 0.16);
}

#view-formazione .side-panel .section-title:first-child {
    border-top: 0;
}

#view-formazione .side-block {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0 14px 16px;
}

#view-formazione .mini-row {
    grid-template-columns: 58px minmax(0, 1fr) 56px;
    padding: 8px 10px;
    background:
        linear-gradient(90deg, rgba(34, 211, 238, 0.08), rgba(124, 58, 237, 0.055)),
        rgba(5, 9, 22, 0.88);
}

#view-formazione .mini-row span {
    justify-self: start;
    min-width: 40px;
    padding: 3px 7px;
    border: 1px solid rgba(130, 151, 255, 0.2);
    border-radius: 999px;
    color: #e0f2fe;
    text-align: center;
}

#view-formazione .mini-row em {
    justify-self: end;
    color: var(--accent-glow);
    font-weight: 900;
}

#view-formazione .mini-row.is-missing {
    border-color: rgba(251, 113, 133, 0.4);
    background: rgba(76, 29, 39, 0.42);
}

#view-formazione .bench-row {
    opacity: 0.92;
}

#view-formazione .warning-box {
    margin: 0 14px 16px;
}

#view-formazione .module-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

#view-formazione .module-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 126px;
    overflow: hidden;
    padding: 16px;
}

#view-formazione .module-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple), var(--accent-pink));
}

#view-formazione .module-card strong {
    font-size: 1.08rem;
}

#view-formazione .module-card small {
    display: inline-flex;
    width: fit-content;
    margin-top: auto;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 900;
}

#view-formazione .module-card.module-complete small {
    background: rgba(45, 212, 191, 0.16);
    color: #99f6e4;
}

#view-formazione .module-card.module-nearly small {
    background: rgba(250, 204, 21, 0.15);
    color: #fde68a;
}

#view-formazione .module-card.module-short small {
    background: rgba(251, 113, 133, 0.14);
    color: #fecdd3;
}

@media (max-width: 1180px) {
    .topbar {
        position: sticky;
        top: 0;
        align-items: flex-start;
    }

    .view-section.active {
        justify-content: flex-start;
    }

    #view-scambi.active {
        align-items: stretch;
    }

    .main-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
    }

    .settings-toolbar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .settings-divider {
        display: none;
    }

    .tool-header {
        align-items: stretch;
    }

    .tool-controls {
        justify-content: flex-start;
    }

    .compact-select,
    .tool-input {
        flex: 1 1 220px;
    }

    #view-formazione .lineup-layout {
        grid-template-columns: 1fr;
    }

    #view-formazione .side-panel {
        position: static;
        max-height: none;
    }

    #view-formazione .lineup-pitch {
        height: 660px;
    }
}

@media (max-width: 900px) {
    body,
    html {
        overflow: auto;
        height: auto;
    }

    .topbar {
        display: grid;
        grid-template-columns: 1fr;
    }

    .logo,
    .status-indicator,
    .main-nav {
        width: 100%;
    }

    .status-indicator {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .view-section {
        padding: 16px;
    }

    .trade-col,
    .trade-center {
        flex: 1 1 300px;
        width: auto;
    }

    .tool-controls {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
        width: 100%;
    }

    .tool-input,
    .compact-select,
    .columns-menu,
    .columns-menu summary {
        width: 100%;
    }

    .columns-menu summary {
        justify-content: center;
    }

    .columns-panel {
        left: 0;
        right: 0;
        min-width: 0;
    }

    .calendar-table {
        min-width: 840px;
    }

    .listone-table {
        font-size: 0.8rem;
    }

    #view-formazione .lineup-pitch {
        height: 610px;
        min-height: 610px;
    }
}

@media (max-width: 760px) {
    .view-section.active {
        gap: 16px;
    }

    #view-scambi.active {
        flex-direction: column;
    }

    .settings-toolbar {
        grid-template-columns: 1fr;
    }

    .inputs-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .inputs-row label {
        min-width: 0;
    }

    .rose-toolbar {
        align-items: stretch;
    }

    .league-tabs {
        flex-wrap: nowrap;
        width: 100%;
    }

    .persist-badge,
    .rose-toolbar .btn-secondary,
    .rose-toolbar .btn-primary {
        flex: 1 1 150px;
        text-align: center;
    }

    .trade-form {
        flex-direction: column;
    }

    .trade-icon {
        transform: rotate(90deg);
    }

    .modal-actions {
        grid-template-columns: 1fr;
    }

    #view-formazione .pitch-panel {
        padding: 10px;
        overflow: visible;
    }

    #view-formazione .lineup-pitch {
        width: 100%;
        height: 560px;
        min-height: 560px;
    }

    #view-formazione .lineup-pitch::before {
        width: 118px;
        height: 118px;
    }

    #view-formazione .pitch-lines {
        inset: 10px;
    }

    #view-formazione .pitch-lines::before,
    #view-formazione .pitch-lines::after {
        width: 48%;
        height: 13%;
    }

    #view-formazione .pitch-player {
        width: 78px;
        min-height: 52px;
        padding: 5px 6px;
    }

    #view-formazione .pitch-player strong {
        display: -webkit-box;
        white-space: normal;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        font-size: 0.66rem;
    }

    #view-formazione .pitch-player span,
    #view-formazione .pitch-player em {
        font-size: 0.58rem;
        padding: 2px 6px;
    }

    #view-formazione .mini-row {
        grid-template-columns: 52px minmax(0, 1fr) 48px;
    }

    #view-formazione .module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .topbar,
    .settings-toolbar,
    .view-section {
        padding-left: 10px;
        padding-right: 10px;
    }

    .logo {
        white-space: normal;
    }

    .nav-btn {
        padding: 8px 10px;
    }

    .inputs-row {
        grid-template-columns: 1fr;
    }

    .tool-header,
    .panel-large,
    .side-panel,
    .pitch-panel,
    .center-panel {
        padding: 10px;
    }

    .calendar-table {
        min-width: 680px;
    }

    .listone-table {
        font-size: 0.74rem;
    }

    #view-formazione .pitch-panel {
        padding: 8px;
    }

    #view-formazione .lineup-pitch {
        height: 500px;
        min-height: 500px;
    }

    #view-formazione .lineup-pitch::before {
        width: 96px;
        height: 96px;
    }

    #view-formazione .pitch-lines {
        inset: 8px;
    }

    #view-formazione .pitch-player {
        width: 70px;
        min-height: 48px;
        padding: 5px;
    }

    #view-formazione .pitch-player strong {
        font-size: 0.62rem;
    }

    #view-formazione .pitch-player span,
    #view-formazione .pitch-player em {
        font-size: 0.54rem;
        padding: 1px 5px;
    }

    #view-formazione .side-block {
        padding-left: 10px;
        padding-right: 10px;
    }

    #view-formazione .mini-row {
        grid-template-columns: 48px minmax(0, 1fr) 44px;
        gap: 6px;
        padding: 8px;
    }

    #view-formazione .module-grid {
        grid-template-columns: 1fr;
    }
}
