/* YUREX SOCCER — Takım kariyeri ana ekranı düzeni (2 Kasım 2026).
   Son yüklenen katman: eski !important kurallarının üstüne yazar.
   Buton ID'leri ve oyun akışı değişmez. */

/* ── Net arka plan (eski 750px'lik bulanık görsel yerine 1920px) ── */
html body #menu:not(.hidden){
  background:
    linear-gradient(90deg,rgba(3,6,12,.58) 0%,rgba(3,6,12,.18) 34%,rgba(3,6,12,0) 55%),
    linear-gradient(0deg,rgba(3,6,12,.35),rgba(3,6,12,0) 30%),
    url('yx_career_background_clear.webp') center 14%/cover no-repeat!important;
  image-rendering:auto;
}
html body #menu::before,html body #menu::after{display:none!important}

/* 2 numara: alttaki bütçe bilgisi ana ekranda yok */
#yxTeamBudgetInfo{display:none!important}

/* Eski sabit YX Coin kutusu: bakiye artık üst çubukta */
html body #arazEconomyDock{display:none!important}

/* ── Üst çubuk: [sıra] YUREX SOCCER ............ [YX Coin] ── */
html body #menu>.top{
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;
  position:relative!important;box-sizing:border-box!important;
  width:calc(100% - 125px)!important;margin:22px 90px 0 35px!important;padding:10px 20px!important;
  min-height:clamp(52px,7vh,66px)!important;
  background:linear-gradient(95deg,rgba(8,14,23,.93),rgba(16,26,39,.86))!important;
  border:1px solid #f4c35c99!important;border-radius:6px!important;
  box-shadow:0 2px 0 #b78625,0 10px 25px #0008!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
html body #menu>.top h1{
  display:flex!important;align-items:center!important;gap:14px!important;margin:0!important;
  font-size:clamp(20px,2.4vw,32px)!important;letter-spacing:.07em!important;line-height:1!important;
  color:#ffcd64!important;text-shadow:0 2px 14px #ffbd3455!important;
}
#yxRankBadge{
  display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;
  min-width:1.55em;height:1.55em;padding:0 .3em;box-sizing:border-box;
  border-radius:.45em;font-size:.82em;font-weight:900;letter-spacing:0;
  color:#1c1409;background:linear-gradient(145deg,#ffe58f,#dfa33c);
  border:2px solid #ffd53d;box-shadow:0 0 14px #ffbe5355,inset 0 1px 0 #fff8;
  text-shadow:none;
}
#yxHeaderCoin{
  display:flex;align-items:center;gap:10px;flex:0 0 auto;
  padding:5px 16px 5px 6px;border-radius:999px;
  background:rgba(8,12,20,.85);border:1px solid #f2c044;box-shadow:0 0 14px #ffbe5333;
}
#yxHeaderCoin img{width:clamp(28px,3.4vh,36px);height:clamp(28px,3.4vh,36px);border-radius:50%;object-fit:cover;border:2px solid #ffd53d}
html body #yxHeaderCoin #azBalance{
  position:static!important;inset:auto!important;min-width:0!important;margin:0!important;padding:0!important;
  background:none!important;border:0!important;box-shadow:none!important;
  color:#ffe3a1!important;font:800 clamp(13px,1.05vw,16px)/1 system-ui,sans-serif!important;white-space:nowrap;
}

/* ── Lig kutusu (sağ üst) ── */
html body #menu>#leagueMenuControl{
  position:absolute!important;top:clamp(92px,12vh,118px)!important;right:35px!important;left:auto!important;
  width:clamp(190px,17vw,260px)!important;max-width:none!important;margin:0!important;box-sizing:border-box!important;
  display:flex!important;flex-direction:column!important;gap:8px!important;padding:8px 10px!important;
  background:rgba(9,13,20,.78)!important;border:1px solid #d5a83e99!important;border-radius:6px!important;
}
html body #menu #currentLeagueName{text-align:center;color:#ffe3a1;font-weight:800;font-size:clamp(12px,1.05vw,15px)}
html body #menu #leagueSelectBtn[hidden]{display:none!important}

/* ── Sol menü: tek sütun, eşit genişlik / yükseklik / aralık ── */
html body #menu{--yx-col:clamp(230px,19vw,330px);--yx-btn-h:clamp(34px,4.7vh,48px)}
html body #menu>.bottom-nav{margin-left:35px!important}
html body #menu>.bottom-nav{
  position:relative!important;top:auto!important;bottom:auto!important;left:auto!important;right:auto!important;
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  width:var(--yx-col)!important;max-width:none!important;max-height:none!important;
  margin-top:8px!important;margin-bottom:0!important;padding:0!important;gap:8px!important;
  overflow:visible!important;transform:none!important;
}
html body #menu>.bottom-nav #yxRightEconomyActions{display:contents!important}
html body #menu>.bottom-nav>button,
html body #menu>.bottom-nav>#matchesBtn,
html body #menu>.bottom-nav>#selectTeamBtn,
html body #menu>.bottom-nav #yxRightEconomyActions button{
  box-sizing:border-box!important;width:100%!important;height:var(--yx-btn-h)!important;min-height:0!important;max-height:none!important;
  margin:0!important;padding:0 17px!important;flex:0 0 auto!important;
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  border-radius:0!important;clip-path:polygon(0 0,100% 0,96% 100%,0 100%)!important;
  background:linear-gradient(105deg,rgba(84,61,10,.95),rgba(35,27,10,.95) 88%)!important;
  border:1px solid #f2c044!important;border-left:4px solid #ffcf3f!important;
  color:#ffe3a1!important;box-shadow:none!important;transform:none!important;translate:none!important;
  font-size:clamp(11px,1.6vh,15px)!important;font-weight:900!important;letter-spacing:.02em!important;line-height:1!important;text-align:left!important;
}
/* ANA MENÜ: sütunla aynı genişlik/yükseklik */
html body #menu>#careerHomeBtn{
  position:relative!important;top:auto!important;left:auto!important;
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  box-sizing:border-box!important;width:var(--yx-col)!important;height:var(--yx-btn-h)!important;min-height:0!important;
  margin:14px 0 0 35px!important;padding:0 17px!important;
  border-radius:0!important;clip-path:polygon(0 0,100% 0,96% 100%,0 100%)!important;
  background:linear-gradient(105deg,rgba(84,61,10,.95),rgba(35,27,10,.95) 88%)!important;
  border:1px solid #f2c044!important;border-left:4px solid #ffcf3f!important;color:#ffe3a1!important;box-shadow:none!important;
  font-size:clamp(11px,1.6vh,15px)!important;font-weight:900!important;line-height:1!important;
}
html body #menu>.bottom-nav>button:hover,
html body #menu>.bottom-nav #yxRightEconomyActions button:hover,
html body #menu>#careerHomeBtn:hover{filter:brightness(1.25)!important}
html body #menu>.bottom-nav>button:disabled{opacity:.55;filter:grayscale(.4)}
/* Takım zaten seçildiyse "TAKIMINI SEÇ" gösterilmez (kodun asıl niyeti) */
html body #menu>.bottom-nav>#selectTeamBtn.hidden{display:none!important}

/* ── MAÇA GİT: sağ altta, ekrana orantılı ── */
html body #menu>#goMatchBtn{
  position:fixed!important;top:auto!important;left:auto!important;right:90px!important;bottom:clamp(24px,5vh,56px)!important;
  width:clamp(220px,22vw,340px)!important;height:clamp(56px,7.5vh,76px)!important;min-height:0!important;min-width:0!important;margin:0!important;
  display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;
  padding:0 20px!important;border-radius:14px!important;clip-path:none!important;
  font-size:clamp(17px,2.3vh,24px)!important;font-weight:900!important;letter-spacing:.04em!important;
  z-index:50!important;transform:none!important;
}
html body #menu>#goMatchBtn:hover:not(:disabled){filter:brightness(1.1)!important;transform:translateY(-2px)!important}
html body #menu>#goMatchBtn:disabled{opacity:.6;filter:grayscale(.5)}
html body #menu>#yxDynastyCenterBtn:not(.hidden){top:clamp(150px,21vh,190px)!important;right:90px!important}

/* ── Dar ekran ── */
@media(max-width:700px){
  html body #menu>.top{width:calc(100% - 24px)!important;margin:12px 12px 0!important;padding:8px 12px!important}
  html body #menu>#careerHomeBtn,html body #menu>.bottom-nav{margin-left:12px!important}
  html body #menu{--yx-col:min(58vw,260px);--yx-btn-h:40px}
  html body #menu>#leagueMenuControl{position:relative!important;top:auto!important;right:auto!important;width:calc(100% - 24px)!important;margin:10px 12px 0!important}
  html body #menu>#goMatchBtn{right:12px!important;bottom:14px!important;width:min(42vw,200px)!important}
}

/* Logo sol ustte, lig sirasi ust cubugun orta-saginda */
html body #menu>.top #yxHeaderLogo{width:42px;height:42px;object-fit:contain;flex:0 0 auto;border-radius:9px;}
html body #menu>.top #yxHeaderRank{display:flex;align-items:center;justify-content:center;gap:8px;margin-left:auto;margin-right:clamp(12px,5vw,90px);color:#ffda85;font:800 clamp(12px,1.1vw,16px)/1.2 system-ui,sans-serif;white-space:nowrap;}
html body #menu>.top #yxHeaderRank #yxRankBadge{display:inline-flex;min-width:28px;height:28px;padding:0 7px;font-size:14px;border-radius:7px;}
@media(max-width:700px){html body #menu>.top #yxHeaderLogo{width:32px;height:32px}html body #menu>.top h1{gap:7px!important;font-size:clamp(13px,3vw,20px)!important}html body #menu>.top #yxHeaderRank{margin-right:0;gap:4px;font-size:11px}html body #menu>.top #yxHeaderRank #yxRankBadge{min-width:22px;height:24px;font-size:12px}}
