.mtv-fi {
    --mtv-fi-speed: 45s;
    --mtv-fi-speed-mobile: 45s;
    --mtv-fi-bg: #111111;
    --mtv-fi-text: #ffffff;
    --mtv-fi-label-bg: #e30613;
    --mtv-fi-label-text: #ffffff;
    --mtv-fi-separator: #e30613;
    --mtv-fi-width: 100%;
    --mtv-fi-max-width: 100vw;
    --mtv-fi-margin-top: 0px;
    --mtv-fi-margin-bottom: 0px;
    --mtv-fi-font-size: 14px;
    --mtv-fi-font-size-mobile: 13px;
    --mtv-fi-height: 38px;
    --mtv-fi-height-mobile: 36px;

    display: flex;
    align-items: stretch;
    width: var(--mtv-fi-width);
    max-width: var(--mtv-fi-max-width);
    height: var(--mtv-fi-height);
    min-height: 0;
    max-height: var(--mtv-fi-height);
    overflow: hidden;
    background: var(--mtv-fi-bg);
    color: var(--mtv-fi-text);
    font-family: inherit;
    font-size: var(--mtv-fi-font-size);
    line-height: 1;
    vertical-align: top;
    box-sizing: border-box;
    margin: var(--mtv-fi-margin-top) auto var(--mtv-fi-margin-bottom) auto;
    padding: 0;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    border: 0;
    outline: 0;
    background-clip: border-box;
}

.mtv-fi,
.mtv-fi * {
    box-sizing: border-box;
}

/* Anti-liseré : certains thèmes / navigateurs laissent apparaître un pixel du fond parent
   sous les blocs animés. On "scelle" le module et on déborde d'un pixel avec
   la couleur du fil, sans créer d'espace supplémentaire. */
.mtv-fi::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: var(--mtv-fi-bg);
    pointer-events: none;
    z-index: 4;
}

.mtv-fi__label::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 1px;
    background: var(--mtv-fi-label-bg);
    pointer-events: none;
}

.mtv-fi__label {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    align-self: stretch;
    height: 100%;
    min-height: 100%;
    padding: 0 16px;
    background: var(--mtv-fi-label-bg);
    color: var(--mtv-fi-label-text);
    position: relative;
    z-index: 5;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.mtv-fi__viewport {
    position: relative;
    flex: 1 1 auto;
    align-self: stretch;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    min-width: 0;
    background: var(--mtv-fi-bg);
}

.mtv-fi__viewport::before,
.mtv-fi__viewport::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 2;
    pointer-events: none;
}

.mtv-fi__viewport::before {
    left: 0;
    background: linear-gradient(90deg, var(--mtv-fi-bg), transparent);
}

.mtv-fi__viewport::after {
    right: 0;
    background: linear-gradient(270deg, var(--mtv-fi-bg), transparent);
}

.mtv-fi__track {
    display: inline-flex;
    align-items: center;
    gap: 0;
    width: max-content;
    height: 100%;
    min-height: 100%;
    white-space: nowrap;
    animation: mtv-fi-scroll var(--mtv-fi-speed) linear infinite;
    will-change: transform;
}

.mtv-fi--pause-hover:hover .mtv-fi__track {
    animation-play-state: paused;
}

.mtv-fi__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 28px 0 0;
    white-space: nowrap;
}

.mtv-fi__item::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--mtv-fi-separator);
    margin-left: 22px;
    flex: 0 0 auto;
}

.mtv-fi__time {
    color: var(--mtv-fi-text);
    font-weight: 800;
    opacity: .78;
    font-variant-numeric: tabular-nums;
}

.mtv-fi__theme {
    color: var(--mtv-fi-text);
    font-weight: 800;
    text-transform: uppercase;
}

.mtv-fi__brief {
    color: var(--mtv-fi-text);
    font-weight: 500;
}

.mtv-fi--alert .mtv-fi__label,
.mtv-fi--special .mtv-fi__label {
    letter-spacing: .06em;
}

.mtv-fi--empty {
    padding: 12px 16px;
    background: #fff8e5;
    color: #5f4100;
    border: 1px solid #e3c46c;
}

@keyframes mtv-fi-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mtv-fi__track {
        animation: none;
        transform: none;
        overflow-x: auto;
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .mtv-fi {
        width: 100% !important;
        max-width: 100% !important;
        left: 0;
        transform: none;
        font-size: var(--mtv-fi-font-size-mobile);
        height: var(--mtv-fi-height-mobile);
        max-height: var(--mtv-fi-height-mobile);
    }

    .mtv-fi__label {
        padding: 0 10px;
    }

    .mtv-fi__track {
        height: 100%;
        min-height: 100%;
        animation-duration: var(--mtv-fi-speed-mobile);
    }

    .mtv-fi__item {
        padding-right: 20px;
        gap: 7px;
    }

    .mtv-fi__item::before {
        margin-left: 14px;
    }

    .mtv-fi__viewport::before,
    .mtv-fi__viewport::after {
        width: 24px;
    }
}

[data-mtv-fil-info],
.mtv-fi-host {
    display: block;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0;
    font-size: 0;
    min-height: 0;
}

[data-mtv-fil-info] .mtv-fi,
.mtv-fi-host .mtv-fi {
    line-height: 1.2;
}

/* TagDiv / Newspaper ajoute souvent une marge basse aux blocs.
   On la neutralise uniquement pour le bloc qui contient le fil info. */
.td_block_wrap:has([data-mtv-fil-info]),
.td_block_wrap:has(.mtv-fi-host),
.td_block_inner:has([data-mtv-fil-info]),
.td_block_inner:has(.mtv-fi-host) {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.mtv-fi--loading {
    padding: 10px 16px;
    opacity: .75;
}
