.tppt-network-ticker {
    --tppt-network-bg: rgba(11, 17, 27, 0.58);
    --tppt-network-fg: #f8fafc;
    --tppt-network-muted: rgba(239, 244, 250, 0.74);
    --tppt-network-line: rgba(255, 255, 255, 0.28);
    --tppt-network-chip: rgba(255, 255, 255, 0.13);
    --tppt-network-chip-strong: rgba(255, 255, 255, 0.20);
    --tppt-network-serif: Georgia, Cambria, "Times New Roman", Times, serif;
    --tppt-network-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    position: relative;
    z-index: 24;
    margin: 18px auto;
    color: var(--tppt-network-fg);
    font-family: var(--tppt-network-sans);
}

.tppt-network-ticker-frame {
    --tppt-network-pin-top: calc(env(safe-area-inset-top, 0px) + 8px);
    --tppt-network-frame-height: auto;
    position: relative;
    z-index: 72;
    min-height: var(--tppt-network-frame-height);
    margin: 18px auto;
    isolation: isolate;
}

.tppt-network-ticker-frame > .tppt-network-ticker {
    margin: 0 auto;
}

.tppt-network-ticker--placepage-v2 {
    position: sticky;
    top: calc(env(safe-area-inset-top, 0px) + 8px);
    z-index: 72;
}

.tppt-network-ticker-frame.is-pinned > .tppt-network-ticker--placepage-v2 {
    position: fixed;
    top: var(--tppt-network-pin-top);
    right: 0;
    left: 0;
    z-index: 96;
    margin: 0;
}

.tppt-network-ticker__inner {
    display: grid;
    grid-template-columns: minmax(132px, auto) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    width: min(1180px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 10px 11px;
    border: 1px solid var(--tppt-network-line);
    border-radius: 16px;
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.24), transparent 36%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.07) 42%, rgba(15, 23, 42, 0.18)),
        var(--tppt-network-bg);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.30),
        inset 0 -1px 0 rgba(255, 255, 255, 0.08),
        0 18px 48px rgba(2, 6, 23, 0.22);
    overflow: hidden;
    backdrop-filter: blur(22px) saturate(1.18);
    -webkit-backdrop-filter: blur(22px) saturate(1.18);
}

.tppt-network-ticker[data-tppt-network-no-ads],
.tppt-network-ticker-frame[data-tppt-network-no-ads] {
    contain: layout paint;
}

.tppt-network-ticker [data-tppt-network-ad-blocked="1"],
.tppt-network-ticker-frame [data-tppt-network-ad-blocked="1"],
.tppt-network-ticker ins.adsbygoogle,
.tppt-network-ticker .adsbygoogle,
.tppt-network-ticker .google-auto-placed,
.tppt-network-ticker .google_auto_placed,
.tppt-network-ticker .adsbygoogle-noablate,
.tppt-network-ticker [data-ad-client],
.tppt-network-ticker [data-ad-slot],
.tppt-network-ticker iframe[id^="google_ads_iframe_"],
.tppt-network-ticker div[id^="google_ads_iframe_"],
.tppt-network-ticker [id^="aswift_"],
.tppt-network-ticker-frame ins.adsbygoogle,
.tppt-network-ticker-frame .adsbygoogle,
.tppt-network-ticker-frame .google-auto-placed,
.tppt-network-ticker-frame .google_auto_placed,
.tppt-network-ticker-frame .adsbygoogle-noablate,
.tppt-network-ticker-frame [data-ad-client],
.tppt-network-ticker-frame [data-ad-slot],
.tppt-network-ticker-frame iframe[id^="google_ads_iframe_"],
.tppt-network-ticker-frame div[id^="google_ads_iframe_"],
.tppt-network-ticker-frame [id^="aswift_"],
.tppt-network-ticker-frame + ins.adsbygoogle,
.tppt-network-ticker-frame + .adsbygoogle,
.tppt-network-ticker-frame + .google-auto-placed,
.tppt-network-ticker-frame + .google_auto_placed,
.tppt-network-ticker-frame + .adsbygoogle-noablate,
.tppt-network-ticker-frame + [data-ad-client],
.tppt-network-ticker-frame + [data-ad-slot],
.tppt-network-ticker-frame + iframe[id^="google_ads_iframe_"],
.tppt-network-ticker-frame + div[id^="google_ads_iframe_"],
.tppt-network-ticker-frame + [id^="aswift_"] {
    display: none !important;
    visibility: hidden !important;
    inline-size: 0 !important;
    block-size: 0 !important;
    width: 0 !important;
    height: 0 !important;
    max-width: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

.tppt-network-ticker__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 12px;
    font-weight: 760;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 1px 12px rgba(2, 6, 23, 0.28);
}

.tppt-network-ticker__dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgb(var(--tp-accent-a, 255, 153, 51)), rgba(255, 255, 255, 0.82));
    box-shadow:
        0 0 0 5px rgba(var(--tp-accent-a, 255, 153, 51), 0.14),
        0 0 24px rgba(var(--tp-accent-a, 255, 153, 51), 0.34);
    flex: 0 0 auto;
}

.tppt-network-ticker__viewport {
    min-width: 0;
    overflow: hidden;
}

.tppt-network-ticker__track {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
    animation: tppt-network-ticker-scroll 38s linear infinite;
    will-change: transform;
}

.tppt-network-ticker:hover .tppt-network-ticker__track,
.tppt-network-ticker:focus-within .tppt-network-ticker__track {
    animation-play-state: paused;
}

.tppt-network-ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: min(430px, 78vw);
    max-width: min(490px, 84vw);
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 13px;
    color: var(--tppt-network-fg);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)),
        var(--tppt-network-chip);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.25;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.tppt-network-ticker__item:hover,
.tppt-network-ticker__item:focus-visible {
    color: #ffffff;
    border-color: rgba(var(--tp-accent-a, 255, 153, 51), 0.46);
    background: var(--tppt-network-chip-strong);
}

.tppt-network-ticker__icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.92);
    object-fit: cover;
}

.tppt-network-ticker__icon--fallback {
    display: inline-grid;
    place-items: center;
    color: rgba(15, 23, 42, 0.86);
    font-size: 11px;
    font-weight: 900;
}

.tppt-network-ticker__source,
.tppt-network-ticker__meta {
    flex: 0 0 auto;
    color: var(--tppt-network-muted);
    font-family: var(--tppt-network-sans);
    font-size: 10px;
    font-weight: 820;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tppt-network-ticker__source {
    max-width: 13ch;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tppt-network-ticker__title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--tppt-network-serif);
    font-size: 15px;
    font-weight: 650;
    letter-spacing: 0;
}

.tppt-network-ticker__meta {
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.075);
    color: rgba(248, 250, 252, 0.70);
}

.tppt-network-ticker--placepage-v1 {
    margin-top: 0;
}

.tppt-network-ticker--places-v1,
.tppt-network-ticker--places-v2 {
    position: relative;
    z-index: 12;
    margin: 8px 0 0;
}

.tppt-network-ticker--places-v1 .tppt-network-ticker__inner,
.tppt-network-ticker--places-v2 .tppt-network-ticker__inner {
    width: 100%;
    padding: 8px;
    grid-template-columns: 1fr;
    gap: 7px;
    background: rgba(7, 12, 20, 0.84);
}

.tppt-network-ticker--places-v1 .tppt-network-ticker__item,
.tppt-network-ticker--places-v2 .tppt-network-ticker__item {
    min-width: min(300px, 78vw);
    max-width: 320px;
    font-size: 12px;
}

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

@media (max-width: 700px) {
    .tppt-network-ticker-frame {
        margin: 14px auto;
    }

    .tppt-network-ticker {
        margin: 14px auto;
    }

    .tppt-network-ticker--placepage-v2 {
        top: calc(env(safe-area-inset-top, 0px) + 6px);
    }

    .tppt-network-ticker-frame.is-pinned .tppt-network-ticker__inner {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 8px;
        padding: 7px 8px;
    }

    .tppt-network-ticker-frame.is-pinned .tppt-network-ticker__label {
        gap: 6px;
        font-size: 10px;
    }

    .tppt-network-ticker-frame.is-pinned .tppt-network-ticker__dot {
        width: 7px;
        height: 7px;
        box-shadow: 0 0 0 4px rgba(var(--tp-accent-a, 255, 153, 51), 0.14);
    }

    .tppt-network-ticker-frame.is-pinned .tppt-network-ticker__icon {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
    }

    .tppt-network-ticker-frame.is-pinned .tppt-network-ticker__item {
        min-width: min(252px, 68vw);
        max-width: min(272px, 72vw);
        padding: 6px 8px;
    }

    .tppt-network-ticker-frame.is-pinned .tppt-network-ticker__source {
        max-width: 8ch;
    }

    .tppt-network-ticker-frame.is-pinned .tppt-network-ticker__title {
        font-size: 13px;
    }

    .tppt-network-ticker__inner {
        grid-template-columns: 1fr;
        gap: 8px;
        width: min(100% - 20px, 520px);
        padding: 9px;
        border-radius: 11px;
    }

    .tppt-network-ticker__label {
        font-size: 11px;
    }

    .tppt-network-ticker__item {
        min-width: 82vw;
        max-width: 82vw;
        font-size: 12px;
    }

    .tppt-network-ticker__title {
        font-size: 14px;
    }

    .tppt-network-ticker__source {
        max-width: 10ch;
    }

    .tppt-network-ticker__meta {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tppt-network-ticker__track {
        animation: none;
        flex-wrap: wrap;
        min-width: 0;
    }

    .tppt-network-ticker__item {
        min-width: 0;
    }
}
