/* custom.css */

/* =============================================
   Server Status Badge
   ============================================= */
.server-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 6px 0;
    transition: border-color 0.4s, color 0.4s;
}

/* Dot indicator */
.server-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    background: #888;
    transition: background 0.4s, box-shadow 0.4s;
}

/* ONLINE state */
.server-status-badge--online {
    color: #31ff00;
    border-color: rgba(49, 255, 0, 0.35);
}
.server-status-dot--online {
    background: #31ff00;
    box-shadow: 0 0 8px #31ff00, 0 0 16px rgba(49, 255, 0, 0.5);
    animation: pulse-online 1.8s ease-in-out infinite;
}

/* OFFLINE state */
.server-status-badge--offline {
    color: #ff3030;
    border-color: rgba(255, 48, 48, 0.35);
}
.server-status-dot--offline {
    background: #ff3030;
    box-shadow: 0 0 8px #ff3030, 0 0 16px rgba(255, 48, 48, 0.4);
}

/* Pulsing animation for online dot */
@keyframes pulse-online {
    0%   { box-shadow: 0 0 4px #31ff00, 0 0 8px rgba(49, 255, 0, 0.4); }
    50%  { box-shadow: 0 0 12px #31ff00, 0 0 24px rgba(49, 255, 0, 0.7); }
    100% { box-shadow: 0 0 4px #31ff00, 0 0 8px rgba(49, 255, 0, 0.4); }
}

/* =============================================
   Ranking / Statistics
   ============================================= */
.ranking-page {
    width: 100%;
}

.ranking-page__heading {
    margin-bottom: 28px;
}

.ranking-board {
    width: 100%;
    scroll-margin-top: calc(var(--navigation-height, 100px) + 28px);
}

.ranking-board__title {
    margin: 0 0 22px;
    text-align: center;
    color: #fff;
    font-family: ChelseaCYR, OlympiaDeco, "Averia Libre", "Times New Roman", Times, serif;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.1;
    text-transform: uppercase;
}

.ranking-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.ranking-tabs__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    color: #fff;
    background: #2b2320;
    border: 1px solid rgba(255, 194, 76, 0.16);
    border-radius: 4px;
    font-family: Intro, "Open Sans", Tahoma, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: background .25s, color .25s, border-color .25s;
}

.ranking-tabs__link:hover,
.ranking-tabs__link_active {
    color: #14100c;
    background: #ffc24c;
    border-color: #ffc24c;
}

.ranking-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(255, 194, 76, 0.13);
    border-radius: 6px;
    background: rgba(12, 6, 4, 0.72);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
}

.ranking-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
    color: #c8b58e;
    font-family: Intro, "Open Sans", Tahoma, Arial, sans-serif;
    font-size: .95rem;
}

.ranking-table th,
.ranking-table td {
    padding: 12px 14px;
    border-right: 1px solid rgba(255, 194, 76, 0.12);
    text-align: left;
    vertical-align: middle;
}

.ranking-table th:last-child,
.ranking-table td:last-child {
    border-right: 0;
}

.ranking-table thead th {
    color: #fff;
    background: rgba(9, 5, 3, 0.9);
    font-size: .95rem;
    font-weight: 800;
    text-transform: uppercase;
}

.ranking-table tbody tr:nth-child(odd) {
    background: rgba(92, 67, 48, 0.52);
}

.ranking-table tbody tr:nth-child(even) {
    background: rgba(20, 11, 7, 0.86);
}

.ranking-table tbody tr:hover {
    background: rgba(255, 194, 76, 0.11);
}

.ranking-table__pos {
    width: 64px;
    color: #f4d18a;
    font-weight: 800;
    text-align: center !important;
    white-space: nowrap;
}

.ranking-table__pvp {
    color: #22b833;
    font-weight: 800;
}

.ranking-table__pk {
    color: #f02f28;
    font-weight: 800;
}

.ranking-table__empty {
    padding: 34px 16px !important;
    text-align: center !important;
    color: #fff;
}

.ranking-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
}

.ranking-identity__avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 194, 76, 0.72);
    background: #120906;
}

.ranking-identity__body {
    min-width: 0;
}

.ranking-identity__body strong,
.ranking-identity__body span {
    display: block;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-identity__body strong {
    color: #fff;
    font-size: 1rem;
    line-height: 1.15;
}

.ranking-identity__body span {
    margin-top: 3px;
    color: #c8b58e;
    font-size: .78rem;
    text-transform: uppercase;
}

.ranking-clan strong,
.ranking-clan span {
    display: block;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-clan strong {
    color: #fff;
    font-size: 1rem;
    line-height: 1.15;
}

.ranking-clan span {
    margin-top: 3px;
    color: #c8b58e;
    font-size: .78rem;
    text-transform: uppercase;
}

@media (max-width: 1024px) {
    .ranking-board__title {
        font-size: 1.7rem;
    }
}

@media (max-width: 600px) {
    .ranking-page__heading {
        margin-bottom: 20px;
    }

    .ranking-tabs {
        justify-content: flex-start;
    }

    .ranking-tabs__link {
        min-height: 38px;
        padding: 0 14px;
        font-size: .88rem;
    }

    .ranking-table {
        min-width: 720px;
        font-size: .86rem;
    }

    .ranking-table th,
    .ranking-table td {
        padding: 10px;
    }

    .ranking-identity {
        min-width: 220px;
    }

    .ranking-identity__avatar {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }
}

[data-section="media"] .streams__title {
    color: #ffc24c;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.78);
}

[data-section="media"] .streams__wrap {
    width: min(100%, 1440px);
    margin-left: auto;
    margin-right: auto;
}

[data-section="media"] .streams__list {
    padding-top: 42px;
    padding-bottom: 18px;
}

[data-section="media"] .streams__list .swiper-wrapper {
    align-items: stretch;
}

.media-video-card {
    position: relative;
    display: block;
    box-sizing: border-box;
    aspect-ratio: 16 / 9;
    height: auto;
    overflow: hidden;
    border: 2px solid rgba(218, 190, 109, 0.92);
    border-radius: 8px;
    background: #130c08;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(255, 244, 187, 0.16);
}

.media-video-card.swiper-slide {
    height: auto;
}

.media-video-card:before {
    content: "";
    position: absolute;
    top: -7px;
    left: 50%;
    z-index: 4;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(232, 206, 131, 0.95);
    background: #17100c;
    transform: translateX(-50%) rotate(45deg);
    box-shadow: 0 0 0 4px rgba(18, 10, 7, 0.88);
}

.media-video-card__thumb,
.media-video-card__shade {
    position: absolute;
    inset: 0;
}

.media-video-card__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform .25s ease, filter .25s ease;
}

.media-video-card__shade {
    z-index: 1;
    background: linear-gradient(180deg, rgba(8, 5, 3, 0.18), rgba(8, 5, 3, 0.12) 48%, rgba(8, 5, 3, 0.74));
}

.media-video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 70px;
    height: 50px;
    border-radius: 15px;
    background: #ff1717;
    transform: translate(-50%, -50%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.media-video-card__play:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 52%;
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 20px solid #fff;
    transform: translate(-50%, -50%);
}

.media-video-card__title,
.media-video-card__watch {
    position: absolute;
    z-index: 2;
    left: 22px;
    right: 22px;
    color: #fff;
    font-weight: 800;
    line-height: 1.18;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.92);
}

.media-video-card__title {
    top: 18px;
    font-size: 1.05rem;
    text-transform: uppercase;
}

.media-video-card__watch {
    right: 22px;
    bottom: 20px;
    left: auto;
    font-size: .95rem;
    white-space: nowrap;
}

.media-video-card:hover {
    color: #fff;
    border-color: #ffe28e;
}

.media-video-card:hover .media-video-card__thumb {
    filter: brightness(1.08) saturate(1.08);
    transform: scale(1.06);
}

.media-video-card:hover .media-video-card__play {
    background: #ff2a2a;
}

@media (max-width: 900px) {
    [data-section="media"] .streams__list {
        padding-top: 30px;
    }

    .media-video-card__play {
        width: 60px;
        height: 42px;
        border-radius: 12px;
    }

    .media-video-card__title {
        font-size: .92rem;
    }

    .media-video-card__watch {
        font-size: .82rem;
    }
}

@media (max-width: 600px) {
    [data-section="media"] .streams__wrap {
        width: min(100%, 420px);
    }

    .media-video-card__title,
    .media-video-card__watch {
        left: 16px;
        right: 16px;
    }
}
