/* Sport 7.14.83 – forma hráče: společné odznaky pro tablet, body a termíny. */
.volley-form-badge{
  display:inline-flex!important;align-items:center;justify-content:center;
  gap:2px;flex:0 0 auto;min-width:29px;height:23px;padding:1px 5px;
  border-radius:9px;border:1px solid transparent;vertical-align:middle;
  white-space:nowrap;line-height:1!important;
  font:800 11px/1.1 Inter,system-ui,sans-serif;
}
.volley-form-badge.is-win{background:#fff2e4;color:#ab4200;border-color:#fbd4ae;}
.volley-form-badge.is-loss{background:#e9f5ff;color:#175cbb;border-color:#c6dfff;}
.volley-form-badge.is-win.is-strong{background:#ffe5ce;border-color:#f6a35f;}
.volley-form-badge.is-loss.is-strong{background:#d7efff;border-color:#78c3fb;}
.volley-form-glyph{font-size:15px;line-height:1;display:inline-block;}
.volley-form-number{font-size:11px;line-height:1;font-variant-numeric:tabular-nums;}
html[data-theme="dark"] .volley-form-badge.is-win{background:#593016;color:#ffbb72;border-color:#ad6431;}
html[data-theme="dark"] .volley-form-badge.is-loss{background:#143960;color:#9fd9ff;border-color:#386b9a;}

/* Body / Pořadí: přiřadit k názvu, zachovat sticky sloupec. */
body.page-volejbal_body .volley-points-table.volley-season-table .volley-form-name{
  display:flex;align-items:center;gap:5px;min-width:0;max-width:100%;
}
body.page-volejbal_body .volley-points-table.volley-season-table .volley-form-name>strong{
  flex:0 1 auto;min-width:0;overflow-wrap:anywhere;
}
body.page-volejbal_body .volley-points-table .volley-form-name>.volley-form-badge{
  display:inline-flex!important;margin-left:1px;
}

/* Detail termínu: ikonka je součástí hráčského chipu bez dalšího sloupce. */
body.sport-volleyball .v713-player-chip>span>.volley-form-badge{
  display:inline-flex!important;flex:0 0 auto;height:19px;min-width:26px;padding:1px 3px;
  border-radius:7px;gap:1px;margin-left:1px;
}
body.sport-volleyball .v713-player-chip .volley-form-glyph{font-size:12px;}
body.sport-volleyball .v713-player-chip .volley-form-number{font-size:9px;}

/* Tablet: mezi dlouhodobým rankem a jménem nic nového netlačit, forma je za jménem. */
.tv68 .tv83-name-form{min-width:0;max-width:100%;display:flex;align-items:center;gap:5px;overflow:hidden;}
.tv68 .tv83-name-form>strong,
.tv68 .tv83-name-form>.tv68-roster-name{
  min-width:0;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.tv68 .tv83-name-form>strong{font-weight:750;font-size:clamp(13px,1.15vw,20px);color:#071c50;line-height:1.1;}
.tv68 .tv83-name-form>.volley-form-badge{height:22px;min-width:28px;padding:1px 3px;}
.tv68 .tv83-name-form .volley-form-glyph{font-size:14px;}
.tv68 .tv83-name-form .volley-form-number{font-size:10px;}
@media(max-width:1599px){
  .tv68 .tv83-name-form{gap:3px;}
  .tv68 .tv83-name-form>strong{font-size:clamp(11px,1.25vw,17px);}
  .tv68 .tv83-name-form>.volley-form-badge{height:20px;min-width:25px;padding:1px 2px;}
}
@media(max-width:700px){
  .tv68 .tv83-name-form .volley-form-glyph{font-size:12px;}
  .tv68 .tv83-name-form .volley-form-number{font-size:9px;}
  .tv68 .tv83-name-form>.volley-form-badge{height:19px;min-width:24px;}
  body.sport-volleyball .v713-player-chip .volley-form-badge{height:18px;min-width:24px;}
}


/* Sport 7.14.86 – clear current-form explanation and linked volleyball profiles in Body. */
body.page-volejbal_body .volley-form-help-tooltip{
  position:fixed;z-index:9999;max-width:min(310px,calc(100vw - 16px));
  padding:9px 12px;border-radius:10px;
  color:#f8fbff;background:#142f57;border:1px solid #54759d;
  box-shadow:0 8px 26px rgba(10,26,50,.25);
  font:700 12px/1.5 Inter,system-ui,sans-serif;
  text-align:left;pointer-events:none;white-space:normal;
}
body.page-volejbal_body .volley-form-help-tooltip[hidden]{display:none!important}
body.page-volejbal_body .volley-points-table .volley-form-badge:focus-visible{
  outline:2px solid var(--primary,#1769e0);outline-offset:2px;
}
body.page-volejbal_body .volley-points-table.volley-season-table .volley-form-name>.volley-season-player-link{
  flex:0 1 auto;min-width:0;max-width:100%;display:block;
  color:inherit;text-decoration:none;overflow-wrap:anywhere;
}
body.page-volejbal_body .volley-points-table.volley-season-table .volley-form-name>.volley-season-player-link:hover{
  color:var(--primary,#1769e0);text-decoration:underline;text-underline-offset:2px;
}
body.page-volejbal_body .volley-points-table.volley-season-table .volley-form-name>.volley-season-player-link:focus-visible,
body.page-volejbal_body .volley-points-table .volley-season-avatar-link:focus-visible,
body.page-volejbal_body .volley-score-name>.volley-season-player-link:focus-visible{
  outline:2px solid var(--primary,#1769e0);outline-offset:2px;border-radius:4px;
}
body.page-volejbal_body .volley-points-table .volley-season-avatar-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
body.page-volejbal_body .volley-score-name>.volley-season-player-link{color:inherit;text-decoration:none;display:block;min-width:0}
body.page-volejbal_body .volley-score-name>.volley-season-player-link:hover{color:var(--primary,#1769e0);text-decoration:underline;text-underline-offset:2px}


/* 7.14.87 – repair mobile standings after the avatar became a link in 7.14.86.
   The original two-column player grid was counting the (visually hidden) avatar
   anchor as a second cell and relegating the name to a zero-width next row.
   Keep the name link as the mobile profile entry point; desktop retains both. */
@media (max-width:600px) {
  body.page-volejbal_body .volley-points-table.volley-season-table
    .player-cell-content > .volley-season-avatar-link {
    display:none!important;
  }
  body.page-volejbal_body .volley-points-table.volley-season-table
    .player-cell-content {
    display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center;gap:5px;
  }
  body.page-volejbal_body .volley-points-table.volley-season-table
    .player-cell-content > span:last-child {
    grid-column:2;min-width:0;
  }
  body.page-volejbal_body .volley-points-table.volley-season-table
    .volley-form-name {
    display:flex;flex-wrap:wrap;align-items:center;gap:2px 4px;
    min-width:0;max-width:100%;
  }
  body.page-volejbal_body .volley-points-table.volley-season-table
    .volley-form-name > .volley-season-player-link {
    display:block;flex:1 1 auto;min-width:0;max-width:100%;
    overflow-wrap:normal;word-break:normal;hyphens:auto;
  }
  body.page-volejbal_body .volley-points-table.volley-season-table
    .volley-form-name > .volley-season-player-link strong {
    white-space:normal;word-break:normal;overflow-wrap:normal;hyphens:auto;
  }
}


/* 7.14.96 – interaktivní forma v Nejbližším, Body, termínech, na tabletu a v profilu. */
.volley-form-badge{cursor:pointer;appearance:none;margin:0;user-select:none;touch-action:manipulation;}
.volley-form-badge:focus-visible{outline:2px solid #257cef;outline-offset:2px;}
.volley-form-badge.is-neutral{color:#5a6b81;background:#f0f3f8;border-color:#d7dfeb;}
html[data-theme=dark] .volley-form-badge.is-neutral{color:#c2d0e2;background:#273448;border-color:#465670;}
/* The player-card click overlay is behind the form control. */
#hraci.v713-roster .v713-player-chip .volley-form-badge{position:relative;z-index:3;}
/* Body had a route-specific tooltip; let the same helper work on every volleyball page. */
body.sport-volleyball .volley-form-help-tooltip{
  position:fixed;z-index:2147482000;max-width:min(330px,calc(100vw - 16px));
  padding:9px 12px;border-radius:10px;color:#f8fbff;background:#142f57;
  border:1px solid #54759d;box-shadow:0 8px 26px rgba(10,26,50,.25);
  font:700 12px/1.5 Inter,system-ui,sans-serif;text-align:left;
  pointer-events:none;white-space:normal;
}
body.sport-volleyball .volley-form-help-tooltip[hidden]{display:none!important;}
#sportVolleyballFormLegend{color:#13264b;background:#fff;width:min(450px,calc(100vw - 24px));
  padding:0;margin:auto;border:1px solid #cad9ec;border-radius:18px;
  box-shadow:0 18px 70px rgba(8,28,65,.28);font:400 14px/1.4 Inter,system-ui,sans-serif;max-height:calc(100dvh - 24px);overflow:auto;}
#sportVolleyballFormLegend::backdrop{background:rgba(9,23,46,.52);}
#sportVolleyballFormLegend .vfl-head{padding:15px 16px;display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #e6edf7;}
#sportVolleyballFormLegend .vfl-head h2{margin:0;font-size:18px;font-weight:850;color:inherit;}
#sportVolleyballFormLegend .vfl-close{font:600 24px/1 Inter,system-ui,sans-serif;width:35px;height:35px;min-height:35px;border-radius:9px;border:1px solid #d9e3f1;background:#f6f9ff;color:#18365b;cursor:pointer;}
#sportVolleyballFormLegend .vfl-close:focus-visible{outline:2px solid #1769e0;outline-offset:2px;}
#sportVolleyballFormLegend .vfl-current{margin:12px 16px;padding:11px 13px;background:#edf5ff;color:#1255b1;border-radius:11px;font-weight:850;font-size:13px;}
#sportVolleyballFormLegend .vfl-rows{margin:0 16px;display:grid;gap:5px;}
#sportVolleyballFormLegend .vfl-rows>div{display:grid;align-items:center;gap:7px;grid-template-columns:50px 1fr auto;padding:7px 9px;border:1px solid #e5ecf5;border-radius:10px;}
#sportVolleyballFormLegend .vfl-symbol{font-size:19px;white-space:nowrap;line-height:1.1;}
#sportVolleyballFormLegend .vfl-rows strong{font-weight:800;font-size:12px;}
#sportVolleyballFormLegend .vfl-rows small{color:#667996;font-size:10px;font-weight:650;text-align:right;}
#sportVolleyballFormLegend .vfl-foot{font-size:12px;color:#526783;margin:13px 16px 17px;line-height:1.5;}
html[data-theme=dark] #sportVolleyballFormLegend{background:#13213a;color:#f2f6ff;border-color:#3b5272;}
html[data-theme=dark] #sportVolleyballFormLegend .vfl-head{border-color:#324765;}
html[data-theme=dark] #sportVolleyballFormLegend .vfl-close{color:#e0eaff;background:#233c59;border-color:#4c6082;}
html[data-theme=dark] #sportVolleyballFormLegend .vfl-current{color:#acd1ff;background:#203958;}
html[data-theme=dark] #sportVolleyballFormLegend .vfl-rows>div{border-color:#304461;}
html[data-theme=dark] #sportVolleyballFormLegend .vfl-rows small,
html[data-theme=dark] #sportVolleyballFormLegend .vfl-foot{color:#afc0d9;}
@media(max-width:430px){#sportVolleyballFormLegend .vfl-rows>div{grid-template-columns:38px minmax(0,1fr);gap:3px 7px;}
#sportVolleyballFormLegend .vfl-rows small{grid-column:2;text-align:left;}}

/* 7.14.97 – one icon at all streak thresholds: fixed height in roster chips. */
body.sport-volleyball .v713-player-chip>span>.volley-form-badge{
  box-sizing:border-box;max-height:19px;align-self:center;vertical-align:middle;
  flex-shrink:0;font-size:10px;line-height:1!important;white-space:nowrap;
}
body.sport-volleyball .v713-player-chip .volley-form-glyph{
  display:inline-flex;align-items:center;justify-content:center;max-height:15px;
  font-size:12px;line-height:1!important;white-space:nowrap;
}
.volley-form-badge.is-strong .volley-form-glyph{white-space:nowrap;}
#sportVolleyballFormLegend .vfl-rows .vfl-symbol{
  display:inline-flex;align-items:center;justify-content:center;
  width:34px;height:26px;font-size:20px;line-height:1;vertical-align:middle;
}


/* 7.14.98 – frameless compact form control inside volleyball roster chips.
   Inline icon + number must not dictate row height; keep the whole button
   keyboard accessible and enlarge its clickable area without layout cost. */
body.sport-volleyball .v713-player-chip>span>.volley-form-badge,
html[data-theme="dark"] body.sport-volleyball .v713-player-chip>span>.volley-form-badge{
  box-sizing:border-box!important;
  display:inline-flex!important;
  position:relative;
  align-items:center!important;
  justify-content:center!important;
  align-self:center!important;
  flex:0 0 auto!important;
  gap:2px!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  height:18px!important;
  min-height:0!important;
  max-height:18px!important;
  padding:0!important;
  margin:0 0 0 2px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  vertical-align:middle!important;
  line-height:1!important;
  white-space:nowrap;
  cursor:pointer;
}
body.sport-volleyball .v713-player-chip>span>.volley-form-badge::before{
  content:"";
  position:absolute;
  inset:-5px -5px;
}
body.sport-volleyball .v713-player-chip .volley-form-glyph{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  width:auto;
  height:16px;
  max-height:16px!important;
  font-size:15px!important;
  line-height:1!important;
}
body.sport-volleyball .v713-player-chip .volley-form-number{
  display:inline-block;
  font-size:11px!important;
  line-height:1!important;
  font-weight:850;
  font-variant-numeric:tabular-nums;
}


/* Sport 7.14.100 – Body: the 7.14.98 frameless rule covered term chips only.
   Both the season ranking and quick-scoring rows use the same button class,
   but a different DOM container. Keep the accessible legend and real streak
   data intact; do not allow global button min-height to stretch a table row. */
body.page-volejbal_body .volley-form-badge,
html[data-theme="dark"] body.page-volejbal_body .volley-form-badge,
body.page-volejbal_body .volley-points-table .volley-form-name > .volley-form-badge {
  appearance:none!important;
  -webkit-appearance:none!important;
  box-sizing:border-box!important;
  display:inline-flex!important;
  position:relative;
  align-items:center!important;
  justify-content:center!important;
  align-self:center!important;
  flex:0 0 auto!important;
  vertical-align:middle!important;
  gap:2px!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  height:18px!important;
  min-height:0!important;
  max-height:18px!important;
  margin:0 0 0 2px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  outline:none;
  font:850 11px/1 Inter,system-ui,sans-serif!important;
  white-space:nowrap!important;
  touch-action:manipulation;
  cursor:pointer;
}
body.page-volejbal_body .volley-form-badge .volley-form-glyph{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  height:17px!important;
  max-height:17px!important;
  font-size:15px!important;
  line-height:1!important;
  white-space:nowrap;
}
body.page-volejbal_body .volley-form-badge .volley-form-number{
  display:inline-block!important;
  font-size:11px!important;
  font-weight:850!important;
  line-height:1!important;
  font-variant-numeric:tabular-nums;
}
/* Visually compact while retaining a larger pointer area. */
body.page-volejbal_body .volley-form-badge::before{
  content:"";
  position:absolute;
  inset:-5px;
}
body.page-volejbal_body .volley-form-badge:focus-visible{
  outline:2px solid var(--primary,#1769e0);
  outline-offset:3px;
}


/* Sport 7.14.277 – aktivní RSVP v tmavém motivu.
   Světlý motiv zůstává beze změn; přepsat i staré !important selektory
   desktopu a mobilu. Vztahuje se pouze na detail volejbalového termínu. */
html[data-theme="dark"] body.page-volejbal_akce .volley-poll-option.poll-yes.selected {
  background: #133b2c !important;
  border-color: #267d56 !important;
  color: #a8f2cb !important;
  box-shadow: inset 0 0 0 1px rgba(56, 210, 125, .16) !important;
}
html[data-theme="dark"] body.page-volejbal_akce .volley-poll-option.poll-maybe.selected {
  background: #342b1a !important;
  border-color: #87632b !important;
  color: #ffda8c !important;
  box-shadow: inset 0 0 0 1px rgba(232, 173, 66, .14) !important;
}
html[data-theme="dark"] body.page-volejbal_akce .volley-poll-option.poll-no.selected {
  background: #392128 !important;
  border-color: #904552 !important;
  color: #ffb9c2 !important;
  box-shadow: inset 0 0 0 1px rgba(226, 95, 109, .14) !important;
}
/* Čitelnější kontrast ikon pro obě vedlejší potvrzené odpovědi. */
html[data-theme="dark"] body.page-volejbal_akce .poll-maybe.selected .poll-plain-question,
html[data-theme="dark"] body.page-volejbal_akce .poll-maybe.selected .poll-radio {
  color: #fbd080 !important;
}
html[data-theme="dark"] body.page-volejbal_akce .poll-no.selected .poll-radio {
  color: #ffaab5 !important;
}
