.news-pulse-hero {
    background:
        radial-gradient(circle at 82% 15%, rgba(25, 135, 84, .45), transparent 32%),
        #10251f !important;
}

.letter-spaced {
    letter-spacing: .08em;
}

#news-map {
    min-height: 610px;
    background: #dfeae5;
}

.pulse-dot {
    filter: drop-shadow(0 0 5px rgba(220, 53, 69, .55));
}

.pulse-dot-fresh {
    animation: pulse-marker 1.8s ease-out infinite;
}

.headline-card {
    transition: transform .16s ease, box-shadow .16s ease;
}

.headline-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .75rem 1.5rem rgba(16, 37, 31, .1) !important;
}

@keyframes pulse-marker {
    0%, 100% {
        stroke-width: 2;
        stroke-opacity: .8;
    }
    50% {
        stroke-width: 8;
        stroke-opacity: .2;
    }
}

.pulse-side-rail {
    min-height: 610px;
}

.live-match-card {
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.live-feed-status {
    --live-status-rgb: 25, 135, 84;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgb(var(--live-status-rgb));
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .02em;
    white-space: nowrap;
}

.live-status-icon {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 0 rgba(var(--live-status-rgb), .62);
    animation: live-status-core 1.4s cubic-bezier(.2, .7, .35, 1) infinite;
    will-change: box-shadow, opacity, transform;
}

.live-status-icon::after {
    position: absolute;
    inset: -4px;
    border: 2px solid currentColor;
    border-radius: inherit;
    content: "";
    opacity: 0;
    animation: live-status-ring 1.4s cubic-bezier(.2, .7, .35, 1) infinite;
    will-change: opacity, transform;
}

.live-feed-status.is-connecting {
    --live-status-rgb: 13, 110, 253;
}

.live-feed-status.is-offline {
    --live-status-rgb: 176, 107, 0;
}

.live-feed-status.is-offline .live-status-icon,
.live-feed-status.is-offline .live-status-icon::after {
    animation: none;
}

.live-match-list {
    max-height: 355px;
    overflow: auto;
    border-top: 1px solid var(--bs-border-color);
}

.live-match-item {
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--bs-border-color-translucent);
    background: var(--bs-body-bg);
}

.live-match-item:last-child {
    border-bottom: 0;
}

.live-match-item > div {
    display: flex;
    align-items: center;
    gap: .45rem;
    overflow: hidden;
    color: var(--bs-secondary-color);
    font-size: .7rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.live-match-item h3 {
    margin: .35rem 0 0;
    font-size: .88rem;
    line-height: 1.25;
}

.live-match-item h3 a {
    color: var(--bs-body-color);
    text-decoration: none;
}

.live-match-item h3 a:hover {
    color: var(--bs-success);
}

.live-match-item p {
    display: -webkit-box;
    margin: .35rem 0 0;
    overflow: hidden;
    color: var(--bs-secondary-color);
    font-size: .74rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.live-match-item.is-new,
.headline-new .headline-card {
    animation: live-arrival 1.8s ease-out;
}

.live-match-empty {
    margin: 0;
    padding: 1.25rem 1rem;
    color: var(--bs-secondary-color);
    font-size: .8rem;
    text-align: center;
}

.pulse-live-ping {
    pointer-events: none;
    transform-box: fill-box;
    transform-origin: center;
    animation:
        live-map-ping-cycle 2s ease-in-out 5,
        live-map-ping-settle 1s ease-out 10s forwards;
    will-change: fill, fill-opacity, stroke, stroke-opacity, stroke-width, transform;
}

@keyframes live-map-ping-cycle {
    0% {
        fill: #0d6efd;
        stroke: #0d6efd;
        stroke-width: 3;
        stroke-opacity: 1;
        fill-opacity: .95;
        transform: scale(.8);
    }
    50% {
        fill: #dc3545;
        stroke: #dc3545;
        stroke-width: 13;
        stroke-opacity: .08;
        fill-opacity: .42;
        transform: scale(2.25);
    }
    100% {
        fill: #0d6efd;
        stroke: #0d6efd;
        stroke-width: 3;
        stroke-opacity: 1;
        fill-opacity: .95;
        transform: scale(1);
    }
}

@keyframes live-map-ping-settle {
    0% {
        fill: #0d6efd;
        stroke: #0d6efd;
        stroke-width: 3;
        stroke-opacity: 1;
        fill-opacity: .95;
        transform: scale(1);
    }
    50% {
        fill: #6f42c1;
        stroke: #6f42c1;
        stroke-opacity: .9;
        fill-opacity: .88;
    }
    100% {
        fill: #dc3545;
        stroke: #dc3545;
        stroke-width: 2;
        stroke-opacity: .8;
        fill-opacity: .82;
        transform: scale(1);
    }
}

@keyframes live-map-color-cycle {
    0%, 100% {
        fill: #0d6efd;
        stroke: #0d6efd;
        stroke-opacity: 1;
        fill-opacity: .95;
    }
    50% {
        fill: #dc3545;
        stroke: #dc3545;
        stroke-opacity: .55;
        fill-opacity: .7;
    }
}

.pulse-map-popup {
    min-width: 260px;
}

.pulse-map-popup-heading .pulse-media-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: .08em;
    text-underline-offset: .14em;
}

.pulse-map-popup-heading .pulse-media-link:hover {
    color: var(--bs-success);
}

.pulse-map-headlines {
    margin: .7rem 0 0;
    padding: 0;
    list-style: none;
}

.pulse-map-headlines li {
    padding: .55rem 0;
    border-top: 1px solid var(--bs-border-color-translucent);
}

.pulse-map-headlines a {
    display: block;
    color: var(--bs-body-color);
    font-weight: 650;
    line-height: 1.25;
    text-decoration: none;
}

.pulse-map-headlines a:hover {
    color: var(--bs-success);
    text-decoration: underline;
}

.pulse-map-headlines .pulse-media-link {
    display: inline;
    color: inherit;
    font-size: inherit;
    font-weight: 600;
}

.pulse-map-headlines span,
.pulse-map-popup-status {
    display: block;
    margin-top: .2rem;
    color: var(--bs-secondary-color);
    font-size: .7rem;
    line-height: 1.25;
}

.pulse-map-popup-status {
    margin-top: .65rem;
}

@keyframes live-arrival {
    0% {
        background: rgba(25, 135, 84, .16);
        box-shadow: inset 3px 0 #198754;
        transform: translateY(-6px);
    }
    100% {
        background: var(--bs-body-bg);
        box-shadow: inset 0 0 transparent;
        transform: translateY(0);
    }
}

@keyframes live-status-core {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(var(--live-status-rgb), .62);
        opacity: .72;
        transform: scale(.82);
    }
    46% {
        box-shadow: 0 0 0 7px rgba(var(--live-status-rgb), 0);
        opacity: 1;
        transform: scale(1.3);
    }
    70% {
        box-shadow: 0 0 0 0 rgba(var(--live-status-rgb), 0);
        opacity: .86;
        transform: scale(.94);
    }
}

@keyframes live-status-ring {
    0% {
        opacity: 0;
        transform: scale(.4);
    }
    18% {
        opacity: .78;
    }
    76%, 100% {
        opacity: 0;
        transform: scale(1.9);
    }
}

@keyframes live-status-reduced {
    0%, 100% {
        opacity: .55;
    }
    50% {
        opacity: 1;
    }
}

[data-bs-theme="dark"] #news-map .leaflet-tile-pane {
    filter: brightness(.66) invert(1) contrast(1.12) hue-rotate(180deg) saturate(.7);
}

[data-bs-theme="dark"] .leaflet-control-attribution,
[data-bs-theme="dark"] .leaflet-popup-content-wrapper,
[data-bs-theme="dark"] .leaflet-popup-tip {
    color: var(--bs-body-color);
    background: var(--bs-body-bg);
}

@media (max-width: 1199.98px) {
    .pulse-side-rail {
        min-height: 0;
    }

    .live-match-list {
        max-height: 420px;
    }
}

@media (max-width: 767.98px) {
    #news-map {
        min-height: 470px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pulse-dot-fresh,
    .live-match-item.is-new,
    .headline-new .headline-card {
        animation: none;
    }

    .pulse-live-ping {
        animation:
            live-map-color-cycle 2s ease-in-out 5,
            live-map-ping-settle 1s linear 10s forwards;
    }

    .live-feed-status:not(.is-offline) .live-status-icon {
        animation: live-status-reduced 2s ease-in-out infinite;
    }

    .live-status-icon::after {
        animation: none;
    }
}
