.table>tbody>tr>td,
.table>tbody>tr>th,
.table>tfoot>tr>td,
.table>tfoot>tr>th,
.table>thead>tr>td,
.table>thead>tr>th {
    border-top: none !important;
}

a:focus,
a:hover {
    color: inherit !important;
    text-decoration: none !important;
}

.form-control {
    margin-top: .5rem;
}

/* http://stackoverflow.com/questions/19562903/remove-padding-from-columns-in-bootstrap-3 */
.nopadding {
    padding: 0 !important;
    margin: 0 !important;
}

/* http://stackoverflow.com/questions/20547819/vertical-align-with-bootstrap-3 */
.vcenter {
    display: inline-block;
    vertical-align: middle;
    float: none;
}

.thumbnail {
    background-color: #f1f1f1;
    border: 1px solid #e3e3e3;
}

a.thumbnail:hover,
a.thumbnail:focus,
a.thumbnail.active {
    border-color: #ff0000;
}

.btn-primary {
    text-align: center;
    margin: 0 auto;
    display: block;
    padding: 1rem;
    border: 1px solid #1e495b;
    color: #b4f5f3;
    border-radius: 10px;
    text-decoration: none;
    transition: .2s all ease;
    margin-top: .5rem;
    max-width: 200px;
}

.btn-primary:hover {
    filter: brightness(120%);
}

/* Событие в процессе (зелёный цвет) */
.event-schedule-inprogress {
    color: #28a745 !important;
    font-weight: bold;
}

.soc-block a:hover,
.soc-block a:focus,
.soc-block a.active {
    box-shadow: none !important;
    background: none !important;
}


.lang-flag-link {
    position: relative;
    display: inline-block;
}

.lang-flag-tooltip {
    display: none;
    position: absolute;
    left: 50%;
    top: -26px;
    transform: translateX(-50%);
    background: rgba(30, 30, 30, 0.95);
    color: #ffe08a;
    font-family: 'Cinzel', Arial, sans-serif;
    font-size: 0.92em;
    font-weight: 900;
    letter-spacing: 1px;
    padding: 2px 10px;
    border-radius: 7px;
    box-shadow: 0 2px 8px #000a, 0 0 4px #ffe08a44;
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s;
}

.lang-flag-link:hover .lang-flag-tooltip,
.lang-flag-link:focus .lang-flag-tooltip {
    display: block;
    opacity: 1;
}


.menu li a {
    color: #deecf5 !important;
    /* базовый светлый цвет (можно заменить на #fff или #ecc894) */
    transition:
        color 0.22s cubic-bezier(.4, 0, .2, 1),
        transform 0.18s cubic-bezier(.4, 0, .2, 1);
    position: relative;
}

.menu li a::after {
    content: '';
    display: none;
}

.menu li:hover a,
.menu li:focus a {
    color: #ffe08a !important;
    /* ярко-жёлтый при наведении */
    transform: scale(1.10);
}

.castle-siege-widget {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: #deecf5;
    padding: 38px 38px 32px 38px;
    margin: 0 auto 32px auto;
    max-width: 100%;
    width: 100%;
    font-family: 'Cinzel', serif;
    border: 1px solid rgba(30, 73, 91, 0.6);
    transition: box-shadow 0.2s;
    min-height: 420px;
    backdrop-filter: blur(10px);
}

.cs-header {
    text-align: center;
    font-size: 2.1em;
    font-weight: 900;
    margin-bottom: 24px;
    letter-spacing: 1.5px;
    color: #b4f5f3;
    text-shadow: 0 2px 8px #181a1d;
    font-family: 'Cinzel', serif;
}

.cs-title i {
    color: #b4f5f3;
    margin-right: 10px;
}

.cs-guild-name {
    color: #fff;
    font-size: 1.2em;
    font-weight: 700;
    font-family: 'Cinzel', serif;
}

.cs-guild-master {
    color: #b4f5f3;
    font-size: 1em;
    font-family: 'Cinzel', serif;
}

.cs-castle-name {
    color: #deecf5;
    text-align: center;
    margin: 18px 0 18px 0;
    font-size: 1.1em;
    font-weight: 600;
    font-family: 'Cinzel', serif;
}

.cs-owner-row {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    gap: 32px;
    justify-content: center;
}

.cs-guild-logo {
    flex: 0 0 80px;
    margin-right: 0;
    border-radius: 6px;
    background: rgba(30, 73, 91, 0.4);
    border: 1px solid rgba(30, 73, 91, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.cs-guild-info {
    flex: 1;
}

.cs-next-event,
.cs-status-row,
.cs-battle-duration {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 1.08em;
    background: rgba(30, 73, 91, 0.3);
    color: #deecf5;
    border-radius: 6px;
    padding: 10px 22px;
    align-items: center;
    font-weight: 500;
    border: 1px solid rgba(30, 73, 91, 0.5);
    font-family: 'Cinzel', serif;
}

.cs-label {
    color: #b4f5f3;
    font-weight: 700;
    font-size: 1em;
    font-family: 'Cinzel', serif;
}

.cs-status {
    color: #4dd345;
    font-weight: 700;
    font-family: 'Cinzel', serif;
}

.cs-value {
    color: #deecf5;
    font-weight: 700;
    font-family: 'Cinzel', serif;
}

/* Стили для блока зарегистрированных гильдий */
.cs-registered-guilds {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(30, 73, 91, 0.5);
}

.cs-section-title {
    color: #b4f5f3;
    font-size: 1.3em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 18px;
    font-family: 'Cinzel', serif;
    text-shadow: 0 2px 4px #181a1d;
}

.cs-section-title i {
    margin-right: 8px;
    color: #4dd345;
}

.cs-guilds-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cs-guild-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(30, 73, 91, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid rgba(30, 73, 91, 0.5);
    transition: all 0.2s ease;
}

.cs-guild-item:hover {
    background: rgba(30, 73, 91, 0.5);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cs-guild-logo-small {
    flex: 0 0 40px;
    border-radius: 4px;
    background: rgba(30, 73, 91, 0.4);
    border: 1px solid rgba(30, 73, 91, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.cs-guild-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cs-guild-name-small {
    color: #fff;
    font-size: 1.1em;
    font-weight: 700;
    font-family: 'Cinzel', serif;
}

.cs-guild-master-small {
    color: #b4f5f3;
    font-size: 0.9em;
    font-family: 'Cinzel', serif;
}

.cs-guild-members {
    color: #deecf5;
    font-size: 0.85em;
    font-family: 'Cinzel', serif;
}

.cs-guild-members b {
    color: #4dd345;
    font-weight: 700;
}

@media (max-width: 900px) {
    .castle-siege-widget {
        padding: 18px 2vw;
    }

    .cs-header {
        font-size: 1.3em;
    }

    .cs-owner-row {
        gap: 12px;
    }

    .cs-guild-logo {
        flex-basis: 60px;
        padding: 4px;
    }

    .cs-guild-name {
        font-size: 1.1em;
    }
}

@media (max-width: 600px) {
    .castle-siege-widget {
        padding: 10px 1vw;
        min-height: 0;
    }

    .cs-owner-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .cs-guild-logo {
        margin-bottom: 8px;
    }

    .cs-header {
        font-size: 1.1em;
    }

    /* Адаптивные стили для зарегистрированных гильдий */
    .cs-registered-guilds {
        margin-top: 16px;
        padding-top: 16px;
    }

    .cs-section-title {
        font-size: 1.1em;
        margin-bottom: 14px;
    }

    .cs-guild-item {
        padding: 10px 12px;
        gap: 12px;
    }

    .cs-guild-logo-small {
        flex-basis: 36px;
        padding: 4px;
    }

    .cs-guild-name-small {
        font-size: 1em;
    }

    .cs-guild-master-small {
        font-size: 0.85em;
    }

    .cs-guild-members {
        font-size: 0.8em;
    }
}

/* =========================
   Info Page Panels & Tables
   ========================= */
.info-panels {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.info-panel {
    background: rgba(21, 16, 12, 0.65);
    border: 1px solid rgba(30, 73, 91, 0.6);
    border-radius: 6px;
    box-shadow: inset 0 0 0 1px rgba(35, 26, 18, 0.8), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.info-panel__header {
    background: linear-gradient(180deg, rgba(20, 35, 50, 0.8), rgba(25, 45, 65, 0.85));
    border-bottom: 1px solid rgba(30, 73, 91, 0.5);
    padding: 10px 14px;
    color: #8dadbb;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: none;
    font-family: 'PT Sans', Arial, sans-serif;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table thead th {
    background: rgba(20, 35, 50, 0.8);
    color: #8dadbb;
    font-weight: 700;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(30, 73, 91, 0.5);
    font-family: 'PT Sans', Arial, sans-serif;
}

.info-table tbody tr:nth-child(odd) {
    background: rgba(20, 35, 50, 0.7);
}

.info-table tbody tr:nth-child(even) {
    background: rgba(25, 45, 65, 0.7);
}

.info-table td {
    padding: 7px 12px;
    border-top: 1px solid rgba(30, 73, 91, 0.4);
    border-bottom: 1px solid rgba(30, 73, 91, 0.4);
    color: #ffffff;
    font-family: 'PT Sans', Arial, sans-serif;
}

.info-table td:first-child {
    color: #ffffff;
    width: 48%;
}

.info-table td.text-center {
    text-align: center;
}

.info-note {
    color: #b4f5f3;
    font-size: .95em;
    margin-top: 6px;
}

@media (max-width: 720px) {
    .info-table td {
        padding: 6px 8px;
    }

    .info-panel__header {
        padding: 8px 10px;
    }
}

/* ===== СТИЛЬНАЯ СТРАНИЦА ЗАГРУЗОК ===== */
.download-section {
    margin-bottom: 40px;
}

.section-title {
    color: #ecc894;
    font-family: 'Cinzel', serif;
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 25px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid rgba(30, 73, 91, 0.5);
    padding-bottom: 15px;
}

.download-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.download-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(30, 73, 91, 0.6);
    border-radius: 12px;
    padding: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(30, 73, 91, 0.3);
}

.card-title {
    color: #ecc894;
    font-family: 'Cinzel', serif;
    font-size: 1.2em;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    flex: 1;
}

.card-size {
    color: #b4f5f3;
    font-size: 0.9em;
    font-weight: bold;
    background: rgba(30, 73, 91, 0.4);
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid rgba(30, 73, 91, 0.5);
    white-space: nowrap;
    margin-left: 15px;
}

.card-body {
    margin-bottom: 20px;
}

.card-description {
    color: #deecf5;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.card-source {
    color: #bfa681;
    font-size: 0.9em;
    font-weight: bold;
    background: rgba(30, 73, 91, 0.3);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(30, 73, 91, 0.5);
    display: inline-block;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.card-source strong {
    color: #8dadbb;
    font-weight: bold;
}

.card-footer {
    text-align: center;
}

.download-button {
    display: inline-block;
    background: linear-gradient(135deg, rgba(30, 73, 91, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
    color: #deecf5;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid rgba(30, 73, 91, 0.5);
    transition: all 0.4s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.download-button:hover {
    background: linear-gradient(135deg, rgba(30, 73, 91, 1) 0%, rgba(0, 0, 0, 0.8) 100%);
    color: #ecc894;
    border-color: #b4f5f3;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(30, 73, 91, 0.5);
}

.download-button:active {
    transform: translateY(-1px) scale(1.02);
    transition: all 0.1s ease;
}

/* Адаптивность */
@media (max-width: 768px) {
    .download-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .download-card {
        padding: 20px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-size {
        margin-left: 0;
        margin-top: 10px;
    }

    .section-title {
        font-size: 1.3em;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .download-cards {
        gap: 15px;
        padding: 0 10px;
    }

    .download-card {
        padding: 15px;
    }

    .card-title {
        font-size: 1.1em;
    }

    .card-description {
        font-size: 0.9em;
    }

    .download-button {
        padding: 10px 25px;
        font-size: 0.9em;
    }

    .section-title {
        font-size: 1.2em;
        letter-spacing: 1px;
    }
}

/* Стили для онлайн статуса игроков в рейтингах */
.nickname-link.online {
    color: #28a745 !important;
    font-weight: 700 !important;
}

/* Красивое отображение новостей в стиле сайта */
.news-container {
    width: 100%;
    margin: 20px 0;
}

.news-item {
    background-color: #050608;
    border: 1px solid #0f222a;
    box-shadow: inset 0px 0px 20px 2px #091318, 0px 0px 15px 1px rgb(0 0 0 / 40%);
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-item:hover {
    box-shadow: inset 0px 0px 25px 3px #091318, 0px 0px 20px 2px rgb(0 0 0 / 50%);
    border-color: #1e495b;
    transform: translateY(-2px);
}

.news-header {
    padding: 20px 25px 15px 25px;
    border-bottom: 1px solid rgba(180, 245, 243, 0.1);
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 12px;
    color: #8dadbb;
}

.news-date {
    font-family: Tahoma, Arial, sans-serif;
    color: #ecc894;
}

.news-author {
    font-family: Tahoma, Arial, sans-serif;
    color: #b4f5f3;
}

.news-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #feffff;
    font-family: Tahoma, Arial, sans-serif;
    line-height: 1.3;
}

.news-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #ecc894;
    text-shadow: 0 0 8px rgba(236, 200, 148, 0.3);
}

.news-content {
    padding: 20px 25px;
    color: #e0f7f1;
    line-height: 1.6;
    font-size: 14px;
    font-family: Tahoma, Arial, sans-serif;
}

.news-content p {
    margin-bottom: 15px;
    color: #e0f7f1;
}

.news-content img {
    max-width: 100%;
    height: auto;
    border: 1px solid rgba(64, 84, 79, 0.5);
    border-radius: 6px;
    margin: 10px 0;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    /* Улучшенное качество изображений */
    image-rendering: auto;
    -webkit-image-rendering: auto;
    -moz-image-rendering: auto;
    /* Сглаживание для лучшего качества */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Предотвращение размытия при масштабировании */
    transform: translateZ(0);
    backface-visibility: hidden;
    /* Улучшенное качество при сжатии */
    object-fit: contain;
    object-position: center;
}

.news-content h1,
.news-content h2,
.news-content h3 {
    color: #feffff;
    margin-bottom: 15px;
    font-family: Tahoma, Arial, sans-serif;
}

.news-content a {
    color: #ecc894;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-content a:hover {
    color: #ffb84c;
    text-decoration: underline;
}

.news-footer {
    padding: 15px 25px 20px 25px;
    border-top: 1px solid rgba(180, 245, 243, 0.1);
    text-align: right;
}

.news-readmore {
    display: inline-block;
    color: #ecc894;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    font-family: Tahoma, Arial, sans-serif;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border: 1px solid rgba(236, 200, 148, 0.3);
    border-radius: 4px;
    background: rgba(236, 200, 148, 0.05);
}

.news-readmore:hover {
    color: #ffb84c;
    border-color: rgba(255, 184, 76, 0.5);
    background: rgba(255, 184, 76, 0.1);
    text-decoration: none;
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .news-header {
        padding: 15px 20px 12px 20px;
    }

    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .news-title {
        font-size: 15px;
    }

    .news-content {
        padding: 15px 20px;
        font-size: 13px;
    }

    .news-footer {
        padding: 12px 20px 15px 20px;
        text-align: center;
    }

    .news-readmore {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Улучшенное качество изображений в новостях на главной странице */
.home-news-block-article img {
    /* Улучшенное качество изображений */
    image-rendering: auto !important;
    -webkit-image-rendering: auto !important;
    -moz-image-rendering: auto !important;
    /* Сглаживание для лучшего качества */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Предотвращение размытия при масштабировании */
    transform: translateZ(0);
    backface-visibility: hidden;
    /* Улучшенное качество при сжатии */
    object-fit: contain;
    object-position: center;
    /* Дополнительные настройки качества */
    filter: none;
    -webkit-filter: none;
    /* Убираем пикселизацию */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ==========================================
   Mobile Fixes & Animations (Moved from index.php)
   ========================================== */

@keyframes heartbeat-glow {
    0% {
        transform: scale(1);
    }

    20% {
        transform: scale(1.08);
    }

    40% {
        transform: scale(1);
    }

    60% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

/* Простые мобильные исправления */
@media (max-width: 768px) {

    /* Скрываем декоративные элементы */
    .sparks,
    .lava,
    .highlight,
    .circle,
    .ray-1,
    .ray-2,
    .fire {
        display: none !important;
    }

    /* Исправляем overflow */
    body,
    .wrapper,
    .container {
        overflow-x: hidden !important;
    }

    /* Подвигаем тему вправо */
    .wrapper {
        margin-left: 10px !important;
    }

    /* Убираем дублирование внизу */
    .footer {
        position: relative !important;
        overflow: hidden !important;
    }

    .fire-blue,
    .fire-red {
        display: none !important;
    }

    /* Подвигаем фоновое изображение вправо */
    body {
        background-position: 20px center !important;
    }

    /* Убираем лишний кусок снизу */
    .wrapper {
        min-height: auto !important;
    }

    /* Скрываем нижнюю часть фона */
    body::after {
        content: '';
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 50px;
        background: #000;
        z-index: 9999;
    }

    /* Уменьшаем таймер на мобильных */
    .server-launch-timer-container {
        max-width: 90% !important;
        margin: 0 auto 15px auto !important;
    }

    .countdown-timer {
        gap: 6px !important;
    }

    .countdown-item {
        min-width: 40px !important;
        padding: 6px 8px !important;
    }

    .countdown-number {
        font-size: 16px !important;
    }

    .countdown-label {
        font-size: 8px !important;
    }
}

@media (max-width: 480px) {
    .countdown-timer {
        gap: 4px !important;
    }

    .countdown-item {
        min-width: 35px !important;
        padding: 4px 6px !important;
    }

    .countdown-number {
        font-size: 14px !important;
    }

    .countdown-label {
        font-size: 7px !important;
    }

    /* Дополнительные исправления для очень маленьких экранов */
    .wrapper {
        margin-left: 5px !important;
    }

    /* Подвигаем фон еще больше на маленьких экранах */
    body {
        background-position: 30px center !important;
    }

    /* Полностью убираем все декоративные элементы */
    .sparks,
    .lava,
    .highlight,
    .circle,
    .ray-1,
    .ray-2,
    .fire,
    .fire-blue,
    .fire-red {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* Убираем больше снизу на маленьких экранах */
    body::after {
        height: 80px !important;
    }
}


/* Улучшенное качество всех изображений в новостях */
.news img,
.news-content img,
.news-item img,
.home-news-block img,
.home-news-block-article img {
    /* Улучшенное качество изображений - переопределяем глобальные настройки */
    image-rendering: auto !important;
    -webkit-image-rendering: auto !important;
    -moz-image-rendering: auto !important;
    /* Сглаживание для лучшего качества */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Предотвращение размытия при масштабировании */
    transform: translateZ(0);
    backface-visibility: hidden;
    /* Улучшенное качество при сжатии */
    object-fit: contain;
    object-position: center;
    /* Дополнительные настройки качества */
    filter: none;
    -webkit-filter: none;
    /* Убираем пикселизацию */
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
    /* Принудительно убираем pixelated */
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: optimize-contrast !important;
    image-rendering: auto !important;
}



/* Принудительное исправление позиционирования новостей */
.home-news-block,
.news-container,
.home-news-block-article,
.news-item,
.row,
.col-xs-3,
.col-xs-6,
.col-xs-4,
.col-xs-12 {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    transition: none !important;
    opacity: 1 !important;
    will-change: auto !important;
}

/* Отключаем will-change на body для новостей */
body .home-news-block,
body .news-container,
body .home-news-block-article,
body .news-item {
    will-change: auto !important;
}

/* Принудительное переопределение глобальных настроек изображений для новостей */
body .news img,
body .news-content img,
body .news-item img,
body .home-news-block img,
body .home-news-block-article img,
body .news-container img {
    image-rendering: auto !important;
    -webkit-image-rendering: auto !important;
    -moz-image-rendering: auto !important;
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: optimize-contrast !important;
    image-rendering: crisp-edges !important;
    /* Убираем все фильтры, которые могут влиять на качество */
    filter: none !important;
    -webkit-filter: none !important;
    /* Сглаживание */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Оптимизация рендеринга */
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: auto;
}

/* Online Player Highlight */
body .rankings-table tr td a.nickname-link.online-player,
.nickname-link.online-player {
    color: #258a3a !important;
    text-shadow: 0 0 8px rgba(37, 138, 58, 0.6);
    font-weight: bold;
}

/* Top 3 Ranks Highlighting - Custom Lightning Theme */
@keyframes lightning-flicker {
    0% {
        text-shadow: 0 0 4px currentColor;
        opacity: 1;
    }

    15% {
        text-shadow: 0 0 12px currentColor;
        opacity: 1;
    }

    30% {
        text-shadow: 0 0 4px currentColor;
        opacity: 1;
    }

    40% {
        text-shadow: 0 0 15px currentColor;
        opacity: 1;
    }

    50% {
        text-shadow: 0 0 4px currentColor;
        opacity: 1;
    }

    65% {
        text-shadow: 0 0 12px currentColor;
        opacity: 1;
    }

    75% {
        text-shadow: 0 0 4px currentColor;
        opacity: 1;
    }

    85% {
        text-shadow: 0 0 15px currentColor;
        opacity: 1;
    }

    100% {
        text-shadow: 0 0 4px currentColor;
        opacity: 1;
    }
}

/* Rank 1: Yellow/Gold + Lightning */
.rankings-table tr.rank-1 .nickname-link {
    color: #eb4621 !important;
    font-weight: bold;
    animation: lightning-flicker 2s infinite linear;
}

/* Rank 2: Teal + Lightning */
.rankings-table tr.rank-2 .nickname-link {
    color: #5ed6b5 !important;
    font-weight: bold;
    animation: lightning-flicker 2.5s infinite linear;
}

/* Rank 3: Purple + Lightning */
.rankings-table tr.rank-3 .nickname-link {
    color: #ad40cb !important;
    font-weight: bold;
    animation: lightning-flicker 3s infinite linear;
}