/* LIQ_GAMEPLAY_UI_POLISH_V47
   Visual-only polish for Coach Office + Player Market.
   No gameplay behavior, data flow, or scheduler semantics are changed. */

/* =========================================================
   COACH OFFICE
   ========================================================= */

.coach-club-context-v27 .coach-office{
  border-top:0 !important;
  border:1px solid rgba(255,255,255,.10) !important;
  border-radius:22px !important;
  overflow:hidden;
  box-shadow:
    0 28px 80px rgba(0,0,0,.44),
    0 0 0 1px rgba(255,255,255,.015) inset !important;
  background:#0a1118;
}

.coach-club-context-v27 .coach-office-header{
  border-bottom:0 !important;
  padding:26px 28px !important;
  gap:22px;
  min-height:118px;
}

.coach-club-context-v27 .coach-office-header > div:first-of-type{
  min-width:0;
}

.coach-club-context-v27 .coach-office-header small{
  color:var(--club-accent-ui,var(--club-accent,#9fb0bf)) !important;
  font-size:10px !important;
  font-weight:900 !important;
  letter-spacing:.14em !important;
}

.coach-club-context-v27 .coach-office-header h2{
  margin-top:7px !important;
  line-height:1.05 !important;
  letter-spacing:-.035em !important;
}

.coach-club-context-v27 .coach-brand-v27{
  width:58px !important;
  height:58px !important;
  flex-basis:58px !important;
  padding:7px !important;
  border-radius:15px !important;
  background:rgba(255,255,255,.96) !important;
  box-shadow:
    0 10px 30px rgba(0,0,0,.24),
    0 0 0 1px rgba(255,255,255,.20) inset;
}

.coach-club-context-v27 .coach-office-actions{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  flex-wrap:wrap !important;
  gap:9px !important;
}

.coach-club-context-v27 .coach-office-actions button{
  min-height:44px !important;
  padding:0 17px !important;
  border-radius:12px !important;
  border:1px solid rgba(255,255,255,.12) !important;
  background:
    linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.025)),
    rgba(13,23,33,.86) !important;
  color:#e8eef4 !important;
  box-shadow:
    0 7px 18px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.05) !important;
  font-size:11px !important;
  font-weight:850 !important;
  line-height:1.05 !important;
  letter-spacing:.015em !important;
  text-transform:uppercase;
  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease,
    box-shadow .16s ease,
    color .16s ease !important;
}

.coach-club-context-v27 .coach-office-actions button:hover:not(:disabled){
  transform:translateY(-1px);
  border-color:rgba(var(--club-accent-ui-rgb,var(--club-accent-rgb,110,130,150)),.55) !important;
  background:
    linear-gradient(180deg,rgba(var(--club-accent-ui-rgb,var(--club-accent-rgb,110,130,150)),.14),rgba(255,255,255,.035)),
    rgba(13,23,33,.94) !important;
  box-shadow:
    0 10px 24px rgba(0,0,0,.25),
    0 0 0 1px rgba(var(--club-accent-ui-rgb,var(--club-accent-rgb,110,130,150)),.08) inset !important;
}

.coach-club-context-v27 .coach-office-actions button:active:not(:disabled){
  transform:translateY(0);
}

.coach-club-context-v27 .coach-office-actions button:focus-visible{
  outline:2px solid var(--club-accent-ui,var(--club-accent,#9fb0bf));
  outline-offset:2px;
}

.coach-club-context-v27 .coach-office-actions .coach-tool{
  background:rgba(14,24,34,.78) !important;
  color:#cbd7e2 !important;
  border-color:rgba(255,255,255,.10) !important;
}

.coach-club-context-v27 .coach-office-actions .save{
  background:
    linear-gradient(180deg,rgba(var(--club-accent-ui-rgb,var(--club-accent-rgb,110,130,150)),.30),rgba(var(--club-accent-ui-rgb,var(--club-accent-rgb,110,130,150)),.18)),
    #162534 !important;
  border-color:rgba(var(--club-accent-ui-rgb,var(--club-accent-rgb,110,130,150)),.50) !important;
  color:#fff !important;
}

.coach-club-context-v27 .coach-office-actions [data-coach-release-match]{
  min-width:205px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.13),rgba(255,255,255,.01)),
    var(--club-accent-ui,var(--club-accent,#187fb0)) !important;
  border-color:rgba(255,255,255,.15) !important;
  color:var(--club-on-accent-ui,var(--club-on-accent,#fff)) !important;
  box-shadow:
    0 12px 30px rgba(var(--club-accent-ui-rgb,var(--club-accent-rgb,30,130,180)),.24),
    inset 0 1px 0 rgba(255,255,255,.18) !important;
}

.coach-club-context-v27 .coach-office-actions [data-coach-release-match]:hover:not(:disabled){
  background:
    linear-gradient(180deg,rgba(255,255,255,.20),rgba(255,255,255,.04)),
    var(--club-accent-ui,var(--club-accent,#187fb0)) !important;
  box-shadow:
    0 15px 36px rgba(var(--club-accent-ui-rgb,var(--club-accent-rgb,30,130,180)),.32),
    inset 0 1px 0 rgba(255,255,255,.22) !important;
}

.coach-club-context-v27 .coach-office-actions [data-coach-release-match].released{
  background:#0c6d50 !important;
  border-color:#198d6d !important;
  color:#ecfff8 !important;
  box-shadow:0 10px 26px rgba(12,109,80,.22) !important;
}

.coach-club-context-v27 .coach-office-actions .close{
  background:rgba(9,16,23,.62) !important;
  border-color:rgba(255,255,255,.08) !important;
  color:#aebbc7 !important;
  box-shadow:none !important;
}

.coach-club-context-v27 .coach-office-actions .close:hover{
  color:#fff !important;
  border-color:rgba(255,255,255,.18) !important;
  background:rgba(255,255,255,.055) !important;
}

.coach-club-context-v27 .coach-office-actions button:disabled{
  opacity:.5 !important;
  cursor:not-allowed !important;
  transform:none !important;
}

.coach-club-context-v27 .coach-save-state{
  color:#92a2b1 !important;
  font-size:10px !important;
  font-weight:800 !important;
  letter-spacing:.08em !important;
}

/* =========================================================
   PLAYER MARKET - institutional surface
   ========================================================= */

.liq-market-modal{
  --mkt-bg:#071018;
  --mkt-surface:#0b1620;
  --mkt-surface-2:#101e2a;
  --mkt-surface-3:#142532;
  --mkt-line:rgba(154,183,204,.14);
  --mkt-line-strong:rgba(154,183,204,.24);
  --mkt-text:#f2f6f9;
  --mkt-muted:#8fa2b3;
  --mkt-muted-2:#6e8294;
  --mkt-accent:#25a7dc;
  --mkt-accent-soft:rgba(37,167,220,.13);
  --mkt-accent-line:rgba(37,167,220,.38);

  background:rgba(3,8,12,.78) !important;
  backdrop-filter:blur(12px) saturate(.92);
  -webkit-backdrop-filter:blur(12px) saturate(.92);
}

.liq-market-dialog{
  width:min(1440px,calc(100vw - 44px)) !important;
  height:min(860px,calc(100vh - 36px)) !important;
  max-width:none !important;
  border:1px solid rgba(255,255,255,.09) !important;
  border-radius:24px !important;
  overflow:hidden !important;
  background:var(--mkt-bg) !important;
  color:var(--mkt-text) !important;
  box-shadow:
    0 36px 100px rgba(0,0,0,.52),
    0 0 0 1px rgba(255,255,255,.015) inset !important;
}

.liq-market-head{
  min-height:132px !important;
  padding:27px 30px 24px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:28px;
  color:var(--mkt-text) !important;
  background:
    radial-gradient(circle at 86% 18%,rgba(37,167,220,.14),transparent 34%),
    linear-gradient(115deg,#0c2230 0%,#0a1923 48%,#08131b 100%) !important;
  border-bottom:1px solid var(--mkt-line) !important;
}

.liq-market-head > div > span{
  display:block;
  margin-bottom:7px !important;
  color:#45c8ff !important;
  font-size:10px !important;
  font-weight:900 !important;
  letter-spacing:.18em !important;
}

.liq-market-head h2{
  margin:0 !important;
  color:#fff !important;
  font-size:30px !important;
  line-height:1 !important;
  letter-spacing:-.035em !important;
}

.liq-market-head p{
  margin:8px 0 0 !important;
  color:#9fb0bf !important;
  font-size:12px !important;
}

.liq-market-close{
  width:46px !important;
  height:46px !important;
  flex:0 0 46px;
  display:grid !important;
  place-items:center;
  padding:0 !important;
  border:1px solid rgba(255,255,255,.11) !important;
  border-radius:14px !important;
  background:rgba(255,255,255,.055) !important;
  color:#dbe5ec !important;
  font-size:29px !important;
  font-weight:300 !important;
  line-height:1 !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
  transition:.16s ease !important;
}

.liq-market-close:hover{
  color:#fff !important;
  border-color:rgba(255,255,255,.22) !important;
  background:rgba(255,255,255,.10) !important;
  transform:translateY(-1px);
}

.liq-market-tabs{
  display:flex !important;
  align-items:center;
  gap:5px !important;
  padding:16px 22px 0 !important;
  background:var(--mkt-bg) !important;
  border:0 !important;
}

.liq-market-tabs button{
  min-height:37px !important;
  padding:0 16px !important;
  border:1px solid transparent !important;
  border-radius:10px !important;
  background:transparent !important;
  color:#8397a8 !important;
  font-size:11px !important;
  font-weight:850 !important;
  letter-spacing:.02em !important;
  box-shadow:none !important;
  transition:.15s ease !important;
}

.liq-market-tabs button:hover{
  color:#dce7ef !important;
  background:rgba(255,255,255,.035) !important;
}

.liq-market-tabs button.on{
  color:#fff !important;
  background:var(--mkt-accent-soft) !important;
  border-color:var(--mkt-accent-line) !important;
  box-shadow:inset 0 0 0 1px rgba(37,167,220,.035) !important;
}

.liq-market-filters,
.liq-market-advanced{
  display:grid !important;
  gap:11px !important;
  padding:18px 22px !important;
  background:var(--mkt-bg) !important;
  border:0 !important;
}

.liq-market-filters{
  grid-template-columns:minmax(220px,1.7fr) minmax(130px,.7fr) minmax(145px,.85fr) minmax(150px,.85fr) auto auto !important;
  align-items:end !important;
}

.liq-market-advanced{
  grid-template-columns:repeat(6,minmax(0,1fr)) !important;
  border-top:1px solid rgba(255,255,255,.04) !important;
  background:#08131c !important;
}

.liq-market-filters label,
.liq-market-advanced label{
  display:flex !important;
  flex-direction:column !important;
  gap:7px !important;
  color:#7f94a6 !important;
  font-size:9px !important;
  font-weight:900 !important;
  letter-spacing:.11em !important;
  text-transform:uppercase;
}

.liq-market-filters input,
.liq-market-filters select,
.liq-market-advanced input,
.liq-market-advanced select{
  height:44px !important;
  min-height:44px !important;
  padding:0 13px !important;
  border:1px solid var(--mkt-line) !important;
  border-radius:11px !important;
  outline:none !important;
  background:#0d1923 !important;
  color:#eaf1f6 !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025) !important;
  font-size:12px !important;
  font-weight:650 !important;
  transition:.15s ease !important;
}

.liq-market-filters input::placeholder,
.liq-market-advanced input::placeholder{
  color:#607587 !important;
}

.liq-market-filters input:focus,
.liq-market-filters select:focus,
.liq-market-advanced input:focus,
.liq-market-advanced select:focus{
  border-color:var(--mkt-accent-line) !important;
  box-shadow:
    0 0 0 3px rgba(37,167,220,.075),
    inset 0 1px 0 rgba(255,255,255,.03) !important;
}

.liq-market-more,
.liq-market-search,
.liq-market-reset{
  min-height:44px !important;
  height:44px !important;
  padding:0 17px !important;
  border-radius:11px !important;
  font-size:11px !important;
  font-weight:900 !important;
  letter-spacing:.015em !important;
  transition:.16s ease !important;
}

.liq-market-more,
.liq-market-reset{
  border:1px solid var(--mkt-line-strong) !important;
  background:#0d1923 !important;
  color:#bdcbd6 !important;
  box-shadow:none !important;
}

.liq-market-more:hover,
.liq-market-reset:hover,
.liq-market-more.on{
  border-color:var(--mkt-accent-line) !important;
  color:#fff !important;
  background:var(--mkt-accent-soft) !important;
}

.liq-market-search{
  border:1px solid rgba(255,255,255,.07) !important;
  background:
    linear-gradient(180deg,rgba(255,255,255,.11),rgba(255,255,255,0)),
    #167eaa !important;
  color:#fff !important;
  box-shadow:0 10px 24px rgba(22,126,170,.18) !important;
}

.liq-market-search:hover{
  transform:translateY(-1px);
  background:
    linear-gradient(180deg,rgba(255,255,255,.16),rgba(255,255,255,.01)),
    #178bbd !important;
  box-shadow:0 13px 28px rgba(22,126,170,.25) !important;
}

.liq-market-summary{
  min-height:38px !important;
  display:flex !important;
  align-items:center !important;
  padding:0 23px !important;
  border-top:1px solid rgba(255,255,255,.04) !important;
  border-bottom:1px solid var(--mkt-line) !important;
  background:#0b151e !important;
  color:#7890a2 !important;
  font-size:10px !important;
  font-weight:750 !important;
  letter-spacing:.025em !important;
}

.liq-market-layout{
  min-height:0 !important;
  height:calc(100% - 132px - 54px - 98px - 38px) !important;
  display:grid !important;
  grid-template-columns:minmax(500px,1.35fr) minmax(390px,.9fr) !important;
  background:var(--mkt-bg) !important;
}

.liq-market-results{
  min-width:0;
  overflow:auto !important;
  padding:14px 14px 18px 18px !important;
  background:#09131b !important;
  border-right:1px solid var(--mkt-line) !important;
  scrollbar-color:#3c5364 transparent;
  scrollbar-width:thin;
}

.liq-market-results::-webkit-scrollbar,
.liq-market-detail::-webkit-scrollbar{
  width:9px;
}

.liq-market-results::-webkit-scrollbar-thumb,
.liq-market-detail::-webkit-scrollbar-thumb{
  border:2px solid transparent;
  border-radius:99px;
  background:#364c5d;
  background-clip:padding-box;
}

.liq-market-row{
  width:100% !important;
  min-height:78px !important;
  margin:0 0 8px !important;
  padding:12px 14px !important;
  display:grid !important;
  grid-template-columns:auto minmax(0,1fr) auto !important;
  align-items:center !important;
  gap:13px !important;
  text-align:left !important;
  border:1px solid rgba(143,166,184,.13) !important;
  border-radius:14px !important;
  background:
    linear-gradient(180deg,rgba(255,255,255,.025),rgba(255,255,255,.006)),
    #0d1822 !important;
  color:var(--mkt-text) !important;
  box-shadow:none !important;
  transition:
    border-color .14s ease,
    background .14s ease,
    transform .14s ease,
    box-shadow .14s ease !important;
}

.liq-market-row:hover{
  transform:translateY(-1px);
  border-color:rgba(37,167,220,.32) !important;
  background:
    linear-gradient(180deg,rgba(37,167,220,.055),rgba(255,255,255,.008)),
    #0f1c27 !important;
  box-shadow:0 8px 22px rgba(0,0,0,.14) !important;
}

.liq-market-row.selected,
.liq-market-row.active,
.liq-market-row[aria-selected="true"]{
  border-color:var(--mkt-accent-line) !important;
  background:
    linear-gradient(180deg,rgba(37,167,220,.10),rgba(37,167,220,.035)),
    #0f1c27 !important;
  box-shadow:inset 3px 0 0 var(--mkt-accent) !important;
}

.liq-market-identity{
  display:flex !important;
  align-items:center !important;
  gap:7px !important;
}

.liq-market-pos{
  min-width:42px !important;
  height:42px !important;
  display:grid !important;
  place-items:center !important;
  border-radius:10px !important;
  background:#103044 !important;
  color:#dff5ff !important;
  border:1px solid rgba(63,184,232,.23) !important;
  font-size:13px !important;
  font-weight:900 !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}

.liq-market-player{
  min-width:0;
}

.liq-market-player b{
  display:block;
  color:#fff !important;
  font-size:14px !important;
  line-height:1.15 !important;
  letter-spacing:-.01em;
}

.liq-market-player small{
  display:block;
  margin-top:4px !important;
  color:#8598a9 !important;
  font-size:10px !important;
}

.liq-market-player em{
  display:block;
  margin-top:5px !important;
  color:#4bbcf0 !important;
  font-size:9px !important;
  font-style:normal !important;
  font-weight:800 !important;
  letter-spacing:.025em !important;
}

.liq-market-fin{
  min-width:190px;
  text-align:right !important;
}

.liq-market-fin b{
  display:block;
  color:#f1f6fa !important;
  font-size:13px !important;
  font-weight:900 !important;
  white-space:nowrap;
}

.liq-market-fin small{
  display:block;
  margin-top:5px !important;
  color:#74899a !important;
  font-size:9px !important;
}

.liq-market-detail{
  min-width:0;
  overflow:auto !important;
  padding:18px !important;
  background:
    radial-gradient(circle at 80% 4%,rgba(37,167,220,.055),transparent 28%),
    #08121a !important;
  color:var(--mkt-text) !important;
  scrollbar-color:#3c5364 transparent;
  scrollbar-width:thin;
}

.liq-market-empty{
  min-height:230px;
  display:grid !important;
  place-items:center !important;
  align-content:center !important;
  padding:28px !important;
  color:#718698 !important;
  text-align:center !important;
  font-size:12px !important;
}

.liq-market-detail > .liq-market-empty::before{
  content:"◌";
  display:block;
  margin-bottom:10px;
  color:#31566c;
  font-size:34px;
  font-weight:300;
}

.liq-market-card{
  border:1px solid var(--mkt-line) !important;
  border-radius:18px !important;
  background:
    linear-gradient(180deg,rgba(255,255,255,.025),rgba(255,255,255,.008)),
    #0c1822 !important;
  color:var(--mkt-text) !important;
  box-shadow:0 14px 38px rgba(0,0,0,.16) !important;
}

.liq-market-player-head{
  padding:18px !important;
  border-bottom:1px solid var(--mkt-line) !important;
}

.liq-market-player-head h3{
  color:#fff !important;
  letter-spacing:-.025em !important;
}

.liq-market-player-head p{
  color:#8ea1b0 !important;
}

.liq-market-kicker{
  color:#45c8ff !important;
  font-size:9px !important;
  font-weight:900 !important;
  letter-spacing:.14em !important;
}

.liq-market-overall{
  border:1px solid rgba(37,167,220,.20) !important;
  background:rgba(37,167,220,.075) !important;
  border-radius:13px !important;
  color:#fff !important;
}

.liq-market-overall span{
  color:#75ccef !important;
}

.liq-market-visual,
.liq-market-bio,
.liq-market-statgrid{
  border-color:var(--mkt-line) !important;
}

.liq-market-statgrid > div,
.liq-market-bio > div{
  border:1px solid rgba(142,168,187,.11) !important;
  border-radius:11px !important;
  background:#0c1721 !important;
}

.liq-market-statgrid span,
.liq-market-bio span{
  color:#718799 !important;
}

.liq-market-statgrid b,
.liq-market-bio b{
  color:#eef5f9 !important;
}

.liq-market-radar .grid{
  stroke:#304654 !important;
}

.liq-market-radar .shape{
  fill:rgba(37,167,220,.18) !important;
  stroke:#38b8eb !important;
}

.liq-market-radar .labels{
  fill:#839aaa !important;
}

.liq-market-news-card{
  border:1px solid var(--mkt-line) !important;
  border-radius:14px !important;
  background:#0d1822 !important;
  color:#dce7ef !important;
}

.liq-market-news-card h4{
  color:#fff !important;
}

.liq-market-news-card p,
.liq-market-news-card time{
  color:#7f94a5 !important;
}

.liq-market-error{
  margin:16px !important;
  padding:14px 16px !important;
  border:1px solid rgba(218,83,83,.28) !important;
  border-radius:12px !important;
  background:rgba(132,38,38,.13) !important;
  color:#ffc2c2 !important;
}

/* Keep native semantics and keyboard visibility. */
.liq-market-dialog button:focus-visible,
.liq-market-dialog input:focus-visible,
.liq-market-dialog select:focus-visible{
  outline:2px solid var(--mkt-accent) !important;
  outline-offset:2px !important;
}

@media(max-width:1100px){
  .liq-market-filters{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
  .liq-market-advanced{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
  .liq-market-layout{
    grid-template-columns:1fr !important;
    overflow:auto;
  }
  .liq-market-results{
    min-height:360px;
    border-right:0 !important;
    border-bottom:1px solid var(--mkt-line) !important;
  }
  .liq-market-detail{
    min-height:420px;
  }
}

@media(max-width:760px){
  .coach-club-context-v27 .coach-office-header{
    padding:20px !important;
  }

  .coach-club-context-v27 .coach-office-actions{
    width:100%;
    justify-content:flex-start !important;
  }

  .coach-club-context-v27 .coach-office-actions button{
    flex:1 1 145px;
  }

  .liq-market-dialog{
    width:100vw !important;
    height:100vh !important;
    border-radius:0 !important;
  }

  .liq-market-head{
    padding:21px !important;
    min-height:112px !important;
  }

  .liq-market-head h2{
    font-size:25px !important;
  }

  .liq-market-tabs{
    overflow:auto;
    padding-left:14px !important;
    padding-right:14px !important;
  }

  .liq-market-tabs button{
    flex:0 0 auto;
  }

  .liq-market-filters,
  .liq-market-advanced{
    grid-template-columns:1fr 1fr !important;
    padding-left:14px !important;
    padding-right:14px !important;
  }

  .liq-market-layout{
    height:auto !important;
  }

  .liq-market-fin{
    min-width:0;
  }
}
