/* Бегущая строка Khakimov Ticker: розовая полоса внизу страницы. */

#khakimov-ticker {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 99999;
    border-radius: 10px;
    display: flex;
    align-items: stretch;
    background: var(--kt-bg, #ec008c);
    color: var(--kt-color, #ffffff);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: var(--kt-size, 18px);
    font-weight: 700;
    line-height: 1.2;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .25);
}

#khakimov-ticker .kt-link {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
}

#khakimov-ticker .kt-track {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    width: max-content;
    padding: 18px 0;
    animation: kt-scroll var(--kt-speed, 30s) linear infinite;
    will-change: transform;
}

/* Навели мышь — строка встала на паузу. */
#khakimov-ticker:hover .kt-track {
    animation-play-state: paused;
}

#khakimov-ticker .kt-set {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

#khakimov-ticker .kt-sep {
    margin: 0 .6em;
    opacity: .85;
}

#khakimov-ticker .kt-close {
    flex: 0 0 auto;
    align-self: center;
    margin-right: 8px;
    padding: 0 10px;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

@keyframes kt-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (max-width: 600px) {
    #khakimov-ticker {
        font-size: calc(var(--kt-size, 18px) * .85);
    }
}

/* Зелёный мигающий значок LIVE в правом верхнем углу. */
#khakimov-live-badge {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 99999;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #69d17a, #4cb85c);
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: default;
    box-shadow: 0 0 24px rgba(92, 187, 99, .5), 0 4px 16px rgba(0, 0, 0, .25);
}

#khakimov-live-badge .kt-live-dot {
    position: relative;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
    flex: 0 0 auto;
    animation: kt-live-blink 1.6s ease-in-out infinite;
}

/* Два расходящихся кольца: мягкие, растворяются от круга, как настоящий лайв. */
#khakimov-live-badge .kt-live-dot::before,
#khakimov-live-badge .kt-live-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, .45);
    animation: kt-live-pulse 2.2s ease-out infinite;
}

#khakimov-live-badge .kt-live-dot::after {
    animation-delay: 1.1s;
}

@keyframes kt-live-pulse {
    0% { transform: scale(.7); opacity: .45; }
    70% { opacity: .12; }
    100% { transform: scale(2.6); opacity: 0; }
}

@keyframes kt-live-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

@media (max-width: 600px) {
    #khakimov-live-badge {
        top: 10px;
        right: 10px;
        padding: 7px 11px;
        font-size: 12px;
    }
}
