/* Blue chrome on both screens: top bar (logo, navigation, breadcrumb, global switches) and header band. */

.chrome {
  background: var(--brand);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.chrome .waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.16;
  pointer-events: none;
}
.chrome > * {
  position: relative;
}
:root[data-theme="light"] .chrome :focus-visible {
  outline-color: #fff;
}

/* top bar */
.topbar {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.topbar .sp {
  margin-left: auto;
}
.logo {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.logo em {
  font-style: normal;
  color: #fcc419;
}
.logo small {
  display: block;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}
.nav {
  display: flex;
  gap: 20px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  padding: 2px 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.nav a:hover {
  color: #fff;
}
.nav a.on {
  color: #fff;
  border-color: var(--chrome-accent);
}
/* "Rechercher un athlète", right of the navigation (js/ui/athlete-search.js) */
.tsearch {
  flex: 0 1 230px;
  min-width: 150px;
  height: 26px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.74);
  box-sizing: border-box;
}
.tsearch svg {
  width: 13px;
  height: 13px;
  flex: none;
}
.tsearch input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  font-family: var(--sans);
  font-size: 12.5px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.tsearch input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.tsearch input::-webkit-search-cancel-button {
  display: none;
}
.tsearch:hover {
  border-color: rgba(255, 255, 255, 0.5);
}
.tsearch:focus-within {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.tsearch.on {
  border-color: var(--chrome-accent);
}
/* suggestions: fixed, so the top bar (overflow hidden for its waves) does not cut them */
.tsl {
  position: fixed;
  z-index: 50;
  width: 320px;
  max-height: 340px;
  overflow: auto;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line2);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}
.tsl[hidden] {
  display: none;
}
.tsl .opt {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
}
.tsl .opt b {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tsl .opt em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink3t);
  margin-left: 4px;
}
.tsl .opt span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink3t);
  white-space: nowrap;
}
.tsl .opt.all {
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink2);
}
.tsl .opt.all:first-child {
  border-top: 0;
}
.tsl .opt.on,
.tsl .opt:hover {
  background: var(--panel-hi);
}

/* "Non assignés" while recordings wait for a player */
.nav a.alert,
.nav a.alert:hover {
  color: #fcc419;
}
.nav a.alert.on {
  border-color: #fcc419;
}
.crumb {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.66);
  white-space: nowrap;
}
.crumb b {
  color: #fff;
  font-weight: 400;
}
.navlink {
  cursor: pointer;
}
.crumb a {
  color: inherit;
  text-decoration: none;
}
.crumb .navlink:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.uc {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 9.5px;
  flex: none;
  padding: 0;
  color: #fff;
  cursor: pointer;
}
.uc:hover,
.uc[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.28);
  border-color: #fff;
}
.uc:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* global switches: reference population, language, theme (filled by js/app.js) */
.globals {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: none;
}
.refrow {
  display: flex;
  align-items: center;
  gap: 10px;
}
.reflab {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.cseg,
.thm {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.32);
  flex: none;
}
.cseg button,
.thm button {
  background: transparent;
  border: 0;
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.74);
  cursor: pointer;
  line-height: 1.25;
}
.thm button {
  padding: 4px 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
}
.thm button svg {
  width: 11px;
  height: 11px;
  flex: none;
}
.cseg button + button,
.thm button + button {
  border-left: 1px solid rgba(255, 255, 255, 0.32);
}
.cseg button:hover,
.thm button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.cseg button[aria-pressed="true"],
.thm button[aria-pressed="true"] {
  background: #fff;
  color: #1e3480;
  font-weight: 500;
}
.cseg button:focus-visible,
.thm button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
:root[data-lock="1"] .thm,
:root[data-lock="1"] .lng {
  display: none;
}
.qbtn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: transparent;
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  flex: none;
}
.qbtn:hover {
  background: rgba(255, 255, 255, 0.12);
}
.qbtn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.linkbtn {
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  white-space: nowrap;
}
.linkbtn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* header band, shared */
.back {
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0 0 2px;
}
.back:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
}
.back:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.bctl {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}
.cbtn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 13px;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
  flex: none;
}
.cbtn svg {
  width: 13px;
  height: 13px;
  flex: none;
}
.cbtn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}
.cbtn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* squads band: crest, title, three figures, period */
#team .band {
  padding: 10px 0 12px;
}
#team .bt {
  display: flex;
  align-items: center;
  gap: 16px;
}
#team .crest {
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  font-family: var(--cond);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  flex: none;
  letter-spacing: 0.02em;
}
#team .tname {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: 0.005em;
  line-height: 1;
  text-transform: uppercase;
  margin: 0;
  white-space: nowrap;
}
#team .tsub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 3px;
  white-space: nowrap;
}
#team .tstats {
  display: flex;
  gap: 30px;
  margin-left: 30px;
  align-items: flex-end;
}
#team .st .v {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 32px;
  line-height: 0.85;
  letter-spacing: 0.01em;
}
#team .st .v small {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0;
}
#team .st .k {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 5px;
}
#team .psel {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 7px 11px;
}
#team .psel span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
#team .psel select {
  background: transparent;
  border: 0;
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  outline: none;
  cursor: pointer;
}
/* the chrome is blue in both themes, so its list is too */
#team .psel select option {
  background: #131d42;
  color: #fff;
}

/* player band: initials, name, tags, report button */
#player .band {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0 12px;
  min-height: 66px;
}
#player .band .back {
  margin-right: 2px;
}
#player .ava {
  width: 42px;
  height: 42px;
  flex: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: grid;
  place-items: center;
  font-family: var(--cond);
  font-weight: 600;
  font-size: 17px;
}
#player .sur {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 30px;
  line-height: 0.95;
  text-transform: uppercase;
  margin: 0;
}
#player .giv {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 4px;
  display: flex;
  gap: 7px;
  align-items: center;
}
#player .giv b {
  color: #fff;
  font-weight: 500;
}
#player .tag {
  font-size: 9.5px;
  letter-spacing: 0.1em;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0 5px;
}
