:root {
    --bo-navy: #123b73;
    --bo-navy-dark: #0c2c57;
    --bo-blue: #0d6efd;
    --bo-blue-dark: #0b5ed7;
    --bo-ink: #182230;
    --bo-muted: #667085;
    --bo-line: #e4e7ec;
    --bo-canvas: #f8fafc;
    --bo-white: #fff;
    --bo-danger: #d92d20;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body.admin-body {
    min-width: 320px;
    margin: 0;
    background: var(--bo-canvas);
    color: var(--bo-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

a { color: #175cd3; }
a:hover, a:focus { color: #004eeb; }

.admin-header {
    position: fixed;
    z-index: 1030;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    min-height: 70px;
    align-items: center;
    justify-content: space-between;
    background: #eef1f4;
    border-bottom: 1px solid var(--bo-line);
}

.admin-header__brand {
    display: flex;
    width: 260px;
    min-height: 70px;
    flex: 0 0 260px;
    align-items: center;
    justify-content: center;
    padding: 8px 24px;
    background: var(--bo-navy);
    color: var(--bo-white);
    text-decoration: none;
}

.admin-header__brand:hover, .admin-header__brand:focus {
    background: var(--bo-navy-dark);
    color: var(--bo-white);
    text-decoration: none;
}

.admin-header__logo {
    width: 92px;
    max-height: 54px;
    flex: 0 0 auto;
    object-fit: contain;
    object-position: left center;
}

.admin-global-search {
    position: relative;
    width: min(560px, calc(100% - 420px));
    margin: 0 30px;
}

.admin-global-search__icon {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 14px;
    color: #98a2b3;
    transform: translateY(-50%);
}

.admin-global-search__input {
    width: 100%;
    height: 42px;
    padding: 8px 38px;
    background: var(--bo-white);
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    color: var(--bo-ink);
    font-size: 14px;
    outline: 0;
}

.admin-global-search__input:focus {
    border-color: #84adf7;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, .14);
}

.admin-global-search__results {
    position: absolute;
    z-index: 1100;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    max-height: min(440px, calc(100vh - 100px));
    padding: 6px;
    overflow-y: auto;
    background: var(--bo-white);
    border: 1px solid var(--bo-line);
    border-radius: 9px;
    box-shadow: 0 12px 30px rgba(16, 24, 40, .14);
}

.admin-global-search__result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 7px;
    color: #344054;
    text-decoration: none;
}

.admin-global-search__result:hover,
.admin-global-search__result:focus {
    background: #eef4ff;
    color: #175cd3;
    text-decoration: none;
    outline: 0;
}

.admin-global-search__name { font-weight: 600; }
.admin-global-search__type {
    color: #667085;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.admin-global-search__empty { margin: 0; padding: 12px; color: #667085; text-align: center; }

.admin-header__actions {
    display: flex;
    min-height: 70px;
    align-items: stretch;
    margin-left: auto;
}

.admin-header__actions a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 24px;
    color: #344054;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.admin-header__actions a:hover, .admin-header__actions a:focus { background: #f9fafb; color: var(--bo-navy); }
.admin-header__toggle {
    display: none;
    margin: 0 14px 0 auto;
    padding: 10px;
    background: var(--bo-navy);
    border: 0;
    border-radius: 6px;
}

.admin-header__toggle .icon-bar { background: var(--bo-white); }

.admin-sidebar {
    position: fixed;
    z-index: 1020;
    top: 70px;
    bottom: 0;
    left: 0;
    display: block !important;
    width: 260px;
    height: calc(100vh - 70px) !important;
    padding: 0;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: var(--bo-white);
    border: 0;
    border-right: 1px solid var(--bo-line);
}

.admin-sidebar__inner {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: 30px 22px 20px;
}

.admin-sidebar__heading {
    margin: 0 12px 14px;
    color: #98a2b3;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-nav > li > a, .admin-sidebar__logout {
    display: flex;
    min-height: 42px;
    align-items: center;
    margin: 2px 0;
    padding: 11px 16px;
    border-radius: 10px;
    color: #667085;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}

.admin-nav__group details { margin: 2px 0; }
.admin-nav__group summary {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    border-radius: 10px;
    color: #344054;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    list-style: none;
}
.admin-nav__group summary::-webkit-details-marker { display: none; }
.admin-nav__group summary::after { color: #667085; content: '+'; font-size: 20px; line-height: 1; }
.admin-nav__group details[open] > summary::after { content: '−'; }
.admin-nav__group summary:hover,
.admin-nav__group summary:focus { background: #f9fafb; color: #3b5bdb; outline: 0; }
.admin-nav__submenu { padding: 2px 0 5px 18px; }
.admin-nav__submenu > li > a {
    margin: 2px 0;
    padding: 9px 14px;
    border-radius: 8px;
    color: #667085;
    font-weight: 500;
}
.admin-nav__submenu > li > a:hover,
.admin-nav__submenu > li > a:focus,
.admin-nav__submenu > li.current-page > a,
.admin-nav__submenu > li > a.active { background: #eef4ff; color: #3b5bdb; }

.admin-nav > li > a:hover, .admin-nav > li > a:focus,
.admin-nav > li.current-page > a, .admin-nav > li > a.active,
.admin-sidebar__logout:hover, .admin-sidebar__logout:focus {
    background: #eef4ff;
    color: #3b5bdb;
}

.admin-sidebar__logout {
    margin-top: auto;
    border-top: 1px solid var(--bo-line);
    border-radius: 0;
}

.admin-main {
    min-height: 100vh;
    margin-left: 260px;
    padding: 110px clamp(24px, 3vw, 48px) 48px;
}

.admin-main > * { max-width: 1480px; }

h1, h2, h3, .h1, .h2, .h3 {
    color: var(--bo-ink);
    font-family: inherit;
    font-weight: 700;
}

h1, .h1 {
    margin: 0 0 28px;
    padding: 0;
    border: 0;
    font-size: clamp(26px, 2.1vw, 34px);
    letter-spacing: -.025em;
}

h1 > .fa { margin-right: 7px; color: #98a2b3; font-size: .75em; }
h2, .h2 { margin: 32px 0 16px; padding: 0; border: 0; font-size: 20px; }
h3, .h3 { margin: 24px 0 12px; padding: 0; border: 0; font-size: 17px; }

.table-responsive, .admin-main > .table, .admin-main > form + .table { margin-top: 22px; }

.table {
    width: 100%;
    margin-bottom: 24px;
    background: var(--bo-white);
    border: 1px solid var(--bo-line);
    border-collapse: separate;
    border-radius: 10px;
    border-spacing: 0;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
}

.table > thead > tr > th {
    padding: 12px 16px;
    background: #f9fafb;
    border: 0;
    border-bottom: 1px solid var(--bo-line);
    color: var(--bo-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .035em;
    text-transform: uppercase;
    vertical-align: middle;
}

.table > thead > tr:first-child > th:first-child { border-top-left-radius: 9px; }
.table > thead > tr:first-child > th:last-child { border-top-right-radius: 9px; }

.admin-sort-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.admin-sort-link:hover,
.admin-sort-link:focus,
.admin-sort-link.active {
    color: #175cd3;
    text-decoration: none;
}

.admin-sort-link__direction {
    font-size: 14px;
    line-height: 1;
}

.table > tbody > tr > td {
    padding: 13px 16px;
    border: 0;
    border-bottom: 1px solid var(--bo-line);
    vertical-align: middle;
}

.table > tbody > tr:last-child > td { border-bottom: 0; }
.table-hover > tbody > tr:hover { background: #f5f9ff; }
.table-bordered > thead > tr > th, .table-bordered > tbody > tr > td { border-right: 1px solid var(--bo-line); }
.table-bordered > thead > tr > th:last-child, .table-bordered > tbody > tr > td:last-child { border-right: 0; }
.table img, .img-responsive { max-height: 120px; border-radius: 7px; object-fit: cover; }

.admin-table-link {
    color: #175cd3;
    font-weight: 600;
    text-decoration: none;
}

.admin-table-link:hover,
.admin-table-link:focus {
    color: #004eeb;
    text-decoration: underline;
}

.admin-list-summary {
    margin: -16px 0 24px;
    color: #667085;
}

.admin-help {
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    margin-left: 7px;
    background: #eef4ff;
    border: 1px solid #b2ccff;
    border-radius: 50%;
    color: #175cd3;
    font-family: Georgia, serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: help;
    vertical-align: middle;
}

.admin-help:hover,
.admin-help:focus {
    background: #dbe9ff;
    border-color: #84adf7;
    color: #004eeb;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, .14);
}

.admin-config-description {
    margin: -16px 0 24px;
    color: #344054;
}

.admin-page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}
.admin-page-heading .admin-list-summary { margin-bottom: 0; }
.admin-design-grid {
    display: grid;
    margin-top: 28px;
    gap: 22px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.admin-design-card {
    overflow: hidden;
    background: var(--bo-white);
    border: 1px solid var(--bo-line);
    border-radius: 11px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.admin-design-card.is-archived { opacity: .62; }
.admin-design-card__preview {
    display: grid;
    height: 250px;
    overflow: hidden;
    background: #f2f4f7;
    place-items: center;
}
.admin-design-card__preview a {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
}
.admin-design-card__preview img {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: contain;
}
.admin-design-card__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
}
.admin-design-card__content h2 { margin: 0 0 7px; font-size: 17px; }
.admin-design-card__meta { margin: 7px 0 0; color: #667085; font-size: 12px; }
.admin-design-card__content form { margin: 0; padding: 0; background: transparent; border: 0; box-shadow: none; }
.admin-design-card__actions { display: flex; align-items: center; gap: 7px; }
.admin-design-resource { margin: -15px 0 24px; font-weight: 600; }
.admin-design-detail__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}
.admin-design-detail__heading h1 { margin: 10px 0 8px; }
.admin-design-detail__format { margin: -3px 0 9px; color: #667085; font-size: 13px; }
.admin-design-detail__heading .admin-design-card__actions { padding-bottom: 2px; }
.admin-back-link { color: #667085; font-size: 13px; font-weight: 600; }
.admin-design-detail__image {
    display: flex;
    width: 100%;
    padding: 24px;
    background: var(--bo-white);
    border: 1px solid var(--bo-line);
    border-radius: 11px;
    justify-content: center;
}
.admin-design-detail__image img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: none;
    border-radius: 0;
    object-fit: contain;
}
.admin-design-edit-layout {
    display: grid;
    align-items: start;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
}
.admin-design-edit-layout form { margin: 0; }
.admin-design-edit-preview {
    padding: 18px;
    background: var(--bo-white);
    border: 1px solid var(--bo-line);
    border-radius: 11px;
}
.admin-design-edit-preview p { margin: 0 0 12px; color: #667085; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.admin-design-edit-preview img { width: 100%; max-height: 560px; border-radius: 7px; object-fit: contain; }
.admin-empty-state {
    padding: 30px;
    background: var(--bo-white);
    border: 1px dashed #d0d5dd;
    border-radius: 10px;
    color: #667085;
    text-align: center;
}

.tooltip-inner {
    max-width: 360px;
    padding: 9px 12px;
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
}

.admin-match-versus { margin: 0 5px; color: #98a2b3; }
.admin-match-score { margin-left: 7px; white-space: nowrap; }
.admin-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
}
.admin-status--finished { background: #ecfdf3; color: #027a48; }
.admin-status--future { background: #eef4ff; color: #175cd3; }
.admin-status--archived { background: #f2f4f7; color: #667085; }

form.form, .admin-main > form:not(.navbar-form) {
    max-width: 1100px;
    margin-bottom: 24px;
    padding: clamp(18px, 2.5vw, 30px);
    background: var(--bo-white);
    border: 1px solid var(--bo-line);
    border-radius: 11px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
}

.admin-main > form > h2:first-child { margin-top: 0; }
.form-group { margin-bottom: 18px; }
label, .form-group > b { margin-bottom: 6px; color: #344054; font-weight: 600; }
label.required:after { margin-left: 3px; color: var(--bo-danger); content: "*"; }

.admin-player-form { max-width: 920px; }
.admin-player-form__current-picture { margin: 0 0 18px; }
.admin-player-form__current-picture p {
    margin: 0 0 8px;
    color: #344054;
    font-weight: 600;
}
.admin-player-form__current-picture .img-responsive {
    width: auto;
    max-width: 100%;
    max-height: 360px;
}
.admin-player-form__current-picture--portrait .img-responsive { max-width: 280px; max-height: 280px; }
.admin-player-form__delete-picture { display: block; margin-top: 12px; }

.admin-file-upload {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.admin-file-upload__input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}
.admin-file-upload__filename { color: #667085; font-size: 13px; }

.form-control {
    min-height: 42px;
    padding: 9px 12px;
    border-color: #d0d5dd;
    border-radius: 7px;
    color: var(--bo-ink);
    box-shadow: none;
}

.form-control:focus { border-color: #84adf7; box-shadow: 0 0 0 3px rgba(13, 110, 253, .14); }
textarea.form-control { min-height: 130px; }
.checkbox label, .radio label { font-weight: 500; }
.help-block { color: var(--bo-muted); font-size: 12px; }
.has-error .form-control { border-color: #f04438; }
.has-error .help-block, .has-error .control-label { color: var(--bo-danger); }

.btn {
    padding: 9px 14px;
    border-radius: 7px;
    font-weight: 600;
    line-height: 1.35;
    box-shadow: none;
}

.btn-xs { padding: 6px 10px; border-radius: 6px; font-size: 12px; }
.btn-sm { padding: 7px 12px; }
.btn-primary { background: var(--bo-blue); border-color: var(--bo-blue); }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active { background: var(--bo-blue-dark); border-color: var(--bo-blue-dark); }
.btn-success { background: #079455; border-color: #079455; }
.btn-danger { background: var(--bo-danger); border-color: var(--bo-danger); }
.pull-right { float: right !important; }
.text-right { text-align: right; }

.panel { border-color: var(--bo-line); border-radius: 10px; box-shadow: 0 1px 2px rgba(16, 24, 40, .03); }
.panel-body { padding: 18px 20px; }
.panel-danger { background: #fffbfa; border-left: 4px solid #f97066; color: #7a271a; }
.alert { border: 0; border-radius: 9px; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }

.btnHome {
    display: flex;
    min-height: 108px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 0 22px;
    padding: 22px;
    background: var(--bo-white);
    border: 1px solid var(--bo-line);
    border-radius: 11px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
    color: #344054;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.btnHome:hover, .btnHome:focus {
    border-color: #84adf7;
    box-shadow: 0 4px 12px rgba(16, 24, 40, .08);
    color: var(--bo-navy);
    text-decoration: none;
    transform: translateY(-1px);
}

.btnHome .fa { color: var(--bo-blue); font-size: 23px; }

.nav-tabs { margin-bottom: 24px; border-bottom-color: var(--bo-line); }
.nav-tabs > li > a {
    margin-right: 4px;
    padding: 10px 14px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: var(--bo-muted);
    font-weight: 600;
}

.nav-tabs > li > a:hover, .nav-tabs > li > a:focus {
    background: transparent;
    border-color: transparent transparent #84adf7;
    color: var(--bo-ink);
}

.nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus {
    background: transparent;
    border: 0;
    border-bottom: 2px solid var(--bo-blue);
    color: var(--bo-ink);
}

.pagination > li > a, .pagination > li > span {
    margin: 0 2px;
    border-color: var(--bo-line);
    border-radius: 6px;
    color: #344054;
}

.pagination > .active > a, .pagination > .active > a:hover, .pagination > .active > span {
    background: var(--bo-blue);
    border-color: var(--bo-blue);
}

.tt-suggestion strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
span.twitter-typeahead { width: 100%; }
span.twitter-typeahead .tt-menu, span.twitter-typeahead .tt-dropdown-menu {
    position: absolute;
    z-index: 1050;
    top: 100%;
    left: 0;
    display: none;
    width: 100%;
    min-width: 160px;
    margin: 2px 0 0;
    padding: 6px 0;
    background: var(--bo-white);
    border: 1px solid var(--bo-line);
    border-radius: 7px;
    box-shadow: 0 8px 20px rgba(16, 24, 40, .12);
    list-style: none;
}

span.twitter-typeahead .tt-suggestion { display: block; padding: 8px 12px; color: var(--bo-ink); cursor: pointer; }
span.twitter-typeahead .tt-suggestion.tt-cursor, span.twitter-typeahead .tt-suggestion:hover { background: #f5f9ff; color: var(--bo-navy); }

body.admin-login {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: var(--bo-canvas);
    color: var(--bo-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.admin-login__header {
    display: flex;
    min-height: 70px;
    align-items: center;
    background: #eef1f4;
    border-bottom: 1px solid var(--bo-line);
}

.admin-login__main {
    display: grid;
    min-height: calc(100vh - 70px);
    place-items: center;
    padding: 40px 18px;
    background:
        radial-gradient(circle at 15% 15%, rgba(13, 110, 253, .08), transparent 30%),
        var(--bo-canvas);
}

.admin-login__card {
    width: 100%;
    max-width: 440px;
    padding: clamp(28px, 5vw, 44px);
    background: var(--bo-white);
    border: 1px solid var(--bo-line);
    border-radius: 14px;
    box-shadow: 0 16px 44px rgba(16, 24, 40, .10);
}

.admin-login__intro { margin-bottom: 28px; }
.admin-login__icon {
    display: grid;
    width: 46px;
    height: 46px;
    margin-bottom: 20px;
    background: #eff6ff;
    border-radius: 10px;
    color: var(--bo-blue);
    font-size: 18px;
    place-items: center;
}

.admin-login__intro h1 { margin-bottom: 8px; font-size: 30px; }
.admin-login__intro p { margin: 0; color: var(--bo-muted); }
.admin-login__form { margin: 0; padding: 0; background: transparent; border: 0; box-shadow: none; }
.admin-login__submit { display: flex; width: 100%; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; }
.admin-login__back { display: block; margin-top: 22px; color: var(--bo-muted); font-size: 13px; font-weight: 600; text-align: center; }
.admin-login__back:hover, .admin-login__back:focus { color: var(--bo-navy); text-decoration: none; }
.admin-login__back .fa { margin-right: 5px; }

@media (max-width: 991px) {
    .admin-global-search { width: min(460px, calc(100% - 360px)); margin-right: 16px; margin-left: 20px; }
    .admin-header__site-link span { display: none; }
    .admin-header__actions a { padding: 0 18px; }
    .table { display: block; overflow-x: auto; white-space: nowrap; }
}

@media (max-width: 767px) {
    .admin-header__brand { width: 112px; max-width: 112px; flex: 0 0 112px; padding-right: 12px; padding-left: 12px; }
    .admin-header__logo { width: 78px; }
    .admin-global-search { width: auto; flex: 1 1 auto; margin: 0 10px; }
    .admin-global-search__input { padding-right: 12px; padding-left: 34px; }
    .admin-global-search__input::placeholder { color: transparent; }
    .admin-header__actions { display: none; }
    .admin-header__toggle { display: block; }
    .admin-sidebar { display: none !important; width: min(320px, 90vw); box-shadow: 12px 0 32px rgba(16, 24, 40, .2); }
    .admin-sidebar.in { display: block !important; }
    .admin-main { margin-left: 0; padding: 96px 18px 36px; }
    .pull-right { float: none !important; }
    .admin-page-heading { align-items: stretch; flex-direction: column; }
    .admin-design-detail__heading { align-items: stretch; flex-direction: column; }
    .admin-design-edit-layout { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    form.form, .admin-main > form:not(.navbar-form) { padding: 18px; }
}
