.ytfpm {
    background: #fff;
    border: 1px solid #e6e6e6;
    color: inherit;
    padding: 24px;
}

.ytfpm__header {
    align-items: end;
    border-bottom: 3px solid #111;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin: 0 0 18px;
    padding-bottom: 14px;
}

.ytfpm__eyebrow {
    color: #d71920;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
    margin: 0 0 6px;
    text-transform: uppercase;
}

.ytfpm__title {
    color: inherit;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.15;
    margin: 0;
    text-transform: uppercase;
}

.ytfpm__subscribe {
    background: #111;
    color: #fff;
    display: inline-block;
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    padding: 13px 16px;
    text-decoration: none;
    text-transform: uppercase;
}

.ytfpm__subscribe:focus,
.ytfpm__subscribe:hover {
    background: #d71920;
    color: #fff;
}

.ytfpm__carousel {
    position: relative;
}

.ytfpm__slider {
    -ms-overflow-style: none;
    margin: 0 -24px;
    overflow-x: auto;
    padding: 0 24px 8px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.ytfpm__slider::-webkit-scrollbar {
    display: none;
}

.ytfpm__arrow {
    -webkit-appearance: none;
    align-items: center;
    appearance: none;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(17, 17, 17, 0.18);
    border-radius: 50%;
    box-sizing: border-box;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
    color: #111;
    cursor: pointer;
    display: flex;
    height: 36px;
    justify-content: center;
    margin: 0;
    min-height: 36px;
    min-width: 36px;
    padding: 0;
    position: absolute;
    top: 33%;
    transform: translateY(-50%);
    width: 36px;
    z-index: 2;
}

.ytfpm__arrow span {
    display: none;
}

.ytfpm__arrow::before {
    border-color: currentColor;
    border-style: solid;
    border-width: 0 2px 2px 0;
    content: "";
    display: block;
    height: 10px;
    width: 10px;
}

.ytfpm__arrow--prev::before {
    margin-left: 4px;
    transform: rotate(135deg);
}

.ytfpm__arrow--next::before {
    margin-right: 4px;
    transform: rotate(-45deg);
}

.ytfpm__arrow--prev {
    left: 6px;
}

.ytfpm__arrow--next {
    right: 6px;
}

.ytfpm__arrow:focus,
.ytfpm__arrow:hover {
    background: #fff;
    border-color: rgba(17, 17, 17, 0.32);
}

.ytfpm__arrow[hidden] {
    display: none;
}

.ytfpm__grid {
    display: flex;
    gap: 18px;
}

.ytfpm__card {
    flex: 0 0 clamp(210px, 22vw, 280px);
    min-width: 0;
    scroll-snap-align: start;
}

.ytfpm__thumb {
    aspect-ratio: 16 / 9;
    background: #eee;
    display: block;
    overflow: hidden;
    position: relative;
}

.ytfpm__thumb img {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
    width: 100%;
}

.ytfpm__thumb:hover img {
    transform: scale(1.04);
}

.ytfpm__play {
    background: #fff;
    border-radius: 50%;
    bottom: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
    height: 34px;
    position: absolute;
    right: 10px;
    width: 34px;
}

.ytfpm__play::after {
    border-bottom: 7px solid transparent;
    border-left: 11px solid #d71920;
    border-top: 7px solid transparent;
    content: "";
    left: 13px;
    position: absolute;
    top: 10px;
}

.ytfpm__video-title {
    color: inherit;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.22;
    margin: 10px 0 0;
}

@media (max-width: 1100px) {
    .ytfpm__card {
        flex-basis: clamp(220px, 31vw, 300px);
    }
}

@media (max-width: 700px) {
    .ytfpm {
        padding: 18px;
    }

    .ytfpm__header {
        align-items: stretch;
        flex-direction: column;
    }

    .ytfpm__subscribe {
        text-align: center;
    }

    .ytfpm__slider {
        margin-left: -18px;
        margin-right: -18px;
        padding-left: 18px;
        padding-right: 18px;
    }

    .ytfpm__card {
        flex-basis: 82vw;
    }

    .ytfpm__arrow {
        height: 34px;
        min-height: 34px;
        min-width: 34px;
        top: 32vw;
        width: 34px;
    }

    .ytfpm__arrow--prev {
        left: 8px;
    }

    .ytfpm__arrow--next {
        right: 8px;
    }
}
