/* lang */

html[lang="en"] .hidden-lang-en, html[lang="en"] .d-en-none {
    display: none;
}

html[lang="ru"] .hidden-lang-ru, html[lang="ru"] .d-ru-none {
    display: none;
}

section {
    scroll-margin-top: 4em;
}

svg {
    fill: currentColor;
}

.navbar-events {
    background-color: #303030;
    color: #fff;
    padding-top: 0;
    height: 3em;
    position: sticky !important;
}

header h1 {
    margin: 5px 0 0 20px;
    font-size: 24px;
    font-variant: all-petite-caps;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 330px;
}

@media (min-width: 1200px) {
    header h1 {
        max-width: 540px;
    }
}

@media (min-width: 1400px) {
    header h1 {
        max-width: 750px;
    }
}

@media (max-width: 576px) {
    .offcanvas {
        width: 100% !important;
    }
}

.badge-platform {
    background-color: #6e3731;
}

.badge-format {
    background-color: #31606e;
}

.badge-cnt {
    height: fit-content;
}

/* index page */
h2.index-head {
    border-bottom: 1px solid #bbb;
    margin-bottom: 30px;
}

@media (max-width: 576px) {
    .upcoming-current-cover {
        margin-top: 0 !important;
        padding-left: calc(var(--bs-gutter-x) * -.5) !important;
        padding-right: calc(var(--bs-gutter-x) * -.5) !important;
    }
}

/* comments on index and `all comments` pages */
.card-comment {
    border: none !important;
}

.card-comment .blockquote {
    font-size: 1rem !important;
}

@media (min-width: 992px) {
    .card-comment {
        flex-direction: row !important;
    }

    .card-comment IMG {
        width: 200px !important;
        margin-bottom: auto !important;
        padding-bottom: 1em !important;
        border-radius: 0 !important;
    }

    IMG.no-screenshot {
        opacity: 25%;
    }

    [data-bs-theme="dark"] IMG.no-screenshot {
        opacity: 5%;
    }

    HR.comment-delimiter {
        display: none;
    }
}

@media (max-width: 991px) {
    IMG.no-screenshot {
        display: none;
    }
}

/* timetable */

.table-timetable > tbody > tr > td {
    padding: 5px;
}

.table-timetable > tbody > tr:first-child > td{
    border-top: none;
}

.table-timetable .td-dt {
    vertical-align: middle;
    font-weight: bold;
    text-align: right;
    font-size: 120%;
}

.table-timetable .td-place {
    text-align: center;
    vertical-align: middle;
}

.table-timetable .td-place SPAN {
    display: block;
}

/* competitions list */

.event-compo-rules UL {
    margin-bottom: 0 !important;
}

/* work */

.w-640 {
    width: 640px;
    max-width: 100%;
}

.work-container {
    margin-bottom: 6rem !important;
}

.work-container .badge-place {
    border-radius: 3px;
    background-color: #a41e1e;
    font-size: 180%;
}

.work-container .badge-place .suffix {
    font-size: 50%;
    vertical-align: top;
}

.work-container .badge-vts {
    font-size: 100% !important;
    background-color: #512172;
}

.work-container .author-note {
    padding: 10px;
    border-radius: 4px;
    width: 640px;
    max-width: 100%;
}

.work-container .links {
    margin-bottom: 1rem;
}

.work-container .links .item {
    display: inline-block;
    margin-right: 16px;
    white-space: nowrap;
}

.work-container .links .icon {
    position: relative;
    top: 3px;
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 3px;
    background: url("icons-16x16.png?20250512");
}

[data-bs-theme="dark"] .work-container .links .icon {
    background: url("icons-16x16-dark.png?20250512");
}

audio {
    width: 100%;
}

.work-container .img-container IMG {
    max-width: 100%;
}

@media (max-width: 768px) {
    .work-container .img-container IMG {
        width: 100%;
    }

    .work-container IFRAME {
        width: 100%;
        height: 256px;
    }
}

.work-container .btn-vote {
    --bs-btn-hover-color: #3fb618 !important;
    --bs-btn-hover-bg: none !important;
    --bs-btn-hover-border-color: #3fb618 !important;
}

.work-container .btn-vote:not(.active):active {
    color: #9eed84 !important;;
    border-color: #8cd575 !important;
    background-color: unset !important;
}

.work-container .btn-vote.active:active {
    color: #9eed84 !important;;
    border-color: #8cd575 !important;
    background-color: #40752f !important;
}
