.tsl-videos {
    overflow: hidden;
    padding: 28px;
    border: 1px solid #303638;
    border-radius: 18px;
    color: #fff;
    background: #171a1b;
}

.tsl-videos__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 22px;
}

.tsl-videos .tsl-eyebrow {
    color: var(--tsl-accent);
}

.tsl-videos__title {
    max-width: 720px;
    margin-top: 8px;
    color: #fff;
}

.tsl-videos__description {
    max-width: 720px;
    margin: 10px 0 0;
    color: #b8c2c8;
    font-size: 14px;
    line-height: 1.55;
}

.tsl-videos__channel {
    display: inline-flex;
    min-height: 44px;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    border: 1px solid #3b4245;
    border-radius: 12px;
    color: #fff;
    background: #222627;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .2s ease, background-color .2s ease;
}

.tsl-videos__channel:hover,
.tsl-videos__channel:focus-visible {
    border-color: var(--tsl-accent);
    color: #fff;
    background: #292e30;
}

.tsl-videos__channel svg {
    width: 20px;
    height: 20px;
    fill: var(--tsl-accent);
}

.tsl-videos__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.tsl-video-card,
.tsl-video-card--featured {
    display: flex;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid #353b3e;
    border-radius: 14px;
    background: #202425;
}

.tsl-video-card__player,
.tsl-video-card iframe,
.tsl-video-card--featured .tsl-video-card__player,
.tsl-video-card--featured iframe {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: #111415;
}

.tsl-video-card__player {
    cursor: pointer;
}

.tsl-video-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.tsl-video-card__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 12, 15, .02), rgba(7, 12, 15, .28));
}

.tsl-video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border-radius: 50%;
    color: #101314;
    background: var(--tsl-accent);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
    transform: translate(-50%, -50%);
    transition: transform .25s ease, background-color .25s ease;
}

.tsl-video-card__play svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.tsl-video-card__player:hover .tsl-video-card__image,
.tsl-video-card__player:focus-visible .tsl-video-card__image {
    transform: scale(1.035);
}

.tsl-video-card__player:hover .tsl-video-card__play,
.tsl-video-card__player:focus-visible .tsl-video-card__play {
    background: #fff;
    transform: translate(-50%, -50%) scale(1.06);
}

.tsl-video-card__player:focus-visible {
    outline: 3px solid var(--tsl-accent);
    outline-offset: -3px;
}

.tsl-video-card__content,
.tsl-video-card--featured .tsl-video-card__content {
    display: flex;
    min-height: 118px;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: flex-start;
    padding: 19px 20px 20px;
}

.tsl-videos .tsl-video-card__title {
    margin: 0;
    color: #fff;
    font-size: clamp(16px, 1.25vw, 20px);
    font-weight: 650;
    line-height: 1.28;
}

.tsl-video-card__subtitle {
    margin: 8px 0 0;
    color: #b8c2c8;
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 1050px) {
    .tsl-videos__header {
        align-items: start;
    }

    .tsl-videos__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tsl-video-card--featured {
        grid-column: 1 / -1;
    }

    .tsl-video-card--featured {
        display: grid;
        grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
    }

    .tsl-video-card--featured .tsl-video-card__player,
    .tsl-video-card--featured iframe {
        height: 100%;
        aspect-ratio: 16 / 9;
    }

    .tsl-video-card--featured .tsl-video-card__content {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .tsl-videos {
        position: static;
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px;
        border-radius: 14px;
        transform: none;
    }

    .tsl-videos__header {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 18px;
    }

    .tsl-videos__channel {
        width: 100%;
        justify-content: center;
    }

    .tsl-videos__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tsl-video-card--featured {
        display: flex;
        grid-column: auto;
    }

    .tsl-video-card__content,
    .tsl-video-card--featured .tsl-video-card__content {
        min-height: 0;
        padding: 17px 18px 18px;
    }

    .tsl-video-card__play {
        width: 52px;
        height: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tsl-video-card__image,
    .tsl-video-card__play {
        transition: none;
    }
}
