/* Scrollbar pro celý web: jezdec jsou dva vikingské meče spojené hlavicemi –
   horní míří čepelí nahoru, dolní dolů. Jílce a hroty mají pevnou velikost,
   čepele se natahují podle délky jezdce. */

/* Posuvník jen když je co posouvat (stránky mají overflow:scroll, který ukazuje prázdný pruh). */
#textfield { overflow: auto !important; }

/* Chrome, Edge, Safari, Opera */
::-webkit-scrollbar { width: 16px; height: 12px; }

::-webkit-scrollbar-track {
  background: linear-gradient(90deg, #08090a 0%, #17191c 50%, #08090a 100%);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 0 5px #000;
}

::-webkit-scrollbar-thumb {
  /* hrot 16 + jílce 48 + hrot 16 + kousek čepelí */
  min-height: 110px;
  background-color: transparent;
  background-repeat: no-repeat;
  background-image:
    /* jílce: záštita, rukojeť s omotávkou, hlavice – dvakrát, zrcadlově */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 48'%3E%3Cdefs%3E%3ClinearGradient id='m' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%232e3236'/%3E%3Cstop offset='.35' stop-color='%23c9ced4'/%3E%3Cstop offset='.5' stop-color='%23f2f4f6'/%3E%3Cstop offset='.65' stop-color='%239aa1a8'/%3E%3Cstop offset='1' stop-color='%232a2d31'/%3E%3C/linearGradient%3E%3ClinearGradient id='l' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23241307'/%3E%3Cstop offset='.5' stop-color='%236e4424'/%3E%3Cstop offset='1' stop-color='%23241307'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg id='h'%3E%3Crect x='.4' y='.4' width='15.2' height='4' rx='1.6' fill='url(%23m)' stroke='%2315171a' stroke-width='.6'/%3E%3Crect x='5' y='4.4' width='6' height='10.6' fill='url(%23l)'/%3E%3Cpath d='M5 7.2l6-1.6M5 10.2l6-1.6M5 13.2l6-1.6' stroke='%23140a03' stroke-width='.7'/%3E%3Crect x='2' y='15' width='12' height='2.6' rx='1' fill='url(%23m)' stroke='%2315171a' stroke-width='.5'/%3E%3Crect x='3' y='15.95' width='10' height='.7' fill='%23c9a03c'/%3E%3Cpath d='M3 17.6H13V20.4Q13 24 10.8 24Q9.6 22 8 24Q6.4 22 5.2 24Q3 24 3 20.4Z' fill='url(%23m)' stroke='%2315171a' stroke-width='.5'/%3E%3C/g%3E%3Cuse href='%23h' transform='matrix(1 0 0 -1 0 48)'/%3E%3C/svg%3E"),
    /* hrot horní čepele */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cdefs%3E%3ClinearGradient id='b' x1='0' x2='1'%3E%3Cstop offset='.25' stop-color='%234a4f55'/%3E%3Cstop offset='.38' stop-color='%23e3e7eb'/%3E%3Cstop offset='.5' stop-color='%23858c94'/%3E%3Cstop offset='.62' stop-color='%23e3e7eb'/%3E%3Cstop offset='.75' stop-color='%2345494e'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M4 16L8 .8L12 16Z' fill='url(%23b)'/%3E%3C/svg%3E"),
    /* hrot dolní čepele */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cdefs%3E%3ClinearGradient id='b' x1='0' x2='1'%3E%3Cstop offset='.25' stop-color='%234a4f55'/%3E%3Cstop offset='.38' stop-color='%23e3e7eb'/%3E%3Cstop offset='.5' stop-color='%23858c94'/%3E%3Cstop offset='.62' stop-color='%23e3e7eb'/%3E%3Cstop offset='.75' stop-color='%2345494e'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M4 0L8 15.2L12 0Z' fill='url(%23b)'/%3E%3C/svg%3E"),
    /* čepele: ostří po stranách, tmavý dol (žlábek) uprostřed */
    linear-gradient(90deg, transparent 25%, #4a4f55 25%, #cfd4da 32%, #eef1f4 38%, #7a8189 45%, #585e65 50%, #7a8189 55%, #e6e9ed 62%, #b8bec5 68%, #45494e 75%, transparent 75%),
    linear-gradient(90deg, transparent 25%, #4a4f55 25%, #cfd4da 32%, #eef1f4 38%, #7a8189 45%, #585e65 50%, #7a8189 55%, #e6e9ed 62%, #b8bec5 68%, #45494e 75%, transparent 75%);
  background-position:
    center center,
    center top,
    center bottom,
    center top 16px,
    center bottom 16px;
  background-size:
    16px 48px,
    16px 16px,
    16px 16px,
    100% calc(50% - 40px),
    100% calc(50% - 40px);
}
::-webkit-scrollbar-thumb:hover { filter: brightness(1.15); }
::-webkit-scrollbar-thumb:active { filter: brightness(0.92); }

/* vodorovný posuvník (výjimečně) – jen ocelová čepel */
::-webkit-scrollbar-thumb:horizontal {
  min-width: 48px;
  border-radius: 18px / 6px;
  background: linear-gradient(180deg, #45494e 0%, #cfd4da 20%, #eef1f4 32%, #7a8189 45%, #585e65 50%, #7a8189 55%, #e6e9ed 68%, #b8bec5 80%, #45494e 100%);
}

::-webkit-scrollbar-corner { background: #08090a; }
::-webkit-scrollbar-button { display: none; }

/* Firefox – umí jen barvy. Jen tam, jinak by Chrome ignoroval styly výše. */
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-color: #b9bfc6 #15171a; }
}
