/* AFM Desktop V4
   Desktop-only rebuild. NOTHING in this file applies below 901px. */
@media (min-width:901px){
  :root{
    --d4-bg:#04101a;--d4-panel:#071a28;--d4-panel2:#0a2233;--d4-line:rgba(134,161,182,.18);
    --d4-gold:#e6bf54;--d4-gold2:#f2d476;--d4-text:#f3f6f8;--d4-muted:#8da1b1;--d4-blue:#6fb9e8;
  }

/* v969: offset duplicato rimosso; gutter globale applicato a fine file. */
  html{background:var(--d4-bg)!important}
  body.afm-desktop-v4{
    min-height:100vh!important;margin:0!important;padding:72px 0 0 240px!important;overflow-x:hidden!important;
    background:
      radial-gradient(circle at 82% 4%,rgba(35,93,128,.14),transparent 24%),
      radial-gradient(circle at 16% 88%,rgba(230,191,84,.045),transparent 28%),
      linear-gradient(180deg,#04101a 0%,#061522 100%)!important;
    color:var(--d4-text)!important;
  }
  body.afm-desktop-v4::before,body.afm-desktop-v4::after{display:none!important;background:none!important}
  body.afm-desktop-v4 .afm-page-watermark{display:none!important}
  body.afm-desktop-v4 .afm-appbar,
  body.afm-desktop-v4 .afm-nav2-bar,
  body.afm-desktop-v4 .section-bottom-nav,
  body.afm-desktop-v4 .mobile-club-nav,
  body.afm-desktop-v4 .club-bottom-nav{display:none!important}

  .afm-d4-side{
    position:fixed;left:0;top:0;bottom:0;z-index:1600;width:240px;padding:18px 14px 16px;
    background:linear-gradient(180deg,#06131f 0%,#071927 100%);border-right:1px solid rgba(141,166,184,.13);
    box-shadow:12px 0 34px rgba(0,0,0,.16);overflow:auto
  }
  .afm-d4-brand{display:flex;align-items:center;gap:11px;padding:2px 8px 18px;text-decoration:none;color:#fff;border-bottom:1px solid rgba(141,166,184,.11)}
  .afm-d4-brand img{width:76px;height:76px;object-fit:contain;flex:0 0 76px}
  .afm-d4-brand{min-height:92px!important;gap:14px!important}
  .afm-d4-brand strong{font-size:18px!important}
  .afm-d4-brand strong{display:block;font-size:15px;letter-spacing:.04em}
  .afm-d4-brand small{display:block;margin-top:2px;color:#6f8697;font-size:8px;letter-spacing:.14em;text-transform:uppercase}
  .afm-d4-nav{display:grid;gap:3px;padding-top:14px}
  .afm-d4-label{margin:11px 8px 5px;color:#536a7b;font-size:7px;font-weight:950;letter-spacing:.14em}
  .afm-d4-nav a{
    min-height:38px;padding:0 10px;border-radius:10px;display:flex;align-items:center;gap:10px;
    color:#9eb0bd;text-decoration:none;font-size:10px;font-weight:850;border:1px solid transparent
  }
  .afm-d4-nav a:hover{color:#edf3f6;background:#0a2131;border-color:rgba(136,164,184,.14)}
  .afm-d4-nav a.active{color:#f1cc69;background:linear-gradient(90deg,rgba(230,191,84,.11),rgba(230,191,84,.025));border-color:rgba(230,191,84,.20)}
  .afm-d4-nav svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.7;flex:0 0 auto}
  .afm-d4-top{
    position:fixed;left:240px;right:0;top:0;z-index:1590;height:72px;padding:0 28px;
    display:flex;align-items:center;gap:18px;background:rgba(4,14,23,.94);border-bottom:1px solid rgba(141,166,184,.13);
    backdrop-filter:blur(16px)
  }
  .afm-d4-page small{display:block;color:#6e8393;font-size:7px;font-weight:900;letter-spacing:.13em}
  .afm-d4-page strong{display:block;margin-top:3px;color:#eef3f6;font-size:15px}
  .afm-d4-back{
    min-height:38px!important;
    padding:0 12px!important;
    display:inline-flex!important;
    align-items:center!important;
    gap:7px!important;
    border:1px solid rgba(138,164,184,.22)!important;
    border-radius:9px!important;
    background:#081b29!important;
    color:#d6e0e6!important;
    font-size:11px!important;
    font-weight:900!important;
    cursor:pointer!important;
    flex:0 0 auto!important;
  }
  .afm-d4-back:hover{border-color:rgba(230,191,84,.42)!important;color:#f0cb68!important;background:#0a2232!important}
  .afm-d4-actions{margin-left:auto;display:flex;align-items:center;gap:8px}
  .afm-d4-actions a,.afm-d4-actions button{
    min-height:36px;padding:0 11px;border-radius:9px;border:1px solid rgba(138,164,184,.16);
    background:#081b29;color:#cbd6dd;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;
    font:850 8px/1 Arial,sans-serif;cursor:pointer
  }
  .afm-d4-actions .primary{border-color:rgba(230,191,84,.28);color:#efca66;background:rgba(230,191,84,.055)}
  .afm-d4-actions .afm-d4-club-switch{position:relative;width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;padding:3px!important;border-radius:50%!important;border:2px solid rgba(225,184,77,.75)!important;background:#071827!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;overflow:visible!important}
  .afm-d4-actions .afm-d4-club-switch img{width:42px!important;height:42px!important;object-fit:contain!important;border-radius:50%!important;background:#fff}
  .afm-d4-actions .afm-d4-club-switch>span{font-size:18px!important;font-weight:900!important;color:#f1c85d!important}
  .afm-d4-actions .afm-d4-club-switch b{position:absolute;right:-4px;bottom:-4px;width:17px;height:17px;border-radius:50%;display:grid;place-items:center;background:#e1b84d;color:#07121b;font-size:10px}

  body.afm-desktop-v4 .side-nav.desktop-v2,
  body.afm-desktop-v4 .dashboard-main>.topbar{display:none!important}
  body.afm-desktop-v4 .dashboard-main{margin-left:0!important;min-height:0!important}
  body.afm-desktop-v4 .dashboard-main .shell.home{width:calc(100% - 28px)!important;max-width:none!important;margin:0 14px!important;padding:28px 0 48px!important}

  body.afm-desktop-v4 main.shell,
  body.afm-desktop-v4 main.club-page,
  body.afm-desktop-v4 main.club-subpage,
  body.afm-desktop-v4 main.trade-shell,
  body.afm-desktop-v4 main.cups-shell,
  body.afm-desktop-v4 main.dg,
  body.afm-desktop-v4 main.list-shell,
  body.afm-desktop-v4 main.s,
  body.afm-desktop-v4 main.page{
    box-sizing:border-box!important;width:calc(100% - 54px)!important;max-width:1400px!important;margin:0 auto!important;padding:28px 0 56px!important
  }

  body.afm-desktop-v4 .back-link{display:inline-flex;align-items:center;min-height:32px;margin:0 0 14px;color:#7f95a6!important;text-decoration:none!important;font-size:8px!important}
  body.afm-desktop-v4 .panel,
  body.afm-desktop-v4 .trade-card,
  body.afm-desktop-v4 .module-card,
  body.afm-desktop-v4 .bench,
  body.afm-desktop-v4 .live-summary,
  body.afm-desktop-v4 .modifier,
  body.afm-desktop-v4 .switch-plus{
    border-color:var(--d4-line)!important;background:linear-gradient(180deg,rgba(8,25,38,.96),rgba(5,17,27,.98))!important;
    box-shadow:0 18px 42px rgba(0,0,0,.12)!important
  }

  /* HOME */
  body.afm-desktop-v4.afm-home .desktop-home{display:block!important}
  body.afm-desktop-v4.afm-home .side-nav.desktop-v2 .side-brand{
    min-height:86px!important;
    padding:10px 10px!important;
    gap:13px!important;
  }
  body.afm-desktop-v4.afm-home .side-nav.desktop-v2 .side-brand img{
    width:68px!important;
    height:68px!important;
    flex:0 0 68px!important;
    object-fit:contain!important;
  }
  body.afm-desktop-v4.afm-home .side-nav.desktop-v2 .side-brand strong{
    font-size:18px!important;
  }
  body.afm-desktop-v4.afm-home .desktop-club-switch{
    display:inline-flex!important;
    position:fixed!important;
    top:18px!important;
    right:86px!important;
    width:58px!important;
    height:58px!important;
    min-height:58px!important;
    padding:3px!important;
    border-radius:50%!important;
    border:2px solid rgba(225,184,77,.72)!important;
    background:#071827!important;
    box-shadow:0 0 0 4px rgba(4,15,24,.72),0 8px 28px rgba(0,0,0,.38)!important;
    align-items:center!important;
    justify-content:center!important;
    z-index:1200!important;
    overflow:visible!important;
  }
  body.afm-desktop-v4.afm-home .desktop-club-switch img{
    width:48px!important;height:48px!important;object-fit:contain!important;border-radius:50%!important;background:#fff!important;
  }
  body.afm-desktop-v4.afm-home .desktop-club-switch span{
    position:absolute!important;right:-3px!important;bottom:-3px!important;width:18px!important;height:18px!important;
    margin:0!important;border-radius:50%!important;background:#e1b84d!important;color:#07121b!important;
    display:grid!important;place-items:center!important;font-size:12px!important;font-weight:1000!important;
  }
  body.afm-desktop-v4.afm-home #afmEuropeHome,
  body.afm-desktop-v4.afm-home .home-diretta-gol,
  body.afm-desktop-v4.afm-home #myClubSection,
  body.afm-desktop-v4.afm-home #homePriority,
  body.afm-desktop-v4.afm-home .home-v2-secondary{display:none!important}
  body.afm-desktop-v4.afm-home .dh-hero-photo{display:none!important}
  body.afm-desktop-v4.afm-home main.shell.home{
    width:calc(100vw - 252px)!important;
    max-width:none!important;
    margin:0 14px!important;
    background:url("/afm-home-europe-premium.webp") center top/cover no-repeat fixed!important;
  }
  body.afm-desktop-v4.afm-home .desktop-home,
  body.afm-desktop-v4.afm-home .dh-shell,
  body.afm-desktop-v4.afm-home .dh-stage,
  body.afm-desktop-v4.afm-home .dh-hero,
  body.afm-desktop-v4.afm-home .dh-country-strip,
  body.afm-desktop-v4.afm-home .dh-match-center,
  body.afm-desktop-v4.afm-home .dh-bottom{
    width:auto!important;
    max-width:none!important;
  }
  body.afm-desktop-v4.afm-home .desktop-home{background:transparent!important}
  body.afm-desktop-v4.afm-home .dh-shell{background:transparent!important}
  body.afm-desktop-v4.afm-home .dh-hero{background:rgba(3,11,18,.32)!important}
  body.afm-desktop-v4.afm-home .dh-country{min-height:108px!important}
  body.afm-desktop-v4.afm-home .dh-country-flag{font-size:31px!important}
  body.afm-desktop-v4.afm-home .dh-country-name{font-size:13px!important}
  body.afm-desktop-v4.afm-home .dh-country-leagues{
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:5px!important;
  }
  body.afm-desktop-v4.afm-home .dh-country-leagues span{
    display:block!important;
    width:max-content!important;
    font-size:8px!important;
    color:#acd0e6!important;
  }

  /* COMPETITION */
  body.afm-desktop-v4.afm-competition main.shell{max-width:1420px!important}
  body.afm-desktop-v4 .competition-hero-v4{
    min-height:180px!important;padding:28px 32px!important;border-radius:20px!important;
    display:flex!important;align-items:end!important;justify-content:space-between!important;gap:28px!important;
    border:1px solid rgba(139,166,186,.18)!important;background:
      radial-gradient(circle at 90% 10%,rgba(230,191,84,.09),transparent 32%),
      linear-gradient(135deg,#0b2537,#071824)!important
  }
  body.afm-desktop-v4 .competition-brand h1{font-size:44px!important;line-height:1!important;margin:8px 0!important}
  body.afm-desktop-v4 .competition-brand p{font-size:12px!important;color:#9ab0bf!important}
  body.afm-desktop-v4 .competition-brand .eyebrow{font-size:9px!important;color:#e8c45e!important}
  body.afm-desktop-v4 .tabs{display:flex!important;gap:8px!important;margin:14px 0!important;padding:0!important;overflow:visible!important}
  body.afm-desktop-v4 .tabs button{min-height:40px!important;padding:0 15px!important;border-radius:10px!important;font-size:9px!important}
  body.afm-desktop-v4 .competition-body{padding:22px!important;border-radius:18px!important}
  body.afm-desktop-v4 .standings-v3-summary{grid-template-columns:1fr 1fr!important;gap:12px!important;margin-bottom:16px!important}
  body.afm-desktop-v4 .standings-v3-summary>div{padding:16px 18px!important;border-radius:14px!important}
  body.afm-desktop-v4 table.standings{font-size:11px!important}
  body.afm-desktop-v4 table.standings th{font-size:8px!important;height:38px!important}
  body.afm-desktop-v4 table.standings td{height:50px!important}
  body.afm-desktop-v4 .team-cell img{width:30px!important;height:30px!important}

  /* CLUB */
  body.afm-desktop-v4.afm-club .club-page{max-width:1360px!important}
  body.afm-desktop-v4 .club-hero{min-height:180px!important;padding:28px 30px!important;border-radius:20px!important;background:
    radial-gradient(circle at 88% 12%,rgba(230,191,84,.10),transparent 30%),linear-gradient(135deg,#0b273b,#071722 74%)!important}
  body.afm-desktop-v4 .club-identity img,body.afm-desktop-v4 .club-big-mark{width:92px!important;height:92px!important;flex-basis:92px!important}
  body.afm-desktop-v4 .club-identity h1{font-size:46px!important}
  body.afm-desktop-v4 .club-v4-management{margin-top:16px!important;padding:22px!important;border-radius:18px!important;border:1px solid var(--d4-line)!important;background:rgba(7,23,35,.94)!important}
  body.afm-desktop-v4 .club-v4-title strong,body.afm-desktop-v4 .club-v4-sport-head strong{font-size:20px!important}
  body.afm-desktop-v4 .club-v3-metrics{grid-template-columns:repeat(4,1fr)!important;gap:10px!important}
  body.afm-desktop-v4 .club-v3-metrics a{min-height:94px!important;padding:16px!important;border-radius:12px!important}
  body.afm-desktop-v4 .club-v3-metrics strong{font-size:22px!important}
  body.afm-desktop-v4 .club-v4-links{grid-template-columns:repeat(5,1fr)!important;gap:9px!important}
  body.afm-desktop-v4 .club-v4-links a{min-height:96px!important;padding:15px!important;border-radius:12px!important}
  body.afm-desktop-v4 .club-v4-sport{margin-top:14px!important;padding:20px!important;border-radius:18px!important;border:1px solid var(--d4-line)!important;background:rgba(7,23,35,.94)!important}
  body.afm-desktop-v4 .club-v4-sport-grid{grid-template-columns:1fr 1fr!important;gap:10px!important}

  /* ROSTER */
  body.afm-desktop-v4.afm-roster .club-subpage{max-width:1380px!important}
  body.afm-desktop-v4 .roster-v3-head{min-height:150px!important;padding:25px 28px!important;border-radius:18px!important;background:linear-gradient(135deg,#0a2436,#071722)!important}
  body.afm-desktop-v4 .roster-v3-head h1{font-size:42px!important;margin:8px 0!important}
  body.afm-desktop-v4 .roster-v3-head p{font-size:11px!important}
  body.afm-desktop-v4 .roster-summary{grid-template-columns:1fr 1fr 1.25fr!important;gap:10px!important;margin:14px 0!important}
  body.afm-desktop-v4 .roster-summary>div{min-height:94px!important;padding:16px 18px!important;border-radius:14px!important}
  body.afm-desktop-v4 .roster-summary strong{font-size:24px!important}
  body.afm-desktop-v4 .role-filters{gap:7px!important;margin-bottom:10px!important}
  body.afm-desktop-v4 .role-filters button{min-height:40px!important;padding:0 14px!important;font-size:9px!important;border-radius:10px!important}
  body.afm-desktop-v4 #rosterSearch{height:44px!important;font-size:10px!important;margin-bottom:12px!important}
  body.afm-desktop-v4 #roster.panel{padding:18px!important}
  body.afm-desktop-v4 .role-group{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px 10px!important;margin-bottom:18px!important}
  body.afm-desktop-v4 .role-group>h3{grid-column:1/-1!important;margin:0 0 2px!important;font-size:14px!important}
  body.afm-desktop-v4 .player-row{min-height:78px!important;padding:10px 12px!important;border-radius:12px!important;background:#081b29!important}
  body.afm-desktop-v4 .player-row.player-v3>img,body.afm-desktop-v4 .player-row.player-v3>.player-avatar{width:56px!important;height:56px!important;min-width:56px!important}
  body.afm-desktop-v4 .player-v3-name strong{font-size:12px!important}
  body.afm-desktop-v4 .player-v3-team{font-size:8px!important}
  body.afm-desktop-v4 .player-purchase b{font-size:11px!important}

  /* LINEUP */
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  

  /* TRADES */
  body.afm-desktop-v4 .trade-shell{max-width:1320px!important}
  body.afm-desktop-v4 .trade-card{padding:20px 22px!important;border-radius:16px!important;margin-top:12px!important}
  body.afm-desktop-v4 .trade-card:first-of-type{padding:28px!important;background:radial-gradient(circle at 90% 12%,rgba(230,191,84,.08),transparent 30%),linear-gradient(135deg,#0a2436,#071722)!important}
  body.afm-desktop-v4 .trade-card h1{font-size:38px!important;margin:5px 0 10px!important}
  body.afm-desktop-v4 .trade-card h2{font-size:18px!important}
  body.afm-desktop-v4 .trade-note{font-size:10px!important;line-height:1.55!important;max-width:980px}
  body.afm-desktop-v4 .trade-rule-state{font-size:9px!important;padding:10px 12px!important}
  body.afm-desktop-v4 .trade-grid{gap:14px!important}
  body.afm-desktop-v4 .pick-list{max-height:520px!important}
  body.afm-desktop-v4 .pick{padding:10px!important;min-height:54px!important}

  /* CLUB SUBPAGES / FINANCE / STADIUM */
  body.afm-desktop-v4 .subpage-head{min-height:170px!important;padding:26px 28px!important;border-radius:18px!important}
  body.afm-desktop-v4 .subpage-head h1{font-size:40px!important}
  body.afm-desktop-v4 .subpage-head p{font-size:11px!important}
  body.afm-desktop-v4 .afm-head-logo{width:74px!important;height:74px!important}
  body.afm-desktop-v4 .credit-balance,body.afm-desktop-v4 .stadium-current{border-radius:16px!important}

  /* MARKET / RELEASES / RECONFIRMATIONS */
  body.afm-desktop-v4 main.s,body.afm-desktop-v4 main.shell{font-size:inherit}
  body.afm-desktop-v4 main.s>section,body.afm-desktop-v4 main.s>article{border-radius:16px!important}
  body.afm-desktop-v4 .grid{gap:14px!important}

  /* CUPS */
  body.afm-desktop-v4 .cups-shell{max-width:1400px!important}
  body.afm-desktop-v4 .cups-hero{padding:28px 30px!important;border-radius:20px!important}
  body.afm-desktop-v4 .cups-hero h1{font-size:40px!important}
  body.afm-desktop-v4 .cup-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}
  body.afm-desktop-v4 .cup-card{min-height:180px!important;padding:18px!important}

  /* DIRECT GOAL */
  body.afm-desktop-v4 .dg{max-width:1200px!important}
  body.afm-desktop-v4 .dg-head{padding:24px 4px 20px!important}
  body.afm-desktop-v4 .dg-head h1{font-size:42px!important}
  body.afm-desktop-v4 .games{grid-template-columns:1fr 1fr!important;gap:12px!important}
  body.afm-desktop-v4 .game{padding:18px!important;border-radius:16px!important}
  body.afm-desktop-v4 .team{font-size:14px!important}
  body.afm-desktop-v4 .team img{width:42px!important;height:42px!important}
  body.afm-desktop-v4 .score{font-size:25px!important}

  /* LIST */
  body.afm-desktop-v4 .list-shell{max-width:1380px!important}
}

/* AFM Desktop V6 — full desktop rebuild. STRICTLY desktop-only. Mobile remains untouched. */
@media (min-width:901px){
  body.afm-desktop-v4{
    padding:68px 0 0 224px!important;
    background:
      radial-gradient(circle at 78% 8%,rgba(46,105,140,.10),transparent 27%),
      linear-gradient(180deg,#04101a 0%,#061521 100%)!important;
  }
  body.afm-desktop-v4::before,
  body.afm-desktop-v4::after{display:none!important}
  body.afm-desktop-v4 .afm-page-watermark{display:none!important}

  .afm-d4-side{width:224px!important;padding:16px 12px!important;background:#06131f!important}
  .afm-d4-top{left:224px!important;height:68px!important;padding:0 24px 0 44px!important}
  .afm-d4-nav a{min-height:40px!important;font-size:11px!important}
  .afm-d4-label{font-size:8px!important;margin-top:8px!important}
  .afm-d4-nav{gap:1px!important}
  .afm-d4-nav a{min-height:32px!important;padding-top:5px!important;padding-bottom:5px!important}

  body.afm-desktop-v4 main.shell,
  body.afm-desktop-v4 main.club-page,
  body.afm-desktop-v4 main.club-subpage,
  body.afm-desktop-v4 main.trade-shell,
  body.afm-desktop-v4 main.cups-shell,
  body.afm-desktop-v4 main.dg,
  body.afm-desktop-v4 main.list-shell,
  body.afm-desktop-v4 main.s,
  body.afm-desktop-v4 main.page{
    width:calc(100% - 48px)!important;
    max-width:1600px!important;
    margin:0 auto!important;
    padding:24px 0 48px!important;
  }

  /* COMPETITION */
  body.afm-desktop-v4.afm-competition .competition-hero-v4{
    min-height:128px!important;
    padding:22px 26px!important;
    border-radius:18px!important;
    background:
      radial-gradient(circle at 88% 18%,rgba(230,191,84,.10),transparent 28%),
      linear-gradient(135deg,#0b2638,#071722 76%)!important;
    align-items:center!important;
  }
  body.afm-desktop-v4.afm-competition .competition-brand h1{font-size:40px!important}
  body.afm-desktop-v4.afm-competition .competition-brand p{font-size:12px!important}
  body.afm-desktop-v4.afm-competition .afm-context-strip{
    min-width:260px!important;
    padding:13px 15px!important;
    border:1px solid rgba(230,191,84,.22)!important;
    border-radius:12px!important;
    background:rgba(230,191,84,.045)!important;
  }
  body.afm-desktop-v4.afm-competition .tabs{
    margin:12px 0!important;
    padding:0 0 12px!important;
    gap:7px!important;
    border-bottom:1px solid rgba(139,164,184,.13)!important;
  }
  body.afm-desktop-v4.afm-competition .tabs button{
    min-height:40px!important;
    padding:0 16px!important;
    border-radius:10px!important;
    font-size:10px!important;
  }
  body.afm-desktop-v4.afm-competition .competition-body{
    padding:14px 16px 18px!important;
    border-radius:16px!important;
    background:linear-gradient(180deg,rgba(8,24,37,.96),rgba(6,18,28,.98))!important;
  }
  body.afm-desktop-v4.afm-competition .standings-v3-summary{
    display:flex!important;
    gap:10px!important;
    margin:0 0 12px!important;
  }
  body.afm-desktop-v4.afm-competition .standings-v3-summary>div{
    min-width:250px!important;
    min-height:76px!important;
    padding:12px 15px!important;
  }
  body.afm-desktop-v4.afm-competition .table-wrap{
    border:1px solid rgba(139,164,184,.12)!important;
    border-radius:12px!important;
    overflow:hidden!important;
  }
  body.afm-desktop-v4.afm-competition table.standings th{height:38px!important;font-size:9px!important}
  body.afm-desktop-v4.afm-competition table.standings td{height:48px!important;font-size:11px!important}
  body.afm-desktop-v4.afm-competition .team-cell strong{font-size:11px!important}

  /* TRADES */
  body.afm-desktop-v4 .trade-shell{
    display:grid!important;
    grid-template-columns:380px minmax(0,1fr)!important;
    grid-template-areas:
      "back back"
      "intro history"
      "create create"!important;
    gap:14px!important;
    max-width:1600px!important;
  }
  body.afm-desktop-v4 .trade-shell>.back-link{grid-area:back!important}
  body.afm-desktop-v4 .trade-shell>.trade-card:nth-of-type(1){grid-area:intro!important;min-height:220px!important}
  body.afm-desktop-v4 .trade-shell>.trade-card:nth-of-type(2){grid-area:history!important;min-height:220px!important}
  body.afm-desktop-v4 .trade-shell>details.trade-card{grid-area:create!important}
  body.afm-desktop-v4 .trade-card{
    margin:0!important;
    padding:22px!important;
    border-radius:16px!important;
    background:linear-gradient(180deg,#081c2a,#061723)!important;
  }
  body.afm-desktop-v4 .trade-card:first-of-type{
    background:
      radial-gradient(circle at 90% 8%,rgba(230,191,84,.09),transparent 30%),
      linear-gradient(135deg,#0a2537,#071722)!important;
  }
  body.afm-desktop-v4 .trade-card h1{font-size:40px!important;margin:7px 0 12px!important}
  body.afm-desktop-v4 .trade-card h2{font-size:19px!important}
  body.afm-desktop-v4 .trade-note{font-size:11px!important;line-height:1.55!important}
  body.afm-desktop-v4 details.trade-card>summary{font-size:13px!important;min-height:48px!important}
  body.afm-desktop-v4 .trade-create-body{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:14px!important;
  }
  body.afm-desktop-v4 .trade-create-body>.trade-grid,
  body.afm-desktop-v4 .trade-create-body>label,
  body.afm-desktop-v4 .trade-create-body>textarea,
  body.afm-desktop-v4 .trade-create-body>.afm-value-box,
  body.afm-desktop-v4 .trade-create-body>.trade-rule-state,
  body.afm-desktop-v4 .trade-create-body>#submitTrade,
  body.afm-desktop-v4 .trade-create-body>#preview{grid-column:1/-1!important}
  body.afm-desktop-v4 .trade-grid{gap:14px!important}
  body.afm-desktop-v4 .pick-list{max-height:420px!important}
  body.afm-desktop-v4 .status{padding:12px!important;font-size:10px!important}

  /* CLUB */
  body.afm-desktop-v4.afm-club .club-page{max-width:1600px!important}
  body.afm-desktop-v4.afm-club .club-hero{
    min-height:132px!important;
    padding:20px 24px!important;
    border-radius:18px!important;
  }
  body.afm-desktop-v4.afm-club .club-identity img,
  body.afm-desktop-v4.afm-club .club-big-mark{width:72px!important;height:72px!important;flex-basis:72px!important}
  body.afm-desktop-v4.afm-club .club-identity h1{font-size:38px!important}
  body.afm-desktop-v4.afm-club #clubBody{
    display:grid!important;
    grid-template-columns:minmax(0,1.35fr) minmax(360px,.65fr)!important;
    gap:14px!important;
  }
  body.afm-desktop-v4.afm-club .club-v4-management,
  body.afm-desktop-v4.afm-club .club-v4-sport{
    margin:0!important;
    padding:18px!important;
    border-radius:16px!important;
    background:linear-gradient(180deg,#081c2a,#061722)!important;
  }
  body.afm-desktop-v4.afm-club .club-v3-metrics{gap:8px!important}
  body.afm-desktop-v4.afm-club .club-v3-metrics a{min-height:82px!important}
  body.afm-desktop-v4.afm-club .club-v4-links{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
  body.afm-desktop-v4.afm-club .club-v4-links a{min-height:84px!important}
  body.afm-desktop-v4.afm-club .club-v4-sport-grid{grid-template-columns:1fr!important}

  /* ROSTER */
  body.afm-desktop-v4.afm-roster .club-subpage{max-width:1600px!important}
  body.afm-desktop-v4.afm-roster .roster-v3-head{
    min-height:118px!important;
    padding:20px 24px!important;
    border-radius:18px!important;
    background:
      radial-gradient(circle at 88% 12%,rgba(230,191,84,.08),transparent 30%),
      linear-gradient(135deg,#0a2436,#071722)!important;
  }
  body.afm-desktop-v4.afm-roster .roster-v3-head h1{font-size:38px!important}
  body.afm-desktop-v4.afm-roster .roster-summary{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:9px!important;
    margin:10px 0!important;
  }
  body.afm-desktop-v4.afm-roster .roster-summary>div{
    min-height:76px!important;
    padding:12px 14px!important;
    border-radius:12px!important;
  }
  body.afm-desktop-v4.afm-roster .role-filters{
    padding:8px!important;
    margin:8px 0!important;
    border:1px solid rgba(139,164,184,.12)!important;
    border-radius:12px!important;
    background:#071a28!important;
  }
  body.afm-desktop-v4.afm-roster .role-filters button{min-height:36px!important;font-size:10px!important}
  body.afm-desktop-v4.afm-roster #rosterSearch{height:42px!important;font-size:11px!important}
  body.afm-desktop-v4.afm-roster #roster.panel{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:12px!important;
    padding:0!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
  }
  body.afm-desktop-v4.afm-roster .role-group{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:7px!important;
    margin:0!important;
    padding:14px!important;
    border:1px solid rgba(139,164,184,.14)!important;
    border-radius:14px!important;
    background:linear-gradient(180deg,#081c2a,#061722)!important;
  }
  body.afm-desktop-v4.afm-roster .role-group>h3{grid-column:auto!important;font-size:15px!important;margin:0 0 4px!important}
  body.afm-desktop-v4.afm-roster .player-row{
    min-height:64px!important;
    padding:8px 10px!important;
    border-radius:10px!important;
    background:#0a2131!important;
  }
  body.afm-desktop-v4.afm-roster .player-row.player-v3>img,
  body.afm-desktop-v4.afm-roster .player-row.player-v3>.player-avatar{
    width:46px!important;height:46px!important;min-width:46px!important;
  }
  body.afm-desktop-v4.afm-roster .player-v3-name strong{font-size:12px!important}

  /* LINEUP */
  
  
  
  
  
  
  
  
  
  
  

  @media (min-width:901px) and (max-width:1180px){
    body.afm-desktop-v4 .trade-shell{grid-template-columns:1fr!important;grid-template-areas:"back" "intro" "history" "create"!important}
    body.afm-desktop-v4.afm-club #clubBody{grid-template-columns:1fr!important}
    body.afm-desktop-v4.afm-roster #roster.panel{grid-template-columns:1fr!important}
    
    
    
    
  }
}

/* AFM Desktop V5 refinement — desktop only, mobile is intentionally untouched. */
@media (min-width:901px){
  /* Use the desktop canvas properly: no more mobile-width islands floating in the middle. */
  body.afm-desktop-v4 main.shell,
  body.afm-desktop-v4 main.club-page,
  body.afm-desktop-v4 main.club-subpage,
  body.afm-desktop-v4 main.trade-shell,
  body.afm-desktop-v4 main.cups-shell,
  body.afm-desktop-v4 main.dg,
  body.afm-desktop-v4 main.list-shell,
  body.afm-desktop-v4 main.s,
  body.afm-desktop-v4 main.page{
    width:calc(100% - 40px)!important;
    max-width:1580px!important;
    margin:0 auto!important;
    padding:22px 0 44px!important;
  }

  /* COMPETITION — compact header, full-width data view. */
  body.afm-desktop-v4.afm-competition main.shell{max-width:1580px!important}
  body.afm-desktop-v4.afm-competition .competition-hero-v4{
    min-height:118px!important;padding:22px 26px!important;border-radius:16px!important;
    display:flex!important;align-items:center!important
  }
  body.afm-desktop-v4.afm-competition .competition-brand h1{font-size:34px!important}
  body.afm-desktop-v4.afm-competition .competition-brand p{font-size:10px!important;margin:4px 0 0!important}
  body.afm-desktop-v4.afm-competition .tabs{
    margin:10px 0!important;gap:6px!important;border-bottom:1px solid rgba(136,162,181,.12)!important;padding-bottom:10px!important
  }
  body.afm-desktop-v4.afm-competition .tabs button{min-height:36px!important;padding:0 13px!important}
  body.afm-desktop-v4.afm-competition .competition-body{padding:16px 18px 20px!important;border-radius:14px!important}
  body.afm-desktop-v4.afm-competition .standings-v3-summary{
    grid-template-columns:minmax(220px,.55fr) minmax(260px,.75fr)!important;
    justify-content:start!important;gap:10px!important;margin:0 0 10px!important
  }
  body.afm-desktop-v4.afm-competition .standings-v3-summary>div{min-height:70px!important;padding:11px 14px!important}
  body.afm-desktop-v4.afm-competition table.standings{width:100%!important;font-size:12px!important}
  body.afm-desktop-v4.afm-competition table.standings th{height:34px!important;font-size:8px!important}
  body.afm-desktop-v4.afm-competition table.standings td{height:46px!important}
  body.afm-desktop-v4.afm-competition .team-cell img{width:32px!important;height:32px!important}

  /* CLUB — real dashboard: management and sport side-by-side. */
  body.afm-desktop-v4.afm-club .club-page{max-width:1580px!important}
  body.afm-desktop-v4.afm-club .club-hero{
    min-height:138px!important;padding:22px 26px!important;border-radius:16px!important
  }
  body.afm-desktop-v4.afm-club .club-identity img,
  body.afm-desktop-v4.afm-club .club-big-mark{width:76px!important;height:76px!important;flex-basis:76px!important}
  body.afm-desktop-v4.afm-club .club-identity h1{font-size:38px!important}
  body.afm-desktop-v4.afm-club #clubBody{
    display:grid!important;grid-template-columns:minmax(0,1.5fr) minmax(340px,.65fr)!important;
    gap:14px!important;align-items:start!important
  }
  body.afm-desktop-v4.afm-club .club-v4-management{margin-top:0!important;padding:18px!important}
  body.afm-desktop-v4.afm-club .club-v4-sport{margin-top:0!important;padding:18px!important}
  body.afm-desktop-v4.afm-club .club-v3-metrics{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  body.afm-desktop-v4.afm-club .club-v3-metrics a{min-height:78px!important;padding:13px!important}
  body.afm-desktop-v4.afm-club .club-v3-metrics strong{font-size:19px!important}
  body.afm-desktop-v4.afm-club .club-v4-links{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body.afm-desktop-v4.afm-club .club-v4-links a{min-height:82px!important;padding:13px!important}
  body.afm-desktop-v4.afm-club .club-v4-sport-grid{grid-template-columns:1fr!important}
  body.afm-desktop-v4.afm-club .club-v4-sport-grid>a,
  body.afm-desktop-v4.afm-club .club-v4-sport-grid>div{min-height:86px!important}

  /* ROSTER — wide control strip + two-column squad list. */
  body.afm-desktop-v4.afm-roster .club-subpage{max-width:1580px!important}
  body.afm-desktop-v4.afm-roster .roster-v3-head{
    min-height:112px!important;padding:20px 24px!important;border-radius:16px!important
  }
  body.afm-desktop-v4.afm-roster .roster-v3-head h1{font-size:34px!important}
  body.afm-desktop-v4.afm-roster .roster-summary{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin:10px 0!important
  }
  body.afm-desktop-v4.afm-roster .roster-summary>div{min-height:72px!important;padding:11px 14px!important}
  body.afm-desktop-v4.afm-roster .roster-summary strong{font-size:20px!important}
  body.afm-desktop-v4.afm-roster .role-filters{display:flex!important;gap:6px!important;margin:8px 0!important}
  body.afm-desktop-v4.afm-roster .role-filters button{min-height:34px!important;padding:0 12px!important}
  body.afm-desktop-v4.afm-roster #rosterSearch{height:38px!important;margin-bottom:8px!important}
  body.afm-desktop-v4.afm-roster #roster.panel{padding:14px!important}
  body.afm-desktop-v4.afm-roster .role-group{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px 9px!important;margin-bottom:14px!important
  }
  body.afm-desktop-v4.afm-roster .player-row{min-height:68px!important;padding:8px 10px!important}
  body.afm-desktop-v4.afm-roster .player-row.player-v3>img,
  body.afm-desktop-v4.afm-roster .player-row.player-v3>.player-avatar{width:48px!important;height:48px!important;min-width:48px!important}

  /* LINEUP — the pitch and bench become a real desktop workspace. */
  
  
  
  
  
  
  
  
  
  
  
  
  
  

  /* TRADES — no more tiny card at the top of an empty screen. */
  body.afm-desktop-v4 .trade-shell{
    max-width:1580px!important;
    display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;
    gap:12px!important;align-items:start!important
  }
  body.afm-desktop-v4 .trade-shell>.back-link{grid-column:1/-1!important;margin-bottom:0!important}
  body.afm-desktop-v4 .trade-shell>.trade-card:nth-of-type(1){grid-column:span 5!important;margin:0!important;min-height:190px!important}
  body.afm-desktop-v4 .trade-shell>.trade-card:nth-of-type(2){grid-column:span 7!important;margin:0!important;min-height:190px!important}
  body.afm-desktop-v4 .trade-shell>details.trade-card{grid-column:1/-1!important;margin:0!important}
  body.afm-desktop-v4 .trade-card:first-of-type{padding:22px!important}
  body.afm-desktop-v4 .trade-card h1{font-size:34px!important}
  body.afm-desktop-v4 .trade-card h2{font-size:18px!important}
  body.afm-desktop-v4 details.trade-card>summary{
    min-height:48px!important;display:flex!important;align-items:center!important;padding:0 4px!important;
    color:#efca66!important;font-size:11px!important;font-weight:950!important;cursor:pointer!important
  }
  body.afm-desktop-v4 .trade-grid{grid-template-columns:1fr 1fr!important}
  body.afm-desktop-v4 .pick-list{max-height:430px!important}

  /* At narrower desktop widths, preserve hierarchy without falling back to the mobile layout. */
  @media (min-width:901px) and (max-width:1120px){
    body.afm-desktop-v4.afm-club #clubBody{grid-template-columns:1fr!important}
    
    
    
    
    body.afm-desktop-v4 .trade-shell>.trade-card:nth-of-type(1),
    body.afm-desktop-v4 .trade-shell>.trade-card:nth-of-type(2){grid-column:1/-1!important}
  }
}

/* AFM Desktop V7 — final precedence layer for the rebuild. Desktop only. */
@media (min-width:901px){
  body.afm-desktop-v4 main.shell,
  body.afm-desktop-v4 main.club-page,
  body.afm-desktop-v4 main.club-subpage,
  body.afm-desktop-v4 main.trade-shell,
  body.afm-desktop-v4 main.page{
    width:calc(100% - 48px)!important;
    max-width:1600px!important;
  }

  body.afm-desktop-v4.afm-competition .competition-hero-v4{min-height:128px!important;padding:22px 26px!important;border-radius:18px!important}
  body.afm-desktop-v4.afm-competition .competition-brand h1{font-size:40px!important}
  body.afm-desktop-v4.afm-competition .competition-brand p{font-size:12px!important}
  body.afm-desktop-v4.afm-competition .tabs button{min-height:40px!important;padding:0 16px!important;font-size:10px!important}
  body.afm-desktop-v4.afm-competition .competition-body{padding:14px 16px 18px!important}
  body.afm-desktop-v4.afm-competition .standings-v3-summary{display:flex!important;grid-template-columns:none!important}
  body.afm-desktop-v4.afm-competition .standings-v3-summary>div{min-height:76px!important;padding:12px 15px!important}

  body.afm-desktop-v4 .trade-shell{
    display:grid!important;
    grid-template-columns:380px minmax(0,1fr)!important;
    grid-template-areas:"back back" "intro history" "create create"!important;
    gap:14px!important;
  }
  body.afm-desktop-v4 .trade-shell>.back-link{grid-area:back!important}
  body.afm-desktop-v4 .trade-shell>.trade-card:nth-of-type(1){grid-area:intro!important;grid-column:auto!important;min-height:220px!important}
  body.afm-desktop-v4 .trade-shell>.trade-card:nth-of-type(2){grid-area:history!important;grid-column:auto!important;min-height:220px!important}
  body.afm-desktop-v4 .trade-shell>details.trade-card{grid-area:create!important;grid-column:auto!important}
  body.afm-desktop-v4 .trade-card h1{font-size:40px!important}
  body.afm-desktop-v4 .trade-note{font-size:11px!important}

  body.afm-desktop-v4.afm-club #clubBody{grid-template-columns:minmax(0,1.35fr) minmax(360px,.65fr)!important}
  body.afm-desktop-v4.afm-club .club-hero{min-height:132px!important;padding:20px 24px!important}
  body.afm-desktop-v4.afm-club .club-identity h1{font-size:38px!important}

  body.afm-desktop-v4.afm-roster #roster.panel{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
  body.afm-desktop-v4.afm-roster .role-group{grid-template-columns:1fr!important;gap:7px!important;margin:0!important;padding:14px!important;border:1px solid rgba(139,164,184,.14)!important;border-radius:14px!important;background:linear-gradient(180deg,#081c2a,#061722)!important}
  body.afm-desktop-v4.afm-roster .role-group>h3{grid-column:auto!important}
  body.afm-desktop-v4.afm-roster .player-row{min-height:64px!important}

  
  
  
  
  
}
@media (min-width:901px) and (max-width:1180px){
  body.afm-desktop-v4 .trade-shell{grid-template-columns:1fr!important;grid-template-areas:"back" "intro" "history" "create"!important}
  body.afm-desktop-v4.afm-club #clubBody{grid-template-columns:1fr!important}
  body.afm-desktop-v4.afm-roster #roster.panel{grid-template-columns:1fr!important}
  
  
  
}

/* AFM Desktop V8 — page-by-page rebuild requested 2026-10-04.
   STRICTLY DESKTOP. Nothing below affects <=900px. */
@media (min-width:901px){
  body.afm-desktop-v4{
    background:
      radial-gradient(circle at 80% 0%,rgba(35,91,126,.12),transparent 25%),
      radial-gradient(circle at 18% 100%,rgba(229,187,74,.045),transparent 30%),
      linear-gradient(180deg,#030d16 0%,#061522 100%)!important;
  }
  body.afm-desktop-v4 main.shell,
  body.afm-desktop-v4 main.club-page,
  body.afm-desktop-v4 main.club-subpage,
  body.afm-desktop-v4 main.trade-shell,
  body.afm-desktop-v4 main.page{
    width:calc(100% - 56px)!important;
    max-width:1660px!important;
    padding:30px 0 60px!important;
  }

  /* 1. CAMPIONATO / CLASSIFICA */
  body.afm-desktop-v4.afm-competition .competition-hero-v4{
    min-height:164px!important;
    padding:30px 34px!important;
    border-radius:22px!important;
    border:1px solid rgba(137,165,184,.20)!important;
    background:
      linear-gradient(110deg,rgba(7,31,47,.98),rgba(5,20,31,.94) 58%,rgba(32,35,31,.88)),
      radial-gradient(circle at 88% 18%,rgba(231,190,78,.18),transparent 27%)!important;
    box-shadow:0 22px 60px rgba(0,0,0,.18)!important;
  }
  body.afm-desktop-v4.afm-competition .competition-brand{max-width:760px!important}
  body.afm-desktop-v4.afm-competition .competition-brand .eyebrow{font-size:10px!important;letter-spacing:.15em!important}
  body.afm-desktop-v4.afm-competition .competition-brand h1{
    margin:10px 0 7px!important;font-size:48px!important;letter-spacing:-.045em!important
  }
  body.afm-desktop-v4.afm-competition .competition-brand p{font-size:13px!important;color:#a8bbc8!important}
  body.afm-desktop-v4.afm-competition .afm-context-strip{
    min-width:300px!important;min-height:88px!important;padding:16px 18px!important;
    border-radius:15px!important;background:rgba(4,16,25,.55)!important;
    border:1px solid rgba(230,191,84,.24)!important;backdrop-filter:blur(8px)
  }
  body.afm-desktop-v4.afm-competition .tabs{
    margin:16px 0 14px!important;padding:7px!important;gap:6px!important;
    border:1px solid rgba(137,164,184,.15)!important;border-radius:14px!important;
    background:rgba(7,24,36,.78)!important
  }
  body.afm-desktop-v4.afm-competition .tabs button{
    min-height:42px!important;padding:0 18px!important;border-radius:10px!important;
    font-size:10px!important;font-weight:900!important
  }
  body.afm-desktop-v4.afm-competition .tabs button.active{
    background:linear-gradient(180deg,rgba(232,195,95,.18),rgba(232,195,95,.07))!important;
    color:#f2cf6d!important;border-color:rgba(232,195,95,.30)!important
  }
  body.afm-desktop-v4.afm-competition .competition-body{
    padding:20px 22px 24px!important;border-radius:18px!important;
    border:1px solid rgba(136,163,182,.18)!important;
    background:linear-gradient(180deg,rgba(8,26,39,.96),rgba(5,18,28,.99))!important;
    box-shadow:0 22px 50px rgba(0,0,0,.14)!important
  }
  body.afm-desktop-v4.afm-competition .standings-v3-summary{
    display:grid!important;grid-template-columns:minmax(250px,.8fr) minmax(300px,1fr)!important;
    gap:12px!important;margin-bottom:16px!important
  }
  body.afm-desktop-v4.afm-competition .standings-v3-summary>div{
    min-height:92px!important;padding:16px 18px!important;border-radius:14px!important;
    background:linear-gradient(145deg,#0a2232,#081927)!important
  }
  body.afm-desktop-v4.afm-competition .standings-v3-summary>div.mine{
    border-color:rgba(230,191,84,.36)!important;background:linear-gradient(145deg,rgba(40,36,22,.82),#081927)!important
  }
  body.afm-desktop-v4.afm-competition .table-wrap{border-radius:14px!important}
  body.afm-desktop-v4.afm-competition table.standings th{
    height:42px!important;font-size:9px!important;color:#7f95a5!important;background:#061723!important
  }
  body.afm-desktop-v4.afm-competition table.standings td{
    height:56px!important;font-size:12px!important;border-color:rgba(133,159,178,.09)!important
  }
  body.afm-desktop-v4.afm-competition table.standings tbody tr:hover{background:#0b2638!important}
  body.afm-desktop-v4.afm-competition table.standings tbody tr.is-my-club{
    background:linear-gradient(90deg,rgba(230,191,84,.12),rgba(230,191,84,.025))!important;
    box-shadow:inset 3px 0 #e6bf54
  }
  body.afm-desktop-v4.afm-competition .team-cell img{width:34px!important;height:34px!important}

  /* 2. SCAMBI */
  body.afm-desktop-v4 .trade-shell{
    display:grid!important;
    grid-template-columns:minmax(0,1.5fr) minmax(340px,.65fr)!important;
    grid-template-areas:"back back" "intro intro" "create history"!important;
    gap:16px!important;
  }
  body.afm-desktop-v4 .trade-shell>.trade-card:nth-of-type(1){
    grid-area:intro!important;min-height:0!important;padding:28px 30px!important;
    display:grid!important;grid-template-columns:minmax(0,1fr) minmax(320px,.5fr)!important;
    gap:20px!important;align-items:end!important;
    background:
      radial-gradient(circle at 88% 15%,rgba(230,191,84,.11),transparent 30%),
      linear-gradient(135deg,#0b293d,#061722 78%)!important;
    border-color:rgba(137,164,184,.18)!important
  }
  body.afm-desktop-v4 .trade-shell>.trade-card:nth-of-type(1) .eyebrow,
  body.afm-desktop-v4 .trade-shell>.trade-card:nth-of-type(1) h1,
  body.afm-desktop-v4 .trade-shell>.trade-card:nth-of-type(1) .trade-note{grid-column:1!important}
  body.afm-desktop-v4 .trade-shell>.trade-card:nth-of-type(1) h1{
    margin:6px 0 8px!important;font-size:48px!important;letter-spacing:-.04em!important
  }
  body.afm-desktop-v4 .trade-shell>.trade-card:nth-of-type(1) .trade-note{
    max-width:850px!important;font-size:11px!important;color:#9aafbe!important
  }
  body.afm-desktop-v4 .trade-shell>.trade-card:nth-of-type(1) #marketState{
    grid-column:2!important;grid-row:1 / span 3!important;margin:0!important;align-self:stretch!important;
    min-height:92px!important;display:flex!important;align-items:center!important;padding:18px!important;
    font-size:10px!important;border-radius:14px!important
  }
  body.afm-desktop-v4 .trade-shell>.trade-card:nth-of-type(2){
    grid-area:history!important;min-height:100%!important;padding:20px!important
  }
  body.afm-desktop-v4 .trade-shell>details.trade-card{
    grid-area:create!important;padding:20px 22px 24px!important
  }
  body.afm-desktop-v4 details.trade-card>summary{
    min-height:54px!important;font-size:14px!important;color:#f0ca64!important
  }
  body.afm-desktop-v4 .trade-create-body{gap:18px!important}
  body.afm-desktop-v4 .trade-card select,
  body.afm-desktop-v4 .trade-card input,
  body.afm-desktop-v4 .trade-card textarea{
    min-height:46px!important;border-radius:10px!important;border-color:rgba(132,159,179,.22)!important;
    background:#061724!important;font-size:11px!important
  }
  body.afm-desktop-v4 .pick-list{max-height:520px!important;padding-right:3px}
  body.afm-desktop-v4 .pick{min-height:58px!important;padding:10px 11px!important;border-radius:10px!important}
  body.afm-desktop-v4 #submitTrade{min-height:48px!important;border-radius:11px!important;font-size:11px!important}
  body.afm-desktop-v4 .trade-shell:has(> details.trade-card[hidden])>.trade-card:nth-of-type(2){grid-column:1/-1!important}

  /* 3. ROSA — desktop: readable cards, headings in normal flow. */
  body.afm-desktop-v4.afm-roster .club-subpage{max-width:1660px!important}
  body.afm-desktop-v4.afm-roster .roster-v3-head{
    min-height:100px!important;padding:18px 22px!important;border-radius:16px!important;
    display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;
    background:linear-gradient(135deg,#0a293d,#061722 78%)!important
  }
  body.afm-desktop-v4.afm-roster .roster-v3-head h1{font-size:32px!important;line-height:1.15!important;letter-spacing:-.025em!important}
  body.afm-desktop-v4.afm-roster .roster-v3-head p{font-size:14px!important;color:#b8c8d3!important}
  body.afm-desktop-v4.afm-roster .roster-v3-head>a{
    min-height:42px!important;padding:0 14px!important;border-radius:10px!important;font-size:14px!important;
    border:1px solid rgba(137,164,184,.3)!important;background:#081b29!important;
    display:inline-flex!important;align-items:center!important;text-decoration:none!important;flex-shrink:0!important
  }
  body.afm-desktop-v4.afm-roster .roster-summary{
    display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;margin:12px 0!important
  }
  body.afm-desktop-v4.afm-roster .roster-summary>div{
    min-width:0!important;min-height:76px!important;padding:12px 14px!important;border-radius:12px!important;
    background:linear-gradient(145deg,#0a2131,#071824)!important
  }
  body.afm-desktop-v4.afm-roster .roster-summary small{font-size:12px!important;letter-spacing:.02em!important;color:#b8c8d3!important}
  body.afm-desktop-v4.afm-roster .roster-summary strong{font-size:21px!important;line-height:1.4!important;white-space:normal!important}
  body.afm-desktop-v4.afm-roster .roster-summary>div:last-child strong{font-size:17px!important}
  body.afm-desktop-v4.afm-roster .role-filters{
    display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important;padding:8px!important;margin:8px 0!important;
    border-radius:12px!important;background:#071a28!important
  }
  body.afm-desktop-v4.afm-roster .role-filters button{
    min-height:42px!important;padding:0 14px!important;border-radius:9px!important;font-size:14px!important
  }
  body.afm-desktop-v4.afm-roster #rosterSearch{
    height:44px!important;margin:0 0 12px!important;padding:0 14px!important;border-radius:11px!important;
    font-size:14px!important;background:#061723!important
  }
  body.afm-desktop-v4.afm-roster #roster.panel{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start!important;gap:16px!important;
    padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important
  }
  body.afm-desktop-v4.afm-roster #roster.panel:has(>.role-group:only-child){grid-template-columns:minmax(0,1fr)!important}
  body.afm-desktop-v4.afm-roster .role-group{
    display:flex!important;flex-direction:column!important;align-self:start!important;min-width:0!important;gap:8px!important;padding:14px!important;margin:0!important;
    border-radius:14px!important;background:linear-gradient(180deg,#081d2b,#061722)!important
  }
  body.afm-desktop-v4.afm-roster .role-group>h3{
    position:static!important;top:auto!important;z-index:auto!important;margin:0 0 4px!important;padding:0 0 10px!important;
    display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;
    color:#e9c45e!important;font-size:17px!important;line-height:1.4!important;background:transparent!important
  }
  body.afm-desktop-v4.afm-roster .player-row.player-v3{
    display:grid!important;min-width:0!important;min-height:86px!important;padding:12px!important;border-radius:11px!important;
    grid-template-columns:48px minmax(0,1fr) 72px!important;align-items:center!important;gap:12px!important;background:#0a2232!important
  }
  body.afm-desktop-v4.afm-roster .player-row.player-v3>img,
  body.afm-desktop-v4.afm-roster .player-row.player-v3>.player-avatar{
    width:48px!important;height:48px!important;min-width:48px!important
  }
  body.afm-desktop-v4.afm-roster .player-v3-main{min-width:0!important}
  body.afm-desktop-v4.afm-roster .player-v3-name{display:flex!important;align-items:baseline!important;gap:6px!important;min-width:0!important}
  body.afm-desktop-v4.afm-roster .player-v3-name strong{
    font-size:15px!important;line-height:1.35!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important
  }
  body.afm-desktop-v4.afm-roster .player-role{font-size:12px!important;flex-shrink:0!important}
  body.afm-desktop-v4.afm-roster .player-v3-team{font-size:13px!important;line-height:1.4!important;color:#b8c8d3!important;white-space:normal!important}
  body.afm-desktop-v4.afm-roster .player-v3-stats{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
  body.afm-desktop-v4.afm-roster .player-v3-stats span{font-size:12px!important;line-height:1.4!important}
  body.afm-desktop-v4.afm-roster .player-purchase{min-width:0!important;text-align:right!important}
  body.afm-desktop-v4.afm-roster .player-purchase small{font-size:11px!important;line-height:1.4!important;color:#b8c8d3!important}
  body.afm-desktop-v4.afm-roster .player-purchase b{font-size:15px!important;white-space:nowrap!important}

  body.afm-desktop-v4.afm-roster .roster-toggle{
    display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;
    width:100%!important;min-height:40px!important;padding:0!important;border:0!important;background:transparent!important;
    color:#e9c45e!important;font:inherit!important;text-align:left!important;cursor:pointer!important
  }
  body.afm-desktop-v4.afm-roster .roster-toggle-action{font-size:13px!important;color:#b8c8d3!important;white-space:nowrap!important}
  body.afm-desktop-v4.afm-roster .roster-toggle:focus-visible{outline:2px solid #e9c45e!important;outline-offset:4px!important}
  body.afm-desktop-v4.afm-roster .role-group.is-collapsed>.player-row{display:none!important}
  body.afm-desktop-v4.afm-roster .role-group.is-collapsed>h3{margin:0!important;padding:0!important}

  /* 4. CLUB */
  body.afm-desktop-v4.afm-club .club-page{max-width:1660px!important}
  body.afm-desktop-v4.afm-club .club-hero{
    min-height:160px!important;padding:28px 30px!important;border-radius:22px!important;
    background:
      radial-gradient(circle at 86% 18%,rgba(230,191,84,.12),transparent 28%),
      linear-gradient(135deg,#0a2a3e,#061722 76%)!important
  }
  body.afm-desktop-v4.afm-club .club-identity img,
  body.afm-desktop-v4.afm-club .club-big-mark{
    width:88px!important;height:88px!important;flex-basis:88px!important;
    border-radius:18px!important;background:rgba(4,15,23,.48)!important
  }
  body.afm-desktop-v4.afm-club .club-identity h1{font-size:48px!important;letter-spacing:-.045em!important}
  body.afm-desktop-v4.afm-club #clubBody{
    display:grid!important;grid-template-columns:minmax(0,1.45fr) minmax(360px,.55fr)!important;
    gap:16px!important;align-items:stretch!important;margin-top:14px!important
  }
  body.afm-desktop-v4.afm-club .club-v4-management,
  body.afm-desktop-v4.afm-club .club-v4-sport{
    padding:22px!important;border-radius:18px!important;border:1px solid rgba(137,164,184,.17)!important;
    background:linear-gradient(180deg,#081d2c,#061722)!important
  }
  body.afm-desktop-v4.afm-club .club-v4-title strong,
  body.afm-desktop-v4.afm-club .club-v4-sport-head strong{font-size:22px!important}
  body.afm-desktop-v4.afm-club .club-v3-metrics{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px!important}
  body.afm-desktop-v4.afm-club .club-v3-metrics a{
    min-height:94px!important;padding:15px 16px!important;border-radius:13px!important;background:#0a2232!important
  }
  body.afm-desktop-v4.afm-club .club-v3-metrics strong{font-size:22px!important}
  body.afm-desktop-v4.afm-club .club-v4-links{
    grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important;margin-top:9px!important
  }
  body.afm-desktop-v4.afm-club .club-v4-links a{
    min-height:100px!important;padding:15px!important;border-radius:13px!important;background:#081b29!important
  }
  body.afm-desktop-v4.afm-club .club-v4-links a:hover{transform:translateY(-2px);border-color:rgba(230,191,84,.30)!important}
  body.afm-desktop-v4.afm-club .club-v4-sport-grid{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}
  body.afm-desktop-v4.afm-club .club-v4-sport-grid>a,
  body.afm-desktop-v4.afm-club .club-v4-sport-grid>div{
    min-height:104px!important;padding:16px!important;border-radius:13px!important;background:#0a2232!important
  }

  /* 5. FORMAZIONE */
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
}
@media (min-width:901px) and (max-width:1280px){
  body.afm-desktop-v4.afm-roster #roster.panel{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.afm-desktop-v4.afm-club #clubBody{grid-template-columns:1fr!important}
  body.afm-desktop-v4.afm-club .club-v4-sport-grid{grid-template-columns:1fr 1fr!important}
  
}
/* SCAMBI — desktop 3 colonne bilanciate */
@media (min-width:901px){
  body.afm-desktop-v4.afm-trades main.trade-shell{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-areas:"back" "intro" "history" "create"!important;
    gap:8px!important;
    width:calc(100% - 40px)!important;
    max-width:1360px!important;
    padding-top:12px!important;
  }
  body.afm-desktop-v4.afm-trades .trade-shell>.back-link{grid-area:back!important;margin-bottom:0!important}
  body.afm-desktop-v4.afm-trades .trade-shell>.trade-card:nth-of-type(1){
    grid-area:intro!important;min-height:0!important;padding:12px 16px!important;
    display:grid!important;grid-template-columns:minmax(0,1fr) 320px!important;gap:12px!important;align-items:center!important
  }
  body.afm-desktop-v4.afm-trades .trade-shell>.trade-card:nth-of-type(1) .eyebrow,
  body.afm-desktop-v4.afm-trades .trade-shell>.trade-card:nth-of-type(1) h1,
  body.afm-desktop-v4.afm-trades .trade-shell>.trade-card:nth-of-type(1) .trade-note{grid-column:1!important}
  body.afm-desktop-v4.afm-trades .trade-shell>.trade-card:nth-of-type(1) h1{
    font-size:28px!important;margin:2px 0 4px!important
  }
  body.afm-desktop-v4.afm-trades .trade-shell>.trade-card:nth-of-type(1) .trade-note{
    font-size:8px!important;line-height:1.4!important;max-width:900px!important
  }
  body.afm-desktop-v4.afm-trades .trade-shell>.trade-card:nth-of-type(1) #marketState{
    grid-column:2!important;grid-row:1 / span 3!important;
    min-height:58px!important;padding:8px 10px!important;margin:0!important;
    display:flex!important;align-items:center!important;font-size:8px!important;border-radius:9px!important
  }
  body.afm-desktop-v4.afm-trades .trade-shell>.trade-card:nth-of-type(2){
    grid-area:history!important;min-height:0!important;padding:9px 12px!important
  }
  body.afm-desktop-v4.afm-trades .trade-shell>.trade-card:nth-of-type(2) h2{
    font-size:13px!important;margin:0 0 5px!important
  }
  body.afm-desktop-v4.afm-trades .status{padding:6px 8px!important;margin-top:3px!important;font-size:8px!important}

  body.afm-desktop-v4.afm-trades .trade-shell>details.trade-card{
    grid-area:create!important;padding:8px 10px 12px!important;margin:0!important
  }
  body.afm-desktop-v4.afm-trades details.trade-card>summary{
    min-height:34px!important;font-size:11px!important;padding:0 3px!important
  }
  body.afm-desktop-v4.afm-trades .trade-create-body{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 290px minmax(0,1fr)!important;
    grid-template-rows:auto auto auto auto auto auto 1fr!important;
    column-gap:10px!important;row-gap:7px!important;
    align-items:start!important
  }
  body.afm-desktop-v4.afm-trades .trade-create-body>.trade-grid:nth-of-type(1),
  body.afm-desktop-v4.afm-trades .trade-create-body>.trade-grid:nth-of-type(2){
    display:contents!important
  }
  body.afm-desktop-v4.afm-trades .trade-create-body>.trade-grid:nth-of-type(1)>div:first-child{
    grid-column:1!important;grid-row:1!important
  }
  body.afm-desktop-v4.afm-trades .trade-create-body>.trade-grid:nth-of-type(1)>div:last-child{
    grid-column:3!important;grid-row:1!important
  }
  body.afm-desktop-v4.afm-trades .trade-create-body>.trade-grid:nth-of-type(2)>div:first-child{
    grid-column:1!important;grid-row:2 / span 6!important
  }
  body.afm-desktop-v4.afm-trades .trade-create-body>.trade-grid:nth-of-type(2)>div:last-child{
    grid-column:3!important;grid-row:2 / span 6!important
  }
  body.afm-desktop-v4.afm-trades .trade-create-body>.trade-grid:nth-of-type(3){
    grid-column:2!important;grid-row:1!important;
    grid-template-columns:1fr!important;gap:5px!important;margin:0!important
  }
  body.afm-desktop-v4.afm-trades .trade-create-body>label{
    grid-column:2!important;grid-row:2!important;margin:0!important;font-size:8px!important
  }
  body.afm-desktop-v4.afm-trades .trade-create-body>textarea{
    grid-column:2!important;grid-row:3!important;margin:0!important;min-height:60px!important;height:60px!important
  }
  body.afm-desktop-v4.afm-trades .trade-create-body>.afm-value-box{
    grid-column:2!important;grid-row:4!important;margin:0!important;padding:7px!important;min-height:58px!important
  }
  body.afm-desktop-v4.afm-trades .trade-create-body>.trade-rule-state{
    grid-column:2!important;grid-row:5!important;margin:0!important;padding:7px 8px!important;font-size:7.5px!important
  }
  body.afm-desktop-v4.afm-trades .trade-create-body>#submitTrade{
    grid-column:2!important;grid-row:6!important;margin:0!important;min-height:34px!important;height:34px!important;font-size:8px!important
  }
  body.afm-desktop-v4.afm-trades .trade-create-body>#preview{
    grid-column:2!important;grid-row:7!important
  }
  body.afm-desktop-v4.afm-trades .trade-create-body label{font-size:8px!important;color:#8fa3b7!important}
  body.afm-desktop-v4.afm-trades .trade-create-body h3{
    margin:0 0 5px!important;font-size:13px!important
  }
  body.afm-desktop-v4.afm-trades .trade-card select,
  body.afm-desktop-v4.afm-trades .trade-card input,
  body.afm-desktop-v4.afm-trades .trade-card textarea{
    min-height:34px!important;height:34px!important;border-radius:8px!important;font-size:9px!important;padding:5px 8px!important
  }
  body.afm-desktop-v4.afm-trades .pick-list{
    max-height:430px!important;height:430px!important;overflow:auto!important;gap:2px!important;padding-right:3px!important
  }
  body.afm-desktop-v4.afm-trades .pick{
    min-height:32px!important;padding:3px 6px!important;border-radius:6px!important;
    grid-template-columns:16px minmax(0,1fr)!important;gap:5px!important
  }
  body.afm-desktop-v4.afm-trades .pick input{
    width:14px!important;height:14px!important;min-height:14px!important;padding:0!important
  }
  body.afm-desktop-v4.afm-trades .pick b{font-size:8.5px!important}
  body.afm-desktop-v4.afm-trades .pick small{font-size:6.5px!important;margin-top:0!important;display:block!important}
}

@media (min-width:901px) and (max-width:1100px){
  body.afm-desktop-v4 .trade-shell{grid-template-columns:1fr!important;grid-template-areas:"back" "intro" "create" "history"!important}
  body.afm-desktop-v4 .trade-shell>.trade-card:nth-of-type(1){grid-template-columns:1fr!important}
  body.afm-desktop-v4 .trade-shell>.trade-card:nth-of-type(1) #marketState{grid-column:1!important;grid-row:auto!important}
  
  
  
  
}

/* Laptop compact mode: formazione proporzionata per viewport 1366x768 / 1440x900.
   Desktop only; mobile <901px resta invariato. */
@media (min-width:1101px) and (max-width:1440px){
  
  
  
  
  
  
  

  
  
  
  

  
  
  
  

  
  
  
  
  

  
  
  
  

  
  
  
  
  
  
  

  
  
  
  

  /* LINEUP 1366 — compact workspace: pitch + bench visible together, no dead canvas. */
  
  
  
  
  
  
  
  
  

  /* Scope competizioni: testo orizzontale su desktop, senza colonna stretta. */
  
  
  
  

  /* Timing desktop: due informazioni affiancate e molto più compatte. */
  
  
  
  
  

  /* FINAL 1366 LINEUP OVERRIDE — campo e panchina realmente affiancati. */
  

  /* Campo e panchina occupano tutta la larghezza desktop disponibile. */
  
  
  
  
  
  
  

  /* Chiusura formazione + ultima consegna: stessa riga, box bassi. */
  
  
  
  
  

  /* FINAL TIMING DESKTOP — stessa riga, due box compatti. */
  
  

  /* PLAYER PICKER DESKTOP — il bottom sheet mobile diventa una finestra desktop visibile. */
  body.afm-desktop-v4.afm-lineup .sheet-wrap{
    position:fixed!important;
    inset:0!important;
    z-index:5000!important;
    pointer-events:none!important;
  }
  body.afm-desktop-v4.afm-lineup .sheet-wrap.open{display:block!important}
  body.afm-desktop-v4.afm-lineup .sheet-wrap .shade{
    position:absolute!important;
    inset:0!important;
    background:rgba(1,8,13,.30)!important;
    backdrop-filter:blur(1px)!important;
    pointer-events:none!important;
    touch-action:auto!important;
  }
  body.afm-desktop-v4.afm-lineup .sheet-wrap .sheet{
    pointer-events:auto!important;
  }
  body.afm-desktop-v4.afm-lineup .sheet-wrap .sheet{
    position:absolute!important;
    top:50%!important;
    left:50%!important;
    right:auto!important;
    bottom:auto!important;
    transform:translate(-50%,-50%)!important;
    width:440px!important;
    max-width:calc(100vw - 80px)!important;
    height:min(66vh,520px)!important;
    max-height:520px!important;
    padding:14px!important;
    border:1px solid rgba(230,191,84,.32)!important;
    border-radius:16px!important;
    background:#071722!important;
    box-shadow:0 28px 80px rgba(0,0,0,.52)!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
  }
  body.afm-desktop-v4.afm-lineup .sheet-wrap .grab{display:none!important}
  body.afm-desktop-v4.afm-lineup .sheet-wrap .sheet-head{
    flex:0 0 auto!important;
    margin:0 0 10px!important;
    padding-bottom:10px!important;
    border-bottom:1px solid rgba(137,164,184,.14)!important;
  }
  body.afm-desktop-v4.afm-lineup .sheet-wrap .sheet-head h3{
    font-size:18px!important;
  }
  body.afm-desktop-v4.afm-lineup .sheet-wrap .pick-list{
    flex:1 1 auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow-y:auto!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:7px!important;
    padding:0 3px 8px 0!important;
  }
  body.afm-desktop-v4.afm-lineup .sheet-wrap .pick{
    min-height:64px!important;
    grid-template-columns:50px minmax(0,1fr) 46px!important;
    padding:8px 10px!important;
  }
  body.afm-desktop-v4.afm-lineup .sheet-wrap .pick img,
  body.afm-desktop-v4.afm-lineup .sheet-wrap .pick .avatar{
    width:48px!important;height:48px!important;
  }
  body.afm-desktop-v4.afm-lineup.picker-open{
    position:static!important;
    top:auto!important;
    left:auto!important;
    right:auto!important;
    width:auto!important;
    overflow:hidden!important;
  }

  /* FINAL DESKTOP SUMMARY ROW — prossimo impegno + ultimi risultati affiancati e compatti. */
  
  
  
  
  

  /* AUDIT DESKTOP — pagine secondarie ancora strette */
  body.afm-desktop-v4 main.notice-shell,
  body.afm-desktop-v4 main.rules-shell,
  body.afm-desktop-v4 main.privacy-shell,
  body.afm-desktop-v4 main.contact-shell,
  body.afm-desktop-v4 main.profile-shell,
  body.afm-desktop-v4 main.player-shell,
  body.afm-desktop-v4 main.live-mode-shell,
  body.afm-desktop-v4 main.history-shell,
  body.afm-desktop-v4 main.archive-shell{
    box-sizing:border-box!important;
    width:calc(100% - 54px)!important;
    max-width:none!important;
    margin:0 auto!important;
    padding:28px 0 56px!important;
  }

  body.afm-desktop-v4 .notice-shell{max-width:1500px!important}
  body.afm-desktop-v4 .notice-hero{padding:24px 26px!important;border-radius:18px!important}
  body.afm-desktop-v4 .notice-list{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  body.afm-desktop-v4 .notice-card{min-height:132px!important;padding:16px!important}

  body.afm-desktop-v4 .rules-shell{max-width:1380px!important}
  body.afm-desktop-v4 .rules-head{padding:24px 26px!important;border-radius:18px!important}
  body.afm-desktop-v4 .rules-head h1{font-size:38px!important}
  body.afm-desktop-v4 .rules-nav{top:72px!important;padding:10px 0!important}
  body.afm-desktop-v4 .rule-card{padding:18px 20px!important;border-radius:14px!important}
  body.afm-desktop-v4 .rule-card h2{font-size:18px!important}
  body.afm-desktop-v4 .rule-card p,
  body.afm-desktop-v4 .rule-card li{font-size:11px!important;line-height:1.65!important}

  body.afm-desktop-v4 .privacy-shell{max-width:1380px!important}
  body.afm-desktop-v4 .privacy-hero{padding:24px 26px!important}
  body.afm-desktop-v4 .privacy-card{padding:18px 20px!important}
  body.afm-desktop-v4 .privacy-card p,
  body.afm-desktop-v4 .privacy-card li{font-size:10px!important}

  body.afm-desktop-v4 .contact-shell{max-width:1380px!important}
  body.afm-desktop-v4 .contact-hero{padding:24px 26px!important}
  body.afm-desktop-v4 .contact-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}
  body.afm-desktop-v4 .contact-card{min-height:190px!important;padding:20px!important}

  body.afm-desktop-v4 .profile-shell{max-width:1380px!important}
  body.afm-desktop-v4 .profile-hero{padding:22px 24px!important;border-radius:18px!important}
  body.afm-desktop-v4 .profile-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:14px!important}
  body.afm-desktop-v4 .profile-card{padding:18px!important;border-radius:14px!important}

  body.afm-desktop-v4 .player-shell{max-width:1280px!important}
  body.afm-desktop-v4 .player-hero{padding:22px 24px!important;border-radius:18px!important}
  body.afm-desktop-v4 .player-avatar{width:120px!important;height:120px!important}
  body.afm-desktop-v4 .player-hero h1{font-size:34px!important}
  body.afm-desktop-v4 .player-panel{padding:16px 18px!important;border-radius:14px!important}

  body.afm-desktop-v4 .live-mode-shell{max-width:1540px!important}
  body.afm-desktop-v4 .live-mode-head{padding:6px 4px 16px!important}
  body.afm-desktop-v4 .live-mode-head h1{font-size:38px!important}
  body.afm-desktop-v4 .live-mode-grid,
  body.afm-desktop-v4 .matchday-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}

  body.afm-desktop-v4 .history-shell{max-width:1380px!important}
  body.afm-desktop-v4 .history-shell .list{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
  body.afm-desktop-v4 .history-shell .card{padding:18px!important}

  body.afm-desktop-v4 .archive-shell{max-width:1580px!important}
  body.afm-desktop-v4 .archive-shell .layout{grid-template-columns:340px minmax(0,1fr)!important;gap:14px!important}
  body.afm-desktop-v4 .archive-shell .layout:not(.hasDetail){grid-template-columns:340px!important}
  body.afm-desktop-v4 .archive-shell .layout:not(.hasDetail) #detail{display:none!important}
  body.afm-desktop-v4 .archive-shell .teamGrid{grid-template-columns:repeat(3,minmax(0,1fr))!important}

  body.afm-desktop-v4 main.shell>.grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}

/* RICONFERME — desktop compatto con statistiche sulla riga giocatore. */
@media (min-width:901px){
  body.afm-desktop-v4.afm-reconfirmations main.s{
    width:calc(100vw - 258px)!important;
    max-width:none!important;
    margin:0 18px 0 240px!important;
    padding:20px 0 90px!important;
    box-sizing:border-box!important
  }
  body.afm-desktop-v4.afm-reconfirmations .card{margin-top:10px!important;padding:18px 20px!important;border-radius:15px!important}
  body.afm-desktop-v4.afm-reconfirmations .head h1{font-size:36px!important;margin:4px 0!important}
  body.afm-desktop-v4.afm-reconfirmations .meta{gap:10px!important;margin-top:8px!important}
  body.afm-desktop-v4.afm-reconfirmations .meta div{padding:12px 14px!important}
  body.afm-desktop-v4.afm-reconfirmations .info{margin-top:9px!important;padding:12px 14px!important}
  body.afm-desktop-v4.afm-reconfirmations .counter{margin:12px 0 10px!important}
  body.afm-desktop-v4.afm-reconfirmations .players{
    width:100%!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important
  }
  body.afm-desktop-v4.afm-reconfirmations .p{
    width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
    grid-template-columns:46px minmax(0,1fr) minmax(260px,1.15fr) 28px!important;
    gap:8px!important;
    min-height:68px!important;
    padding:10px 12px!important;
    border-radius:10px!important;
    overflow:hidden!important
  }
  body.afm-desktop-v4.afm-reconfirmations .p img{width:46px!important;height:46px!important;border-radius:8px!important}
  body.afm-desktop-v4.afm-reconfirmations .pMain{min-width:0!important}
  body.afm-desktop-v4.afm-reconfirmations .pMain>b{font-size:12px!important}
  body.afm-desktop-v4.afm-reconfirmations .pMain>small{font-size:9px!important;margin-top:3px!important}
  body.afm-desktop-v4.afm-reconfirmations .pStats{
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:5px!important;
    min-width:0!important;
    align-items:center!important
  }
  body.afm-desktop-v4.afm-reconfirmations .pStats span{
    min-width:0!important;
    min-height:42px!important;
    padding:6px 4px!important;
    border:1px solid #29455e!important;
    border-radius:8px!important;
    background:#081c2c!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    text-align:center!important
  }
  body.afm-desktop-v4.afm-reconfirmations .pStats small{
    display:block!important;
    margin:0!important;
    color:#8ca1b3!important;
    font-size:7px!important;
    font-weight:900!important
  }
  body.afm-desktop-v4.afm-reconfirmations .pStats b{font-size:9px!important;color:#eef3f7!important;white-space:nowrap!important}
  body.afm-desktop-v4.afm-reconfirmations .pStats span:first-child b{color:#efc354!important}
  body.afm-desktop-v4.afm-reconfirmations .p>input{
    width:20px!important;
    height:20px!important;
    margin:0 auto!important;
    justify-self:center!important;
    flex:0 0 auto!important
  }
  body.afm-desktop-v4.afm-reconfirmations .actions{margin-top:14px!important;gap:10px!important}
  body.afm-desktop-v4.afm-reconfirmations .actions .btn{height:46px!important}
}

/* SVINCOLI — desktop leggibile con pulsante sempre visibile. */
@media (min-width:901px){
  body.afm-desktop-v4.afm-releases main.s{
    width:calc(100vw - 258px)!important;
    max-width:none!important;
    margin:0 18px 0 240px!important;
    padding:20px 0 90px!important;
    box-sizing:border-box!important
  }
  body.afm-desktop-v4.afm-releases .card{
    margin-top:10px!important;
    padding:18px 20px!important;
    border-radius:15px!important
  }
  body.afm-desktop-v4.afm-releases .head h1{font-size:36px!important;margin:4px 0!important}
  body.afm-desktop-v4.afm-releases .info{margin-top:9px!important;padding:12px 14px!important}
  body.afm-desktop-v4.afm-releases .summary{gap:10px!important;margin-top:8px!important}
  body.afm-desktop-v4.afm-releases .summary div{padding:12px 14px!important}
  body.afm-desktop-v4.afm-releases .players{
    width:100%!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    margin-top:8px!important
  }
  body.afm-desktop-v4.afm-releases .players>.p{
    width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important
  }
  body.afm-desktop-v4.afm-releases .p{
    grid-template-columns:46px minmax(0,1fr) 94px!important;
    grid-template-rows:auto auto!important;
    gap:8px 10px!important;
    min-height:112px!important;
    padding:10px 12px!important;
    border-radius:10px!important;
    overflow:hidden!important
  }
  body.afm-desktop-v4.afm-releases .p img{
    width:46px!important;
    height:46px!important;
    border-radius:8px!important;
    grid-column:1!important;
    grid-row:1!important
  }
  body.afm-desktop-v4.afm-releases .pMain{
    min-width:0!important;
    grid-column:2!important;
    grid-row:1!important;
    align-self:center!important
  }
  body.afm-desktop-v4.afm-releases .pMain>b{font-size:12px!important}
  body.afm-desktop-v4.afm-releases .pMain>small{font-size:9px!important;margin-top:3px!important}
  body.afm-desktop-v4.afm-releases .pStats{
    display:grid!important;
    grid-column:1/-1!important;
    grid-row:2!important;
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    gap:5px!important;
    min-width:0!important
  }
  body.afm-desktop-v4.afm-releases .pStats span{
    min-width:0!important;
    min-height:42px!important;
    padding:6px 4px!important;
    border:1px solid #29455e!important;
    border-radius:8px!important;
    background:#081c2c!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    text-align:center!important
  }
  body.afm-desktop-v4.afm-releases .pStats small{
    display:block!important;
    margin:0!important;
    color:#8ca1b3!important;
    font-size:7px!important;
    font-weight:900!important
  }
  body.afm-desktop-v4.afm-releases .pStats b{
    display:block!important;
    margin-top:3px!important;
    font-size:9px!important;
    color:#eef3f7!important;
    white-space:nowrap!important
  }
  body.afm-desktop-v4.afm-releases .pStats span:nth-child(2) b{color:#efc354!important}
  body.afm-desktop-v4.afm-releases .p button{
    grid-column:3!important;
    grid-row:1!important;
    align-self:center!important;
    justify-self:end!important;
    width:94px!important;
    height:38px!important;
    padding:0 8px!important;
    font-size:9.5px!important
  }
  body.afm-desktop-v4.afm-releases .history{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important
  }
  body.afm-desktop-v4.afm-releases .h{padding:10px 12px!important}
}

/* v969 — gutter globale Centro Manager nello spazio già libero a destra della sidebar */
@media (min-width:901px){
  body.afm-desktop-v4:not(.afm-home) main.shell,
  body.afm-desktop-v4:not(.afm-home) main.club-page,
  body.afm-desktop-v4:not(.afm-home) main.club-subpage,
  body.afm-desktop-v4:not(.afm-home) main.trade-shell,
  body.afm-desktop-v4:not(.afm-home) main.cups-shell,
  body.afm-desktop-v4:not(.afm-home) main.dg,
  body.afm-desktop-v4:not(.afm-home) main.list-shell,
  body.afm-desktop-v4:not(.afm-home) main.notice-shell,
  body.afm-desktop-v4:not(.afm-home) main.profile-shell,
  body.afm-desktop-v4:not(.afm-home) main.rules-shell,
  body.afm-desktop-v4:not(.afm-home) main.privacy-shell,
  body.afm-desktop-v4:not(.afm-home) main.s,
  body.afm-desktop-v4:not(.afm-home) main.page{
    width:calc(100% - 80px)!important;
    margin-left:auto!important;
    margin-right:auto!important;
    box-sizing:border-box!important;
  }
}