:root {
    --tva-site-header-height: 5rem;
    --tva-ad-stage-height: 5.25rem;
    --tva-public-content-width: 74rem;
    --tva-side-ad-gap: 2.25rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
}

.paid-highlight-page-frame {
    display: contents;
}

.paid-highlight-top-stage {
    position: sticky;
    top: var(--tva-site-header-height);
    z-index: 38;
    display: grid;
    width: 100%;
    height: var(--tva-ad-stage-height);
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
    background: transparent;
    box-shadow: none;
}

.paid-highlight-top-viewport,
.paid-highlight-side-viewport {
    min-width: 0;
    overflow: hidden;
}

.paid-highlight-top-viewport {
    padding: .3rem 0;
}

.paid-highlight-top-track {
    display: flex;
    width: max-content;
    height: 100%;
    animation: tva-paid-top-scroll 22s linear infinite;
    will-change: transform;
}

.paid-highlight-top-set {
    display: flex;
    height: 100%;
    gap: .5rem;
    padding-right: .5rem;
}

.paid-highlight-frame-card {
    display: grid;
    min-width: 0;
    gap: .21rem;
    padding: .425rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: .5rem;
    background: #fff;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .2);
    color: #17212b;
    text-decoration: none;
    transition: border-color .16s ease, transform .16s ease;
}

.paid-highlight-frame-card:hover,
.paid-highlight-frame-card:focus-visible {
    border-color: #f4511e;
    transform: translateY(-2px);
}

.paid-highlight-top-stage .paid-highlight-frame-card {
    width: 12rem;
    grid-template-columns: 3.5rem minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    padding: .325rem;
}

.paid-highlight-top-stage .paid-highlight-frame-media {
    grid-column: 1;
    grid-row: 1 / 4;
}

.paid-highlight-top-stage .paid-highlight-frame-type,
.paid-highlight-top-stage .paid-highlight-frame-title,
.paid-highlight-top-stage .paid-highlight-frame-copy {
    grid-column: 2;
}

.paid-highlight-frame-type {
    color: #e84213;
    font-size: .5rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.paid-highlight-frame-title {
    overflow: hidden;
    font-size: .7rem;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.paid-highlight-frame-media {
    position: relative;
    display: grid;
    min-height: 0;
    overflow: hidden;
    place-items: center;
    border-radius: .375rem;
    background: #eef2f5;
}

.paid-highlight-frame-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.paid-highlight-frame-media .paid-highlight-frame-gallery-image {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.025);
    transition: opacity .55s ease, transform .8s ease;
}

.paid-highlight-frame-media .paid-highlight-frame-gallery-image.is-active {
    z-index: 1;
    opacity: 1;
    transform: scale(1);
}

.paid-highlight-frame-fallback {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 3.5rem;
    place-items: center;
    background: linear-gradient(135deg, #202c37, #3e4d5a);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 900;
}

.paid-highlight-frame-copy {
    display: grid;
    min-width: 0;
    gap: .11rem;
}

.paid-highlight-frame-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.paid-highlight-frame-copy small {
    display: -webkit-box;
    overflow: hidden;
    color: #596776;
    font-size: .55rem;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.paid-highlight-frame-copy b {
    color: #e84213;
    font-size: .6rem;
}

.paid-highlight-side-rail {
    position: fixed;
    top: calc(var(--tva-site-header-height) + var(--tva-ad-stage-height) + .75rem);
    bottom: .75rem;
    z-index: 32;
    display: grid;
    width: clamp(6rem, calc((100vw - var(--tva-public-content-width)) / 4 - .5rem), 12rem);
    grid-template-rows: minmax(0, 1fr);
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.paid-highlight-side-left {
    right: calc(50% + (var(--tva-public-content-width) / 2) + var(--tva-side-ad-gap));
}

.paid-highlight-side-right {
    left: calc(50% + (var(--tva-public-content-width) / 2) + var(--tva-side-ad-gap));
}

.paid-highlight-side-track {
    display: grid;
    height: max-content;
    animation: tva-paid-side-scroll 24s linear infinite;
    will-change: transform;
}

.paid-highlight-side-set {
    display: grid;
    gap: .375rem;
    padding: .375rem .325rem 0;
}

.paid-highlight-side-set:last-child {
    padding-bottom: .375rem;
}

.paid-highlight-side-rail .paid-highlight-frame-card {
    width: 100%;
    height: 9.5rem;
    grid-template-rows: auto auto 4.5rem auto;
    padding: .35rem;
}

.paid-highlight-side-rail:hover .paid-highlight-side-track,
.paid-highlight-side-rail:focus-within .paid-highlight-side-track,
.paid-highlight-top-stage:hover .paid-highlight-top-track,
.paid-highlight-top-stage:focus-within .paid-highlight-top-track {
    animation-play-state: paused;
}

@keyframes tva-paid-top-scroll {
    to { transform: translateX(-50%); }
}

@keyframes tva-paid-side-scroll {
    to { transform: translateY(-50%); }
}

@media (max-width: 1599px) {
    .paid-highlight-side-rail { display: none; }
}

@media (max-width: 700px) {
    :root { --tva-ad-stage-height: 4.75rem; }

    .paid-highlight-top-stage {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr);
    }

    .paid-highlight-top-viewport { padding: .3rem 0; }

    .paid-highlight-top-stage .paid-highlight-frame-card {
        width: 6.5rem;
        grid-template-columns: 2.25rem minmax(0, 1fr);
        grid-template-rows: auto auto 1fr;
        padding: .3rem;
    }

    .paid-highlight-top-stage .paid-highlight-frame-media {
        grid-column: 1;
        grid-row: 1 / 4;
    }

    .paid-highlight-top-stage .paid-highlight-frame-type,
    .paid-highlight-top-stage .paid-highlight-frame-title,
    .paid-highlight-top-stage .paid-highlight-frame-copy {
        grid-column: 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    .paid-highlight-top-track,
    .paid-highlight-side-track { animation: none; }
    .paid-highlight-top-viewport,
    .paid-highlight-side-viewport { overflow: auto; }
    .paid-highlight-top-set[aria-hidden="true"],
    .paid-highlight-side-set[aria-hidden="true"] { display: none; }
}
