/* ==========================================================================
   /youtube-app-links: page-only sections (landing-pages/youtube-app-links-6.php).
   Loads after the shared kit (css/the25-landing6.css): reuse the kit's
   --l6-* tokens and l6-* components; put only YouTube-specific pieces here,
   scoped under .l6-page--youtube. Behaviour: js/the25-landing6-youtube.js.
   ========================================================================== */

.l6-page--youtube {
    --yt-red: #ff0033;
    --yt-ink: #0f0f0f;
    --yt-grey: #606060;
    --yt-pastel: linear-gradient(150deg, #ffe4e6, #fff4f4);
}

/* ---- Shared bits ------------------------------------------------------- */

.l6-page--youtube .yt-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    margin-top: 30px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    background: var(--l6-blue);
    color: #fff;
    font-family: var(--l6-text);
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 160ms ease;
}

.l6-page--youtube .yt-btn:hover {
    background: var(--l6-blue-deep);
}

.l6-page--youtube .yt-btn i {
    transition: transform 160ms ease;
}

.l6-page--youtube .yt-btn:hover i {
    transform: translateX(4px);
}

.l6-page--youtube .yt-center-cta {
    margin-top: 40px !important;
    text-align: center;
}

.l6-page--youtube .yt-center-cta .yt-btn {
    margin-top: 0;
}

/* Headings that are links (kept from the previous page for internal links) */
.l6-page--youtube .yt-use-h3link,
.l6-page--youtube .yt-tile-h3link {
    color: inherit;
    text-decoration: none;
}

.l6-page--youtube .yt-use-h3link:hover,
.l6-page--youtube .yt-tile-h3link:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* Keep a token's shape in the chart labels whatever box it is given */
.l6-page--youtube .l6-chart-label img {
    object-fit: contain;
}

/* ---- Hero -------------------------------------------------------------- */

.l6-page--youtube .yt-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 20px !important;
    padding: 6px 13px 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.2;
}

.l6-page--youtube .yt-kicker img {
    width: 20px;
    height: 20px;
}

.l6-page--youtube .yt-hero-note {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 16px 0 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
    list-style: none;
}

.l6-page--youtube .yt-hero-note li {
    display: flex;
    align-items: center;
    gap: 7px;
}

.l6-page--youtube .yt-hero-note i {
    color: var(--l6-mint);
    font-size: 0.74rem;
}

/* ---- How to: three picture cards ------------------------------------------ */

.l6-page--youtube .yt-howto {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.l6-page--youtube .yt-howto-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: start;
    column-gap: 14px;
    padding: 12px 12px 26px;
    border-radius: 26px;
    background: var(--l6-paper);
    box-shadow: 0 1px 0 rgba(13, 27, 46, 0.04), 0 18px 40px rgba(13, 27, 46, 0.07);
}

.l6-page--youtube .yt-howto-art {
    position: relative;
    display: grid;
    grid-column: 1 / -1;
    place-items: center;
    height: 200px;
    margin-bottom: 22px;
    overflow: hidden;
    border-radius: 18px;
    background: var(--yt-pastel);
}

.l6-page--youtube .yt-howto-n {
    grid-row: span 2;
    margin-left: 14px;
    color: var(--l6-blue);
    font-family: var(--l6-display);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 0.9;
}

.l6-page--youtube .yt-howto-step h3 {
    margin: 2px 14px 6px 0;
    font-family: var(--l6-text);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
}

.l6-page--youtube .yt-howto-step p {
    margin-right: 14px;
    font-size: 0.95rem;
}

/* Step 1: the YouTube share sheet, Copy link highlighted */
.l6-page--youtube .yt-sheet {
    width: min(86%, 264px);
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 30px rgba(13, 27, 46, 0.18);
    font-family: var(--l6-ui);
}

.l6-page--youtube .yt-sheet-thumb {
    display: block;
    width: 100%;
    height: 78px;
    object-fit: cover;
}

.l6-page--youtube .yt-sheet-panel {
    padding: 10px 12px 12px;
}

.l6-page--youtube .yt-sheet-title {
    display: block;
    margin-bottom: 8px;
    color: var(--yt-ink);
    font-size: 0.82rem;
}

.l6-page--youtube .yt-sheet-row {
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    list-style: none;
}

.l6-page--youtube .yt-sheet-row li {
    display: grid;
    justify-items: center;
    gap: 5px;
    width: 25%;
    min-width: 0;
    padding: 0 2px;
    overflow: hidden;
    color: var(--yt-ink);
    font-size: 0.58rem;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.l6-page--youtube .yt-sheet-row li > span {
    position: relative;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f2f2f2;
}

.l6-page--youtube .yt-sheet-row img {
    width: 22px;
    height: 22px;
}

.l6-page--youtube .yt-sheet-row .yt-sheet-copy > span {
    background: var(--yt-ink);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(9, 103, 242, 0.35);
}

.l6-page--youtube .yt-sheet-copy > span::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    opacity: 0;
}

/* Step 2: the link pasted into LinkTwin, the app link comes out */
.l6-page--youtube .yt-paste {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 10px;
    width: min(88%, 290px);
}

.l6-page--youtube .yt-paste-field {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px 6px 6px 11px;
    border: 1.5px solid var(--l6-ink);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(13, 27, 46, 0.1);
    font-size: 0.76rem;
}

.l6-page--youtube .yt-paste-field > i {
    color: var(--l6-blue);
    font-size: 0.72rem;
}

.l6-page--youtube .yt-paste-url {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: var(--l6-ink);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.l6-page--youtube .yt-paste-btn {
    flex: none;
    max-width: 52%;
    overflow: hidden;
    padding: 7px 9px;
    border-radius: 8px;
    background: var(--l6-blue);
    color: #fff;
    font-size: 0.66rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.l6-page--youtube .yt-paste-arrow {
    color: var(--l6-blue);
    font-size: 0.9rem;
}

.l6-page--youtube .yt-paste-result {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px 9px 9px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(13, 27, 46, 0.14);
    color: var(--l6-ink);
    font-size: 0.88rem;
    font-weight: 700;
}

.l6-page--youtube .yt-paste-result img {
    width: 22px;
    height: 22px;
}

.l6-page--youtube .yt-paste-result b {
    color: var(--l6-blue-deep);
}

.l6-page--youtube .yt-paste-result .fa-copy {
    margin-left: 4px;
    color: var(--l6-muted);
}

/* Step 3: one link, every app */
.l6-page--youtube .yt-spread {
    position: relative;
    width: 100%;
    height: 100%;
}

.l6-page--youtube .yt-spread-link {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 15px;
    border-radius: 999px;
    background: var(--l6-ink);
    box-shadow: 0 12px 26px rgba(13, 27, 46, 0.28);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    white-space: nowrap;
    transform: translate(-50%, -50%);
}

.l6-page--youtube .yt-spread-link b {
    color: #8fc0ff;
}

.l6-page--youtube .yt-spread-link i {
    color: var(--l6-mint);
    font-size: 0.78rem;
}

.l6-page--youtube .yt-spread-app {
    position: absolute;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(13, 27, 46, 0.12);
}

.l6-page--youtube .yt-spread-app img {
    width: 26px;
    height: 26px;
}

.l6-page--youtube .yt-spread-app:nth-child(2) { top: 24%; left: 16%; }
.l6-page--youtube .yt-spread-app:nth-child(3) { top: 16%; left: 50%; }
.l6-page--youtube .yt-spread-app:nth-child(4) { top: 24%; left: 84%; }
.l6-page--youtube .yt-spread-app:nth-child(5) { top: 76%; left: 16%; }
.l6-page--youtube .yt-spread-app:nth-child(6) { top: 84%; left: 50%; }
.l6-page--youtube .yt-spread-app:nth-child(7) { top: 76%; left: 84%; }

/* How-to motion: .yt-anim (JS) arms the start state, .is-in plays it.
   Step 1 at 0.2s, step 2 at 0.6s, step 3 at 1.4s, so the row reads as a story. */
.l6-page--youtube .yt-anim .yt-sheet-panel {
    transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1) 200ms, opacity 300ms ease 200ms;
}

.l6-page--youtube .yt-anim:not(.is-in) .yt-sheet-panel {
    opacity: 0;
    transform: translateY(60%);
}

.l6-page--youtube .yt-anim.is-in .yt-sheet-copy > span::after {
    animation: yt-ring 1.1s ease-out 0.6s 2;
}

.l6-page--youtube .yt-anim .yt-paste-url {
    transition: clip-path 560ms steps(18) 0.6s;
}

.l6-page--youtube .yt-anim:not(.is-in) .yt-paste-url {
    clip-path: inset(0 100% 0 0);
}

.l6-page--youtube .yt-anim.is-in .yt-paste-btn {
    animation: yt-press 320ms ease 1.2s;
}

.l6-page--youtube .yt-anim .yt-paste-result {
    transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1.4) 1.45s, opacity 260ms ease 1.45s;
}

.l6-page--youtube .yt-anim:not(.is-in) .yt-paste-result {
    opacity: 0;
    transform: translateY(-8px) scale(0.8);
}

.l6-page--youtube .yt-anim .yt-spread-app {
    transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1.4), opacity 260ms ease;
    transition-delay: calc(1.8s + var(--i) * 90ms);
}

.l6-page--youtube .yt-anim:not(.is-in) .yt-spread-app {
    opacity: 0;
    transform: scale(0.4);
}

@keyframes yt-ring {
    0%   { opacity: 1; box-shadow: 0 0 0 0 rgba(9, 103, 242, 0.55); }
    100% { opacity: 1; box-shadow: 0 0 0 14px rgba(9, 103, 242, 0); }
}

@keyframes yt-press {
    50% { transform: scale(0.92); }
}

/* The router's intro (an H3 under the how-to H2) */
.l6-page--youtube .yt-route-head {
    max-width: 44rem;
    margin: clamp(64px, 8vw, 104px) 0 28px;
}

.l6-page--youtube .yt-route-head h3 {
    margin: 0 0 10px;
    font-family: var(--l6-display);
    font-size: clamp(1.5rem, 2.3vw, 2.05rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.l6-page--youtube .yt-route-head p {
    font-size: 1.04rem;
}

/* ---- Link formats: one card per kind of YouTube URL ---------------------- */

.l6-page--youtube .yt-formats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.l6-page--youtube .yt-fmt {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 10px 10px 18px;
    border: 1px solid var(--l6-line);
    border-radius: 22px;
    background: var(--l6-paper);
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.l6-page--youtube .yt-fmt:hover {
    border-color: var(--l6-ink);
    box-shadow: 0 14px 30px rgba(13, 27, 46, 0.08);
    transform: translateY(-2px);
}

.l6-page--youtube .yt-fmt-art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2em;
    height: 13.4em;
    margin-bottom: 16px;
    overflow: hidden;
    border-radius: 14px;
    background: var(--yt-pastel);
    font-size: 10px;
    line-height: 1.2;
}

.l6-page--youtube .yt-fmt--music .yt-fmt-art {
    background: linear-gradient(150deg, #ffe4e6, #efe9ff);
}

.l6-page--youtube .yt-fmt-copy {
    flex: 1;
    padding: 0 8px;
}

.l6-page--youtube .yt-fmt h3 {
    margin: 0 0 6px;
    font-family: var(--l6-display);
    font-size: 1.22rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.l6-page--youtube .yt-fmt code {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 8px;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--l6-haze);
    color: var(--l6-ink);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.76rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.l6-page--youtube .yt-fmt p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.l6-page--youtube .yt-fmt p a {
    font-weight: 700;
    text-underline-offset: 3px;
}

.l6-page--youtube .yt-fmt-link {
    display: flex;
    margin: 16px 8px 0;
    font-size: 0.86rem;
}

.l6-page--youtube .yt-fmt-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 10px 8px 0 !important;
    color: #0c7a4e;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.3;
}

.l6-page--youtube .yt-fmt-note i {
    color: var(--l6-go);
}

/* Mini scenes, all sized in em (10px on desktop) so each scales as one */
.l6-page--youtube .yt-fmt-art img {
    display: block;
}

.l6-page--youtube .yt-mini-player {
    position: relative;
    width: 19em;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 1em;
    box-shadow: 0 1.2em 2.4em rgba(13, 27, 46, 0.22);
}

.l6-page--youtube .yt-mini-player > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.l6-page--youtube .yt-mini-player--dim > img {
    filter: brightness(0.62);
}

.l6-page--youtube .yt-mini-time {
    position: absolute;
    right: 0.6em;
    bottom: 1em;
    padding: 0.15em 0.45em;
    border-radius: 0.4em;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    font-size: 1.05em;
    font-weight: 700;
}

.l6-page--youtube .yt-mini-progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 0.4em;
    background: linear-gradient(90deg, var(--yt-red) 38%, rgba(255, 255, 255, 0.45) 38%);
}

.l6-page--youtube .yt-mini-sharebar {
    position: absolute;
    right: 0.8em;
    bottom: 0.8em;
    left: 0.8em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6em;
    padding: 0.6em 0.6em 0.6em 0.9em;
    border-radius: 0.9em;
    background: #fff;
    color: var(--yt-ink);
    font-family: var(--l6-ui);
    font-size: 1.1em;
}

.l6-page--youtube .yt-mini-sharebar b,
.l6-page--youtube .yt-mini-sharebar em {
    display: flex;
    align-items: center;
    gap: 0.4em;
    white-space: nowrap;
}

.l6-page--youtube .yt-mini-sharebar em {
    padding: 0.35em 0.7em;
    border-radius: 999px;
    background: var(--yt-ink);
    color: #fff;
    font-style: normal;
    font-weight: 700;
}

.l6-page--youtube .yt-mini-short {
    position: relative;
    height: 11.4em;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 1em;
    box-shadow: 0 1.2em 2.4em rgba(13, 27, 46, 0.22);
}

.l6-page--youtube .yt-mini-short > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.l6-page--youtube .yt-mini-short-rail {
    position: absolute;
    right: 0.5em;
    bottom: 0.8em;
    display: grid;
    gap: 0.7em;
    color: #fff;
    font-size: 1.1em;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.l6-page--youtube .yt-mini-tag {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.6em 1em 0.6em 0.7em;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0.4em 1.2em rgba(13, 27, 46, 0.1);
    color: var(--yt-ink);
    font-size: 1.3em;
    font-weight: 700;
}

.l6-page--youtube .yt-mini-tag img {
    width: 1.3em;
    height: 1.3em;
}

.l6-page--youtube .yt-mini-channel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.6em 1em;
    width: 21em;
    padding: 1.2em;
    border-radius: 1.4em;
    background: #fff;
    box-shadow: 0 1.2em 2.4em rgba(13, 27, 46, 0.14);
    color: var(--yt-ink);
    font-family: var(--l6-ui);
}

.l6-page--youtube .yt-mini-channel img {
    grid-row: span 2;
    width: 5em;
    height: 5em;
    border-radius: 50%;
    object-fit: cover;
}

.l6-page--youtube .yt-mini-channel span {
    display: grid;
    font-size: 1.3em;
    line-height: 1.25;
}

.l6-page--youtube .yt-mini-channel small {
    color: var(--yt-grey);
    font-size: 0.8em;
}

.l6-page--youtube .yt-mini-channel em {
    justify-self: start;
    padding: 0.4em 1em;
    border-radius: 999px;
    background: var(--yt-ink);
    color: #fff;
    font-size: 1.15em;
    font-style: normal;
    font-weight: 700;
}

.l6-page--youtube .yt-mini-stack {
    position: relative;
    width: 17em;
    aspect-ratio: 16 / 9;
    margin-top: 1.6em;
}

.l6-page--youtube .yt-mini-stack img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 1em;
    object-fit: cover;
    box-shadow: 0 0.8em 1.6em rgba(13, 27, 46, 0.2);
}

.l6-page--youtube .yt-mini-stack img:nth-child(1) { opacity: 0.5; transform: translateY(-1.8em) scale(0.82); }
.l6-page--youtube .yt-mini-stack img:nth-child(2) { opacity: 0.8; transform: translateY(-0.9em) scale(0.91); }

.l6-page--youtube .yt-mini-count {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 0.3em;
    width: 36%;
    border-radius: 0 1em 1em 0;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 1.3em;
    font-weight: 700;
}

.l6-page--youtube .yt-mini-live {
    position: absolute;
    top: 0.7em;
    left: 0.7em;
    display: flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.25em 0.6em;
    border-radius: 0.4em;
    background: var(--yt-red);
    color: #fff;
    font-size: 1.05em;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.l6-page--youtube .yt-mini-live::before {
    content: "";
    width: 0.5em;
    height: 0.5em;
    border-radius: 50%;
    background: #fff;
    animation: yt-blink 1.2s steps(1) infinite;
}

.l6-page--youtube .yt-mini-chat {
    position: absolute;
    right: 0.7em;
    bottom: 0.7em;
    display: grid;
    gap: 0.35em;
    width: 7em;
    padding: 0.6em;
    border-radius: 0.7em;
    background: rgba(0, 0, 0, 0.55);
}

.l6-page--youtube .yt-mini-chat i {
    height: 0.45em;
    border-radius: 0.3em;
    background: rgba(255, 255, 255, 0.85);
}

.l6-page--youtube .yt-mini-chat i:nth-child(2) { width: 70%; background: #ffd23f; }
.l6-page--youtube .yt-mini-chat i:nth-child(3) { width: 85%; }

.l6-page--youtube .yt-mini-mobile {
    width: 18em;
    overflow: hidden;
    border-radius: 1em;
    background: #fff;
    box-shadow: 0 1.2em 2.4em rgba(13, 27, 46, 0.2);
}

.l6-page--youtube .yt-mini-urlbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    margin: 0.6em;
    padding: 0.4em;
    border-radius: 0.6em;
    background: #eef1f5;
    color: var(--l6-ink);
    font-family: var(--l6-ui);
    font-size: 1.1em;
    font-weight: 600;
}

.l6-page--youtube .yt-mini-urlbar i {
    color: var(--l6-go);
    font-size: 0.8em;
}

.l6-page--youtube .yt-mini-mobile img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 7.4;
    object-fit: cover;
}

.l6-page--youtube .yt-mini-music {
    display: flex;
    align-items: center;
    gap: 1.6em;
}

.l6-page--youtube .yt-mini-music img {
    width: 10em;
    height: 10em;
    border-radius: 1em;
    box-shadow: 0 1.2em 2.4em rgba(13, 27, 46, 0.25);
}

.l6-page--youtube .yt-mini-eq {
    display: flex;
    align-items: flex-end;
    gap: 0.5em;
    height: 5em;
}

.l6-page--youtube .yt-mini-eq i {
    width: 0.9em;
    height: 100%;
    border-radius: 0.3em;
    background: var(--yt-red);
    transform-origin: bottom;
    animation: yt-eq 1.1s ease-in-out infinite;
}

.l6-page--youtube .yt-mini-eq i:nth-child(2) { animation-delay: -0.3s; }
.l6-page--youtube .yt-mini-eq i:nth-child(3) { animation-delay: -0.6s; }
.l6-page--youtube .yt-mini-eq i:nth-child(4) { animation-delay: -0.9s; }

@keyframes yt-eq {
    0%, 100% { transform: scaleY(0.3); }
    50%      { transform: scaleY(1); }
}

@keyframes yt-blink {
    50% { opacity: 0; }
}

/* ---- Latest video: the bio link stays, the video changes ----------------- */

.l6-page--youtube .yt-latest-list {
    margin-top: 26px;
}

.l6-page--youtube .yt-latest {
    position: relative;
    padding: clamp(22px, 3vw, 36px);
    border-radius: 28px;
    background:
        radial-gradient(45% 60% at 82% 18%, rgba(9, 103, 242, 0.38), transparent 70%),
        radial-gradient(40% 50% at 0% 100%, rgba(225, 48, 108, 0.18), transparent 70%),
        var(--l6-navy);
    box-shadow: 0 30px 70px rgba(11, 23, 52, 0.25);
    color: rgba(255, 255, 255, 0.74);
}

.l6-page--youtube .yt-latest-stage {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) 56px minmax(0, 1.15fr);
    align-items: center;
}

.l6-page--youtube .yt-latest-bio {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 24px 14px 18px;
    border-radius: 20px;
    background: #fff;
    color: var(--l6-ink);
    font-family: var(--l6-ui);
    text-align: center;
}

.l6-page--youtube .yt-latest-ring {
    width: 70px;
    height: 70px;
    padding: 3px;
    border-radius: 50%;
    background: conic-gradient(#feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75);
}

.l6-page--youtube .yt-latest-ring img {
    width: 100%;
    height: 100%;
    border: 3px solid #fff;
    border-radius: 50%;
    object-fit: cover;
}

.l6-page--youtube .yt-latest-bio > b {
    font-size: 0.95rem;
}

.l6-page--youtube .yt-latest-bio > small {
    color: #536471;
    font-size: 0.78rem;
    line-height: 1.3;
}

.l6-page--youtube .yt-latest-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding: 7px 12px;
    border-radius: 10px;
    background: #eef4ff;
    color: #00376b;
    font-size: 0.86rem;
    font-weight: 700;
}

.l6-page--youtube .yt-latest-link i {
    font-size: 0.74rem;
}

.l6-page--youtube .yt-latest-link b {
    color: var(--l6-blue-deep);
}

.l6-page--youtube .yt-latest-same {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0c7a4e;
    font-size: 0.74rem;
    font-style: normal;
    font-weight: 700;
}

.l6-page--youtube .yt-latest-same i {
    font-size: 0.66rem;
}

.l6-page--youtube .yt-latest-iglogo {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
}

/* The flow between the bio link and the app */
.l6-page--youtube .yt-latest-flow {
    position: relative;
    height: 2px;
    margin: 0 8px;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0 6px, transparent 6px 12px);
}

.l6-page--youtube .yt-latest-flow i {
    position: absolute;
    top: -4px;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--l6-mint);
    box-shadow: 0 0 12px var(--l6-mint);
    animation: yt-flow-x 1.8s linear infinite;
}

@keyframes yt-flow-x {
    from { left: 0; }
    to   { left: calc(100% - 10px); }
}

@keyframes yt-flow-y {
    from { top: 0; }
    to   { top: calc(100% - 10px); }
}

/* What the link opens today */
.l6-page--youtube .yt-latest-app {
    padding: 10px 10px 14px;
    border-radius: 20px;
    background: #fff;
    color: var(--yt-ink);
    font-family: var(--l6-ui);
}

.l6-page--youtube .yt-latest-appbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 4px 10px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.l6-page--youtube .yt-latest-appbar img {
    width: 20px;
    height: 20px;
}

.l6-page--youtube .yt-latest-shots {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

.l6-page--youtube .yt-latest-shots img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 500ms ease, transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.l6-page--youtube .yt-latest-shots img.is-on {
    opacity: 1;
    transform: none;
}

.l6-page--youtube .yt-latest-new {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--yt-red);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
}

.l6-page--youtube .yt-latest-title {
    display: block;
    margin: 10px 4px 9px;
    font-size: 0.98rem;
    line-height: 1.3;
}

.l6-page--youtube .yt-latest-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 4px;
    font-size: 0.82rem;
    font-weight: 600;
}

.l6-page--youtube .yt-latest-meta img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.l6-page--youtube .yt-latest-meta span {
    display: grid;
    line-height: 1.2;
}

.l6-page--youtube .yt-latest-meta small {
    color: var(--yt-grey);
    font-size: 0.74rem;
    font-weight: 400;
}

.l6-page--youtube .yt-latest-meta em {
    margin-left: auto;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--yt-ink);
    color: #fff;
    font-size: 0.76rem;
    font-style: normal;
    font-weight: 700;
}

/* "New video uploaded" pops on each new upload (JS restarts .is-new) */
.l6-page--youtube .yt-latest-toast {
    position: absolute;
    z-index: 2;
    top: -14px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    color: var(--l6-ink);
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
}

.l6-page--youtube .yt-latest-toast i {
    color: var(--yt-red);
}

.l6-page--youtube .yt-latest-stage.is-new .yt-latest-toast {
    animation: yt-toast 2.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.l6-page--youtube .yt-latest-stage.is-new .yt-latest-link {
    animation: yt-glow 1.2s ease;
}

@keyframes yt-toast {
    0%       { opacity: 0; transform: translateY(8px) scale(0.96); }
    12%, 80% { opacity: 1; transform: none; }
    100%     { opacity: 0; transform: translateY(-4px); }
}

@keyframes yt-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(9, 103, 242, 0); }
    40%      { box-shadow: 0 0 0 6px rgba(9, 103, 242, 0.28); }
}

/* The uploads: pick one to see what the same link opens */
.l6-page--youtube .yt-latest-uploads {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 24px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none;
}

.l6-page--youtube .yt-latest-uploads button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 200ms ease, border-color 200ms ease;
}

.l6-page--youtube .yt-latest-uploads button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.l6-page--youtube .yt-latest-uploads button[aria-pressed="true"] {
    border-color: var(--l6-sky);
    background: rgba(94, 168, 255, 0.16);
}

.l6-page--youtube .yt-latest-uploads button:focus-visible {
    outline: 3px solid var(--l6-sky);
    outline-offset: 2px;
}

.l6-page--youtube .yt-latest-uploads img {
    flex: none;
    width: 54px;
    height: 34px;
    border-radius: 7px;
    object-fit: cover;
}

.l6-page--youtube .yt-latest-uploads span {
    display: grid;
    min-width: 0;
    line-height: 1.25;
}

.l6-page--youtube .yt-latest-uploads b {
    font-size: 0.82rem;
}

.l6-page--youtube .yt-latest-uploads small {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.74rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- Use cases: art for the three cards ------------------------------------ */

.l6-page--youtube .yt-use > p + p {
    margin-top: 10px;
}

.l6-page--youtube .yt-use .l6-check-list {
    margin-top: 18px;
}

.l6-page--youtube .yt-use > p a {
    font-weight: 700;
    text-underline-offset: 3px;
}

.l6-page--youtube .yt-tag-ico {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: var(--l6-ink);
    color: #fff;
    font-size: 0.66rem;
}

.l6-page--youtube .yt-use-art {
    font-family: var(--l6-ui);
}

/* Instagram: a Story with the link sticker, and the bio */
.l6-page--youtube .yt-story {
    position: relative;
    flex: none;
    width: 112px;
    height: 190px;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 16px 30px rgba(13, 27, 46, 0.25);
}

.l6-page--youtube .yt-story > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.l6-page--youtube .yt-story-bars {
    position: absolute;
    top: 6px;
    right: 6px;
    left: 6px;
    display: flex;
    gap: 3px;
}

.l6-page--youtube .yt-story-bars i {
    flex: 1;
    height: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.9);
}

.l6-page--youtube .yt-story-bars i + i {
    background: rgba(255, 255, 255, 0.45);
}

.l6-page--youtube .yt-story-who {
    position: absolute;
    top: 14px;
    left: 7px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    font-size: 0.56rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.l6-page--youtube .yt-story-who img {
    width: 16px;
    height: 16px;
    border: 1px solid #fff;
    border-radius: 50%;
}

.l6-page--youtube .yt-story-sticker {
    position: absolute;
    bottom: 34px;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 5px 6px;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    color: #3897f0;
    font-size: 0.5rem;
    font-weight: 700;
    white-space: nowrap;
    transform: translateX(-50%) rotate(-4deg);
}

.l6-page--youtube .yt-igbio {
    display: grid;
    gap: 6px;
    width: 150px;
    padding: 12px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(13, 27, 46, 0.14);
    color: #0f1419;
}

.l6-page--youtube .yt-igbio-head {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
}

.l6-page--youtube .yt-igbio-head img {
    width: 30px;
    height: 30px;
    padding: 2px;
    border-radius: 50%;
    background: conic-gradient(#feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75);
}

.l6-page--youtube .yt-igbio small {
    color: #536471;
    font-size: 0.68rem;
    line-height: 1.3;
}

.l6-page--youtube .yt-igbio-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #00376b;
    font-size: 0.72rem;
    font-weight: 700;
}

.l6-page--youtube .yt-igbio-link i {
    font-size: 0.62rem;
}

/* Social: an X post with the video card */
.l6-page--youtube .yt-xpost {
    display: grid;
    gap: 8px;
    width: min(80%, 280px);
    margin-right: 10%;
    padding: 12px;
    border: 1px solid #cfd9de;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(13, 27, 46, 0.1);
    color: #0f1419;
}

.l6-page--youtube .yt-xpost-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    line-height: 1.2;
}

.l6-page--youtube .yt-xpost-head img:first-child {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.l6-page--youtube .yt-xpost-head span {
    display: grid;
}

.l6-page--youtube .yt-xpost-head small {
    color: #536471;
    font-size: 0.74rem;
}

.l6-page--youtube .yt-xpost-x {
    width: 15px;
    height: 15px;
    margin-left: auto;
}

.l6-page--youtube .yt-xpost-text {
    font-size: 0.78rem;
    line-height: 1.35;
}

.l6-page--youtube .yt-xpost-text em {
    color: #1d9bf0;
    font-style: normal;
}

.l6-page--youtube .yt-xpost-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #cfd9de;
    border-radius: 12px;
}

.l6-page--youtube .yt-xpost-card img {
    display: block;
    width: 100%;
    height: 72px;
    object-fit: cover;
}

.l6-page--youtube .yt-xpost-card small {
    position: absolute;
    bottom: 6px;
    left: 6px;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.66rem;
}

/* Email and community: a newsletter, and a Discord message on top */
.l6-page--youtube .yt-mail {
    display: grid;
    gap: 8px;
    width: min(62%, 210px);
    margin-right: 28%;
    padding: 10px 10px 12px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(13, 27, 46, 0.12);
    color: #0f1419;
}

.l6-page--youtube .yt-mail-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.74rem;
    line-height: 1.2;
}

.l6-page--youtube .yt-mail-head > i {
    display: grid;
    flex: none;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--l6-haze);
    color: var(--l6-ink);
    font-size: 0.7rem;
}

.l6-page--youtube .yt-mail-head span {
    display: grid;
    min-width: 0;
}

.l6-page--youtube .yt-mail-head small {
    overflow: hidden;
    color: #536471;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.l6-page--youtube .yt-mail > img {
    display: block;
    width: 100%;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
}

.l6-page--youtube .yt-mail-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px;
    border-radius: 8px;
    background: var(--yt-red);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
}

.l6-page--youtube .yt-mail-btn i {
    font-size: 0.6rem;
}

.l6-page--youtube .yt-discord {
    position: absolute;
    right: 12px;
    bottom: 74px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px 9px 9px;
    border-radius: 12px;
    background: #313338;
    box-shadow: 0 14px 28px rgba(13, 27, 46, 0.3);
    color: #dbdee1;
}

.l6-page--youtube .yt-discord img {
    width: 26px;
    height: 26px;
    padding: 4px;
    border-radius: 50%;
    background: #fff;
}

.l6-page--youtube .yt-discord span {
    display: grid;
    font-size: 0.72rem;
    line-height: 1.3;
}

.l6-page--youtube .yt-discord b {
    color: #fff;
}

.l6-page--youtube .yt-discord em {
    color: #00a8fc;
    font-style: normal;
    font-weight: 700;
}

/* ---- Features bento: page-only visuals ------------------------------------- */

.l6-page--youtube .l6-tile h3 .l6-pill {
    vertical-align: 4px;
}

.l6-page--youtube .l6-tile p a {
    font-weight: 700;
    text-underline-offset: 3px;
}

.l6-page--youtube .l6-tile--dark p a {
    color: var(--l6-link-on-dark);
}

/* Black logos (X, TikTok) need a white tile on the dark analytics tile */
.l6-page--youtube .l6-tile--dark .l6-sources img {
    padding: 2px;
    border-radius: 4px;
    background: #fff;
}

/* Direct opening: your link, the LinkTwin link, the app */
.l6-page--youtube .yt-convert {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 18px;
    align-items: center;
}

.l6-page--youtube .yt-convert-rows {
    display: grid;
    gap: 8px;
}

.l6-page--youtube .yt-convert-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--l6-haze);
    color: var(--l6-muted);
    font-size: 0.86rem;
}

.l6-page--youtube .yt-convert-row small {
    flex: none;
    min-width: 5.4em;
    color: var(--l6-muted);
    font-size: 0.74rem;
    font-weight: 700;
}

.l6-page--youtube .yt-convert-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.l6-page--youtube .yt-convert-row--lt {
    background: #e8f1ff;
    color: var(--l6-ink);
    font-weight: 700;
}

.l6-page--youtube .yt-convert-row--lt b {
    color: var(--l6-blue-deep);
}

.l6-page--youtube .yt-convert-row--ok {
    background: var(--l6-go-soft);
    color: #0c7a4e;
    font-weight: 700;
}

.l6-page--youtube .yt-convert-row--ok img {
    width: 20px;
    height: 20px;
}

.l6-page--youtube .yt-convert-row--ok i {
    margin-left: auto;
    color: var(--l6-go);
}

.l6-page--youtube .yt-convert-thumb {
    width: 100%;
    margin: 0;
}

/* QR with the link it opens */
.l6-page--youtube .yt-qr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.l6-page--youtube .yt-qr-tag {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px 7px 8px;
    border-radius: 10px;
    background: var(--l6-haze);
    color: var(--l6-ink);
    font-size: 0.82rem;
    font-weight: 700;
}

.l6-page--youtube .yt-qr-tag b {
    color: var(--l6-blue-deep);
}

/* Tools strip: browser extension + mobile app, on LinkTwin blue */
.l6-page--youtube .yt-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    padding: 0;
    border-color: transparent;
    background: var(--l6-blue);
    color: rgba(255, 255, 255, 0.86);
}

.l6-page--youtube .yt-tool {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 26px;
}

.l6-page--youtube .yt-tool + .yt-tool {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.l6-page--youtube .yt-tool-ico {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 6px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 1.15rem;
}

.l6-page--youtube .yt-tool h3 {
    color: #fff;
}

.l6-page--youtube .yt-tool p {
    color: rgba(255, 255, 255, 0.86);
}

.l6-page--youtube .yt-tool a {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    margin-top: auto;
    padding: 10px 15px;
    border-radius: 12px;
    background: #fff;
    color: var(--l6-blue-deep);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.l6-page--youtube .yt-tool a i {
    transition: transform 160ms ease;
}

.l6-page--youtube .yt-tool a:hover i {
    transform: translateX(4px);
}

/* ---- FAQ intro link ------------------------------------------------------ */

.l6-page--youtube .yt-faq-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-top: 16px;
    font-weight: 700;
    text-decoration: none;
}

.l6-page--youtube .yt-faq-contact i {
    transition: transform 160ms ease;
}

.l6-page--youtube .yt-faq-contact:hover i {
    transform: translateX(4px);
}

/* ==========================================================================
   Responsive (verify at 1440, 1180, 1024, 768, 390)
   ========================================================================== */

@media (max-width: 1180px) {
    .l6-page--youtube .yt-formats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .l6-page--youtube .yt-latest {
        max-width: 760px;
    }
}

@media (max-width: 1060px) {
    .l6-page--youtube .yt-tools {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .l6-page--youtube .yt-howto {
        grid-template-columns: minmax(0, 1fr);
        max-width: 620px;
        margin-inline: auto;
    }

    .l6-page--youtube .yt-convert {
        grid-template-columns: minmax(0, 1fr);
    }

    .l6-page--youtube .yt-convert-thumb {
        max-width: 320px;
    }
}

@media (max-width: 640px) {
    .l6-page--youtube .yt-kicker {
        margin-bottom: 14px !important;
        font-size: 0.82rem;
    }

    .l6-page--youtube .yt-hero-note {
        gap: 4px 14px;
        font-size: 0.84rem;
    }

    .l6-page--youtube .yt-howto-art {
        height: 184px;
    }

    /* Formats: a swipeable row; the next card peeks in */
    .l6-page--youtube .yt-formats {
        display: flex;
        gap: 12px;
        margin-inline: -16px;
        padding: 4px 16px 12px;
        overflow-x: auto;
        scroll-padding-inline: 16px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .l6-page--youtube .yt-formats::-webkit-scrollbar {
        display: none;
    }

    .l6-page--youtube .yt-fmt {
        flex: 0 0 82%;
        scroll-snap-align: start;
    }

    .l6-page--youtube .yt-fmt:hover {
        transform: none;
    }

    .l6-page--youtube .yt-fmt-art {
        font-size: 9px;
    }

    /* Latest video: bio, then the flow down, then the app */
    .l6-page--youtube .yt-latest {
        padding: 18px 16px 18px;
        border-radius: 22px;
    }

    .l6-page--youtube .yt-latest-stage {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
    }

    .l6-page--youtube .yt-latest-bio,
    .l6-page--youtube .yt-latest-app {
        width: 100%;
        max-width: 320px;
    }

    .l6-page--youtube .yt-latest-flow {
        width: 2px;
        height: 34px;
        margin: 8px 0;
        background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0 6px, transparent 6px 12px);
    }

    .l6-page--youtube .yt-latest-flow i {
        top: 0;
        left: -4px;
        animation-name: yt-flow-y;
    }

    .l6-page--youtube .yt-latest-toast {
        top: -10px;
        right: 50%;
        transform-origin: center;
        translate: 50% 0;
        white-space: nowrap;
    }

    .l6-page--youtube .yt-latest-uploads {
        gap: 8px;
        margin-top: 18px;
        padding-top: 16px;
    }

    .l6-page--youtube .yt-latest-uploads button {
        flex-direction: column;
        align-items: stretch;
        gap: 7px;
        padding: 6px;
    }

    .l6-page--youtube .yt-latest-uploads img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .l6-page--youtube .yt-latest-uploads small {
        display: none;
    }

    .l6-page--youtube .yt-latest-uploads b {
        padding: 0 2px 2px;
    }

    /* Use-case art fits a phone card */
    .l6-page--youtube .yt-igbio {
        width: 136px;
    }

    .l6-page--youtube .yt-mail {
        margin-right: 18%;
    }

    .l6-page--youtube .yt-tools {
        grid-template-columns: minmax(0, 1fr);
    }

    .l6-page--youtube .yt-tool + .yt-tool {
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        border-left: 0;
    }
}

/* ==========================================================================
   Reduced motion: finished states, nothing moves (the JS never arms .yt-anim
   and shows the newest upload)
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .l6-page--youtube .yt-mini-eq i,
    .l6-page--youtube .yt-mini-live::before,
    .l6-page--youtube .yt-latest-flow i,
    .l6-page--youtube .yt-latest-toast,
    .l6-page--youtube .yt-latest-link,
    .l6-page--youtube .yt-latest-shots img,
    .l6-page--youtube .yt-fmt,
    .l6-page--youtube .yt-btn i,
    .l6-page--youtube .yt-tool a i,
    .l6-page--youtube .yt-faq-contact i {
        animation: none !important;
        transition: none !important;
    }

    .l6-page--youtube .yt-mini-eq i {
        transform: scaleY(0.7);
    }

    .l6-page--youtube .yt-latest-flow i {
        left: calc(50% - 5px);
    }

    .l6-page--youtube .yt-fmt:hover {
        transform: none;
    }
}
