/* ETS Story Feed – immersive, vertical swipe player */
.ets-video-feed,
.ets-video-feed * {
    box-sizing: border-box;
}

.ets-video-feed {
    --ets-feed-ink: #050607;
    --ets-feed-white: #f8fbff;
    --ets-feed-red: #e32723;
    --ets-feed-blue: #2b65ae;
    --ets-feed-line: rgba(248, 251, 255, 0.28);
    position: relative;
    isolation: isolate;
    width: 100%;
    height: 100dvh;
    min-height: 480px;
    overflow: hidden;
    color: var(--ets-feed-white);
    background: var(--ets-feed-ink);
    font-family: inherit;
}

/* This class is attached by the script only on a page that contains an
 * immersive feed. It prevents the normal document from scrolling behind it. */
html.ets-video-feed-page,
body.ets-video-feed-page {
    width: 100%;
    min-height: 100%;
    overflow: hidden !important;
}

body.ets-video-feed-page {
    margin: 0 !important;
    padding: 0 !important;
}

/* The feed is moved directly below <body> by JavaScript. This makes it
 * independent from a theme's content width, header and possible transforms. */
.ets-video-feed--immersive {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147480000 !important;
    width: 100vw !important;
    max-width: none !important;
    height: 100dvh !important;
    min-height: 0 !important;
    margin: 0 !important;
    border: 0 !important;
}

.ets-video-feed--immersive:fullscreen,
.ets-video-feed--immersive:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
}

body.ets-video-feed-page #wpadminbar {
    display: none !important;
}

.ets-video-feed__scroller {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.ets-video-feed__scroller::-webkit-scrollbar {
    display: none;
}

.ets-video-feed__item {
    position: relative;
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    isolation: isolate;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: #07090d;
}

/* Small, deliberately restrained motion layer. The browser still owns the
 * vertical swipe and snap behaviour; these transitions only make a confirmed
 * slide feel as though it has settled into place. */
@keyframes ets-video-feed-slide-reveal {
    0% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
    }
}

@keyframes ets-video-feed-copy-in {
    0% {
        opacity: 0;
        transform: translate3d(0, 14px, 0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes ets-video-feed-action-in {
    0% {
        opacity: 0;
        transform: translate3d(12px, 0, 0) scale(0.94);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes ets-video-feed-badge-pop {
    0% {
        opacity: 0;
        transform: scale(0.82);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes ets-video-feed-swipe-hint-chevron {
    0%,
    100% {
        opacity: 0.45;
        transform: translateY(5px) rotate(45deg);
    }
    45% {
        opacity: 1;
        transform: translateY(-2px) rotate(45deg);
    }
}

.ets-video-feed__item.is-active::before {
    position: absolute;
    inset: 0;
    z-index: 3;
    content: '';
    pointer-events: none;
    background: rgba(5, 6, 7, 0.42);
    animation: ets-video-feed-slide-reveal 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ets-video-feed__item.is-active .ets-video-feed__date-row {
    animation: ets-video-feed-copy-in 390ms 40ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ets-video-feed__item.is-active .ets-video-feed__context-row {
    animation: ets-video-feed-copy-in 390ms 95ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ets-video-feed__item.is-active .ets-video-feed__context-row .ets-video-feed__category-badge {
    animation: ets-video-feed-badge-pop 300ms 180ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ets-video-feed__item.is-active .ets-video-feed__title {
    animation: ets-video-feed-copy-in 460ms 145ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ets-video-feed__item.is-active .ets-video-feed__description {
    animation: ets-video-feed-copy-in 450ms 205ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ets-video-feed__item.is-active .ets-video-feed__hashtags {
    animation: ets-video-feed-copy-in 430ms 250ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ets-video-feed__item.is-active .ets-video-feed__link {
    animation: ets-video-feed-copy-in 420ms 300ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ets-video-feed__item.is-active .ets-video-feed__actions > * {
    animation: ets-video-feed-action-in 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ets-video-feed__item.is-active .ets-video-feed__actions > *:nth-child(1) {
    animation-delay: 155ms;
}

.ets-video-feed__item.is-active .ets-video-feed__actions > *:nth-child(2) {
    animation-delay: 210ms;
}

.ets-video-feed__item.is-active .ets-video-feed__actions > *:nth-child(3) {
    animation-delay: 265ms;
}

.ets-video-feed__item.is-active .ets-video-feed__actions > *:nth-child(4) {
    animation-delay: 320ms;
}

.ets-video-feed__media,
.ets-video-feed__media::after {
    position: absolute;
    inset: 0;
}

.ets-video-feed__media {
    z-index: 0;
    overflow: hidden;
    background: #050607;
}

.ets-video-feed__media::after {
    z-index: 1;
    content: '';
    background: radial-gradient(circle at center, transparent 28%, rgba(0, 0, 0, 0.28) 100%);
    pointer-events: none;
}

.ets-video-feed__iframe,
.ets-video-feed__html5,
.ets-video-feed__poster {
    display: block;
    border: 0;
    background: #050607;
}

.ets-video-feed__html5,
.ets-video-feed__poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 16:9 YouTube/Vimeo players must be enlarged to fill a portrait viewport. */
.ets-video-feed__iframe--cover {
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100%, 177.78vh);
    height: max(100%, 56.25vw);
    transform: translate(-50%, -50%) scale(1.006);
}

/* Vertical shorts remain fully visible. */
.ets-video-feed__iframe--contain {
    width: 100%;
    height: 100%;
}

.ets-video-feed__post-media {
    background:
        linear-gradient(135deg, rgba(43, 101, 174, 0.88), rgba(6, 9, 13, 0.9)),
        #07101c;
}


/* Imagely / NextGEN photo galleries live inside a single vertical ETS-TV
 * slide. The inner track uses horizontal scroll-snap, so visitors can swipe
 * photos left/right without creating extra vertical feed items. */
.ets-video-feed__gallery-media {
    background: #050607;
}

.ets-video-feed__gallery-track {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Vertical intent stays available to the outer ETS-TV feed. Horizontal
     * photo swipes are handled directionally by ets-video-feed.js. */
    touch-action: pan-y;
    overscroll-behavior-x: contain;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
    -webkit-overflow-scrolling: touch;
}

.ets-video-feed__gallery-track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
}

.ets-video-feed__scroller.is-gallery-dragging {
    overscroll-behavior-y: contain;
}

.ets-video-feed__gallery-track::-webkit-scrollbar {
    display: none;
}

.ets-video-feed__gallery-track:focus-visible {
    outline: 2px solid rgba(248, 251, 255, 0.96);
    outline-offset: -4px;
}

.ets-video-feed__gallery-frame {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    margin: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.ets-video-feed__gallery-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #050607;
    -webkit-user-drag: none;
    user-select: none;
}

.ets-video-feed__gallery-image--cover {
    position: absolute;
    inset: 0;
}

.ets-video-feed__gallery-progress {
    position: absolute;
    top: max(84px, calc(env(safe-area-inset-top) + 60px));
    left: 50%;
    z-index: 7;
    display: inline-flex;
    gap: 5px;
    align-items: center;
    min-width: 44px;
    padding: 6px 10px;
    border: 1px solid rgba(248, 251, 255, 0.32);
    border-radius: 999px;
    background: rgba(8, 10, 14, 0.46);
    color: rgba(248, 251, 255, 0.98);
    font-size: 11px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
    line-height: 1;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.72);
    transform: translateX(-50%);
    backdrop-filter: blur(10px);
    pointer-events: none;
}

.ets-video-feed__gallery-swipe-label {
    position: absolute;
    top: 52%;
    left: 50%;
    z-index: 6;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 7px 10px;
    border: 1px solid rgba(248, 251, 255, 0.2);
    border-radius: 999px;
    background: rgba(5, 6, 7, 0.26);
    color: rgba(248, 251, 255, 0.92);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
    transform: translate(-50%, -50%);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    backdrop-filter: blur(8px);
}

.ets-video-feed__gallery-swipe-label span {
    font-size: 15px;
    line-height: 0.7;
}

.ets-video-feed__gallery-summary {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    margin: 0 0 8px;
    color: rgba(248, 251, 255, 0.92);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    line-height: 1.1;
    text-transform: uppercase;
}

.ets-video-feed__item.is-active .ets-video-feed__gallery-summary {
    animation: ets-video-feed-copy-in 390ms 115ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ets-video-feed__post-placeholder {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 78% 17%, rgba(227, 39, 35, 0.48), transparent 22%),
        linear-gradient(135deg, #173f74, #07090d 64%);
}

.ets-video-feed__missing {
    display: grid;
    width: 100%;
    height: 100%;
    padding: 24px;
    place-items: center;
    color: rgba(248, 251, 255, 0.76);
    text-align: center;
    background: linear-gradient(145deg, #1c2027, #050607);
}

.ets-video-feed__shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(5, 6, 7, 0.76) 0%, rgba(5, 6, 7, 0.05) 28%, rgba(5, 6, 7, 0.12) 52%, rgba(5, 6, 7, 0.94) 100%),
        linear-gradient(90deg, rgba(5, 6, 7, 0.25), transparent 62%);
}

/* Header is intentionally part of the feed, not the WordPress theme.
 * It remains visible above every video while the page is swiped. */
.ets-video-feed__header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 20;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 70px;
    padding: max(14px, env(safe-area-inset-top)) 18px 14px;
    background: linear-gradient(180deg, rgba(5, 6, 7, 0.72), rgba(5, 6, 7, 0));
    pointer-events: none;
}

.ets-video-feed__header-brand,
.ets-video-feed__header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    pointer-events: auto;
}

.ets-video-feed__header-actions {
    justify-self: end;
}

.ets-video-feed__header-graphic {
    display: flex;
    min-width: 0;
    justify-content: center;
    pointer-events: auto;
}

.ets-video-feed__header-graphic-image {
    display: block;
    width: auto;
    max-width: min(38vw, 430px);
    max-height: 38px;
    height: auto;
    object-fit: contain;
}

.ets-video-feed__site-logo,
.ets-video-feed__site-logo .custom-logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.ets-video-feed__site-logo .custom-logo {
    display: block;
    width: auto;
    max-width: 145px;
    max-height: 42px;
    height: auto;
}

.ets-video-feed__site-logo--fallback {
    color: var(--ets-feed-white);
    font-size: 25px;
    font-style: italic;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    text-decoration: none;
}

.ets-video-feed__header-label {
    padding-left: 10px;
    border-left: 1px solid rgba(248, 251, 255, 0.3);
    color: rgba(248, 251, 255, 0.9);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.ets-video-feed__header-button {
    display: inline-grid;
    width: 38px;
    min-width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    place-items: center;
    appearance: none;
    border: 1px solid rgba(248, 251, 255, 0.36);
    border-radius: 50%;
    background: rgba(8, 10, 14, 0.58);
    color: var(--ets-feed-white);
    cursor: pointer;
    backdrop-filter: blur(12px);
}

.ets-video-feed__header-button--close {
    border-color: rgba(248, 251, 255, 0.5);
}

.ets-video-feed__header-button:hover,
.ets-video-feed__header-button:focus-visible,
.ets-video-feed__header-button.is-active {
    border-color: rgba(248, 251, 255, 0.9);
    background: rgba(8, 10, 14, 0.9);
    outline: none;
}

.ets-video-feed__svg {
    display: block;
    width: 20px;
    height: 20px;
}

.ets-video-feed__actions {
    position: absolute;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(170px, calc(env(safe-area-inset-bottom) + 138px));
    z-index: 8;
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.ets-video-feed__view-count {
    display: grid;
    width: 44px;
    min-height: 42px;
    place-items: center;
    align-content: center;
    gap: 1px;
    color: var(--ets-feed-white);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-align: center;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.82);
    pointer-events: none;
}

.ets-video-feed__view-count .ets-video-feed__svg {
    width: 20px;
    height: 20px;
}

.ets-video-feed__view-count-number {
    display: block;
    max-width: 54px;
    overflow: hidden;
    color: rgba(248, 251, 255, 0.98);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ets-video-feed__icon-button {
    display: inline-grid;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    place-items: center;
    appearance: none;
    border: 1px solid rgba(248, 251, 255, 0.42);
    border-radius: 50%;
    background: rgba(8, 10, 14, 0.58);
    color: var(--ets-feed-white);
    font-size: 21px;
    line-height: 1;
    box-shadow: none;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.ets-video-feed__icon-button:hover,
.ets-video-feed__icon-button:focus-visible {
    border-color: var(--ets-feed-white);
    background: rgba(8, 10, 14, 0.9);
    outline: none;
}

.ets-video-feed__sound-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ets-video-feed__sound-icon--off {
    display: none;
}

.ets-video-feed__sound-button.is-muted .ets-video-feed__sound-icon--on {
    display: none;
}

.ets-video-feed__sound-button.is-muted .ets-video-feed__sound-icon--off {
    display: inline-flex;
}

.ets-video-feed__content {
    position: relative;
    z-index: 7;
    width: min(790px, calc(100% - 86px));
    padding: 0 0 max(22px, calc(env(safe-area-inset-bottom) + 16px)) 18px;
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.74);
}

.ets-video-feed__content--post {
    width: min(780px, calc(100% - 74px));
}

.ets-video-feed__eyebrow {
    display: grid;
    gap: 6px;
    margin: 0 0 9px;
    color: rgba(248, 251, 255, 0.92);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.09em;
    line-height: 1.25;
    text-transform: uppercase;
}

.ets-video-feed__date-row,
.ets-video-feed__context-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 10px;
    align-items: center;
}

.ets-video-feed__meta,
.ets-video-feed__category-badges,
.ets-video-feed__category-badge {
    display: inline-flex;
    align-items: center;
}

.ets-video-feed__category-badges {
    flex-wrap: wrap;
    gap: 6px;
}

.ets-video-feed__category-badge {
    min-height: 24px;
    padding: 4px 9px;
    border: 1px solid rgba(248, 251, 255, 0.58);
    border-radius: 7px;
    background: var(--ets-video-category-bg, var(--ets-feed-blue));
    color: var(--ets-video-category-fg, var(--ets-feed-white));
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
}

.ets-video-feed__category-badge--update {
    border-color: #ffffff;
    background: #be2b26;
    color: #ffffff;
    box-shadow: 0 2px 14px rgba(190, 43, 38, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}

.ets-video-feed__category-badge--banner {
    padding: 3px 7px;
}

.ets-video-feed__category-badge-image {
    display: block;
    width: auto;
    max-width: 150px;
    max-height: 18px;
    height: auto;
    object-fit: contain;
}

.ets-video-feed__title {
    max-width: 720px;
    margin: 0;
    color: var(--ets-feed-white);
    font-size: clamp(25px, 4.5vw, 46px);
    font-weight: 800;
    letter-spacing: -0.028em;
    line-height: 1.02;
}

.ets-video-feed__description {
    display: block;
    max-width: 650px;
    margin-top: 10px;
    overflow: visible;
    color: rgba(248, 251, 255, 0.92);
    font-size: 15px;
    line-height: 1.48;
}

.ets-video-feed__description p {
    margin: 0;
}




.ets-video-feed__hashtags {
    margin-top: 9px;
    color: #8fc5ff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.ets-video-feed__link {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    margin-top: 14px;
    padding: 10px 14px;
    border: 1px solid rgba(248, 251, 255, 0.38);
    border-radius: 5px;
    background: rgba(8, 10, 14, 0.38);
    color: var(--ets-feed-white) !important;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 1;
    text-decoration: none !important;
    text-shadow: none;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.ets-video-feed__link:hover,
.ets-video-feed__link:focus-visible {
    border-color: var(--ets-feed-white);
    background: rgba(8, 10, 14, 0.82);
    outline: none;
}

.ets-video-feed__swipe-hint {
    position: absolute;
    top: 46%;
    left: 50%;
    z-index: 12;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    min-width: 156px;
    padding: 10px 14px;
    border: 1px solid rgba(248, 251, 255, 0.3);
    border-radius: 999px;
    background: rgba(7, 10, 15, 0.42);
    color: rgba(248, 251, 255, 0.96);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    line-height: 1;
    text-align: center;
    text-shadow: 0 1px 11px rgba(0, 0, 0, 0.72);
    text-transform: uppercase;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(-50%, -50%, 0);
    transition: opacity 260ms ease, transform 260ms ease, visibility 0s linear 260ms;
    backdrop-filter: blur(10px);
}

.ets-video-feed__swipe-hint.is-visible {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.ets-video-feed__swipe-hint.is-dismissed {
    opacity: 0;
    transform: translate3d(-50%, calc(-50% - 8px), 0);
}

.ets-video-feed__swipe-hint-chevrons {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 17px;
    margin-top: -1px;
}

.ets-video-feed__swipe-hint-chevrons span {
    display: block;
    width: 10px;
    height: 10px;
    margin: -3px 0;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: rotate(45deg);
    animation: ets-video-feed-swipe-hint-chevron 1.45s ease-in-out infinite;
}

.ets-video-feed__swipe-hint-chevrons span:nth-child(2) {
    animation-delay: 130ms;
}

.ets-video-feed__share-toast {
    position: absolute;
    right: 16px;
    bottom: 20px;
    z-index: 30;
    max-width: 230px;
    padding: 10px 12px;
    border-radius: 6px;
    background: rgba(8, 10, 14, 0.92);
    color: var(--ets-feed-white);
    font-size: 12px;
    line-height: 1.35;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.ets-video-feed__share-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ets-video-feed__empty {
    padding: 22px;
    border: 1px solid #d2d8df;
    background: #fff;
    color: #171b22;
}

@media (min-width: 800px) {
    .ets-video-feed__header {
        padding-right: 34px;
        padding-left: 34px;
    }

    .ets-video-feed__site-logo .custom-logo {
        max-width: 180px;
        max-height: 50px;
    }

    .ets-video-feed__content {
        width: min(860px, calc(100% - 130px));
        padding-right: 0;
        padding-left: 36px;
        padding-bottom: 34px;
    }

    .ets-video-feed__actions {
        right: 34px;
        bottom: 210px;
    }


    .ets-video-feed__title {
        font-size: clamp(34px, 4vw, 58px);
    }
}

@media (max-width: 420px) {
    .ets-video-feed__header {
        gap: 8px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .ets-video-feed__header-label {
        display: none;
    }

    .ets-video-feed__header-graphic-image {
        max-width: 100%;
    }

    .ets-video-feed__header-button {
        width: 36px;
        min-width: 36px;
        height: 36px;
    }

    .ets-video-feed__site-logo .custom-logo {
        max-width: 118px;
        max-height: 38px;
    }

    .ets-video-feed__actions {
        bottom: max(188px, calc(env(safe-area-inset-bottom) + 154px));
    }


    .ets-video-feed__content {
        width: calc(100% - 72px);
    }

    .ets-video-feed__title {
        font-size: clamp(24px, 7.4vw, 33px);
    }

    .ets-video-feed__description {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ets-video-feed__scroller,
    .ets-video-feed__gallery-track {
        scroll-behavior: auto;
    }

    .ets-video-feed__item.is-active::before,
    .ets-video-feed__item.is-active .ets-video-feed__date-row,
    .ets-video-feed__item.is-active .ets-video-feed__context-row,
    .ets-video-feed__item.is-active .ets-video-feed__context-row .ets-video-feed__category-badge,
    .ets-video-feed__item.is-active .ets-video-feed__title,
    .ets-video-feed__item.is-active .ets-video-feed__description,
    .ets-video-feed__item.is-active .ets-video-feed__hashtags,
    .ets-video-feed__item.is-active .ets-video-feed__link,
    .ets-video-feed__item.is-active .ets-video-feed__actions > *,
    .ets-video-feed__swipe-hint-chevrons span {
        animation: none !important;
    }

    .ets-video-feed__swipe-hint {
        display: none !important;
    }
}

/* Direct MP4/WebM videos can enter the native iPhone media player from the
 * action button. For YouTube/Vimeo, iOS owns the provider iframe; this silent
 * controls mode temporarily shows the uncropped provider controls, including
 * the provider's own native full-screen button. */
.ets-video-feed__native-fullscreen-button.is-active {
    border-color: rgba(248, 251, 255, 0.95);
    background: rgba(8, 10, 14, 0.92);
}

.ets-video-feed__item.is-provider-controls-mode .ets-video-feed__iframe {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: none;
}

.ets-video-feed__item.is-provider-controls-mode .ets-video-feed__media::after {
    background: rgba(0, 0, 0, 0.18);
}

.ets-video-feed__item.is-provider-controls-mode .ets-video-feed__content,
.ets-video-feed__item.is-provider-controls-mode .ets-video-feed__shade {
    opacity: 0.16;
    pointer-events: none;
}

/* Keep the video full-screen button reachable so the temporary provider-controls
 * view can be dismissed without leaving the current slide. */
.ets-video-feed__item.is-provider-controls-mode .ets-video-feed__actions {
    opacity: 0.72;
}

/* Phone landscape: the portrait-oriented action rail used to rise too close to
 * the overlay header on short screens. Anchor its top edge below the viewport
 * midpoint instead, keeping the native video fullscreen control reachable. */
@media (orientation: landscape) and (max-height: 600px) and (max-width: 899px) {
    .ets-video-feed__actions,
    .ets-video-feed__actions--post {
        top: max(50dvh, calc(env(safe-area-inset-top) + 118px));
        right: max(14px, env(safe-area-inset-right));
        bottom: auto;
        transform: none;
    }
}


/* On a phone in landscape, a 16:9 provider iframe that is enlarged in
 * "cover" mode gets cropped vertically. Its native control bar then falls
 * below the viewport. Keep the complete player inside the viewport instead:
 * horizontal clips get modest side gutters on ultra-wide screens, while the
 * provider controls remain fully reachable. */
@media (orientation: landscape) and (max-height: 600px) and (max-width: 899px) {
    .ets-video-feed__item--video .ets-video-feed__iframe--cover {
        top: 50%;
        left: 50%;
        width: min(100%, 177.7778dvh);
        height: min(100%, 56.25dvw);
        transform: translate(-50%, -50%);
    }

    .ets-video-feed__item--video .ets-video-feed__html5 {
        object-fit: contain;
    }
}

/* iPhone/iPad: native full screen for YouTube/Vimeo is controlled by the
 * provider player's own button. Hide the duplicate feed action so it cannot
 * suggest a path Safari will not allow. MP4/WebM still use the native video
 * controls supplied by iOS itself. */
.ets-video-feed.is-ios-device .ets-video-feed__native-fullscreen-button {
    display: none;
}

/* Phone landscape is a viewing mode. The lower text card would otherwise sit
 * above the embedded player controls, including YouTube/Vimeo's own full
 * screen control. Keep the video clean and fully interactive; the metadata
 * returns instantly when the device goes back to portrait. */
@media (orientation: landscape) and (max-height: 600px) and (max-width: 899px) {
    .ets-video-feed__item--video .ets-video-feed__content,
    .ets-video-feed__item--video .ets-video-feed__shade,
    .ets-video-feed__item--video .ets-video-feed__media::after,
    .ets-video-feed__item--video .ets-video-feed__view-count {
        display: none !important;
    }
}


/* The landscape video mode intentionally keeps provider controls clear. */
.ets-video-feed__item.is-provider-controls-mode .ets-video-feed__content,
.ets-video-feed__item.is-provider-controls-mode .ets-video-feed__actions > * {
    animation: none !important;
}

@media (orientation: landscape) and (max-height: 600px) and (max-width: 899px) {
    .ets-video-feed__swipe-hint {
        display: none !important;
    }
}


@media (max-width: 420px) {
    .ets-video-feed__gallery-progress {
        top: max(76px, calc(env(safe-area-inset-top) + 51px));
        padding: 5px 9px;
        font-size: 10px;
    }

    .ets-video-feed__gallery-swipe-label {
        font-size: 9px;
    }
}

@media (orientation: landscape) and (max-height: 600px) and (max-width: 899px) {
    .ets-video-feed__gallery-progress {
        top: max(58px, calc(env(safe-area-inset-top) + 40px));
    }

    .ets-video-feed__gallery-swipe-label {
        display: none;
    }
}

/* MyRCM result cards use the same condensed type treatment as the ETS
 * streaming tables. The result content is vertically centered so a points
 * table reads like a live broadcast insert rather than ordinary post copy. */
@font-face {
    font-family: 'ETS Titillium Web';
    src: url('fonts/TitilliumWeb-Regular.woff2') format('woff2');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'ETS Titillium Web';
    src: url('fonts/TitilliumWeb-Bold.woff2') format('woff2');
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

.ets-video-feed__item--result {
    align-items: center;
    padding-top: max(76px, calc(env(safe-area-inset-top) + 54px));
    padding-bottom: max(38px, env(safe-area-inset-bottom));
    background: #030303;
}

.ets-video-feed__result-media {
    background:
        radial-gradient(circle at 86% 10%, rgba(227, 39, 35, 0.14), transparent 25%),
        linear-gradient(145deg, #060606 0%, #010101 68%);
}

.ets-video-feed__item--result.has-result-background .ets-video-feed__result-media {
    background-image:
        radial-gradient(circle at 86% 10%, rgba(227, 39, 35, 0.16), transparent 26%),
        linear-gradient(145deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.05)),
        var(--ets-result-background-image);
    background-position: center, center, center;
    background-repeat: no-repeat;
    background-size: auto, auto, cover;
}

.ets-video-feed__result-media::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.72));
}

.ets-video-feed__item--result.has-result-background .ets-video-feed__result-media::after {
    /* Restore the familiar subtle top and bottom black falloff used on other
     * ETS Stories slides, while keeping the custom result background image clearly
     * visible behind the centered table. */
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.10) 18%, rgba(0, 0, 0, 0.04) 48%, rgba(0, 0, 0, 0.44) 100%);
}

.ets-video-feed__result-shade {
    background:
        linear-gradient(180deg, rgba(3, 3, 3, 0.72) 0%, rgba(3, 3, 3, 0.04) 24%, rgba(3, 3, 3, 0.68) 46%, #030303 100%);
}

.ets-video-feed__item--result.has-result-background .ets-video-feed__result-shade {
    /* Match the rest of ETS Stories again with a soft black fade at both the top
     * and bottom edges, but keep the middle area open enough so the selected
     * result background still reads as a visible image. */
    background:
        linear-gradient(180deg, rgba(3, 3, 3, 0.60) 0%, rgba(3, 3, 3, 0.14) 18%, rgba(3, 3, 3, 0.05) 36%, rgba(3, 3, 3, 0.10) 62%, rgba(3, 3, 3, 0.56) 100%);
}

.ets-video-feed__content--result {
    /* Result cards can use the full slide width. The action rail now sits
     * above the table instead of visually claiming the last column. */
    width: min(920px, calc(100% - 8px));
    margin: 0 auto;
    padding: 0 4px;
    color: var(--ets-feed-white);
    font-family: 'ETS Titillium Web', 'Arial Narrow', Arial, sans-serif;
    text-shadow: none;
}

.ets-video-feed__content--result .ets-video-feed__date-row,
.ets-video-feed__content--result .ets-video-feed__context-row,
.ets-video-feed__content--result .ets-video-feed__hashtags,
.ets-video-feed__content--result .ets-video-feed__link {
    font-family: 'ETS Titillium Web', 'Arial Narrow', Arial, sans-serif;
}

.ets-video-feed__title--result {
    margin-bottom: 10px;
    font-family: 'ETS Titillium Web', 'Arial Narrow', Arial, sans-serif;
    font-size: clamp(23px, 4vw, 42px);
    font-weight: 700;
    letter-spacing: 0.015em;
    text-transform: uppercase;
}

.ets-video-feed__actions--result {
    /* Keep the action rail above the centered result table. */
    top: max(86px, calc(env(safe-area-inset-top) + 50px));
    right: max(10px, env(safe-area-inset-right));
    bottom: auto;
}

.ets-video-feed__result-table {
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid rgba(248, 251, 255, 0.24);
    /* 10% transparent black keeps the table readable while allowing a
     * selected background image to remain perceptible underneath. */
    background: rgba(0, 0, 0, 0.90);
    font-family: 'ETS Titillium Web', 'Arial Narrow', Arial, sans-serif;
}

.ets-video-feed__result-row {
    display: grid;
    grid-template-columns: 34px 22px minmax(82px, 1.35fr) minmax(40px, 0.55fr) minmax(32px, 0.34fr) minmax(78px, 1.12fr);
    gap: 6px;
    align-items: center;
    min-height: 31px;
    padding: 4px 5px;
    border-top: 1px solid rgba(248, 251, 255, 0.18);
    color: rgba(248, 251, 255, 0.94);
    font-family: 'ETS Titillium Web', 'Arial Narrow', Arial, sans-serif;
    /* +2pt compared with the previous broadcast-table scale. */
    font-size: clamp(12.67px, 2.35vw, 16.67px);
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.05;
}


.ets-video-feed__result-table--practice .ets-video-feed__result-row {
    /* Keep rank, flag, driver and team identical to the standard result table.
     * Only split the two right practice value columns evenly. */
    grid-template-columns: 34px 22px minmax(82px, 1.35fr) minmax(40px, 0.55fr) minmax(70px, 0.82fr) minmax(70px, 0.82fr);
    gap: 6px;
}

.ets-video-feed__result-table--practice .ets-video-feed__result-row--head {
    letter-spacing: 0.055em;
}

.ets-video-feed__result-row:first-child {
    border-top: 0;
}

.ets-video-feed__result-row > span,
.ets-video-feed__result-row > strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ets-video-feed__result-row--head {
    min-height: 29px;
    padding-top: 5px;
    padding-bottom: 4px;
    border-top: 0;
    background: #2b65ae;
    color: #ffffff;
    font-size: clamp(10.67px, 2vw, 12.67px);
    font-weight: 700;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.ets-video-feed__result-row:not(.ets-video-feed__result-row--head) {
    background: rgba(255, 255, 255, 0.012);
}

.ets-video-feed__result-row:not(.ets-video-feed__result-row--head):nth-child(odd) {
    background: rgba(255, 255, 255, 0.035);
}

.ets-video-feed__result-row--head > span {
    color: #ffffff;
}

.ets-video-feed__result-rank {
    color: var(--ets-feed-white);
    font-size: 1.15em;
    font-weight: 700;
    text-align: center;
}

.ets-video-feed__result-driver {
    color: var(--ets-feed-white);
    font-family: 'ETS Titillium Web', 'Arial Narrow', Arial, sans-serif;
    font-size: 1em;
    font-weight: 400;
}

.ets-video-feed__result-prename {
    font-size: 1em;
    font-weight: 400;
}

.ets-video-feed__result-prename:not(:empty)::after {
    content: ' ';
    white-space: pre;
}

.ets-video-feed__result-name {
    color: var(--ets-feed-white);
    font-size: calc(1em + 1pt);
    font-weight: 700;
}

.ets-video-feed__result-flag,
.ets-video-feed__result-flag-column {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.ets-video-feed__result-flag-image {
    display: block;
    width: 18px;
    height: 12px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45));
}

.ets-video-feed__result-flag-image--unknown {
    opacity: 0.68;
}

.ets-video-feed__result-flag-missing {
    color: rgba(248, 251, 255, 0.45);
    font-size: 12px;
}

.ets-video-feed__result-team {
    display: flex;
    align-items: center;
    min-width: 0;
}

.ets-video-feed__result-team-logo {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 18px;
    object-fit: contain;
    object-position: left center;
}

.ets-video-feed__result-team-text {
    display: inline-block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.ets-video-feed__result-status {
    padding: 14px;
    border: 1px solid rgba(248, 251, 255, 0.28);
    border-top: 2px solid var(--ets-feed-red);
    background: rgba(0, 0, 0, 0.72);
    color: rgba(248, 251, 255, 0.88);
    font-family: 'ETS Titillium Web', 'Arial Narrow', Arial, sans-serif;
    font-size: 13px;
    line-height: 1.4;
}

.ets-video-feed__result-status--error {
    border-color: rgba(227, 39, 35, 0.72);
}

.ets-video-feed__result-status p {
    margin: 0;
}

.ets-video-feed__result-status p + p {
    margin-top: 6px;
}

@media (min-width: 800px) {
    .ets-video-feed__content--result {
        width: min(1080px, calc(100% - 100px));
        padding-right: 24px;
        padding-left: 24px;
    }

    .ets-video-feed__result-row {
        grid-template-columns: 52px 30px minmax(168px, 1.3fr) minmax(70px, 0.55fr) minmax(46px, 0.32fr) minmax(160px, 1.2fr);
        min-height: 40px;
        gap: 10px;
        padding: 5px 9px;
        font-size: 17.67px;
    }

    .ets-video-feed__result-table--practice .ets-video-feed__result-row {
        grid-template-columns: 52px 30px minmax(168px, 1.3fr) minmax(70px, 0.55fr) minmax(103px, 0.76fr) minmax(103px, 0.76fr);
        gap: 10px;
    }

    .ets-video-feed__result-row--head {
        min-height: 32px;
        font-size: 12.67px;
    }

    .ets-video-feed__result-flag-image {
        width: 22px;
        height: 15px;
    }
}

@media (max-width: 420px) {
    .ets-video-feed__item--result {
        padding-top: max(68px, calc(env(safe-area-inset-top) + 50px));
        padding-bottom: max(28px, env(safe-area-inset-bottom));
    }

    .ets-video-feed__content--result {
        width: calc(100% - 4px);
        padding-right: 2px;
        padding-left: 2px;
    }

    .ets-video-feed__result-row {
        grid-template-columns: 25px 18px minmax(74px, 1.3fr) minmax(36px, 0.5fr) minmax(28px, 0.32fr) minmax(70px, 1.12fr);
        gap: 3px;
        min-height: 30px;
        padding: 3px 2px;
        font-size: 11.67px;
    }

    .ets-video-feed__result-row--head {
        min-height: 25px;
        padding-top: 4px;
        padding-bottom: 3px;
        font-size: 9.67px;
        letter-spacing: 0.04em;
    }

    .ets-video-feed__result-flag-image {
        width: 15px;
        height: 10px;
    }

    .ets-video-feed__result-table--practice .ets-video-feed__result-row {
        /* On mobile, keep the left side identical to the normal result table.
         * Only the two practice value columns are split evenly. */
        grid-template-columns: 25px 18px minmax(74px, 1.3fr) minmax(36px, 0.5fr) minmax(58px, 0.72fr) minmax(58px, 0.72fr);
        gap: 3px;
    }
}

@media (orientation: landscape) and (max-height: 600px) and (max-width: 899px) {
    .ets-video-feed__item--result {
        padding-top: max(50px, calc(env(safe-area-inset-top) + 40px));
        padding-bottom: max(18px, env(safe-area-inset-bottom));
    }

    .ets-video-feed__actions--result {
        top: max(50dvh, calc(env(safe-area-inset-top) + 92px));
    }

    .ets-video-feed__content--result {
        width: min(1040px, calc(100% - 72px));
    }

    .ets-video-feed__title--result {
        margin-bottom: 5px;
        font-size: clamp(18px, 3vw, 30px);
    }

    .ets-video-feed__result-row {
        min-height: 28px;
        padding-top: 3px;
        padding-bottom: 3px;
        font-size: 11.67px;
    }

    .ets-video-feed__result-row--head {
        min-height: 24px;
        font-size: 10.17px;
    }
}
