
.match-control-intro{margin-bottom:16px}
.match-control-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(340px,.95fr);gap:18px;align-items:start}
.match-control-camera-card{min-width:0}
.match-control-fixture{margin-bottom:13px}
.match-selected-info{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:center;padding:14px;border-radius:14px;background:rgba(255,255,255,.07);margin-bottom:14px}
.match-selected-info>div{display:flex;flex-direction:column;gap:4px}
.match-selected-info>div:last-child{text-align:right}
.match-selected-info span{font-size:.78rem;opacity:.72}
.match-selected-info strong{font-size:1rem}
.match-selected-info b{font-size:.8rem;opacity:.7}
.match-reader-shell{position:relative;min-height:310px;border-radius:16px;overflow:hidden;background:#080d18;border:1px solid rgba(255,255,255,.14)}
#matchCardReader{width:100%;min-height:310px}
#matchCardReader video{object-fit:cover!important}
#matchCardReader img{display:none!important}
.match-camera-idle{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;text-align:center;padding:24px;background:linear-gradient(145deg,#111b30,#07101e);color:#fff}
.match-camera-idle[hidden]{display:none}
.match-camera-idle strong{font-size:1.25rem}
.match-camera-idle span{opacity:.7}
.match-control-actions{display:flex;gap:9px;margin-top:12px}
.match-control-actions button{flex:1}
.match-manual{display:grid;grid-template-columns:1fr auto;gap:9px;align-items:end;margin-top:14px;padding-top:14px;border-top:1px solid rgba(255,255,255,.12)}
.match-manual label{display:flex;flex-direction:column;gap:6px;font-size:.82rem}
.match-manual input{text-transform:uppercase}
.match-camera-status{margin:12px 0 0}
.match-control-result-card{min-width:0}
.match-scan-placeholder,.match-scan-loading{min-height:430px;border:1px dashed rgba(255,255,255,.22);border-radius:18px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;text-align:center;padding:25px;background:rgba(0,0,0,.12)}
.match-scan-placeholder strong{font-size:1.25rem}
.match-scan-placeholder span{opacity:.7}
.match-scan-loading span{width:38px;height:38px;border:4px solid rgba(255,255,255,.2);border-top-color:currentColor;border-radius:50%;animation:matchScanSpin .8s linear infinite}
@keyframes matchScanSpin{to{transform:rotate(360deg)}}
.match-scan-result{min-height:430px;border-radius:18px;overflow:hidden;border:2px solid transparent;background:#fff;color:#172033;box-shadow:0 14px 38px rgba(0,0,0,.18)}
.match-scan-result.is-ok{border-color:#24a865}
.match-scan-result.is-warn{border-color:#e1a719}
.match-scan-result.is-bad{border-color:#d94d4d}
.match-scan-status{display:flex;gap:12px;align-items:center;padding:18px 20px;color:#fff}
.match-scan-result.is-ok .match-scan-status{background:#17864d}
.match-scan-result.is-warn .match-scan-status{background:#c58600}
.match-scan-result.is-bad .match-scan-status{background:#b93333}
.match-scan-light{width:17px;height:17px;border-radius:50%;background:#fff;box-shadow:0 0 0 6px rgba(255,255,255,.18)}
.match-scan-status p{font-size:.7rem;letter-spacing:.1em;margin:0 0 3px;opacity:.85}
.match-scan-status h2{font-size:1.55rem;margin:0;color:#fff}
.match-scan-player{display:grid;grid-template-columns:92px 1fr;gap:15px;padding:18px 20px 12px}
.match-scan-photo{width:92px;height:112px;border-radius:12px;overflow:hidden;background:#eef0f4;border:1px solid #d8dde5}
.match-scan-photo img{width:100%;height:100%;object-fit:cover}
.match-scan-photo-fallback{display:none;width:100%;height:100%;align-items:center;justify-content:center;font-size:.7rem;font-weight:800;color:#667}
.match-scan-person h3{font-size:1.35rem;margin:4px 0 4px}
.match-scan-person p{margin:4px 0}
.match-scan-team{font-weight:800}
.match-scan-discipline{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:0 20px 14px}
.match-scan-discipline>div{padding:10px;border-radius:11px;background:#f2f4f7;text-align:center}
.match-scan-discipline span{display:block;font-size:.68rem;color:#687080;margin-bottom:4px}
.match-scan-discipline strong{font-size:1rem}
.match-scan-message{margin:0 20px 12px;padding:11px 13px;border-radius:10px;background:#f4f5f7;font-weight:700}
.match-scan-detail{margin:0 20px 10px;padding:10px 13px;border-radius:10px;background:#f7f8fa;font-size:.86rem}
.match-scan-decision{margin-top:10px;padding:17px 20px;text-align:center;font-size:1.2rem}
.match-scan-result.is-ok .match-scan-decision{background:#e9f7ef;color:#126b3d}
.match-scan-result.is-warn .match-scan-decision{background:#fff6db;color:#8a5a00}
.match-scan-result.is-bad .match-scan-decision{background:#fdeaea;color:#972626}
.match-history-card{margin-top:18px}
.match-scan-history-row{display:grid;grid-template-columns:1fr auto;gap:14px;padding:11px 12px;border-bottom:1px solid rgba(255,255,255,.1);border-left:4px solid transparent}
.match-scan-history-row>div{display:flex;flex-direction:column;gap:2px}
.match-scan-history-row>div:last-child{text-align:right}
.match-scan-history-row span{font-size:.75rem;opacity:.7}
.match-scan-history-row.is-ok{border-left-color:#24a865}
.match-scan-history-row.is-warn{border-left-color:#e1a719}
.match-scan-history-row.is-bad{border-left-color:#d94d4d}
.match-scan-empty{padding:20px;text-align:center;opacity:.7}
@media(max-width:950px){
 .match-control-grid{grid-template-columns:1fr}
 .match-control-result-card{order:-1}
 .match-scan-placeholder,.match-scan-loading,.match-scan-result{min-height:360px}
}
@media(max-width:600px){
 .match-selected-info{grid-template-columns:1fr;text-align:center}
 .match-selected-info>div:last-child{text-align:center}
 .match-selected-info b{padding:2px 0}
 .match-reader-shell,#matchCardReader{min-height:260px}
 .match-manual{grid-template-columns:1fr}
 .match-scan-player{grid-template-columns:78px 1fr}
 .match-scan-photo{width:78px;height:96px}
 .match-scan-discipline{grid-template-columns:1fr 1fr}
 .match-scan-status h2{font-size:1.3rem}
}

#matchVideo{
  display:block;
  width:100%;
  min-height:310px;
  max-height:430px;
  object-fit:cover;
  background:#05080e;
}
.match-code-guide{
  pointer-events:none;
  position:absolute;
  left:6%;
  right:6%;
  top:50%;
  transform:translateY(-50%);
  height:120px;
  border:2px solid rgba(255,255,255,.95);
  border-radius:12px;
  box-shadow:0 0 0 999px rgba(0,0,0,.18);
  display:flex;
  align-items:flex-end;
  justify-content:center;
}
.match-code-guide span{
  position:absolute;
  left:4%;
  right:4%;
  top:50%;
  height:2px;
  background:#ffdc32;
  box-shadow:0 0 10px rgba(255,220,50,.9);
}
.match-code-guide small{
  margin-bottom:7px;
  color:#fff;
  background:rgba(0,0,0,.62);
  padding:4px 8px;
  border-radius:999px;
  font-size:.65rem;
  letter-spacing:.06em;
}
.match-camera-tools{
  display:flex;
  gap:9px;
  margin-top:12px;
}
.match-camera-tools button{flex:1}
.match-engine{
  margin-top:10px;
  font-size:.78rem;
  font-weight:800;
  opacity:.78;
}
.match-scan-tips{
  display:flex;
  flex-direction:column;
  gap:3px;
  margin-top:10px;
  padding:10px 12px;
  border-radius:11px;
  background:rgba(255,255,255,.07);
  font-size:.78rem;
}

