:root {
    /* === Фоны === */
    --bg-primary: #ffffff;
    --bg-secondary: #f2f2f2;
    --bg-tertiary: #e8e8e8;
    --bg-header: #ffffff;

    /* === Текст === */
    --text-primary: #000000;
    --text-secondary: #555555;
    --text-muted: #919191;

    /* === Границы === */
    --border-color: #efefef;
    --border-light: #efefef;
    --border-r: 10px;

    /* === Акценты === */
    --green: #00A46F;
    --blue: #1a8df8;
    --deep-purple: #643ACB;
    --light-purple: #8D68E0;

    --logo-text-color: #4B4A4B;
    --logo-pickaxe-color: #C0C0C0;
}

html[data-theme="dark-mode"] {
    --bg-primary: #212121;
    --bg-secondary: #161617;
    --bg-tertiary: #2b2b2b;
    --bg-header: #1f2124;

    --text-primary: #f7f9fb;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;

    --border-color: #3a3a3a;
    --border-light: #2f2f2f;

    --logo-text-color: #ffffff;
    --logo-pickaxe-color: #cccccc;
}
.footer-nav a, .related a, header a:hover {
    text-decoration: none;
}
#searchsuggestions a span, select {
    color: #555;
}
.sections-list, .texuressections-list, .versions-history {
    overflow-y: hidden;
    white-space: nowrap;
}
li {
    list-style: none;
}
.actual-release>div, .actual-version>div>div {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
}
.actual-release>div, .actual-version>div>div, .shortstory.skins, .sub-categories .row {
    -webkit-box-direction: normal;
}
html {
    -webkit-font-smoothing: antialiased;
}
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}
* {
    margin: 0;
    padding: 0;
}
#content {
    width: 70%;
    margin-left: auto 
}
.right-sidebar {
    display: none;
}
article img {
    width: 100%;
    border-radius: 15px;
}
.short__comment .com_text img, .comments img {
    border-radius: 0;
    margin-right: 4px 
}
.dleplyrplayer video {
    display: block;
    width: 100%;
    border-radius: var(--border-r);
}

iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
}

.suggest {
    color: #ffffff;
    border-radius: var(--border-r);
    padding: 10px;
    text-align: center;
    background: var(--deep-purple);
    -webkit-box-shadow: 0px 0px 4px 1px rgba(34, 60, 80, 0.27);
    -moz-box-shadow: 0px 0px 4px 1px rgba(34, 60, 80, 0.27);
    box-shadow: 0px 0px 4px 1px rgba(34, 60, 80, 0.27);
}
.suggest:hover {
    background: var(--light-purple);
    color: #ffffff;
}
@keyframes skeleton-load {
    0% {
        background-position: -32px;
    }
    40%, 100% {
        background-position: 1200px;
    }
}
@media (min-width: 1240px) {
    #content {
        width: calc(100% - 580px);
        margin-left: 60px;
    }
    .right-sidebar {
        width: 280px;
        position: sticky;
        margin-left: auto;
        display: block;
        top: 20px;
        align-self: flex-start;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }
    .right-sidebar .adversting {
        height: 400px;
    }
}
.shortstory.skins {
    width: 100px;
    text-align: center;
}
.shortstory.skins a {
    display: block;
    text-decoration: none;
    color: var(--text-primary);
}
.shortstory.skins .skins-image {
    width: 64px;
    height: 128px;
    margin: 0 auto;
}
.shortstory.skins .skins-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.shortstory.skins .skins-title {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.shortstory .date {
    font-weight: 700;
    color: #b6b6b6 
}
.shortstory .short__comment {
    display: flex;
    align-items: center;
    padding: 5px 24px 10px;
}
.shortstory .short__comment .avatar {
    flex-shrink: 0;
    margin-right: 10px;
    width: 28px;
    height: 28px;
}
.shortstory .short__comment .avatar img {
    width: 100%;
    height: 100%;
}
.shortstory .short__comment .com_text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.change-theme {
    margin-left: auto;
    margin-bottom: auto;
}
.old-versions {
    font-weight: 700;
    color: #a94442;
    margin-bottom: 8px;
}
.mlink .views, .related .header p, .values_stats, span.article_stats {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}
.related {
    background-color: var(--bg-primary);
    overflow: hidden;
}
.related .header {
    padding: 15px 19px 0;
    font-size: 16px;
    font-weight: 600;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-bottom: 10px;
}
.attachment-name, .compatibility, .label, .last-version, .maincont b, .version-choice, span.comp {
    font-weight: 700;
}
.related .header button {
    border: none;
    background: 0 0;
    cursor: pointer;
}
.related a {
    font-size: 14px;
    color: #818181;
    overflow: hidden;
    display: block;
}
/* Related news grid */
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 15px 15px;
}
.related-item {
    display: block;
    text-decoration: none;
    border-radius: var(--border-r);
    overflow: hidden;
    background: var(--bg-secondary);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.related-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.related-item-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}
.related-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 0;
}
.related-item:hover .related-item-image img {
    transform: scale(1.05);
}
.related-item-title {
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 740px) {
    .related-grid {
        grid-template-columns: repeat(6, 200px);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 10px;
    }
    .related-grid::-webkit-scrollbar {
        display: none;
    }
    .related-item {
        scroll-snap-align: start;
    }
}

/* Related Carousel */
.related-carousel-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    padding: 15px 15px 12px;
    text-align: left;
}
.related-carousel {
    padding: 0 0 10px;
}
.related-carousel .related-item {
    display: block;
    text-decoration: none;
    border-radius: var(--border-r);
    overflow: hidden;
    background: var(--bg-secondary);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.related-carousel .related-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.related-carousel .related-item-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}
.related-carousel .related-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.related-carousel .related-item:hover .related-item-image img {
    transform: scale(1.05);
}
.related-carousel .related-item-title {
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.related-carousel.owl-carousel {
    max-width: unset;
}
.related-carousel:not(.owl-loaded) {
    display: flex;
    gap: 12px;
    overflow: hidden;
    
}
.related-carousel.owl-carousel .owl-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 0 0 0;
    margin-top: 0;
}
.related-carousel.owl-carousel .owl-dots .owl-dot {
    width: 10px;
    height: 10px;
    background: var(--border-color);
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease;
}
.related-carousel.owl-carousel .owl-dots .owl-dot.active {
    background: var(--green);
}
.related-carousel.owl-carousel .owl-dots .owl-dot span {
    display: none;
}

.highslide-display-none, .light-color-scheme, .ui-helper-hidden, footer .disclaimer {
    display: none;
}
.comments-tree-item .comments-tree-item, .comments-tree-list>li>ol>li .comment:last-child {
    border-bottom: none;
}
#searchsuggestions a:hover span, .dcomments, .shortstorynews h2 a, header .social a, ul.head-menu li a, ul.subhead-menu li a {
    color: var(--text-primary);
}
a {
    color: var(--blue);
    transition: color 0.15s ease;
}
a:hover {
    color: #0d6efd;
}
#searchsuggestions a:hover span.searchheading, .error a,  header a, header a:active {
    color: var(--bg-primary);
}
.compatibility, .fullstory.static h1, .label, .pages, .pages>*, .sm-center {
    text-align: center;
}
h2 {
    font-size: 24px;
}
h3 {
    font-size: 22px;
}
h4 {
    font-size: 20px;
}
.shortstorynews h2 {
    font-size: 22px;
    line-height: 30px;
    display: inline-block;
}
.count-info, .serverfullstory .server-logo {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.ui-widget-content {
    background: 50% bottom repeat-x var(--bg-primary);
    border: 1px solid #dedede;
    color: #222;
}
.ui-dialog {
    padding: .2em;
    position: absolute;
    width: 300px;
    -webkit-box-shadow: 0 12px 25px rgba(0, 0, 0, 0.7);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.7);
}
.ui-dialog .ui-dialog-titlebar {
    padding: .5em 1em .3em;
    position: relative;
}
.ui-dialog .ui-dialog-content {
    background: 0;
    border: 0;
    overflow: hidden;
    padding: .5em 1em;
    position: relative;
    zoom: 1;
}
.ui-dialog .ui-dialog-title {
    float: left;
    margin: .1em 16px .2em 0;
}
.ui-dialog .ui-dialog-titlebar-close span {
    display: block;
    margin: 1px;
}
.ui-icon-closethick {
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAMAAABF0y+mAAAAQlBMVEUAAAAaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhpGvPVGAAAAFXRSTlMAfG+K6uT58t7WrKWel2hkWw3SEwl0oKIhAAAAgElEQVQoz73RSQ7CMBBE0bKxM49A3/+qgILUTr68TS37rVpfr6HtFmExt+Ouwb4LV3v8rpMaO5RmSckOpVmvxf4Ks00KrmeLUqEwaGHQwqCFUd2gMFcYFOb/+UcwKMwV5kqLwRV2U6NYb7Qq1Rt1auqNksZ6o1n7lJ+bsLXP8/sDE7sb2/eyAdwAAAAASUVORK5CYII=);
}
.ui-dialog .ui-dialog-buttonpane {
    background-image: none;
    border-width: 1px 0 0;
    margin: .5em 0 0;
    padding: .3em 1em .5em .4em;
    text-align: left;
}
.ui-dialog .ui-dialog-buttonpane button {
    cursor: pointer;
    float: right;
    line-height: 1.4em;
    margin: .5em .4em .5em 0;
    overflow: visible;
    padding: .2em .6em .3em;
    width: auto;
}
.ui-state-default, .ui-widget-content .ui-state-default {
    border: 1px solid var(--border-color);
    color: #868686;
    font-weight: 700;
}
.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    flex-shrink: 0;
}
.search-input {
    position: relative;
    border: none;
    outline: 0;
    padding: 0 0 0 35px;
    width: 100%;
    height: 40px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: var(--border-r);
    font-family: inherit;
    color: var(--text-primary);
}
html[data-theme="dark-mode"] .search-input {
    background-color: rgba(255, 255, 255, 0.1);
}
.header-elements, .highslide-outline, .highslide-wrapper, article.server, article.shortstory {
    background: var(--bg-primary);
}
.full-link, .full-link a {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-right: 10px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}
.shortstory .views svg, span.article_stats .svg-icons {
    margin-right: 5px;
}
span.full-link {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}
span.full-link span.comments-icon {
    margin-right: 5px;
}
.sm-center {
    margin-top: 0;
    margin-bottom: -10px;
}
.mc-button.green {
    display: block;
    width: 200px;
}
.com_content .username, .download-counter, .user-interact .price {
    font-weight: 600;
}
main {
    margin: 30px auto 0;
}
.navigation:after {
    clear: both;
    display: block;
    content: "";
}
.navigation {
    position: relative;
    margin: 25px 0;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    clear: both;
}
.pages {
    padding: 0 55px;
}
.pages>* {
    color: inherit;
    display: inline-block;
    position: relative;
    padding: 4px;
    border: 3px solid transparent;
    min-width: 22px;
    height: 22px;
    line-height: 21px;
    border-radius: 18px;
    text-decoration: none !important;
    font-weight: 700;
}
.pages span {
    border-color: var(--border-color);
}
.pages span.nav_ext {
    border-color: transparent !important;
}
.pages a:hover {
    border-color: var(--green);
    color: var(--green);
}
.page_next-prev {
    position: relative;
    height: 0;
}
.page_next-prev>span {
    position: absolute;
    top: 0;
}
input[type="text"].comments_author_field {
    width: 100%;
    margin-bottom: 10px;
}
#main-head, .banner>div, .maincont li {
    position: relative;
}
.page_prev, .unit-rating a.r1-unit {
    left: 0;
}
.page_next {
    right: 0;
}
.page_next-prev>span>span {
    opacity: .5;
}
.page_next-prev>span>* {
    display: block;
    width: 30px;
    height: 30px;
    padding: 8px 20px 0;
    color: var(--text-primary);
}
.page_next-prev>span .icon {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
}
.page_next-prev>span>a:hover .icon {
    color: var(--green);
}
.shortstorynews {
    font-size: 16px;
    margin-bottom: 10px;
}
.mainstory img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-r);
}
.shortstorynews p {
    line-height: 22px;
    margin-top: 5px;
}
.mlink, .shortstorynews p {
    font-size: 16px;
    line-height: 26px;
}

article .maincont {
    font-size: 18px;
    line-height: 29px;
}
article .before-article {
    display: flex;
    margin-top: 10px;
    justify-content: space-between;
}
.article-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
}
.btn-telegram {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
    color: #fff;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-telegram:hover {
    transform: translateY(-1px);
}
.btn-telegram svg {
    flex-shrink: 0;
}
article .maincont img.emoji {
    width: auto;
}

.maincont img {
    max-width: 100%;
    height: auto;
}

article .maincont p {
    margin: 12px 0;
}
article .maincont .dleplyrplayer {
    margin: 12px 0;
}
h1.article-title {
    margin: 10px 0 5px;
}
.supportedversions-list div a:hover {
    text-decoration: underline !important;
    cursor: pointer;
}
.important, .mainstory .fixed {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
span.short-rating {
    margin-left: auto;
    margin-right: 5px;
}
#container, .supportedversions-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}
#search {
    height: 40px;
    padding: 10px 0 10px 10px;
}
header form {
    width: 400px;
    height: 100%;
}
.theme-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s;
    margin-left: 10px;
    flex-shrink: 0;
}
.theme-switcher:hover {
    background-color: rgba(0, 0, 0, 0.05);
}
html[data-theme="dark-mode"] .theme-switcher:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.theme-icon {
    display: none;
    width: 22px;
    height: 22px;
    color: var(--text-primary);
}
.theme-icon svg {
    width: 100%;
    height: 100%;
}
.theme-switcher[data-current="system"] .theme-icon--system,
.theme-switcher[data-current="light"] .theme-icon--light,
.theme-switcher[data-current="dark"] .theme-icon--dark {
    display: flex;
}
.user-interact {
    display: flex;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    width: 100%;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    padding: 10px;
}
.user-interact .article-categories {
    -ms-flex-preferred-size: 300px;
    flex-basis: 300px;
    max-width: 300px;
    margin-right: auto;
    height: auto;
}
.description {
    position: absolute;
    padding: 20px 40px;
}
.border-radius {
    border-radius: var(--border-r);
}
.comment-footer .reply a, .moderate-comment, .right {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}
.update-icon {
    background-image: url(https://modscraft.net/templates/modscraft/images/updates-icons.png);
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: text-top;
    margin-right: 4px;
}

.update-icon.trickytrials {
    background-position: -164px -16px;
}

.update-icon.trailstales {
    background-position: -148px -16px;
}

.update-icon.wild {
    background-position: -130px -16px;
}

.update-icon.cavesp2 {
    background-position: -114px -16px;
}

.update-icon.nether {
    background-position: -18px 0;
}

.update-icon.parity {
    background-position: -98px -16px;
}

.update-icon.foxes {
    background-position: -50px 0;
}

.update-icon.mods {
    background-position: -66px 0;
}

.update-icon.villagepillage {
    background-position: -82px 0;
}

.update-icon.secondvillagepillage {
    background-position: -98px 0;
}

.update-icon.firstvillagepillage {
    background-position: -114px 0;
}

.update-icon.pandaupdate {
    background-position: -130px 0;
}

.update-icon.commandsupdate {
    background-position: -148px 0;
}

.update-icon.phantomes {
    background-position: -164px 0;
}

.update-icon.conduit {
    background-position: 0 -18px;
}

.update-icon.aqua {
    background-position: -16px -16px;
}

.update-icon.bettertogether {
    background-position: -34px -15px;
}
#sidebar_l {
    width: 220px;
}
#main-head, #sub-head, .highslide-html, select {
    background-color: var(--bg-header);
}
.short h2 {
    font-size: 1.3em;
}
header a:hover {
    color: var(--bg-primary);
}
a img {
    border: 0;
}
.maincont img.lazy {
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
    max-width: 100%;
    height: auto;
}
.fullscreen img[data-src]:not(.lazy-loaded),
.mainstory img[data-src]:not(.lazy-loaded),
.maincont img[data-src]:not(.lazy-loaded) {
    opacity: 0;
    transition: opacity .3s ease-in-out;
    aspect-ratio: 16/9;
}

.fullscreen img.lazy-loaded, .mainstory img.lazy-loaded, .maincont img.lazy-loaded {
    opacity: 1;
}

.skins_row__case a {
    display: block;
    overflow: hidden;
    width: 120px;
    height: 240px;
}
.skins_row__img_wrapper {
    margin: 0 18px;
    display: inline-block;
    width: 64px;
}
#main-head .row, #main-head ul, .mlink, .social {
    display: -webkit-box;
    display: -ms-flexbox;
}
.skins_row__img_wrapper img {
    margin: 0;
    display: inline-block;
    width: 64px;
    height: 129px;
}
.title_block, span.list-of-versions-mcpe {
    font-size: 18px;
    font-weight: 600;
}
.article_stats {
    margin-right: 15px;
}
article, article .dcomments {
    margin-bottom: 15px;
}
article.shortstory {
    position: relative;
}

.shortstory.halloween {
    position: relative;
    border: 2px solid #ff7a00;
    box-shadow: 0 0 12px rgba(255, 110, 0, 0.4);
}

.shortstory.halloween::before {
    content: "🎃 Halloween";
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 120, 0, 0.15);
    color: #ff6b00;
    padding: 3px 8px;
    border-radius: 6px;
    backdrop-filter: blur(2px);
    pointer-events: none;
    user-select: none;
}

.shortstory .mainstory {
    padding: 10px 24px 0;
}
.shortstory a {
    color: var(--text-primary);
    text-decoration: none;
}
.full-link a {
    color: #b3b3b3;
}
#main-head .row {
    max-width: 90%;
    width: 1280px;
    display: flex;
    margin: 0 auto;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}
#main-head {
    height: 60px;
    z-index: 99;
    position: relative;
    overflow: hidden;
}

/* Snowfall animation (dark theme only) */
header {
    position: relative;
    overflow: hidden;
}
html.snow-enabled[data-theme="dark-mode"] header::before,
html.snow-enabled[data-theme="dark-mode"] header::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 100;
    background-image:
        radial-gradient(3px 3px at 10% 20%, rgba(255,255,255,0.9) 50%, transparent 50%),
        radial-gradient(2px 2px at 20% 50%, rgba(255,255,255,0.8) 50%, transparent 50%),
        radial-gradient(3px 3px at 30% 10%, rgba(255,255,255,0.9) 50%, transparent 50%),
        radial-gradient(2px 2px at 40% 70%, rgba(255,255,255,0.7) 50%, transparent 50%),
        radial-gradient(3px 3px at 50% 30%, rgba(255,255,255,0.85) 50%, transparent 50%),
        radial-gradient(2px 2px at 60% 60%, rgba(255,255,255,0.8) 50%, transparent 50%),
        radial-gradient(3px 3px at 70% 15%, rgba(255,255,255,0.9) 50%, transparent 50%),
        radial-gradient(2px 2px at 80% 45%, rgba(255,255,255,0.75) 50%, transparent 50%),
        radial-gradient(3px 3px at 90% 25%, rgba(255,255,255,0.85) 50%, transparent 50%),
        radial-gradient(2px 2px at 95% 80%, rgba(255,255,255,0.8) 50%, transparent 50%),
        radial-gradient(2px 2px at 5% 65%, rgba(255,255,255,0.7) 50%, transparent 50%),
        radial-gradient(3px 3px at 15% 85%, rgba(255,255,255,0.9) 50%, transparent 50%),
        radial-gradient(2px 2px at 25% 40%, rgba(255,255,255,0.75) 50%, transparent 50%),
        radial-gradient(3px 3px at 35% 90%, rgba(255,255,255,0.85) 50%, transparent 50%),
        radial-gradient(2px 2px at 45% 5%, rgba(255,255,255,0.8) 50%, transparent 50%),
        radial-gradient(3px 3px at 55% 75%, rgba(255,255,255,0.9) 50%, transparent 50%),
        radial-gradient(2px 2px at 65% 35%, rgba(255,255,255,0.7) 50%, transparent 50%),
        radial-gradient(3px 3px at 75% 55%, rgba(255,255,255,0.85) 50%, transparent 50%),
        radial-gradient(2px 2px at 85% 95%, rgba(255,255,255,0.8) 50%, transparent 50%);
    background-size: 100% 200px;
    animation: snowfall 8s linear infinite;
}
html.snow-enabled[data-theme="dark-mode"] header::after {
    animation-delay: -4s;
    background-image:
        radial-gradient(2px 2px at 8% 35%, rgba(255,255,255,0.8) 50%, transparent 50%),
        radial-gradient(3px 3px at 18% 75%, rgba(255,255,255,0.9) 50%, transparent 50%),
        radial-gradient(2px 2px at 28% 15%, rgba(255,255,255,0.7) 50%, transparent 50%),
        radial-gradient(3px 3px at 38% 55%, rgba(255,255,255,0.85) 50%, transparent 50%),
        radial-gradient(2px 2px at 48% 85%, rgba(255,255,255,0.8) 50%, transparent 50%),
        radial-gradient(3px 3px at 58% 25%, rgba(255,255,255,0.9) 50%, transparent 50%),
        radial-gradient(2px 2px at 68% 65%, rgba(255,255,255,0.75) 50%, transparent 50%),
        radial-gradient(3px 3px at 78% 5%, rgba(255,255,255,0.85) 50%, transparent 50%),
        radial-gradient(2px 2px at 88% 45%, rgba(255,255,255,0.8) 50%, transparent 50%),
        radial-gradient(3px 3px at 98% 70%, rgba(255,255,255,0.9) 50%, transparent 50%),
        radial-gradient(2px 2px at 3% 90%, rgba(255,255,255,0.7) 50%, transparent 50%),
        radial-gradient(3px 3px at 13% 50%, rgba(255,255,255,0.85) 50%, transparent 50%),
        radial-gradient(2px 2px at 23% 10%, rgba(255,255,255,0.8) 50%, transparent 50%),
        radial-gradient(3px 3px at 33% 60%, rgba(255,255,255,0.9) 50%, transparent 50%),
        radial-gradient(2px 2px at 43% 30%, rgba(255,255,255,0.75) 50%, transparent 50%),
        radial-gradient(3px 3px at 53% 95%, rgba(255,255,255,0.85) 50%, transparent 50%),
        radial-gradient(2px 2px at 63% 20%, rgba(255,255,255,0.8) 50%, transparent 50%),
        radial-gradient(3px 3px at 73% 80%, rgba(255,255,255,0.9) 50%, transparent 50%),
        radial-gradient(2px 2px at 83% 40%, rgba(255,255,255,0.7) 50%, transparent 50%);
}
@keyframes snowfall {
    0% { background-position: 0 -200px; }
    100% { background-position: 0 200px; }
}

#main-head ul {
    display: flex;
    margin-left: 20px;
}
.right {
    margin-left: auto;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}
ul.head-menu, ul.subhead-menu {
    list-style-type: none;
}
.supportedversions {
    padding: 24px;
    background: var(--bg-secondary);
    margin-top: 10px;
}
.supportedversions-title {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
}
.mlink, select {
    font-size: 14px;
}
.supportedversions-list div {
    font-weight: 700;
    margin: 10px 5px 0 0;
    text-align: center;
    padding: 8px;
    background-color: var(--green);
    color: #ffffff;
}
.fullscreen img {
    width: 100%;
    height: auto;
}
.supportedversions-list div a {
    color: #ffffff;
}
.article-banner {
    width: 100%;
    height: 150px;
    border-radius: 10px;
    margin-bottom: 24px;
    max-width: 100%;
}
.advertising {
    min-height: 266px;
}
@media screen and (max-width: 640px) {
    .article-banner {
        height: 250px;
    }
    main {
        padding: 0;
    }
    .article-top {
        padding: 0 16px;
    }
    .border-radius {
        border-radius: 0;
    }
    .supportedversions-list .border-radius {
        border-radius: var(--border-r);
    }
}
@media screen and (max-width: 1030px) {
    #sub-head, header {
        position: fixed;
        top: 0;
    }
    #sub-head, .background-menu {
        width: 100%;
        height: 100%;
        top: 0;
    }
    h1.article-title {
        color: var(--text-primary);
        font-size: 22px;
        line-height: 1.3;
    }
    .fullstory, .serverfullstory {
        padding: 10px;
    }
    .maincont {
        line-height: 1.5em;
    }
    main {
        margin-top: 70px;
        overflow: hidden;
    }
    ul.head-menu li a, ul.subhead-menu li a {
        line-height: 32px;
        padding: 10px 20px;
        display: block;
    }
    ul.head-menu {
        height: 50%;
        overflow-y: auto;
    }
    ul.subhead-menu {
        overflow-y: auto;
        max-height: calc(100vh - 120px);
        -webkit-overflow-scrolling: touch;
    }
    .search-icon.search-mobile {
        -webkit-filter: invert(0);
        filter: invert(0);
    }
    #main-head .row {
        height: 100%;
    }
    #sub-head.open {
        visibility: visible;
        opacity: 1;
        -webkit-transition: left linear, opacity .2s linear, visibility;
        -o-transition: left linear, opacity .2s linear, visibility;
        transition: left linear, opacity .2s linear, visibility;
        left: 0;
        background-color: rgba(0, 0, 0, 0.45);
    }
    #sub-head.open .row {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        -webkit-transition: -webkit-transform .3s .2s;
        transition: transform .3s .2s;
        -o-transition: transform .3s .2s;
        transition: transform .3s 0.2s, -webkit-transform .3s .2s;
        overflow: auto;
    }
    header {
        left: 0;
        right: 0;
        z-index: 1002;
    }
    #sub-head {
        left: -100%;
        opacity: 0;
        visibility: hidden;
        -webkit-transition: left 0 linear 0.2s, background-color 0.2s, opacity .2s linear 0.2s, visibility 0 .4s;
        -o-transition: left 0 linear 0.2s, background-color 0.2s, opacity .2s linear 0.2s, visibility 0 .4s;
        transition: left 0 linear 0.2s, background-color 0.2s, opacity .2s linear 0.2s, visibility 0 .4s;
        z-index: 2;
        background-color: transparent;
    }
    #sub-head .row {
        height: 100%;
        width: 75%;
        max-width: 300px;
        position: relative;
        background: var(--bg-header);
        z-index: 99;
        margin: 60px 0;
        -webkit-transform: translate3d(-100%, 0, 0);
        transform: translate3d(-100%, 0, 0);
        -webkit-transition: -webkit-transform .3s;
        transition: transform .3s;
        -o-transition: transform .3s;
        transition: transform 0.3s, -webkit-transform .3s;
    }
    .background-menu {
        position: absolute;
        left: 0;
        z-index: 1;
    }
    #sub-head li {
        margin: 4px 0;
        font-size: 18px;
        padding: 15px;
    }
}
.story #searchinput {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}
@media screen and (min-width: 925px) {
    #search {
        position: relative;
    }
    #search .search-icon {
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        width: 18px;
        height: 18px;
    }
    .close-icon {
        display: none;
    }
}
@media screen and (min-width: 1030px) {
    #sub-head .row, #sub-head ul {
        display: -webkit-box;
        display: -ms-flexbox;
        width: 100%;
    }
    .fullstory, .serverfullstory {
        padding: 13px;
    }
    .background-menu {
        visibility: hidden;
    }
    #sub-head {
        height: 50px;
    }
    #sub-head .row {
        max-width: 90%;
        width: 1280px;
        height: 100%;
        display: flex;
        margin: 0 auto;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }
    #sub-head ul {
        display: flex;
    }
    .subhead-menu li {
        margin-right: 30px;
    }
    .head-menu li {
        margin-left: 10px;
    }
    .head-menu {
        margin-left: auto;
    }
    .ads_min, .mobileNav, .search-mobile, header .close {
        display: none;
    }
    .ads_adpd, .main_description {
        display: block;
    }
    span.article_stats .svg-icons {
        -webkit-filter: opacity(0.2);
        filter: opacity(0.2);
    }
    .supportedversions {
        margin: 15px 0;
    }
    .story.searchpage {
        margin: 0 0 20px;
    }
    .header-elements {
        border-radius: var(--border-r);
    }
    .header-elements .dark-color-scheme, .header-elements .light-color-scheme {
        display: none !important;
    }
    main {
        width: 1280px;
    }
    .maincont h1 {
        font-size: 1.4em;
        line-height: 1.4em;
    }
    .container {
        overflow: hidden;
        position: relative;
        margin: 0;
        width: auto;
        padding: 0;
        border: 1px solid #cecece;
    }
    .main_description {
        font-size: 14px;
        line-height: 1.6em;
        color: #666;
        font-weight: 300;
    }
}
.heading, .mlink {
    font-weight: 600;
}
a, button, input, textarea {
    outline: 0;
}
select {
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    line-height: 1.42857143;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 0 4px 4px 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    -webkit-transition: border-color .15s ease-in-out, -webkit-box-shadow .15s ease-in-out;
    -o-transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out, -webkit-box-shadow .15s ease-in-out;
}
hr {
    border: 0;
    border-top: 1px solid #dbe8ed;
    height: 1px;
    margin-bottom: 1px;
    margin-top: 4px;
}
.maincont li {
    padding-left: 16px;
}
.fullstory ul {
    list-style: none;
    padding-left: 16px;
}
.fullstory ul ul {
    padding-left: 20px;
}
.fullstory li {
    position: relative;
    padding-left: 16px;
}
.fullstory li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    display: block;
    background-color: var(--text-muted);
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.fullstory li li:before {
    width: 5px;
    height: 5px;
    background-color: transparent;
    border: 1px solid var(--text-muted);
}
.sitemap_categories .root ul {
    margin-left: 0;
    line-height: 1.5em;
}
.root li {
    margin-left: 25px;
    line-height: 1.5em;
}
ul {
    margin: 0;
    list-style: disc;
}
ol {
    list-style: decimal;
}
#blind-animation .comments-tree-list, #dle-comments-list .comments-tree-list, .reset, .reset li {
    list-style: none;
}
.htmenu span, .thide {
    display: block;
    height: 0;
    line-height: normal;
}
.serverfullstory table, .svrinfo table, table.calendar, table.pm, table.tableform, table.userstop {
    border-collapse: collapse;
    border-spacing: 0;
}
#topmenu a, .addcombtn, .argmore a, .headlinks ul li a, .lmenu li a, .menubar ul a, .navigation a, .reply a {
    text-decoration: none !important;
}
.comment-footer .actions a, .fullviews a:hover, .help a, .sections-list>a:focus, .top_news_block a, a, a.download-item, a.download-item:hover, a.mc-button {
    text-decoration: none !important;
}
.wrapper {
    width: 1000px;
    max-width: 90%;
    margin: 0 auto;
}
.informer {
    padding-top: 13px;
    margin-bottom: 15px;
    border-top: 1px solid #b6cbd6;
}
.copyright, .copyright a {
    color: #6b7a81;
}
.baseinfo, .bhinfo ul, .bhinfo ul li, .copyright, .dates {
    float: left;
}
.maincont {
    text-align: left;
    color: var(--text-primary);
    overflow-wrap: break-word;
}
.fullviews a, .mlink {
    line-height: 40px;
}
.mlink {
    color: #b3b3b3;
    display: flex;
    padding: 0 24px;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}
.argmore a b, .fullviews a {
    height: 40px;
    border-left: 1px solid #cecece;
}
.fullviews a {
    float: right;
    margin: 0;
    color: var(--text-primary);
    background: var(--bg-primary);
}
.basetags, .editdate {
    font-size: .9em;
    text-align: right;
    color: #6c838e;
}
.basetags, .scriptcode, fieldset {
    text-align: left;
}
.basetags {
    padding-top: 10px;
    border-top: 1px solid #dbe8ed;
}
.error {
    border: 1px solid #6d4595;
    border-width: 1px 0;
    color: #ead6d6;
    padding: 10px 15px 10px 60px;
    font-style: italic;
    background: #a60d0d;
}
.dcomments input.commentsreplyname, .dcomments input.info, .dcomments textarea {
    border-radius: var(--border-r);
    padding: 10px;
    position: relative;
    width: 100%;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    outline: 0;
}
.comments-head {
    padding: 20px;
}
.dcomments input.commentsreplyname, .dcomments input.info {
    height: 40px;
    border: 1px solid var(--border-light);
    margin-top: 10px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
.dcomments textarea {
    height: 120px;
    border: 1px solid var(--border-light);
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
.com_info {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-top: 5px;
}
.comment .quote {
    margin: 0;
    padding: 25px 24px 25px 50px;
}
.comment .quote:before {
    font-size: 2em;
    top: 15px;
}
.comment .reply-icon {
    margin-right: 6px;
}
#dlefastreplycomments, .comments-tree-item .comment {
    padding: 20px 20px 0px;
}
li > ol.comments-tree-list, li div> ol.comments-tree-list {
    border-left: 1px solid rgba(0,0,0,.1);
    margin: 0 15px;
}
.com_content {
    margin-left: 12px;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}
.com_content .title, .highslide-display-block {
    display: block;
}
.comment-footer .actions {
    display: -webkit-box;
    display: -ms-flexbox;
}
.footer__navigation, .online, .versions-history ul li {
    display: inline-block;
}
.com_content .com_text {
    margin-top: 8px;
    line-height: 22px;
    overflow-wrap: anywhere;
}
.com_content .quote {
    border-radius: var(--border-r);
}
.comment-footer {
    -ms-flex-preferred-size: 100%;
    flex-basis: 100%;
    padding-top: 10px;
    max-width: 100%;
}
.speedbar, textarea {
    padding: 0;
    font-size: 14px;
}
.comment-footer .actions {
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}
.comment-footer .actions a {
    color: #919191;
}
.edit-comment {
    margin-left: auto;
}
.delete-comment {
    margin-right: 10px;
}
.com_content .date {
    color: #919191;
    font-size: 14px;
}
.com_content .date.comment-link {
    cursor: pointer;
}
.com_content .date.comment-link:hover {
    text-decoration: underline;
}
.heading {
    margin-bottom: .3em;
}
.baseform, .dcomments {
    background: var(--bg-primary);
}
.tableform td.label {
    width: 20%;
    vertical-align: top;
    padding-right: 0;
    font-weight: 700;
}
.bb-pane>b, .checkbox input, .vertical-center {
    vertical-align: middle;
}
.fieldsubmit, .tableform td {
    padding: 10px 60px;
    border-top: 1px solid var(--bg-primary);
}
.checkbox {
    padding: 4px 0;
    line-height: 1em;
}
.checkbox input {
    margin-top: -2px;
}
.searchstyle {
    width: 480px;
}
.searchitem, .userinfo .lcol ul {
    font-size: .9em;
}
.searchtable fieldset legend {
    color: #404040;
}
.help li, .main_site, .news_content, .news_content_skins {
    padding: 10px;
}
.help a {
    color: #616161;
}
.help ul {
    margin-bottom: 8px;
}
.searchitem {
    border-top: 1px solid #dbe8ed;
    padding: 10px 0;
}
.site-footer {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    text-align: center;
}
.footer-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 20px;
}
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    margin-bottom: 20px;
}
.footer-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
}
.footer-nav a:hover {
    color: var(--blue);
}
.footer-disclaimer {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 15px;
}
.footer-disclaimer a {
    color: var(--blue);
}
.footer-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    align-items: center;
}
.footer-social:hover {
    transform: scale(1.4);
}
.footer-lang {
    display: flex;
    justify-content: center;
}
.footer-lang select {
    width: auto;
    min-width: 130px;
    max-width: 200px;
    border-color: var(--border-color);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 6px;
    cursor: pointer;
}

/* Tag Cloud */
.tagscloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    line-height: 1.5;
}
.tagscloud a {
    display: inline-block;
    padding: 6px 12px;
    background: var(--bg-secondary);
    border-radius: 6px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.tagscloud a:hover {
    background: var(--blue);
    color: #fff;
}
.clouds_xsmall { font-size: 12px; }
.clouds_small { font-size: 14px; }
.clouds_medium { font-size: 16px; font-weight: 500; }
.clouds_large { font-size: 18px; font-weight: 600; }
.clouds_xlarge { font-size: 20px; font-weight: 700; }

.header-distrib {
    background-color: var(--bg-secondary);
    height: 40px;
}
.header-distrib > div {
    height: 100%;
}
.header-distrib a {
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    padding: 0 10px;
}
.header-distrib span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 15px;
}
@media screen and (min-width: 760px) {
    .header-distrib {
        display: none;
    }
}
.mobileNav {
    cursor: pointer;
    position: relative;
    width: 28px;
    height: 28px;
}
.mobileNav .icon {
    width: 28px;
    height: 28px;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.mobileNav .icon-close {
    opacity: 0;
    transform: rotate(-90deg);
}
.mobileNav.active .icon-menu {
    opacity: 0;
    transform: rotate(90deg);
}
.mobileNav.active .icon-close {
    opacity: 1;
    transform: rotate(0);
}
@media screen and (min-width: 760px) {
    .mobileNav {
        margin-right: 10px;
    }
    .advertising {
        margin: 10px 0;
    }
    .site-footer {
        padding: 40px 0;
    }
    .article-bar {
        height: auto;
    }
    .dcomments .form-group, .user-interact {
        display: -webkit-box;
        display: -ms-flexbox;
    }
    .user-interact {
        display: flex;
        -webkit-box-flex: 1;
        -ms-flex: 1;
        flex: 1;
        -ms-flex-preferred-size: 300px;
        flex-basis: 300px;
        width: 300px;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }
    .advertising {
        min-height: 200px;
    }
    .supportedversions {
        border-radius: var(--border-r);
    }
    .header__logo, main {
        display: block;
    }
    main {
        max-width: 90%;
    }
    .dcomments .form-group {
        display: flex;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
    }
    .dcomments input.info {
        max-width: 48%;
    }
}
.user-avatar {
    width: 32px;
    height: 32px;
    margin-right: 20px;
    background: var(--bg-primary);
}
a {
    background-color: transparent;
}
.loading__ring svg {
    width: 100%;
    height: 100% 
}
.loading,.loading__ring {
    width: 50px;
    height: 50px 
}
@-webkit-keyframes rotate {
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg) 
    }
}
@keyframes rotate {
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg) 
    }
}
.loading__ring {
    position: absolute 
}
.loading__ring:first-child {
    -webkit-transform: skew(30deg,20deg);
    transform: skew(30deg,20deg) 
}
.loading__ring:last-child {
    -webkit-transform: skew(-30deg,-20deg) scale(-1,1);
    transform: skew(-30deg,-20deg) scale(-1,1) 
}
.loading__ring:last-child svg {
    -webkit-animation-delay: -.5s;
    animation-delay: -.5s 
}
.loading__ring svg {
    -webkit-animation: rotate 1s linear infinite;
    animation: rotate 1s linear infinite;
    fill: rgba(0,0,0,.5) 
}
.title_quote {
    overflow: hidden;
    font-size: 18px;
    cursor: pointer;
    font-weight: 700;
    outline: 0;
}
.quote, .scriptcode {
    padding: 5px;
    overflow: hidden;
}
.title_quote {
    border-bottom: 0;
    font-weight: 700;
}
.title_spoiler {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    font-size: 18px;
    font-weight: 700;
    gap: 10px;
    outline: none;
    overflow: hidden;
    padding: 10px 15px;
}
.title_spoiler svg {
    vertical-align: middle;
    margin-top: -4px;
    margin-right: 7px;
    height: 16px;
    width: 16px;
}
.title_spoiler.showed {
    border-radius: 10px 10px 0 0;
}
.title_spoiler a {
    color: var(--text-primary);
}
.title_spoiler a:nth-child(2) {
    width: 100%;
    text-decoration: none;
}
.title_spoiler a img {
    margin-bottom: 0 !important;
    width: -webkit-fit-content !important;
    width: -moz-fit-content !important;
    width: fit-content !important;
}
.text_spoiler {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    margin-bottom: 20px;
    padding: 10px 15px;
}
.text_spoiler img {
    margin-bottom: 0;
    padding: 0;
}
.text_spoiler img:last-child {
    margin-bottom: 0 !important;
}
.scriptcode {
    color: #004e8d;
    font-family: "Courier New";
}
.hide {
    background-color: #e8f3fa;
    padding: 5px;
    color: #3a78a5;
    margin: 0 0 1em;
}
.highslide-dimming, .highslide-loading {
    background-color: var(--text-primary);
}
textarea {
    min-height: 70px;
    max-height: 200px;
    outline: 0;
    border: 0;
    width: 100%;
    resize: none;
    overflow: auto;
}
.clr {
    clear: both;
}
.xfields_table td {
    vertical-align: top;
}
.attachment {
    color: gray;
}
fieldset {
    border: 1px solid #bfced6;
    padding: 5px;
}
.highslide-image {
    border: 2px solid var(--bg-primary);
}
.grecaptcha-badge, .highslide-active-anchor, .highslide-active-anchor img {
    visibility: hidden;
}
.highslide-loading {
    display: block;
    color: var(--bg-primary);
    font-size: 9px;
    font-weight: 700;
    padding: 3px;
    border: 1px solid var(--bg-primary);
}
a.highslide-full-expand {
    background: no-repeat;
    display: block;
    margin: 0 10px 10px 0;
    width: 34px;
    height: 34px;
}
.highslide-caption {
    display: none;
    padding: 5px;
    background: var(--bg-primary);
}
#searchsuggestions {
    border-radius: var(--border-r);
    z-index: 999;
    width: 280px;
    background-color: #459653;
    font-size: 10px;
    line-height: 14px;
}
#searchsuggestions a {
    padding: 5px;
    display: block;
    background-color: var(--bg-primary);
    clear: left;
    height: 75px;
}
#searchsuggestions a:hover {
    background-color: #fdd08b;
    color: var(--bg-primary);
}
#searchsuggestions a span.searchheading {
    background: #459653;
    display: block;
    font-weight: 700;
    padding: 5px;
    color: var(--bg-primary);
    border-radius: var(--border-r);
}
.story.searchpage {
    padding: 20px;
    background: var(--bg-primary);
}
.story #searchinput {
    padding: 10px;
    outline: 0;
    border-radius: var(--border-r);
}
#searchsuggestions span.seperator {
    float: right;
    padding-right: 15px;
    margin-right: 5px;
}
#searchsuggestions span.seperator a {
    background-color: transparent;
    display: block;
    height: auto;
    color: var(--bg-primary);
}
#searchsuggestions span.notfound {
    padding: 5px;
    background-color: var(--bg-primary);
    display: block;
    height: auto;
    color: var(--text-primary);
}
.ui-helper-hidden-accessible {
    position: absolute;
    left: -99999999px;
}
.ui-helper-reset {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    line-height: 1.3;
    font-size: 100%;
}
.ui-helper-clearfix:after {
    clear: both;
    content: ".";
    display: block;
    height: 0;
    visibility: hidden;
}
* html .ui-helper-clearfix {
    height: 1%;
}
.dle-alert, .dle-confirm, .dle-promt {
    padding: 20px 1em !important;
}
.seed {
    margin: 10px 0;
    z-index: 1;
    display: inline-block;
    border-bottom: 3px solid #432;
    line-height: 1.3em;
    font-size: 1.5em;
    position: relative;
    overflow: hidden;
    width: 100%;
}
.seed:before {
    content: "Сид:";
    position: absolute;
    margin: 0 -55px;
    line-height: 1.2em;
    font-weight: 700;
    z-index: -1;
}
.top_news_block a {
    display: block;
    margin-bottom: 10px;
    color: var(--text-primary);
    text-decoration: none;
    text-align: center;
    font-size: 14px;
    height: auto;
}
.top_news_block img {
    width: 100%;
    height: auto;
    opacity: .9;
}
article.banner {
    margin: 0 auto;
    color: #ffffff;
    background-image: linear-gradient(290deg, #0b16a8 1%, #6c9c86, var(--green) 100%);
    margin-bottom: 10px;
    overflow: hidden;
}
article.banner h1 {
    font-size: 22px;
    font-weight: 800;
}
article.banner>div {
    padding: 30px 20px;
}
article.banner p {
    font-size: 14px;
    padding-top: 12px;
}
article.banner a {
    text-decoration: underline;
    color: var(--bg-primary);
}
.title_block {
    text-align: center;
    padding: 10px 15px;
}
.article-header {
    padding: 0 8px;
}
.svrinfo {
    margin-top: 10px;
}
.article-meta-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    bottom: auto;
    left: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}
.article-meta-overlay .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 6px;
    color: #fff;
    font-size: 12px;
    backdrop-filter: blur(4px);
}
.article-meta-overlay .meta-item .icon {
    width: 14px;
    height: 14px;
    fill: #fff;
}
@media (max-width: 480px) {
    .article-meta-overlay .meta-item {
        padding: 4px 8px;
        gap: 4px;
        font-size: 10px;
    }
    .article-meta-overlay .meta-item .icon {
        width: 12px;
        height: 12px;
    }
}
.fullscreen .values_stats {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    width: 100%;
    font-weight: 600;
}
.sub-categories .row {
    display: -webkit-box;
    display: -ms-flexbox;
}
@media screen and (min-width: 450px) {
    h1.article-title {
        color: var(--text-primary);
        font-size: 26px;
        line-height: 1.3;
    }
    .fullscreen .article-header h1 {
        color: var(--bg-primary);
        position: absolute;
        bottom: 0;
        margin: 0;
        padding: 15px 30px 20px;
        width: 100%;
        background: -o-linear-gradient(bottom, rgba(0, 0, 0, 0.4), rgba(255, 255, 255, 0));
        background: -webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.4)), to(rgba(255, 255, 255, 0)));
        background: linear-gradient(to top, rgba(0, 0, 0, 0.4), rgba(255, 255, 255, 0));
    }
    .fullscreen .article__category a {
        color: var(--bg-primary);
        padding: 15px;
        display: inline-block;
    }
    .fullscreen .article__category a:hover {
        background: rgba(255, 255, 255, 0.2);
        text-decoration: none;
    }
}
.bbcodes, .btn-success {
    color: var(--bg-primary);
    background-color: var(--green);
}
.main_icon_text {
    padding: 5px 0;
}
.bbcodes, .bbcodes-falce, .btn {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    vertical-align: middle;
    background-image: none;
}
.sections-list>a, .texuressections-list>a {
    line-height: 60px;
    font-size: 15px;
    font-weight: 600;
}
.file-info>span, .mc-button, .quote span, summary {
    font-weight: 700;
}
.sub-categories {
    position: relative;
    background: var(--bg-primary);
    margin-bottom: 20px;
    padding: 20px;
    overflow: hidden;
}
.sub-categories button {
    color: #ffffff;
    background-color: var(--green);
    border-radius: var(--border-r);
    border-width: 0;
    cursor: pointer;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    list-style: none;
    margin: 0;
    padding: 10px 12px;
    text-align: center;
    transition: all 200ms;
    vertical-align: baseline;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    position: absolute;
    bottom: 10px;
    right: 10px;
}
.sub-categories .row {
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-flex: 0;
    -webkit-box-orient: horizontal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    height: 70px;
}
.flex {
    -webkit-box-sizing: border-box;
}
.sub-categories a {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
    margin-top: 10px;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    text-decoration: none;
    white-space: nowrap;
}
.sub-categories a.active, .sub-categories a:hover {
    color: #0074d9;
    background-color: #f9f9f9;
}
.btn-success {
    border-color: #4cae4c;
}
.bbcodes, .btn {
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    border-radius: var(--border-r);
    cursor: pointer;
}
.sections-list {
    overflow-x: auto;
    padding: 0;
    margin-bottom: 15px;
    background-color: var(--green);
}
.sections-list>a, .texuressections-list>a {
    display: table-cell;
    color: #ffffff;
    padding: 0 15px;
}
.sections-list>a:hover, .texuressections-list>a:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}
.sections-list a.selected, .texuressections-list a.selected {
    opacity: 1;
    -webkit-box-shadow: inset 0 -3px 0 0 var(--bg-primary);
    box-shadow: inset 0 -3px 0 0 var(--bg-primary);
}
.texuressections-list {
    overflow-x: auto;
    padding: 0;
    margin: 0 0 15px;
    background: #e46530;
    position: relative;
}
.mc-button {
    font-size: 1.3em;
    display: inline-block;
    line-height: 1;
    padding: .4em 1em;
    margin: 5px auto;
}
.fullstory, .serverfullstory {
    margin-bottom: 10px;
    line-height: 1.6em;
    background: var(--bg-primary);
}
.mc-button:hover {
    opacity: .8;
}
.mc-button.green {
    -webkit-box-shadow: .3em 0 0 0 rgba(50, 205, 63, 0.3), -.3em 0 0 0 rgba(50, 205, 63, 0.3), 0 .3em 0 0 rgba(50, 205, 63, 0.3), 0 -.3em 0 0 rgba(50, 205, 63, 0.3);
    box-shadow: .3em 0 0 0 rgba(50, 205, 63, 0.3), -.3em 0 0 0 rgba(50, 205, 63, 0.3), 0 .3em 0 0 rgba(50, 205, 63, 0.3), 0 -.3em 0 0 rgba(50, 205, 63, 0.3);
    background: #32cd3f;
    color: var(--bg-primary);
}
.section_title {
    padding: 15px 20px 0;
    font-size: 20px;
    color: var(--text-primary);
    font-weight: 500;
}
.news_block, .news_block_skins {
    margin: 5px;
    border-radius: 3px;
}
.news_img_skins {
    height: 130px;
}
.news_block_wrr {
    float: left;
    width: 33.33333333%;
}
.section {
    padding: 10px 0;
}
.section-body {
    padding: 10px;
    font-size: 0;
}
.section.file-info {
    background: #f7f7f7;
}
article.short.server {
    max-width: 650px;
}
article.short.server .versions {
    display: inline-block;
    margin-left: 7px;
}
article.short.server .line>span {
    padding: 4px 8px;
}
@media (max-width: 480px) {
    article.full h1>span, article.short.server .link, article.short.server .players, article.short.server .server {
        display: block;
    }
    article.full h1 {
        margin-bottom: 10px;
    }
    article.full h2 {
        font-size: 16px;
    }
    article.short h2 span {
        font-size: 15px;
    }
    .galleria img {
        padding: 2px;
        width: 50%;
    }
    article.short.server .versions {
        float: right;
        margin-left: 0;
    }
    article.short.server .versions li {
        margin-right: 0;
    }
}
.dropdown-menu {
    position: absolute;
    top: 40px;
    z-index: 1000;
    display: none;
    right: 0;
    font-size: 14px;
    background-color: #459653;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    border-radius: 1px;
    -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}
.fullscreen {
    background: var(--bg-primary);
}
.fullscreen, .quote {
    position: relative;
}
.file-item, .file-item .icon {
    display: -webkit-box;
    display: -ms-flexbox;
}
.count-info div {
    margin: 0 10px;
}
.file-item {
    background-color: var(--green);
    color: #ffffff;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 10px;
    border-radius: var(--border-r);
    margin-bottom: 10px;
}
.file-item a {
    display: -webkit-flex;
    display: flex;
}
.file-info>span {
    margin: 0;
}
.download-area.new-version {
    background-color: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--border-r);
}
.store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}
.store-buttons .store-button {
    flex: 1;
    min-width: 200px;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.store-buttons .store-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.store-buttons .store-button .file-item {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    gap: 14px;
    margin-bottom: 0;
}
.store-buttons .store-button .file-info span {
    color: #fff;
}
.store-buttons .store-button .file-info > span {
    font-weight: bold;
    font-size: 16px;
    display: block;
}
.store-buttons .store-button .file-info div span {
    font-size: 12px;
    opacity: 0.9;
}
.store-buttons .store-icon {
    flex-shrink: 0;
}
.store-buttons .microsoft-store .file-item {
    background: linear-gradient(135deg, #0078D4 0%, #005A9E 100%);
}
.store-buttons .google-play .file-item {
    background: linear-gradient(135deg, #01875f 0%, #006849 100%);
}
.store-buttons .app-store .file-item {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
}
.file-item .icon {
    width: 25px;
    height: 25px;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-right: 10px;
}
.panel {
    margin: 15px 0;
    border-radius: var(--border-r);
    padding: 20px;
}
.panel.panel-success {
    background: #d6e9c6;
}
.panel-success>.panel-heading {
    color: #3c763d;
}
.panel.panel-danger {
    background: #ebccd1;
}
.quote {
    background: #f3ece3;
    margin: -10px 0;
    padding: 25px 25px 25px 85px;
}
.quote:before {
    content: "«";
    position: absolute;
    opacity: .2;
    font-size: 90px;
    left: 20px;
    top: 32px;
}
.quote span {
    display: block;
    margin-top: 27px;
}
.quote p:first-child, ol, ul {
    margin-top: 0;
}
.quote p:last-child {
    margin-bottom: 0;
}
.quote a {
    color: #186baa;
    border-bottom: 1px solid #acd4f3;
}
.quote a:hover {
    color: #cd192e;
    border-bottom-color: #f9cdd2;
}
div.video {
    width: auto;
    max-width: 635px;
}
.skin-preview {
    display: block;
    margin: 0 auto;
}
#dle-comments-list {
    width: 100%;
    overflow: hidden;
}
.comments-tree-list li ol li .comment, .comments-tree-list>li>ol>li .comment {
    position: relative;
    box-shadow: none;
    -webkit-box-shadow: none;
    border-width: 0;
}
.mass_comments_action {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    border-top: 1px solid var(--border-light);
    padding: 2% 4%;
}
.mass_comments_action>select {
    height: 36px;
    padding: 5px;
    width: 200px;
    margin-left: 1em;
}
.com_content>.text {
    font-size: 1.08em;
}
.serverfullstory {
    font-size: 16px;
    color: #666;
    font-weight: 300;
}
summary {
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    font-size: 19px;
    padding: 4px 7px;
    border-bottom: 3px solid #337ab7;
    cursor: pointer;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    outline: 0;
}
.fullviews {
    width: 22px;
    float: right;
}
.fullviews b {
    margin: 0 15px;
}
.dcomments .avatar {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 6px;
    overflow: hidden;
}
.dcomments .avatar img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center;
    object-position: center;
    border-radius: var(--border-r);
}
li > ol > li > div .avatar, li div > ol > li > div .avatar {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
}
.btn-link, .btn-link:hover {
    color: #432;
}
.btn-link:active {
    color: #950e19;
}
.container {
    padding-bottom: 0;
    background: var(--bg-primary);
}
.fast-download .download-link, .svg-icons, .update-icon {
    background-repeat: no-repeat;
}
#server_class {
    display: block;
    width: 100%;
}
.table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th {
    padding: 8px;
    line-height: 1.42857143;
    vertical-align: top;
    border-top: 1px solid #ddd;
}
.table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
}
.server-logo {
    height: auto;
    width: 100%;
}
h2.server-name {
    padding: 0 10px;
}
article.server {
    border-radius: 15px;
}
.server-info {
    background-color: var(--bg-primary);
    width: 100%;
    color: #656565;
    height: auto;
    float: left;
}
@media screen and (min-width: 1024px) {
    .container {
        overflow: hidden;
        position: relative;
        margin: 0;
        padding: 0;
        width: 1000px;
    }
    .server {
        margin: 0 0 20px;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }
}
.table-scroll-x {
    overflow-x: auto;
}
.server-name a {
    font-size: 22px;
    color: #432;
}
.mcpe-version a, .versions-history a.new {
    color: #ffffff;
    background-color: var(--green);
}
.quote, textarea {
    word-wrap: break-word;
}
.main_site img {
    margin: 5px;
}
.article-bar {
    display: -webkit-box;
    display: -ms-flexbox;
}
.mcpe-version, .top_news_block li {
    width: 100%;
    margin: 0 auto 10px;
}
details>.details_content {
    margin-top: 0;
    padding: 0 10px;
    font-size: 15px;
}
.dropdown-menu {
    padding: 7px;
    margin: 4px;
    opacity: 1em;
}
.article_server-img {
    max-width: 468px;
    width: 100%;
}
.article-static {
    font-size: 14px;
}
.views-stats {
    display: flex;
    align-items: center;
}
.content-listen-body {
    display: flex;
    align-items: center;
    gap: 10px;
}
.content-listen-body .reset-icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    cursor: pointer;
}
.content-listen-body .reset-icon:hover {
    color: var(--text-primary);
}
.content-listen {
    gap: 8px;
}
.content-listen .icon {
    width: 24px;
    height: 24px;
}
.page_next-prev>span .svg-icons {
    -webkit-filter: invert(0.1);
    filter: invert(0.1);
}
.mcpe-version a {
    padding: 10px 0;
    font-size: 18px;
    font-weight: 600;
    display: block;
    width: 100%;
    line-height: 1.5;
    text-decoration: none;
    text-align: center;
}
.rating, .unit-rating {
    width: 115px;
    height: 23px;
}
.rating {
    font-size: 11px;
}
.unit-rating, .unit-rating li a:hover, .unit-rating li.current-rating {
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAACKCAYAAADVNHjPAAAJs0lEQVR4Xu1ca2wUVRS+U9rSIggtFmGpPLooLW/l0fJGrMVo6qtEICiWhwJCJCgalRB+aAk/QDEC+gchCgGNaAyikSC6LQilKMRYQaFVpLREaKFUaCkt43ems2S3u7Mz97ECydxkdnZ37j33u98999xz554ZxtzkMuAy4DJwyzCgXyprj6OvruttVIOOVS0wSN6FkmX43Z21S5uFc7PKumJUCguUBZbj9ctlk/SLu6bj//b4ramsK2rAWc3efNZU1t8Ae7k8G59K61IqzM8o6bReU/gMfhuqqFduW4nTLcD41fM9rrNNyJvKeuNT6QCNCuOsrnQi6XWQTtfsffGm1nFTTeYDZFzQYK0pnKvSLKpn/HJ5FlRjUAi7TWVeDNKxqlhXD/xCyezWbF8He6HkeVVmUelIB6hY/djsSwAab8Wslr4hXtO0q7LMcwPXG2sIVBy7ev5OnBNZQ+VgnJNYw+ksw/Rd3PV0JFDa7TkbcL2ZJXTfj3MDS/Acw7mRxSXVGP/HJZ3zl0cDdUsC7FquVxd5YJM/gd4ONwS3TCRk2oIGn52cCNev4VqTeVBPXDFlJ2hdZs7TOo/9KFxZWx1HwUqtnfdHU1g7nBMUgiZMhIF6kWS3NXoRkxWBZsljPhZm3F8QzE/R/9m4TYJZp0UbAHougZZSlcDa4KIO0/8uKHGKQCCfrvVYOl67zVtkV5Z/cBL4ym1fQOdT7YRzXY/1lmmeqXMA+gcn5biBk1BYlt76yfe/M30QJ/VEzhPrPaH1nD9Ji08udypMCLgBnvztEyvKpJkn0H3eSIc+cy00bK2K5ajWtEZU2B92eadTllrnQ9mNIqD9pki0Xip3laXkrBUWkJJTwMu0vy5hxk0BGlzYJ4SB15XmiJaVBR6Hqb6vaOUomylaVhZ4DBbE5KsIJZQdLeotygJvA6vSSQg1FSIfXXARLQzcYMpuORbrPclg7iI0rAkyhMaIMHCAaQMd7WVpLrvMXAZTNwDHQPgeL1vka4KMYSI9JnMnS4OOZoRUGus9hlnwSfjVx2HqyF2lyWqN1qH/Tsy2n0E9BphlyNcmGff/38BjAKJPQKXNYPZVeHXvtV7h4Df53L+jAUOgGgvhZa4x5gDGrkEG3VtEFutFQ7iGiasKLYpbUi30uEjzruoP0O9GWpYZk03ymLXIm4Eyv1Jn4EhQuYi27T399Lb1147O+hd++gLe2w7EsHEbo7poLmQ0Q9YW2wpVZUCl2fASe8rKg4xOkDVNVo5b3mXAZcBlwGXAZcBlwGXAZcBlwGUgmAEsEEZfO16wJBq8iC/dnKAp3/q5Vlsx00lW3jxRA45VzaMA04HVV6bh++O8wOzyRw84tsBROW1EJWDXjr4rTVEBjnVkinbmIMWoGAnfc/Af7YsqS1EBzs7uWgSEgbvLMfjvBWWoISg6wKt8FGQTnKp8c25q4NhSHIEB2SMEZH2lx7imKCln3AxjCgsP19Ypwq1WVSh6Anb7bitwuNab966XpSxeBmAdkhE50ZnMHCInCGRb3CoeSL9x53UULEjE7RG964h9iA3Yi/yInOheivMVRFD8YfyOS6rGXmedE0y2+5yYthewKt8M6G03smw4/MECFIygMkCM7uhS5MRlA3iip5Z1G/+V1n0qWaiQZKvjKLgOAraiJOVNwpGM4zbFoAkYyacJi4LQYlHn58wz5SUpVTG3TZ5gv636EII6OulKiTz1rN+S+Wb0BPVC2GSrKoGl4HPkATzdEqa4kmikJnbf2+MQi1tsbgZY1sEFnKTAFt/Ljq76FDofuBsh34hEzymWsWQyQJc42Z3gBm6Ab6zxsF+W+pSBT/RUskEFmbAoFU4ZEAJugu+GzaiNMH+TnFYWLh/M437szI3l3dMXBm6Ap+2QEyu+Ju9PBDxAFwL0RF7QVJfMdiEivrRmqM0cdubgX5Bla1pbNw7bis+KgCY53JWFMFtXOhL/ifVcXek4kZ5SA7wlekIMeMPp0Bhchy2RZ7zK95TDukKzVfmm3pDoCWM5Vl8pHg0HH90MdeVuuxzjdaXkCVoOcFiNg3CWqiKg0hFh5N+h5gIvB7zhdDpqC41cTvScY2nTVsPUjWZD198F34MChcNFucXAJW55AIQzyQGv8j3W2jLRhIKpOxee3SsUPUHmDvG5W1jmxl649n0IvirfLE7MRnYpOw797goZ9TjaQSVOwRXdrHmmLA/nIJnT+UQ4apPhqJGb3FI3xggGaIydU9W6ccKMA8AECKNQ7EYw+SVYzoPvvswOANj/DOynoszXKEsLh3iEgkwVYV2oDFZG+fqh+QdxXixq0ug2nV70mA4ZluHWQuAiFUJlD8PF7SUrGCY1CbI+kJXjlncZcBlwGXAZcBlwGXAZcBlwGXAZCGaguLh4yPbt28NuhchyJbx0c1JxRUXFYhxTnOTlzRM14OXl5V6AngFAw/G9Hy8wu/xRA3748OHNZuWx+P6OHRDe61EDDrav36HCd6H755EaExXgGJQhkRL4z+pZIF6yjfxRAQ6Gn2uNBv89KYTQopBy4BiIGQA5JAzwUbW1tWL30cOAVw787Nmzj1gxu3v37m9Vsa4c+IEDB+jtNWETeuJBVcCFug5dnlhdXe1/Zo2BZSNiguw2DnrVg2VKTU3di2MTMtSlpKT8jDNte+tpaWl/8jTKFjiswVKAmY4j9IE8nprs89IDfQ04Gs3GxGRlZS3PzMwM+0y0raqgYAEY+sa+XukcdNuZIicoOuMOgF5lBZpqsmXcDwfWInPHjh0HpOE5EJCbm3svVOdIpKyOgZMQgB8M8BEFOsAVMQtAZwA0vXMlYuICTpIwMBM2bdpEUTzcZW2wNC1atMjxO1uEK4effQQDVvgJ8cBGYAwVZmdnT+jYsaPlG2xaN1oYOAkC+GKAl4olBOh9eXl5Y+xUQylwE/wegBd67hiWYwksx2pe0JTf1hzaCQVbE+3yWF1PT08Xfm+FNHBYGuGnaDH73iPaaGngmO6FI4RQ9qEbBlxmMYyyFNUvlKQZR+XCOo6y3NbE30op4NBvywBgqgCm7gQOipu1TJBBEUbcSWovHzpq2dUwdctg6t4iRAA3FK7CoXDoIIMeSaDXq3ElKeDo6pDoIGIZJjKoJ+B7/ARXoQ1WQPsCV/+E1Bwjb3KhRmZZ4EGzJlheB5YXhgOB6ZwWDCPB/jiw7/PnAfD/N14lUDfB8vF58+bFWIEObAjYL8zPz4+nqd7/P2RxD3BhxqGbuVQxWF4JwK/zdDXYpzd9jAHgLLC/H7IewO89PDKE82JJ9xr0loLgpRNkLZYW4gpwGXAZcBlwGbilGPgPGnyQtbDMhi8AAAAASUVORK5CYII=);
    background-size: 23px auto;
}
.unit-rating {
    z-index: 0;
    margin: 0;
    padding: 0;
    position: relative;
    background-position: 0 -46px;
}
.unit-rating li {
    text-indent: -90000px;
    padding: 0;
    margin: 0;
    float: left;
}
ul.unit-rating li:before {
    content: none;
}
.unit-rating li a {
    display: block;
    width: 23px;
    height: 23px;
    text-decoration: none;
    border: 0 !important;
    text-indent: -9000px;
    z-index: 17;
    position: absolute;
    padding: 0;
}
.unit-rating li a:hover {
    background-position: 0 -23px;
    z-index: 2;
    left: 0;
}
.unit-rating a.r1-unit:hover {
    width: 23px;
}
.unit-rating a.r2-unit {
    left: 23px;
}
.unit-rating a.r2-unit:hover {
    width: 46px;
}
.unit-rating a.r3-unit {
    left: 46px;
}
.unit-rating a.r3-unit:hover {
    width: 69px;
}
.unit-rating a.r4-unit {
    left: 69px;
}
.unit-rating a.r4-unit:hover {
    width: 92px;
}
.unit-rating a.r5-unit {
    left: 92px;
}
.unit-rating a.r5-unit:hover {
    width: 115px;
}
.unit-rating li.current-rating {
    background-position: 0 0;
    position: absolute;
    height: 23px;
    display: block;
    text-indent: -9000px;
    z-index: 1;
    padding: 0;
}
.article-bar {
    display: flex;
    margin-bottom: 10px;
}
.fast-download, .fast-download a, .flex {
    display: -webkit-box;
    display: -ms-flexbox;
}
.article-rating {
    margin-left: auto;
}
#main .breadcrumbs {
    -webkit-box-flex: 1;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background-color: var(--bg-primary);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex: 1 1 100%;
    flex: 1 1 100%;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 10px;
    position: relative;
    max-width: 100%;
}
/* Sort dropdown */
#news_set_sort {
    position: relative;
    display: inline-flex;
    margin-left: auto;
}
#news-sort {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    transition: background 0.2s;
    user-select: none;
}
#news-sort:hover {
    border-radius: 8px;
    background: var(--bg-tertiary);
}
#news-sort .arrow-left {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
    transform: rotate(270deg);
}
#news_set_sort.open #news-sort .arrow-left {
    transform: rotate(90deg);
}
#news_set_sort .sort {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 180px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    padding: 4px;
    margin: 0;
}
#news_set_sort.open .sort {
    display: flex;
}
#news_set_sort .sort li {
    list-style: none;
    margin: 0;
    padding: 0;
}
#news_set_sort .sort li a {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.15s;
}
#news_set_sort .sort li a:hover {
    background: var(--border-light);
}
#news_set_sort .sort li.active a {
    color: var(--accent);
    font-weight: 500;
    background: var(--accent-light, rgba(76, 175, 80, 0.1));
}
#news_set_sort .sort li.asc a, #news_set_sort .sort li.asc a:hover {
    background: var(--text-primary);
    color: var(--bg-tertiary);
}
.bb-editor {
    position: relative;
    width: 100%;
    margin: 10px 0;
}
.editor {
    min-height: 150px;
    border: 1px solid var(--border-light);
    padding: 10px;
    overflow-y: auto;
    border-radius: 4px;
}
.editor:focus {
    border: 1px solid #ccc;
    outline: none;
}
.editor:empty:before {
    content: attr(placeholder);
    color: #888;
    pointer-events: none;
}
.bb-editor .smiles:hover circle, .bb-editor .smiles:hover path {
    stroke: #4eb891;
    -webkit-transition: all .3s ease;
    -o-transition: all .3s ease;
    transition: all .3s ease;
}
.bb-editor .smiles:hover .eye {
    fill: #4eb891;
    stroke: transparent;
    -webkit-transition: all .3s ease;
    -o-transition: all .3s ease;
    transition: all .3s ease;
}
a.fast-download {
    color: #ffffff;
    display: flex;
    padding: 10px 15px;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    text-decoration: none;
    margin: 10px 0;
}
.fast-download {
    background-color: var(--green);
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    border-radius: var(--border-r);
}
.fast-download div {
    text-transform: uppercase;
    font-weight: 700;
}
.versions-history {
    margin-left: auto;
    margin-top: 8px;
    margin-bottom: 8px;
    overflow-x: auto;
    padding: 0;
}
.versions-history ul {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    margin: 0;
    padding: 0;
}
.versions-history a {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
    margin-top: 10px;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    color: #ffffff;
    background-color: var(--bg-primary);
    text-decoration: none;
    white-space: nowrap;
    font-weight: 600;
}
/* Versions Carousel */
.versions-carousel-section {
    margin: 16px 0;
}
.versions-carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.versions-carousel-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}
.versions-carousel-nav {
    display: flex;
    gap: 8px;
}
.versions-carousel-nav button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}
.versions-carousel-nav button:hover {
    background: var(--bg-secondary);
}
.versions-carousel-nav button svg {
    fill: var(--text-primary);
    color: var(--text-primary);
}
/* До инициализации Owl Carousel — скрываем лишние элементы и ограничиваем размер */
.versions-history-carousel:not(.owl-loaded) {
    display: flex;
    overflow: hidden;
    gap: 16px;
}
.versions-history-carousel:not(.owl-loaded) .version-card {
    flex: 0 0 calc(25% - 12px);
    max-width: calc(25% - 12px);
}
@media (max-width: 768px) {
    .versions-history-carousel:not(.owl-loaded) .version-card {
        flex: 0 0 calc(50% - 8px);
        max-width: calc(50% - 8px);
    }
}
.versions-history-carousel .version-card {
    background: var(--bg-primary);
    border-radius: var(--border-r);
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.versions-history-carousel .version-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}
.versions-history-carousel .version-card-image {
    aspect-ratio: 16/9;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.versions-history-carousel .version-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.versions-history-carousel .version-card-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 40px;
}
.versions-history-carousel .version-type {
    font-size: 12px;
    color: var(--green);
    font-weight: 500;
}
.versions-history-carousel .version-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}
.versions-history-carousel .version-download {
    font-size: 13px;
    color: var(--green);
    margin-top: 4px;
}
.versions-history-carousel .version-card:hover {
    border-color: var(--green);
}
.button {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    font-weight: 500;
    justify-content: center;
    cursor: pointer;
    background-color: var(--deep-purple);
    border-radius: var(--border-r);
    font-size: 14px;
    color: #fff;
    padding: 0 10px;
    height: 28px;
    outline: none;
    border: none;
}
a.fast-download-btn {
    outline: 0;
    text-transform: uppercase;
    background-color: var(--bg-tertiary);
}
.flex {
    box-sizing: border-box;
    display: flex;
}
.actual-version>div>div, .fast-header  {
    display: -webkit-box;
    display: -ms-flexbox;
}
/* Mobile bottom navigation */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 10px 0;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}
.mobile-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 4px;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}
.mobile-nav-item svg {
    width: 24px;
    height: 24px;
}
.mobile-nav-item:hover,
.mobile-nav-item:active {
    color: var(--blue);
}
.actual-version>div>div {
    padding: 10px;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}
img.fast-version-logo {
    width: 90px;
    height: 90px;
    border-radius: 10px;
}
.fast-header {
    display: flex;
    align-items: center;
}
.fast-header>div {
    padding-left: 14px;
}
.actual-release>div, a.fast-download-btn {
    display: -webkit-box;
    display: -ms-flexbox;
}
.fast-header p {
    color: var(--text-primary);
    font-size: 14px;
}
.fast-version {
    background-color: var(--bg-primary);
    padding: 20px;
}
span.title {
    font-size: 24px;
    font-weight: 700;
}
.fast-version.border-radius>div:not(.fast-header) {
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}
.fast-version.border-radius>div:nth-child(2) {
    margin-top: 10px;
}
.actual-version {
    border: 1px solid var(--border-color);
    border-radius: var(--border-r);
    padding: 5px;
    width: 260px;
}
.actual-release>div {
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    padding: 15px;
}
.actual-release img {
    width: 140px;
    height: 80px;
}
span.date-last {
    color: silver;
    font-size: 14px;
}
.linktochanges a, a.fast-download-btn {
    color: var(--blue);
    font-size: 14px;
    text-align: center;
    text-decoration: none;
}
.actual-version img {
    width: 140px;
    height: 70px;
}
a.fast-download-btn {
    display: flex;
    width: 100%;
    height: 40px;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    border-radius: var(--border-r);
    font-weight: 700;
}
.actual-version>div, .flex.middle.center {
    display: -webkit-box;
    display: -ms-flexbox;
}
.flex.middle.center {
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}
.actual-version>div {
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}
code {
    white-space: break-spaces;
}
.linktochanges {
    margin: 15px 0;
}
.linktochanges a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e7f3ff 0%, #d4e8ff 100%);
    line-height: 20px;
    font-weight: 600;
    padding: 14px 20px;
    transition: all 0.2s ease;
}
.linktochanges a:hover {
    background: linear-gradient(135deg, #d4e8ff 0%, #c1ddff 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.15);
}
.linktochanges a svg {
    flex-shrink: 0;
}
.linktochanges a .arrow-icon {
    opacity: 0.6;
    transition: transform 0.2s ease;
}
.linktochanges a:hover .arrow-icon {
    transform: translateX(4px);
    opacity: 1;
}
.seed-block {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: 10px;
}
.seed-label {
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}
.seed-value {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 15px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}
.seed-value:hover {
    border-color: var(--blue);
    background: var(--bg-tertiary);
}
.seed-value:active {
    transform: scale(0.98);
}
.seed-value svg {
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.2s;
}
.seed-value:hover svg {
    opacity: 1;
}
.seed-value.copied {
    border-color: var(--green);
    background: rgba(16, 185, 129, 0.1);
}
.seed-value.copied svg {
    stroke: var(--green);
    opacity: 1;
}
.honeypot {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    visibility: hidden;
}

/* === Servers === */
.server-card {
    position: relative;
    overflow: hidden;
}
.server-card h2 {
    font-size: 16px;
    margin: 0 0 6px 0;
    line-height: 1.3;
}
.server_banner {
    max-height: 100px;
    object-fit: cover;
}
.server-status-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    z-index: 10;
}
.server-status-indicator.online,
.status-dot.online {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}
.server-status-indicator.offline,
.status-dot.offline {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}
.server-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 6px;
}
.server-rank {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.server-description {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.server-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
    font-size: 11px;
}
.server-tags::before {
    content: none;
}
.server-stats {
    display: flex;
    gap: 12px;
    padding: 8px;
    background: var(--bg-secondary);
    border-radius: 6px;
    margin-bottom: 6px;
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}
.stat-item i {
    font-size: 14px;
    color: #667eea;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}
.stat-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.stat-label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.stat-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.online-count .current-players {
    color: #22c55e;
}
.online-count .separator {
    color: var(--text-muted);
    margin: 0 1px;
}
.btn-play-full,
.server-compact-play {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 6px 0;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-play-full {
    width: 100%;
}
.btn-play-full:hover,
.server-compact-play:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.4);
}
.server-image {
    width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: cover;
    object-position: center top;
}

/* Server Compact List */
.server-compact-wrapper {
    border-radius: 10px;
    background: var(--bg-secondary);
}
.server-compact-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
.server-compact-item {
    position: relative;
    padding: 12px;
    background: var(--bg-primary);
    transition: all 0.2s ease;
}
.server-compact-item:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.server-compact-status {
    position: absolute;
    top: 8px;
    right: 8px;
}
.server-compact-status .status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.server-compact-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.server-compact-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}
.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}
.info-label {
    color: var(--text-muted);
}
.info-value {
    font-weight: 600;
    color: var(--text-primary);
}
.server-compact-btnbox {
    margin-top: auto;
}
.server-compact-play {
    display: block;
    text-align: center;
}

/* Server Fullstory */
.server-fullstory {
    position: relative;
}
.server-fullstory h1 {
    font-size: 22px;
    margin: 0 0 8px 0;
}
.server-fullstory h3 {
    font-size: 16px;
    margin: 0 0 10px 0;
}
.server-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 18px;
    font-weight: 600;
    font-size: 12px;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}
.server-status-badge.online {
    background: rgba(34, 197, 94, 0.95);
    color: white;
}
.server-status-badge.offline {
    background: rgba(239, 68, 68, 0.95);
    color: white;
}
.server-status-badge .status-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: white;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.server-header-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}
.server-tags-full {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--bg-secondary);
    border-radius: 6px;
    margin-bottom: 12px;
}
.server-tags-full i {
    color: #667eea;
    font-size: 14px;
}
.tags-list {
    flex: 1;
    font-size: 12px;
    color: var(--text-secondary);
}
.server-connect-section {
    text-align: center;
    margin: 20px 0;
}
.btn-connect-large {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 12px 32px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}
.btn-connect-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}
.server-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}
.stat-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
}
.stat-card:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}
.stat-card .stat-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.stat-card .stat-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}
.stat-card .stat-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stat-card .online-players .current {
    color: #22c55e;
}
.stat-card .online-players .separator {
    color: var(--text-muted);
    margin: 0 2px;
}
.server-socials-section,
.server-description-section {
    margin: 20px 0;
}
.server-socials-section h3,
.server-description-section h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-primary);
    border-bottom: 2px solid #667eea;
    padding-bottom: 6px;
}
.socials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}
.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s ease;
}
.social-link:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-1px);
}
/* .xfieldimagegallery - fallback for non-carousel gallery */
.xfieldimagegallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.xfieldimagegallery li {
    margin: 0;
    padding: 0;
}
.xfieldimagegallery li:before {
    content: none;
}
.xfieldimagegallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}
.xfieldimagegallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
}
.server-details-table {
    background: var(--bg-primary);
    border-radius: 8px;
    overflow: hidden;
    font-size: 13px;
}
.server-details-table td {
    padding: 8px 12px;
    border-color: var(--border-color);
}

/* === Sidebar === */
.sidebar-block {
    background: var(--bg-primary);
    border-radius: var(--border-r);
    padding: 16px;
    margin-bottom: 12px;
}
.sidebar-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    padding-bottom: 8px;
}
/* Sidebar actions (fullstory) */
.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sidebar-action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-secondary);
    border-radius: var(--border-r);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.sidebar-action:hover {
    background: var(--bg-tertiary);
    transform: translateX(3px);
    color: var(--text-primary);
}
.sidebar-action svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
.sidebar-action--download svg {
    color: var(--green);
}
.sidebar-action--comments svg {
    color: var(--blue);
}
.sidebar-action--share svg {
    color: #e91e63;
}

.sidebar-socials {
    text-align: center;
}
.sidebar-socials .suggest {
    display: block;
    margin-bottom: 12px;
}
.sidebar-socials-icons {
    display: flex;
    justify-content: center;
    gap: 8px;
}
.sidebar-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.2s ease;
}

.sidebar-social:hover {
    color: #ffffff;
    transform: scale(1.4);
}

/* Sidebar Comments */
.sidebar-comment {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}
.sidebar-comment:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.sidebar-comment:first-child {
    padding-top: 0;
}
.sidebar-comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.sidebar-comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.sidebar-comment-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.sidebar-comment-author {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-comment-date {
    font-size: 10px;
    color: var(--text-muted);
}
.sidebar-comment-text {
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}
.sidebar-comment-link {
    font-size: 11px;
    color: var(--blue);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sidebar-comment-link:hover {
    text-decoration: underline;
}

/* === Search Page === */
.search-form {
    padding: 20px 0;
}
.search-simple {
    max-width: 600px;
    margin: 0 auto;
}
.search-field-wrapper {
    margin-bottom: 16px;
}
.search-field-wrapper input[type="text"],
.search-field-wrapper input[type="search"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-r);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
}
.search-field-wrapper input:focus {
    border-color: var(--blue);
}
.search-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: var(--border-r);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff !important;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
    color: #ffffff !important;
}
.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Extended Search */
.search-extended {
    max-width: 800px;
    margin: 0 auto;
}
.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.search-section {
    background: var(--bg-secondary);
    border-radius: var(--border-r);
    padding: 16px;
}
.search-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--blue);
}
.search-options {
    margin-bottom: 12px;
}
.search-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}
.search-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}
.search-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
}
.search-filter span {
    color: var(--text-muted);
    min-width: 80px;
}
.search-filter select {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 13px;
}
.search-categories {
    max-height: 200px;
    overflow-y: auto;
}
.search-categories label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}
.search-result-msg {
    text-align: center;
    padding: 16px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* ================================================
   MINECRAFT MARKETPLACE STYLES
   ================================================ */

/* Marketplace Page Header */
.marketplace-header {
    padding: 24px;
    margin-bottom: 16px;
    text-align: center;
}
.marketplace-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.marketplace-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Marketplace Filters */
.marketplace-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
    margin-bottom: 16px;
    justify-content: center;
}
.marketplace-filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}
.marketplace-filter-btn:hover {
    background: var(--green);
    color: #fff;
}
.marketplace-filter-btn.active {
    background: var(--green);
    color: #fff;
}

/* Marketplace Grid */
.marketplace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    padding: 0;
}
@media (max-width: 768px) {
    .marketplace-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
@media (max-width: 480px) {
    .marketplace-grid {
        grid-template-columns: 1fr;
    }
}

/* Marketplace Item Card */
.marketplace-item {
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.marketplace-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.marketplace-item a {
    text-decoration: none;
    color: inherit;
}
.marketplace-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.marketplace-card .marketplace-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-secondary);
}
.fullstory .marketplace-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: var(--border-r) var(--border-r) 0 0;
}
.marketplace-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}
.marketplace-type {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
}
.marketplace-type.AddOn {
    background: #4CAF50;
}
.marketplace-type.WorldTemplate {
    background: #2196F3;
}
.marketplace-type.ResourcePack {
    background: #9C27B0;
}
.marketplace-type.MashupPack {
    background: #FF5722;
}
.marketplace-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.marketplace-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.marketplace-studio {
    font-size: 13px;
    color: var(--green);
}
.marketplace-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 8px;
}
.marketplace-rating,
.marketplace-price {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
}
.marketplace-rating {
    color: #FF9800;
}
.marketplace-rating .icon {
    width: 14px;
    height: 14px;
    fill: #FF9800;
}
.marketplace-price {
    color: #FFD700;
}
.marketplace-price .icon {
    width: 16px;
    height: 16px;
}
.marketplace-price-old {
    text-decoration: line-through;
    opacity: 0.6;
    font-size: 12px;
}
.marketplace-free {
    color: #4CAF50;
    font-weight: 600;
}

/* Marketplace Full Story (Detail Page) */
.marketplace-detail .marketplace-hero {
    position: relative;
}
.marketplace-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 3px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}
.marketplace-play-btn:hover {
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    transform: translate(-50%, -50%) scale(1.1);
}
.marketplace-play-btn .icon {
    width: 32px;
    height: 32px;
    fill: #fff;
    margin-left: 4px;
}
.marketplace-video-warning {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.4;
    max-width: 90%;
    text-align: center;
    z-index: 5;
}
.marketplace-video-warning svg {
    flex-shrink: 0;
    fill: currentColor;
    opacity: 0.8;
}
@media (max-width: 480px) {
    .marketplace-play-btn {
        width: 56px;
        height: 56px;
        border-width: 2px;
    }
    .marketplace-play-btn .icon {
        width: 22px;
        height: 22px;
        margin-left: 3px;
    }
    .marketplace-video-warning {
        left: 8px;
        right: 8px;
        bottom: 8px;
        transform: none;
        max-width: none;
        font-size: 12px;
        padding: 6px 10px;
        gap: 6px;
    }
    .marketplace-video-warning svg {
        width: 14px;
        height: 14px;
    }
}
.marketplace-hero.video-playing {
    aspect-ratio: 16 / 9;
}
.marketplace-hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}
.marketplace-info-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--border-r);
}
.marketplace-info-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.marketplace-info-row .info-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
}
.marketplace-studio-link {
    color: var(--green);
    font-weight: 600;
    text-decoration: none;
}
.marketplace-studio-link:hover {
    text-decoration: underline;
}
.marketplace-type-badge {
    display: inline-block;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    padding: 4px;
    max-width: fit-content;
}
.marketplace-type-badge.AddOn {
    background: #4CAF50;
}
.marketplace-type-badge.WorldTemplate {
    background: #2196F3;
}
.marketplace-type-badge.ResourcePack {
    background: #9C27B0;
}
.marketplace-type-badge.MashupPack {
    background: #FF5722;
}
.marketplace-price-value {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 18px;
    font-weight: 700;
    color: #B8860B;
}
html[data-theme="dark-mode"] .marketplace-price-value {
    color: #FFD700;
}
.marketplace-price-value .marketplace-price-old {
    font-size: 14px;
    text-decoration: line-through;
    opacity: 0.6;
}

/* Marketplace Pass (Realms Plus) */
.marketplace-realms-plus {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--green);
    font-weight: 600;
}
.marketplace-realms-plus .realms-plus-icon {
    color: var(--green);
    flex-shrink: 0;
}
.marketplace-realms-plus .realms-plus-info {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    cursor: help;
    transition: color 0.2s;
    position: relative;
}
.marketplace-realms-plus .realms-plus-info:hover {
    color: var(--text-secondary);
}
/* Tooltip для мобильных устройств */
.marketplace-realms-plus .realms-plus-info .info-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 100;
    pointer-events: none;
}
.marketplace-realms-plus .realms-plus-info .info-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--bg-primary);
}
.marketplace-realms-plus .realms-plus-info:hover .info-tooltip,
.marketplace-realms-plus .realms-plus-info:focus .info-tooltip,
.marketplace-realms-plus .realms-plus-info.active .info-tooltip {
    opacity: 1;
    visibility: visible;
}

.marketplace-rating-value {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 600;
    color: #FF9800;
}
.marketplace-rating-value svg {
    display: block;
}
.marketplace-rating-count {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
}

/* Marketplace Pack Contents */
.marketplace-pack-contents {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin: 10px 0;
    font-size: 14px;
    color: var(--text-secondary);
}
.marketplace-pack-contents .pack-content-item {
    display: inline-flex;
    align-items: center;
}
.marketplace-pack-contents .pack-content-item:not(:last-child)::after {
    content: "•";
    margin: 0 10px;
    color: var(--text-muted);
}

/* Marketplace Actions */
.marketplace-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 10px 0;
}
.btn-minecraft {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #3a971e;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-minecraft:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(68, 197, 138, 0.4);
    color: #ffffff;
}
.btn-minecraft .icon {
    width: 18px;
    height: 18px;
    fill: #fff;
}

/* Marketplace Disclaimer */
.marketplace-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    margin: 20px 0;
    background-color: rgba(26, 141, 248, 0.1);
    border: 1px solid rgba(26, 141, 248, 0.3);
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}
.marketplace-disclaimer .icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    color: var(--blue);
}
.marketplace-disclaimer b {
    color: var(--text-primary);
}
.marketplace-disclaimer u {
    text-decoration-color: var(--blue);
}

/* Marketplace Description */
.marketplace-description {
    margin: 20px 0;
}
.marketplace-description h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

/* Marketplace Tags */
.marketplace-tags {
    margin: 20px 0;
}
.marketplace-tags h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.marketplace-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.marketplace-tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border-radius: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Marketplace Video */
.marketplace-video {
    margin: 20px 0;
}
.marketplace-video h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.marketplace-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--border-r);
    overflow: hidden;
}
.marketplace-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Marketplace Gallery - Screenshots Carousel */
.marketplace-gallery h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.marketplace-screenshots-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}
/* Prevent layout shift before Owl Carousel loads */
.marketplace-screenshots-carousel:not(.owl-loaded) {
    display: flex;
    gap: 10px;
    overflow: hidden;
}
.marketplace-screenshots-carousel:not(.owl-loaded) .screenshot-item {
    flex: 0 0 calc(50% - 5px);
    min-width: 0;
}
@media (max-width: 599px) {
    .marketplace-screenshots-carousel:not(.owl-loaded) .screenshot-item {
        flex: 0 0 100%;
    }
}
.marketplace-screenshots-carousel .screenshot-item {
    cursor: pointer;
}
.marketplace-screenshots-carousel .screenshot-item img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
}
/* Owl Carousel Custom Styles */
.marketplace-screenshots-carousel.owl-carousel .owl-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
    margin-top: 0;
}
.marketplace-screenshots-carousel.owl-carousel .owl-dots .owl-dot {
    width: 10px;
    height: 10px;
    background: var(--border-color);
    border-radius: 50%;
    transition: background 0.2s ease;
}
.marketplace-screenshots-carousel.owl-carousel .owl-dots .owl-dot.active {
    background: var(--green);
}
.marketplace-screenshots-carousel.owl-carousel .owl-dots .owl-dot span {
    display: none;
}

/* ========================================
   Universal Gallery Carousel
   Used by: serversfullstory, marketplacefullstory
   ======================================== */
.gallery-section {
    margin: 20px 0;
}
.gallery-section h3,
.marketplace-gallery h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.gallery-carousel-wrapper,
.marketplace-screenshots-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}
/* Prevent layout shift before Owl Carousel loads */
.gallery-carousel:not(.owl-loaded) {
    display: flex;
    gap: 10px;
    overflow: hidden;
}
.gallery-carousel:not(.owl-loaded) .gallery-item,
.gallery-carousel:not(.owl-loaded) .screenshot-item,
.gallery-carousel:not(.owl-loaded) .xfieldimagegallery > li {
    flex: 0 0 calc(50% - 5px);
    min-width: 0;
}
@media (max-width: 599px) {
    .gallery-carousel:not(.owl-loaded) .gallery-item,
    .gallery-carousel:not(.owl-loaded) .screenshot-item,
    .gallery-carousel:not(.owl-loaded) .xfieldimagegallery > li {
        flex: 0 0 100%;
    }
}
/* Gallery items */
.gallery-carousel .gallery-item,
.gallery-carousel .screenshot-item {
    cursor: pointer;
}
.gallery-carousel .gallery-item img,
.gallery-carousel .screenshot-item img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
}
/* Owl Carousel nav/dots for gallery */
.gallery-carousel.owl-carousel .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 8px;
    pointer-events: none;
}
.gallery-carousel.owl-carousel .owl-nav button {
    pointer-events: auto;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.gallery-carousel.owl-carousel .owl-nav button:hover {
    background: rgba(0, 0, 0, 0.8) !important;
}
.gallery-carousel.owl-carousel .owl-nav button span {
    color: #fff;
    font-size: 24px;
    line-height: 1;
}
.gallery-carousel.owl-carousel .owl-nav button.disabled {
    opacity: 0.3;
    cursor: default;
}
.gallery-carousel.owl-carousel .owl-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
    margin-top: 0;
}
.gallery-carousel.owl-carousel .owl-dots .owl-dot {
    width: 10px;
    height: 10px;
    background: var(--border-color);
    border-radius: 50%;
    transition: background 0.2s ease;
}
.gallery-carousel.owl-carousel .owl-dots .owl-dot.active {
    background: var(--green);
}
.gallery-carousel.owl-carousel .owl-dots .owl-dot span {
    display: none;
}

/* Panorama Section */
.marketplace-panorama-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.marketplace-panorama-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: var(--bg-secondary);
    cursor: grab;
    height: 300px;
}
.marketplace-panorama-wrapper:active {
    cursor: grabbing;
}
.panorama-img {
    display: block;
    height: 100%;
    width: auto;
    max-width: none;
    object-fit: cover;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
}
/* Panorama Custom Scrollbar */
.panorama-scrollbar {
    position: relative;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    margin: 8px 12px 12px;
    cursor: pointer;
}
.panorama-scrollbar-thumb {
    position: absolute;
    height: 100%;
    background: var(--green);
    border-radius: 3px;
    min-width: 40px;
    cursor: grab;
    transition: background 0.2s ease;
}
.panorama-scrollbar-thumb:hover {
    background: var(--green-dark, #3cb37a);
}
.panorama-scrollbar-thumb:active {
    cursor: grabbing;
}
@media (max-width: 768px) {
    .marketplace-panorama-wrapper {
        height: 200px;
    }
}

/* Studio Page */
.marketplace-studio-page, .marketplace-header {
    background: var(--bg-primary);
}
.marketplace-studio-page .marketplace-studio-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
}
.marketplace-studio-page .studio-info h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}
.marketplace-studio-page .studio-info p {
    font-size: 14px;
    color: var(--text-secondary);
}
.marketplace-studio-page .studio-info p b {
    color: var(--text-primary);
}
.marketplace-studio-stats {
    display: flex;
    gap: 24px;
    padding: 16px;
}
.marketplace-studio-stats .stat-item {
    text-align: center;
}
.marketplace-studio-stats .stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--green);
}
.marketplace-studio-stats .stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Marketplace Pagination */
.marketplace-pagination {
    margin-top: 24px;
}

/* Related Grid for Marketplace */
.marketplace-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

/* ===== Marketplace Carousel (Main Page) ===== */
.marketplace-carousel-section {
    margin-bottom: 16px;
    padding: 16px;
    position: relative;
    background: var(--bg-primary);
}

.marketplace-carousel-title-header {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    text-align: left;
}

/* Owl Carousel for Marketplace Home - prevent layout shift */
.marketplace-home-carousel {
    min-height: 180px;
}
.marketplace-home-carousel:not(.owl-loaded) {
    display: flex;
    gap: 12px;
    overflow: hidden;
}
.marketplace-home-carousel:not(.owl-loaded) .marketplace-carousel-slide {
    flex: 0 0 calc((100% - 48px) / 5);
    min-width: 0;
}
@media (max-width: 1024px) {
    .marketplace-home-carousel:not(.owl-loaded) .marketplace-carousel-slide {
        flex: 0 0 calc((100% - 36px) / 4);
    }
}
@media (max-width: 768px) {
    .marketplace-home-carousel:not(.owl-loaded) .marketplace-carousel-slide {
        flex: 0 0 calc((100% - 24px) / 3);
    }
}
@media (max-width: 480px) {
    .marketplace-home-carousel:not(.owl-loaded) .marketplace-carousel-slide {
        flex: 0 0 calc((100% - 8px) / 2);
    }
    .marketplace-home-carousel:not(.owl-loaded) {
        gap: 8px;
    }
}

.marketplace-home-carousel .marketplace-carousel-item {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.marketplace-home-carousel .marketplace-carousel-item:hover {
    transform: translateY(-2px);
}

.marketplace-carousel-image {
    aspect-ratio: 1/1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-tertiary);
    margin-bottom: 8px;
}

.marketplace-carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.marketplace-carousel-image img[src]:not([src^="data:"]),
.marketplace-carousel-image img.loaded {
    opacity: 1;
}

.marketplace-carousel-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-primary);
}

.marketplace-carousel-price {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 4px;
}

.marketplace-carousel-price svg {
    flex-shrink: 0;
}

.marketplace-carousel-price .marketplace-free {
    color: var(--green);
    font-weight: 600;
}

/* Owl Dots for Marketplace Home Carousel */
.marketplace-home-carousel.owl-carousel .owl-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 0 0 0;
    margin-top: 0;
}
.marketplace-home-carousel.owl-carousel .owl-dots .owl-dot {
    width: 10px;
    height: 10px;
    background: var(--border-color);
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease;
}
.marketplace-home-carousel.owl-carousel .owl-dots .owl-dot.active {
    background: var(--green);
}
.marketplace-home-carousel.owl-carousel .owl-dots .owl-dot span {
    display: none;
}

/* "More" slide at end of carousel */
.marketplace-carousel-more-slide {
    height: 100%;
}
.marketplace-carousel-more-link {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1/1;
    background: var(--bg-tertiary);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: background 0.2s ease, color 0.2s ease;
}
.marketplace-carousel-more-link:hover {
    background: var(--border-color);
    color: var(--green);
}
.marketplace-carousel-more-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.marketplace-carousel-more-content .icon {
    width: 32px;
    height: 32px;
    fill: currentColor;
}
.marketplace-carousel-more-content span {
    font-size: 14px;
    font-weight: 500;
}

@media screen and (max-width: 925px) {
    .mobile-nav {
        display: flex;
    }
    .footer-lang {
        padding-bottom: 70px;
    }
    .search-icon {
        left: 10px 
    }
    .mcpe-version, article.banner {
        max-width: 640px;
    }
    #search {
        margin-left: 10px;
        height: auto;
        padding: 0;
    }
    #search form {
        background: var(--bg-primary);
    }
    #search form {
        padding: 10px 20px;
    }
    .ads_adpd, .change-theme, .main_description, .top_news_menu {
        display: none;
    }
    .top_news_block img {
        max-width: 60%;
    }
    #container, #sidebar_l, .maincont img, main {
        max-width: 100%;
    }
    #container {
        width: 100%;
    }
    .dcomments input.info {
        max-width: 100%;
        margin-top: 10px;
    }
    #sidebar_l {
        display: none;
    }
    .header__logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    .header__logo img {
        width: 150px;
    }
    #main-head .row {
        padding: 0 10px;
    }
    .sun-icon {
        -webkit-filter: invert(0) !important;
        filter: invert(0) !important;
    }
    .ads_min, .search-mobile {
        display: block;
    }
    .header-elements, header .right {
        display: -webkit-box;
        display: -ms-flexbox;
    }
    .main_site, .supportedversions {
        margin: 10px 0;
    }
    article .server-info {
        margin-bottom: 15px;
    }
    .story.searchpage {
        margin: 20px 0;
    }
    #search form.open {
        width: 100%;
        -webkit-transition: visibility, -webkit-transform .2s;
        transition: transform 0.2s, visibility, -webkit-transform .2s;
        -o-transition: transform 0.2s, visibility;
        -webkit-transform: translate3d(0, 230%, 0);
        transform: translate3d(0, 230%, 0);
        visibility: visible;
    }
    .serverfullstory {
        padding: 4px;
    }
    #search form {
        position: absolute;
        left: 0;
        top: -80px;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        visibility: hidden;
        -webkit-transform: translate3d(0, -100%, 0);
        transform: translate3d(0, -100%, 0);
        -webkit-transition: visibility 0 0.2s, -webkit-transform .2s;
        transition: transform 0.2s, visibility 0 0.2s, -webkit-transform .2s;
        -o-transition: transform 0.2s, visibility 0 .2s;
    }
    header form div {
        width: 100%;
    }
    header .fa-search.mobile {
        position: absolute;
        fill: #9e9e9e;
        top: 20px;
        left: 17px;
        width: 20px;
        height: 20px;
    }
    header .close {
        margin-left: 20px;
        fill: var(--text-primary);
    }
    header .right {
        display: flex;
        margin-left: auto;
    }
    #content {
        margin: 0 auto;
        width: 100%;
        max-width: 640px;
    }
    .container {
        overflow: hidden;
        margin: 0;
        padding: 0;
    }
    .maincont img {
        overflow: hidden;
        width: auto;
        height: auto;
    }
    .header-elements {
        width: 100%;
        background-color: #459653;
        display: flex;
        position: absolute;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }
    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1002;
    }
    .content-wrapper {
        margin-top: 50px;
    }
    .short {
        padding: 10px;
        text-align: justify;
    }
}