/*
 * Home page blocks for template/default.
 * Extracted from inline Blade styles to keep default/css clean.
 */
.main_content_all {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-direction: row-reverse; /* переносим новости вправо */
}

.news_block,
#server-status {
    width: calc(50% - 10px); /* Вычитаем половину gap (20px / 2 = 10px) */
}

.server-block {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    height: 280px;
    padding: 10px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(42, 31, 28, 0.95) 0%, rgba(27, 21, 20, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.server-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    padding: 9px 10px 10px;
    border-radius: 15px;
    background: linear-gradient(180deg, rgba(61, 43, 38, 0.92) 0%, rgba(42, 31, 28, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
    overflow: hidden;
}

.server-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .26;
}

.server-card.is-ember::before {
    background:
        radial-gradient(circle at top left, rgba(255, 101, 61, 0.55), transparent 48%),
        radial-gradient(circle at bottom right, rgba(255, 189, 1, 0.24), transparent 50%);
}

.server-card.is-main::before {
    background:
        radial-gradient(circle at top left, rgba(52, 101, 255, 0.44), transparent 46%),
        radial-gradient(circle at bottom right, rgba(0, 191, 255, 0.22), transparent 52%);
}

.server-card.is-core::before {
    background:
        radial-gradient(circle at top left, rgba(66, 255, 193, 0.38), transparent 46%),
        radial-gradient(circle at bottom right, rgba(32, 128, 255, 0.20), transparent 52%);
}

.server-card.is-soon::before {
    background:
        radial-gradient(circle at top left, rgba(255, 180, 0, 0.36), transparent 44%),
        radial-gradient(circle at bottom right, rgba(183, 62, 25, 0.22), transparent 52%);
}

.server-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 189, 1, 0.24);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.server-card.is-featured {
    border-color: rgba(255, 189, 1, 0.22);
}

.server-card__head,
.server-card__body,
.server-card__actions {
    position: relative;
    z-index: 1;
}

.server-card__head {
    position: absolute;
    top: 9px;
    right: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 4px;
    pointer-events: none;
}

.server-card__bonus,
.server-card__status {
    width: 64px;
    min-width: 64px;
    height: 22px;
    min-height: 22px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 999px;
    font-family: var(--font-accent-regular), sans-serif;
    font-size: 9px;
    letter-spacing: .07em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.server-card__bonus {
    order: 2;
    color: #fff7dc;
    background: linear-gradient(180deg, #ffcf5a 0%, #d77b12 100%);
    border: 1px solid rgba(255, 230, 145, 0.34);
    box-shadow: 0 0 12px rgba(255, 160, 34, 0.24), inset 0 1px 0 rgba(255,255,255,.22);
    text-shadow: 0 1px 2px rgba(76, 29, 0, .45);
}

.server-card__status {
    order: 1;
    color: #fff;
}

.server-card__status--online {
    background: linear-gradient(180deg, #189946 0%, #0b6f2d 100%);
}

.server-card__status--soon {
    background: linear-gradient(180deg, #d18b0f 0%, #8f5b0a 100%);
}

.server-card__body {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 5px;
    min-width: 0;
    flex: 0 0 auto;
}

.server-card__icon {
    position: relative;
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 45%, rgba(255, 176, 92, 0.18), transparent 58%),
        linear-gradient(180deg, rgba(67, 42, 32, 0.88) 0%, rgba(38, 25, 22, 0.94) 100%);
    border: 1px solid rgba(255, 206, 146, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 9px 16px rgba(0, 0, 0, 0.20);
    overflow: hidden;
    isolation: isolate;
}

.server-card__icon::before {
    content: "";
    position: absolute;
    inset: 6px;
    z-index: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 185, 92, .24), rgba(255, 185, 92, .06) 44%, transparent 72%);
    filter: blur(5px);
    pointer-events: none;
}

.server-card__icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,.10), transparent 42%),
        linear-gradient(135deg, rgba(255,255,255,.06), transparent 48%);
    pointer-events: none;
    z-index: 3;
}

.server-card__icon img {
    position: relative;
    z-index: 1;
    display: block;
    width: 78px;
    max-width: 78px;
    height: 78px;
    object-fit: cover;
    object-position: center;
    border-radius: 17px;
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0 58%, rgba(0,0,0,.84) 67%, transparent 88%);
    mask-image: radial-gradient(circle at 50% 50%, #000 0 58%, rgba(0,0,0,.84) 67%, transparent 88%);
    filter: saturate(1.08) brightness(1.03) drop-shadow(0 5px 10px rgba(0, 0, 0, 0.22));
    transition: opacity .24s ease, transform .24s ease, filter .24s ease;
}

.server-card__online-pop {
    position: absolute;
    inset: 4px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 6px 4px;
    opacity: 0;
    transform: scale(.90);
    transition: opacity .24s ease, transform .24s ease, box-shadow .24s ease;
    line-height: 1;
    text-align: center;
    border-radius: 15px;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 232, 168, 0.28), transparent 34%),
        linear-gradient(180deg, rgba(98, 56, 32, 0.86) 0%, rgba(43, 27, 21, 0.92) 100%);
    border: 1px solid rgba(255, 219, 142, 0.38);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.14),
        inset 0 -10px 20px rgba(108, 49, 18, 0.28),
        0 0 22px rgba(255, 154, 54, 0.18),
        0 10px 16px rgba(0,0,0,.30);
    backdrop-filter: blur(6px);
}

.server-card__online-pop::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 16px;
    right: 16px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 218, 142, .70), transparent);
    opacity: .85;
}

.server-card__online-pop strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 214, 119, 0.34) 0%, rgba(165, 86, 28, 0.34) 100%);
    border: 1px solid rgba(255, 219, 130, 0.34);
    color: #ffe09d;
    font-family: var(--font-accent-regular), sans-serif;
    font-size: 13px;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0,0,0,.34);
}

.server-card__online-pop span {
    display: block;
    margin-top: 5px;
    font-size: 7px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 246, 226, 0.90);
}

.server-card__icon:hover img {
    opacity: .13;
    transform: scale(1.02);
    filter: blur(.35px) saturate(1.14) brightness(.96) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.20));
}

.server-card__icon:hover .server-card__online-pop {
    opacity: 1;
    transform: scale(1);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.16),
        inset 0 -10px 20px rgba(108, 49, 18, 0.30),
        0 0 28px rgba(255, 169, 63, 0.24),
        0 12px 18px rgba(0,0,0,.32);
}

.server-card__content {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    padding-top: 10px;
}

.server-card__title {
    font-family: Philosopher-Bold, sans-serif;
    font-size: 16px;
    line-height: 1.05;
    color: #fff3e4;
    overflow-wrap: anywhere;
    margin-top: 0;
    text-align: left;
}

.server-card__title span {
    font-size: .95em;
    color: #fff3e4;
}

.server-card__timer {
    width: 100%;
    min-width: 0;
    margin-top: 5px;
    display: block;
    text-align: left;
    font-size: 10px;
    line-height: 1.1;
    color: #efe3d6;
}

.server-card__timer .server_worked,
.server-card__timer .open-date {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    margin-top: 4px;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 10px;
    line-height: 1.15;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
}

.server_worked.sb-brand-red {
    background-color: #8a1313;
}

.open-date {
    background-color: #1839e5;
}

.server_worked {
    background-color: #4a922c;
}

.server-card__actions {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 9px;
    padding-top: 0;
    padding-bottom: 3px;
}

.server-card__action {
    width: 88%;
    min-width: 0;
    min-height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 9px;
    background: linear-gradient(180deg, rgba(255, 126, 58, 0.22) 0%, rgba(145, 55, 20, 0.22) 100%);
    border: 1px solid rgba(255, 164, 99, 0.20);
    color: #fff2df;
    font-size: 11px;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: .04em;
    text-decoration: none;
    text-align: center;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.server-card__action:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, rgba(255, 144, 82, 0.30) 0%, rgba(173, 67, 27, 0.30) 100%);
    border-color: rgba(255, 189, 1, 0.35);
}

.server-card__action--single {
    width: 88%;
    margin: 0 auto;
}

@media only screen and (max-width: 1100px) {
    .server-block {
        height: auto;
    }

    .server-card {
        min-height: 132px;
    }
}

@media only screen and (max-width: 675px) {
    .server-block {
        grid-template-columns: 1fr;
        gap: 10px;
        height: auto;
        padding: 10px;
    }

    .server-card {
        min-height: 0;
    }
}

@media only screen and (max-width: 480px) {
    .server-card__body {
        align-items: flex-start;
    }

    .server-card__content {
        align-items: flex-start;
        text-align: left;
        padding-top: 5px;
    }

    .server-card__timer {
        text-align: left;
    }

    .server-card__action,
    .server-card__action--single {
        width: 92%;
    }
}

/* Медиазапрос для маленьких экранов (смартфоны) */
@media only screen and (max-width: 600px) {
    .swiper-info {
        position: static; /* Возвращаем блок в обычный поток */
        left: auto;
        right: auto;
        bottom: auto;
        padding: 10px; /* Добавляем внутренний отступ, чтобы текст не прилипал к краям */
    }
}

@media only screen and (max-width: 550px) {
    .swiper-info {
        /* Убираем абсолютное позиционирование, чтобы блок занял свое место */
        position: static;
        left: auto;
        right: auto;
        bottom: auto;
        
        display: flex;
        flex-direction: column;
        align-items: center; /* Кнопка и текст остаются по центру */
        text-align: center;
        
        /* Можно увеличить отступы, так как места больше */
        padding: 15px;
        padding-bottom: 40px; /* Достаточно места для пагинации, которая будет справа */
    }

    .sisic__title {
        font-size: 16px; /* Немного увеличим заголовок */
        line-height: 1.2;
        margin-bottom: 8px;
    }

    .sisic__text {
        font-size: 13px; /* Увеличим текст */
        margin-bottom: 15px;
    }

    .btn-golden {
        width: auto; /* Возвращаем автоширину, чтобы кнопка не растягивалась на 80% */
        max-width: none; /* Убираем ограничение максимальной ширины */
        padding: 10px 20px; /* Возвращаем более привычные отступы */
    }

    /* Перемещение пагинации вправо */
    .swiper-pagination {
        position: absolute; /* Теперь пагинация будет позиционироваться абсолютно */
        bottom: 15px; /* Разместим немного выше нижнего края слайда */
        right: 0px; /* Сдвинем вправо */
        left: auto; /* Убираем центрирование */
        z-index: 11;
        text-align: right; /* Выравниваем точки вправо */
    }

    .swiper-pagination .swiper-pagination-bullet {
        margin: 0 5px; /* Увеличим расстояние между точками */
        width: 8px;
        height: 8px;
    }
}


.swiper-container {
    overflow: hidden;
}
.swiper-container .swiper-slide {
    position: relative;
}
.swiper-slide img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}
.swiper-info {
    position: absolute;
    bottom: 20px; /* или другое значение, чтобы поднять блок с текстом и кнопками */
    left: 20px;
    right: 20px;
}
.swiper-overlay {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 45%);
    border-radius: 8px;
}
.sisic__title {
    font-family: var(--font-accent-bold), sans-serif;
    font-size: 24px;
    color: #fff;
}
.sisic__text {
    margin-bottom: 30px;
    color: rgb(211, 201, 191);
    line-height: 1.1;
}
.n-block {
    position: relative;	
}
.swiper-pagination {
    position: absolute;
    bottom: 32px; /* Здесь ключевое изменение. Увеличьте значение, чтобы поднять кнопки-индикаторы. Например, с 20px до 80px */
    left: 0;
    right: 0;
    text-align: center;
}
.swiper-pagination-bullet {
    width: 15px;  /* Задает ширину квадрата */
    height: 15px; /* Задает высоту квадрата */
    opacity: .8;
    background-color: #fff; /* Белый цвет для неактивных кнопок */
    border-radius: 4px; /* Слегка закругляет углы, чтобы они не были слишком острыми */
    box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.5); /* Добавляет тень для объёма */
}
.swiper-pagination-bullet-active {
    opacity: 1;
    background-color: #00BFFF; /* Ярко-голубой цвет для активной кнопки */
    border-radius: 4px;
    box-shadow: 0px 0px 10px 3px rgba(0,191,255,0.7); /* Яркая тень для активной кнопки */
}
.sb-open-server span {
    color: #fff;
}
.sb-open-server {
    background-color: transparent;
    padding: 3px;
}
.swiper-main {
    height: 280px;
}
.server_worked.sb-brand-red {
    background-color: #8a1313;
}
.open-date {
    border-radius: 3px;
    background-color: #0000ff;
    padding: 2px 5px;
}
.server_worked {
    border-radius: 3px;
    background-color: #447f2b;
    padding: 2px 5px;
}



.sub_item {
    width: calc(50% - 12.5px); /* Теперь блоки будут ровно по 50% минус половина gap */
    height: 174px;
    background-size: cover;
    border-radius: 16px;
    font-family: Philosopher-Bold;
    display: flex;
    align-items: center;
    padding-left: 30px;
    box-sizing: border-box;
}

@media only screen and (max-width: 960px) {
    .sub_item {
        width: 48%; /* Немного уменьшим ширину, чтобы оставить место для отступов */
    }
}

/* Медиа-запрос для мобильных телефонов (до 675px) */
@media only screen and (max-width: 675px) {
    .sub_item {
        width: 100%; /* Блоки займут всю ширину экрана */
        margin-bottom: 20px; /* Добавим отступ снизу, чтобы блоки не сливались */
    }
}

.sub_item:last-child {
    margin-bottom: 0
}

.subscribers {
    margin: 40px 0;
}

.title-center {
    text-align: center;
    margin-bottom: 10px;
    font-family: Philosopher-Bold, sans-serif;
}

.subs-all {
    display: flex;
    justify-content: center; /* Центрируем блоки */
    flex-wrap: wrap;
    gap: 25px; /* Добавляем фиксированный отступ между блоками */
    margin-top: 20px;
	font-family: Philosopher-Bold;
}

.link-border {
    font-size: 14px;
    border-radius: 6px;
    text-transform: uppercase;
    color: #fff;
    border: 1px solid #fff;
    padding: 5px 10px;
    transition: .3s;
	font-family: Philosopher-Bold;
}

.link-border:hover {
    color: #000;
    background-color: #fff
}




.logo-top {
    transition: filter .3s ease-in-out, transform .3s ease-in-out
}

.logo-top:hover {
    filter: brightness(120%);
    transform: scale(1.06)
}
.logo {
    text-align: center;
}
.logo img {
    height: 300px;
	margin-top: 15px;
}




.sub-title {
    margin-left: 10px
}

.sub-title p {
    font-family: Philosopher-Bold;
    font-weight: 400;
    font-size: 18px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 8px
}

.main-start {
    margin-top: 1px;
    text-align: center;
    line-height: 1.6;
    margin-top: -45px; /* Отрицательный отступ поднимает блок вверх */
}




.main-text p {
    font-family: var(--font-accent-regular), sans-serif;
    font-size: 24px;
    color: #fff;
	text-align: center;
	margin-top: -20px;
}



/* Server area character placement (desktop base)
   Tablet/mobile coordinates live in responsive.css. */
.servers-area {
    position: relative;
}

.servers-area .logo1 {
    position: absolute;
    left: 0;
    top: -450px;
    z-index: 2;
    margin: 0;
    transform: none;
    pointer-events: none;
}

.servers-area .logo1 img {
    display: block;
    height: 450px;
    width: auto;
    max-width: none;
    margin: 0;
    transform: none;
}

.servers-area .main_content_all {
    position: relative;
    z-index: 3;
}

/* FAFURION STREAMS BUTTON LIBRARY FIX START */
.media-hub {
    display: contents;
}

/* Кнопка открытия слева, как было раньше */
.video-toggle-btn {
    position: fixed;
    top: 25%;
    left: 30px;
    z-index: 10000;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transform: translateX(-35%);
    transition: transform .3s ease;
}

.video-toggle-btn img {
    display: block;
    width: 78px;
    height: auto;
    transition: filter .3s ease, transform .3s ease;
}

.video-toggle-btn:hover img {
    filter: brightness(1.3) drop-shadow(0 0 8px rgba(255, 189, 1, .8));
    transform: scale(1.08);
}

/* Общий popup со списком видео */
.media-library,
.media-player {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .28s ease, visibility .28s ease;
}

.media-library.is-open,
.media-player.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.media-library__overlay,
.media-player__overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 6, 5, .78);
    opacity: 0;
    transition: opacity .28s ease;
    backdrop-filter: blur(4px);
}

.media-library.is-open .media-library__overlay,
.media-player.is-open .media-player__overlay {
    opacity: 1;
}

.media-library__dialog,
.media-player__dialog {
    position: relative;
    width: min(1040px, 96vw);
    max-height: calc(100vh - 48px);
    border: 1px solid rgba(216, 183, 95, .52);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(31, 24, 23, .98), rgba(12, 13, 19, .98));
    box-shadow: 0 25px 70px rgba(0, 0, 0, .55);
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px) scale(.965);
    transition: opacity .28s ease, transform .28s cubic-bezier(.2, .8, .2, 1);
    will-change: opacity, transform;
}

.media-library.is-open .media-library__dialog,
.media-player.is-open .media-player__dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.media-library__dialog {
    padding: 18px 18px 20px;
    overflow-y: auto;
}

.media-library__close,
.media-player__close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 4;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: rgba(216, 183, 95, .22);
    color: #ffe49a;
    font-size: 30px;
    line-height: 36px;
    cursor: pointer;
    transition: transform .25s ease, background .25s ease;
}

.media-library__close:hover,
.media-player__close:hover {
    transform: rotate(90deg);
    background: rgba(216, 183, 95, .34);
}

.media-library__head {
    padding: 2px 56px 16px 4px;
    text-align: center;
}

.media-library__head span,
.media-player__title span {
    display: block;
    color: #d8b75f;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.media-library__head strong,
.media-player__title strong {
    display: block;
    margin-top: 2px;
    color: #fff1b7;
    font-family: var(--font-accent-bold), serif;
    font-size: 28px;
    line-height: 1.08;
    text-transform: uppercase;
}

.media-library__head p {
    margin: 7px 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: 15px;
}

.media-library__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.media-library__card {
    position: relative;
    height: 196px;
    padding: 0;
    border: 1px solid rgba(216, 183, 95, .28);
    border-radius: 14px;
    background: rgba(16, 15, 17, .92);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .24);
    cursor: pointer;
    overflow: hidden;
    text-align: left;
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity .24s ease,
        transform .24s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.media-library.is-open .media-library__card {
    opacity: 1;
    transform: translateY(0);
}

.media-library.is-open .media-library__card:nth-child(1) { transition-delay: .03s; }
.media-library.is-open .media-library__card:nth-child(2) { transition-delay: .055s; }
.media-library.is-open .media-library__card:nth-child(3) { transition-delay: .08s; }
.media-library.is-open .media-library__card:nth-child(4) { transition-delay: .105s; }
.media-library.is-open .media-library__card:nth-child(5) { transition-delay: .13s; }
.media-library.is-open .media-library__card:nth-child(6) { transition-delay: .155s; }

.media-library__card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 220, 118, .62);
    box-shadow: 0 18px 38px rgba(0, 0, 0, .32), 0 0 20px rgba(255, 196, 85, .08);
}

.media-library__thumb {
    position: absolute;
    inset: 0;
    display: block;
    background: rgba(255, 255, 255, .05);
}

.media-library__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.media-library__card:hover .media-library__thumb img {
    transform: scale(1.045);
}

.media-library__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .78));
}

.media-library__play {
    position: absolute;
    left: 50%;
    top: 42%;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ff3333, #c90000);
    transform: translate(-50%, -50%);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .45), 0 0 24px rgba(255, 48, 48, .22);
}

.media-library__play::after {
    content: "";
    position: absolute;
    left: 21px;
    top: 15px;
    border-left: 16px solid #fff;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

.media-library__body {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    color: #fff;
}

.media-library__type {
    width: max-content;
    margin-bottom: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(216, 183, 95, .2);
    color: #f0d777;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .7px;
}

.media-library__body strong {
    display: block;
    max-width: 100%;
    color: #fff;
    font-size: 17px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.media-library__body small {
    display: block;
    max-width: 100%;
    margin-top: 4px;
    color: rgba(255, 255, 255, .74);
    font-size: 13px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.media-library__body em {
    display: block;
    width: max-content;
    margin-top: 9px;
    padding: 6px 11px;
    border-radius: 8px;
    background: linear-gradient(180deg, #ff9d3d, #b94c08);
    color: #fff6d7;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    text-transform: uppercase;
}

/* Popup просмотра видео */
.media-player__title {
    padding: 17px 58px 13px 20px;
    border-bottom: 1px solid rgba(216, 183, 95, .2);
}

.media-player__frame-wrap {
    position: relative;
    background: #050505;
}

.media-player__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #050505;
    opacity: 0;
    transition: opacity .22s ease;
}

.media-player.is-open .media-player__frame {
    opacity: 1;
}

.media-player__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.media-player__nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 46px;
    height: 74px;
    border: 1px solid rgba(216, 183, 95, .42);
    border-radius: 12px;
    background: rgba(13, 10, 8, .58);
    color: #fff1b7;
    font-size: 54px;
    line-height: 64px;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.media-player__nav:hover {
    background: rgba(216, 183, 95, .24);
    border-color: rgba(255, 220, 118, .72);
}

.media-player__nav--prev {
    left: 14px;
}

.media-player__nav--next {
    right: 14px;
}

@media only screen and (max-width: 880px) {
    .media-library__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .media-library__card {
        height: 178px;
    }
}

@media only screen and (max-width: 560px) {
    .video-toggle-btn {
        left: 15px;
    }

    .video-toggle-btn img {
        width: 56px;
    }

    .media-library,
    .media-player {
        padding: 10px;
    }

    .media-library__grid {
        grid-template-columns: 1fr;
    }

    .media-library__card {
        height: 188px;
    }

    .media-player__nav {
        width: 38px;
        height: 58px;
        font-size: 42px;
        line-height: 50px;
    }

    .media-player__nav--prev {
        left: 8px;
    }

    .media-player__nav--next {
        right: 8px;
    }
}
/* FAFURION STREAMS BUTTON LIBRARY FIX END */



.server-card.is-ember .server-card__icon {
    border-color: rgba(255, 143, 78, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 20px rgba(255, 114, 61, 0.12), 0 8px 14px rgba(0,0,0,.16);
}

.server-card.is-ember .server-card__icon::before {
    background: radial-gradient(circle, rgba(255, 126, 58, .28), rgba(255, 126, 58, .08) 44%, transparent 72%);
}

.server-card.is-main .server-card__icon {
    border-color: rgba(112, 170, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 20px rgba(72, 135, 255, 0.12), 0 8px 14px rgba(0,0,0,.16);
}

.server-card.is-main .server-card__icon::before {
    background: radial-gradient(circle, rgba(91, 150, 255, .26), rgba(91, 150, 255, .07) 44%, transparent 72%);
}

.server-card.is-core .server-card__icon {
    border-color: rgba(102, 184, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 20px rgba(58, 154, 255, 0.12), 0 8px 14px rgba(0,0,0,.16);
}

.server-card.is-core .server-card__icon::before {
    background: radial-gradient(circle, rgba(76, 163, 255, .28), rgba(76, 163, 255, .07) 44%, transparent 72%);
}

.server-card.is-soon .server-card__icon {
    border-color: rgba(255, 196, 88, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 20px rgba(255, 170, 64, 0.12), 0 8px 14px rgba(0,0,0,.16);
}

.server-card.is-soon .server-card__icon::before {
    background: radial-gradient(circle, rgba(255, 174, 66, .28), rgba(255, 174, 66, .08) 44%, transparent 72%);
}

/* FAFURION ONLINE HOVER SOON V30 START */
.server-card__icon--online {
    padding: 2px;
    background:
        radial-gradient(circle at 50% 20%, rgba(255, 205, 122, 0.12), transparent 44%),
        linear-gradient(180deg, rgba(54, 33, 25, 0.90) 0%, rgba(22, 15, 14, 0.96) 100%);
    border-color: rgba(255, 204, 126, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.10),
        inset 0 -10px 22px rgba(82, 35, 14, .20),
        0 0 18px rgba(255, 163, 57, .08),
        0 9px 16px rgba(0,0,0,.20);
}

.server-card__icon--online::before {
    content: "";
    position: absolute;
    inset: 5px;
    z-index: 1;
    border-radius: 14px;
    background:
        radial-gradient(circle at 50% 40%, rgba(255, 174, 68, .10), transparent 58%),
        linear-gradient(180deg, rgba(18, 12, 11, .04) 0%, rgba(18, 12, 11, .24) 100%);
    border: 1px solid rgba(255, 207, 126, .10);
    pointer-events: none;
}

.server-card__icon--online::after {
    z-index: 4;
    opacity: .38;
}

.server-card__icon--online img {
    position: relative;
    z-index: 0;
    display: block;
    width: 78px;
    max-width: 78px;
    height: 78px;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    transform: scale(1);
    filter: saturate(1.08) brightness(1.02) drop-shadow(0 5px 10px rgba(0, 0, 0, 0.28));
    transition: opacity .24s ease, transform .24s ease, filter .24s ease;
}

.server-card__online-tile {
    position: absolute;
    inset: 4px;
    z-index: 5;
    width: auto;
    height: auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 6px 4px;
    border-radius: 15px;
    text-align: center;
    line-height: 1;
    overflow: hidden;
    opacity: 0;
    transform: scale(.90);
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 232, 168, 0.28), transparent 34%),
        linear-gradient(180deg, rgba(98, 56, 32, 0.86) 0%, rgba(43, 27, 21, 0.92) 100%);
    border: 1px solid rgba(255, 219, 142, 0.38);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.14),
        inset 0 -10px 20px rgba(108, 49, 18, 0.28),
        0 0 22px rgba(255, 154, 54, 0.18),
        0 10px 16px rgba(0,0,0,.30);
    backdrop-filter: blur(6px);
    pointer-events: none;
    transition: opacity .24s ease, transform .24s ease, box-shadow .24s ease;
}

.server-card__online-tile::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 16px;
    right: 16px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 218, 142, .70), transparent);
    opacity: .85;
}

.server-card__online-tile::after {
    display: none;
}

.server-card__online-tile strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 214, 119, 0.34) 0%, rgba(165, 86, 28, 0.34) 100%);
    border: 1px solid rgba(255, 219, 130, 0.34);
    color: #ffe09d;
    font-family: var(--font-accent-regular), sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,.34);
}

.server-card__online-tile span {
    display: block;
    margin-top: 5px;
    color: rgba(255, 246, 226, 0.90);
    font-size: 7px;
    line-height: 1;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.server-card__icon--online:hover {
    border-color: rgba(255, 218, 143, .34);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.12),
        inset 0 -10px 22px rgba(82, 35, 14, .24),
        0 0 24px rgba(255, 170, 64, .14),
        0 10px 16px rgba(0,0,0,.24);
}

.server-card__icon--online:hover img {
    opacity: .13;
    transform: scale(1.02);
    filter: blur(.35px) saturate(1.14) brightness(.96) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.20));
}

.server-card__icon--online:hover .server-card__online-tile {
    opacity: 1;
    transform: scale(1);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.16),
        inset 0 -10px 20px rgba(108, 49, 18, 0.30),
        0 0 28px rgba(255, 169, 63, 0.24),
        0 12px 18px rgba(0,0,0,.32);
}

.server-card__icon--online .server-card__online-pop {
    display: none;
}

.server-card__icon--image img {
    opacity: 1;
}

.server-card__icon--image:hover img {
    opacity: 1;
    transform: none;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.26));
}

.server-card__icon--image .server-card__online-pop,
.server-card__icon--image .server-card__online-tile {
    display: none;
}
/* FAFURION ONLINE HOVER SOON V30 END */
