/* ==========================================================
   KOSMODRIFT TRACK NEWS MANAGEMENT V4
   ========================================================== */
[data-news-id].kdb-news-priority-v4--urgent {
    position: relative;
    border-color: rgba(239, 35, 60, .92) !important;
    box-shadow: 0 0 0 1px rgba(239, 35, 60, .36), 0 16px 42px rgba(239, 35, 60, .20) !important;
    background-image: linear-gradient(145deg, rgba(239, 35, 60, .13), rgba(239, 35, 60, 0) 52%) !important;
}

[data-news-id].kdb-news-priority-v4--urgent::before {
    content: "";
    position: absolute;
    z-index: 4;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: #ef233c;
    box-shadow: 0 0 20px rgba(239, 35, 60, .78);
    pointer-events: none;
}

[data-news-id].kdb-news-priority-v4--attention {
    position: relative;
    border-color: rgba(255, 176, 32, .90) !important;
    box-shadow: 0 0 0 1px rgba(255, 176, 32, .26), 0 14px 36px rgba(255, 176, 32, .13) !important;
    background-image: linear-gradient(145deg, rgba(255, 176, 32, .10), rgba(255, 176, 32, 0) 54%) !important;
}

[data-news-id].kdb-news-priority-v4--attention::before {
    content: "";
    position: absolute;
    z-index: 4;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: #ffb020;
    pointer-events: none;
}

.kdb-news-priority-v4__badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 24px !important;
    padding: 4px 9px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: .08em !important;
}

.kdb-news-priority-v4__badge--urgent {
    color: #fff !important;
    border: 1px solid #ff6274 !important;
    background: #d90429 !important;
    box-shadow: 0 0 16px rgba(239, 35, 60, .54) !important;
    animation: kdb-news-priority-v4-pulse 1.8s ease-in-out infinite;
}

.kdb-news-priority-v4__badge--attention {
    color: #18120a !important;
    border: 1px solid #ffd27a !important;
    background: #ffb020 !important;
}

@keyframes kdb-news-priority-v4-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(239, 35, 60, .34); }
    50% { transform: scale(1.035); box-shadow: 0 0 22px rgba(239, 35, 60, .68); }
}

.kdb-news-album-v4__host {
    position: relative !important;
}

.kdb-news-album-v4__open {
    position: absolute;
    z-index: 5;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    color: #fff;
    background: rgba(6, 8, 12, .82);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .36);
    backdrop-filter: blur(8px);
    cursor: pointer;
    font: inherit;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .08em;
}

.kdb-news-album-v4__open strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    color: #090b0f;
    background: #fff;
    font-size: 11px;
}

.kdb-news-album-v4__open:hover,
.kdb-news-album-v4__open:focus-visible {
    border-color: #fff;
    background: rgba(228, 72, 61, .92);
    outline: none;
}

.kdb-news-album-v4[hidden] {
    display: none !important;
}

.kdb-news-album-v4 {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}

.kdb-news-album-v4__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .86);
    backdrop-filter: blur(9px);
}

.kdb-news-album-v4__dialog {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    max-height: calc(100vh - 40px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 18px;
    background: #080a0e;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .66);
}

.kdb-news-album-v4__header,
.kdb-news-album-v4__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 10px 16px;
    color: #fff;
    background: #0d1016;
}

.kdb-news-album-v4__header strong {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .12em;
}

.kdb-news-album-v4__close,
.kdb-news-album-v4__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .06);
    cursor: pointer;
    font: inherit;
    font-size: 25px;
}

.kdb-news-album-v4__nav {
    font-size: 20px;
}

.kdb-news-album-v4__close:hover,
.kdb-news-album-v4__nav:hover {
    border-color: #e4483d;
    background: #e4483d;
}

.kdb-news-album-v4__stage {
    display: grid;
    place-items: center;
    height: min(72vh, 760px);
    min-height: 280px;
    padding: 12px;
    background: #030406;
}

.kdb-news-album-v4__stage img,
.kdb-news-album-v4__stage video {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.kdb-news-album-v4__footer {
    justify-content: center;
    gap: 24px;
}

.kdb-news-album-v4__footer span {
    min-width: 68px;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
}

html.kdb-news-album-v4-is-open,
html.kdb-news-album-v4-is-open body {
    overflow: hidden !important;
}

@media (max-width: 640px) {
    .kdb-news-album-v4 {
        padding: 0;
    }

    .kdb-news-album-v4__dialog {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .kdb-news-album-v4__stage {
        height: calc(100vh - 116px);
        padding: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kdb-news-priority-v4__badge--urgent {
        animation: none;
    }
}
