.ft-yt-feed {
    --ft-red: #852936;
    --ft-text: #fff;
    --ft-muted: rgba(255,255,255,.72);
    --ft-line: rgba(255,255,255,.18);
    --ft-card: #111;
    --ft-cols-desktop: 3;
    --ft-cols-tablet: 2;
    --ft-cols-mobile: 1;
    --ft-grid-gap: 24px;
    --ft-button-bg: #852936;
    --ft-button-text: #fff;
    --ft-button-border-color: #852936;
    --ft-button-hover-bg: transparent;
    --ft-button-hover-text: #fff;
    --ft-button-hover-border-color: #852936;
    --ft-button-border-width: 1px;
    --ft-button-radius: 999px;
    --ft-button-padding-y: 14px;
    --ft-button-padding-x: 28px;
    --ft-button-font-weight: 700;
    --ft-youtube-button-bg: #852936;
    --ft-youtube-button-text: #fff;
    --ft-youtube-button-border-color: #852936;
    --ft-youtube-button-hover-bg: transparent;
    --ft-youtube-button-hover-text: #fff;
    --ft-youtube-button-hover-border-color: #852936;
    --ft-youtube-button-border-width: 1px;
    --ft-youtube-button-radius: 999px;
    --ft-youtube-button-padding-y: 14px;
    --ft-youtube-button-padding-x: 32px;
    --ft-youtube-button-font-weight: 700;
    --ft-close-button-color: #fff;
    --ft-close-button-hover-color: #852936;
    --ft-close-button-bg: transparent;
    --ft-close-button-hover-bg: transparent;
    --ft-close-button-size: 58px;
    --ft-close-button-font-size: 46px;
    --ft-close-button-offset: 18px;
    --ft-home-featured-title-lines: 2;
}

.ft-yt-feed .ft-yt-grid {
    display: grid !important;
    width: 100%;
    max-width: 100%;
    gap: var(--ft-grid-gap) !important;
    align-items: start;
    grid-auto-flow: row;
    grid-template-columns: repeat(var(--ft-cols-desktop), minmax(0, 1fr)) !important;
}

.ft-yt-feed.ft-yt-home-featured .ft-yt-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: start;
}

.ft-yt-feed.ft-yt-home-featured .ft-yt-card.is-featured {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
    display: block !important;
    height: auto;
    align-self: start;
}

.ft-yt-feed.ft-yt-home-featured .ft-yt-card.is-featured .ft-yt-thumb {
    height: auto;
    aspect-ratio: 16 / 9;
}

.ft-yt-feed.ft-yt-home-featured .ft-yt-card.is-featured h3 {
    font-size: clamp(20px, 1.7vw, 30px);
}

.ft-yt-feed.ft-yt-home-featured.ft-yt-home-equal .ft-yt-grid {
    grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch;
}

.ft-yt-feed.ft-yt-home-featured.ft-yt-home-equal .ft-yt-card {
    display: flex !important;
    flex-direction: column;
    min-height: 0;
}

.ft-yt-feed.ft-yt-home-featured.ft-yt-home-equal .ft-yt-card:not(.is-featured) {
    height: 100%;
}

.ft-yt-feed.ft-yt-home-featured.ft-yt-home-equal .ft-yt-card:not(.is-featured) .ft-yt-thumb {
    aspect-ratio: auto !important;
    flex: 1 1 auto;
    min-height: 0;
}

.ft-yt-feed.ft-yt-home-featured.ft-yt-home-equal .ft-yt-card:not(.is-featured) h3 {
    display: -webkit-box;
    -webkit-line-clamp: var(--ft-home-featured-title-lines, 2);
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: clamp(15px, 1.05vw, 20px);
    line-height: 1.18;
    margin-top: 10px;
}
.ft-yt-feed.ft-yt-home-featured.ft-yt-home-equal.ft-yt-home-overlay-titles .ft-yt-grid {
    margin-bottom: clamp(48px, 4vw, 70px);
}

.ft-yt-feed.ft-yt-home-featured.ft-yt-home-equal.ft-yt-home-overlay-titles .ft-yt-card {
    position: relative;
    display: block !important;
    min-height: 0;
}

.ft-yt-feed.ft-yt-home-featured.ft-yt-home-equal.ft-yt-home-overlay-titles .ft-yt-card.is-featured {
    height: 100%;
    align-self: stretch;
}

.ft-yt-feed.ft-yt-home-featured.ft-yt-home-equal.ft-yt-home-overlay-titles .ft-yt-card.is-featured .ft-yt-thumb {
    height: 100%;
    aspect-ratio: auto;
}

.ft-yt-feed.ft-yt-home-featured.ft-yt-home-equal.ft-yt-home-overlay-titles .ft-yt-card.is-featured h3 {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 14px);
    margin: 0;
}

.ft-yt-feed.ft-yt-home-featured.ft-yt-home-equal.ft-yt-home-overlay-titles .ft-yt-card:not(.is-featured) .ft-yt-thumb {
    height: auto;
    aspect-ratio: 16 / 9 !important;
    flex: none;
}

.ft-yt-feed.ft-yt-home-featured.ft-yt-home-equal.ft-yt-home-overlay-titles .ft-yt-card:not(.is-featured) h3 {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 42px 14px 13px;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.42), transparent);
    pointer-events: none;
}

.ft-yt-feed .ft-yt-card {
    display: block !important;
    width: 100% !important;
    min-width: 0;
    color: var(--ft-text);
    text-decoration: none;
}

.ft-yt-feed .ft-yt-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 18px;
    background: var(--ft-card);
}

.ft-yt-feed.ft-yt-shorts .ft-yt-thumb {
    aspect-ratio: 9 / 16 !important;
    border-radius: 18px;
}

.ft-yt-feed .ft-yt-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
    display: block;
    transform: scale(1);
    transition: transform .35s ease, opacity .35s ease;
}

.ft-yt-feed .ft-yt-card:hover .ft-yt-thumb img {
    transform: scale(1.045);
    opacity: .78;
}

.ft-yt-feed .ft-yt-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 62px;
    height: 62px;
    border-radius: 999px;
    background: rgba(0,0,0,.72);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.18);
}

.ft-yt-feed.ft-yt-shorts .ft-yt-play {
    width: 54px;
    height: 54px;
}

.ft-yt-feed .ft-yt-play::before {
    content: "";
    position: absolute;
    left: 25px;
    top: 19px;
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 18px solid #fff;
}

.ft-yt-feed.ft-yt-shorts .ft-yt-play::before {
    left: 22px;
    top: 16px;
}

.ft-yt-feed .ft-yt-card h3 {
    margin: 13px 0 0;
    color: var(--ft-text);
    font-size: clamp(16px, 1.3vw, 20px);
    line-height: 1.25;
    font-weight: 600;
}

.ft-yt-feed.ft-yt-shorts .ft-yt-card h3 {
    font-size: clamp(15px, 1vw, 18px);
}

.ft-yt-feed .ft-yt-search {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.ft-yt-feed .ft-yt-search-input {
    flex: 1 1 auto;
    min-height: 52px;
    border-radius: 999px;
    border: 1px solid var(--ft-line);
    background: rgba(255,255,255,.06);
    color: var(--ft-text);
    padding: 0 20px;
    outline: none;
}

.ft-yt-feed .ft-yt-search-input::placeholder {
    color: var(--ft-muted);
}

.ft-yt-feed .ft-yt-search-button,
.ft-yt-feed .ft-yt-loadmore {
    appearance: none;
    border: var(--ft-button-border-width) solid var(--ft-button-border-color) !important;
    background: var(--ft-button-bg) !important;
    color: var(--ft-button-text) !important;
    border-radius: var(--ft-button-radius) !important;
    padding: var(--ft-button-padding-y) var(--ft-button-padding-x) !important;
    font-weight: var(--ft-button-font-weight) !important;
    cursor: pointer;
    line-height: 1.2;
    box-shadow: none !important;
    transform: none !important;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease;
}

.ft-yt-feed .ft-yt-search-button:hover,
.ft-yt-feed .ft-yt-loadmore:hover,
.ft-yt-feed .ft-yt-search-button:focus-visible,
.ft-yt-feed .ft-yt-loadmore:focus-visible {
    background: var(--ft-button-hover-bg, transparent) !important;
    color: var(--ft-button-hover-text, #fff) !important;
    border-color: var(--ft-button-hover-border-color, var(--ft-button-border-color, var(--ft-red))) !important;
    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
}

.ft-yt-feed .ft-yt-load-wrap {
    display: flex;
    justify-content: center;
    margin-top: 44px;
}

.ft-yt-feed .ft-yt-loadmore.is-loading,
.ft-yt-feed .ft-yt-search-button.is-loading {
    opacity: .65;
    pointer-events: none;
}

.ft-yt-feed .ft-yt-empty {
    color: var(--ft-muted);
    margin: 0;
}

@media (max-width: 1024px) {
    .ft-yt-feed .ft-yt-grid {
        grid-template-columns: repeat(var(--ft-cols-tablet), minmax(0, 1fr)) !important;
    }

    .ft-yt-feed.ft-yt-home-featured .ft-yt-card.is-featured {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .ft-yt-feed.ft-yt-home-featured .ft-yt-card.is-featured .ft-yt-thumb {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .ft-yt-feed.ft-yt-home-featured.ft-yt-home-equal .ft-yt-grid {
        grid-template-rows: none !important;
        align-items: start;
    }

    .ft-yt-feed.ft-yt-home-featured.ft-yt-home-equal .ft-yt-card,
    .ft-yt-feed.ft-yt-home-featured.ft-yt-home-equal .ft-yt-card:not(.is-featured) {
        height: auto;
    }

    .ft-yt-feed.ft-yt-home-featured.ft-yt-home-equal .ft-yt-card:not(.is-featured) .ft-yt-thumb {
        aspect-ratio: 16 / 9 !important;
        flex: 0 0 auto;
    }

    .ft-yt-feed.ft-yt-home-featured.ft-yt-home-equal.ft-yt-home-overlay-titles .ft-yt-grid {
        margin-bottom: 0;
    }

    .ft-yt-feed.ft-yt-home-featured.ft-yt-home-equal.ft-yt-home-overlay-titles .ft-yt-card.is-featured h3,
    .ft-yt-feed.ft-yt-home-featured.ft-yt-home-equal.ft-yt-home-overlay-titles .ft-yt-card:not(.is-featured) h3 {
        position: static;
        padding: 0;
        background: transparent;
        pointer-events: auto;
        margin-top: 10px;
    }
}

@media (max-width: 640px) {
    .ft-yt-feed .ft-yt-grid {
        grid-template-columns: repeat(var(--ft-cols-mobile), minmax(0, 1fr)) !important;
    }

    .ft-yt-feed.ft-yt-home-featured .ft-yt-card.is-featured {
        grid-column: 1 / -1;
    }

    .ft-yt-feed .ft-yt-search {
        flex-direction: column;
    }

    .ft-yt-feed .ft-yt-search-button,
    .ft-yt-feed .ft-yt-loadmore {
        width: 100%;
    }

    .ft-yt-feed .ft-yt-play {
        width: 54px;
        height: 54px;
    }

    .ft-yt-feed .ft-yt-play::before {
        left: 22px;
        top: 16px;
    }
}

.ft-yt-modal-open {
    overflow: hidden !important;
}

.ft-yt-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: calc(var(--ft-close-button-size, 58px) + 18px) 28px 28px;
}

.ft-yt-modal.is-open {
    display: flex;
}

.ft-yt-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .82);
    backdrop-filter: blur(8px);
}

.ft-yt-modal-panel {
    position: relative;
    z-index: 1;
    width: min(1100px, 94vw);
    background: #070707;
    color: #fff;
    border-radius: 22px;
    overflow: visible;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .58);
    border: 1px solid rgba(255, 255, 255, .14);
}

.ft-yt-modal-panel.is-shorts {
    width: min(430px, 94vw);
}

.ft-yt-modal-close,
.ft-yt-modal-close:hover,
.ft-yt-modal-close:focus,
.ft-yt-modal-close:focus-visible,
.ft-yt-modal-close:active {
    position: absolute;
    right: calc(-1 * var(--ft-close-button-offset, 18px));
    top: calc(-1 * var(--ft-close-button-offset, 18px));
    z-index: 5;
    width: var(--ft-close-button-size, 58px) !important;
    min-width: var(--ft-close-button-size, 58px) !important;
    max-width: var(--ft-close-button-size, 58px) !important;
    height: var(--ft-close-button-size, 58px) !important;
    min-height: var(--ft-close-button-size, 58px) !important;
    max-height: var(--ft-close-button-size, 58px) !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--ft-close-button-bg, transparent) !important;
    color: var(--ft-close-button-color, #fff) !important;
    font-size: 0 !important;
    line-height: 1 !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
    appearance: none !important;
    -webkit-appearance: none !important;
    transition: color .2s ease, background .2s ease, opacity .2s ease;
}

.ft-yt-modal-close::before {
    content: "×";
    display: block;
    color: currentColor;
    font-family: Arial, Helvetica, sans-serif;
    font-size: var(--ft-close-button-font-size, 46px) !important;
    font-weight: 400;
    line-height: 1 !important;
    transform: translateY(-.03em);
}

.ft-yt-modal-close:hover {
    color: var(--ft-close-button-hover-color, #852936) !important;
    background: var(--ft-close-button-hover-bg, transparent) !important;
    transform: none !important;
}

.ft-yt-modal-close:focus,
.ft-yt-modal-close:focus-visible,
.ft-yt-modal-close:active {
    outline: none !important;
    box-shadow: none !important;
}

.ft-yt-modal-player-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
    border-radius: 22px 22px 0 0;
}

.ft-yt-modal-panel.is-shorts .ft-yt-modal-player-wrap {
    aspect-ratio: 9 / 16;
}

.ft-yt-modal-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.ft-yt-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px 20px;
    background: #070707;
    border-radius: 0 0 22px 22px;
}

.ft-yt-modal-title {
    color: #fff;
    font-size: clamp(17px, 1.6vw, 24px);
    line-height: 1.25;
    font-weight: 700;
    margin: 0;
}

.ft-yt-modal-panel.is-shorts .ft-yt-modal-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
}

.ft-yt-modal-panel.is-shorts .ft-yt-modal-title {
    width: 100%;
}

.ft-yt-modal-panel.is-shorts .ft-yt-modal-youtube {
    width: 100%;
    text-align: center;
}

.ft-yt-modal-youtube {
    flex: 0 0 auto;
    appearance: none;
    border: var(--ft-youtube-button-border-width, 1px) solid var(--ft-youtube-button-border-color, #852936) !important;
    background: var(--ft-youtube-button-bg, #852936) !important;
    color: var(--ft-youtube-button-text, #fff) !important;
    border-radius: var(--ft-youtube-button-radius, 999px) !important;
    padding: var(--ft-youtube-button-padding-y, 14px) var(--ft-youtube-button-padding-x, 32px) !important;
    font-weight: var(--ft-youtube-button-font-weight, 700) !important;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: none !important;
    transform: none !important;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease;
}

.ft-yt-modal-youtube:hover,
.ft-yt-modal-youtube:focus-visible {
    background: var(--ft-youtube-button-hover-bg, transparent) !important;
    color: var(--ft-youtube-button-hover-text, #fff) !important;
    border-color: var(--ft-youtube-button-hover-border-color, var(--ft-youtube-button-border-color, var(--ft-red))) !important;
    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
}

@media (max-width: 640px) {
    .ft-yt-modal {
        padding: calc(var(--ft-close-button-size, 58px) + 14px) 18px 18px;
    }

    .ft-yt-modal-panel,
    .ft-yt-modal-panel.is-shorts {
        width: 100%;
        border-radius: 18px;
    }

    .ft-yt-modal-player-wrap,
    .ft-yt-modal-footer {
        border-radius: 18px 18px 0 0;
    }

    .ft-yt-modal-footer {
        border-radius: 0 0 18px 18px;
    }

    .ft-yt-modal-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .ft-yt-modal-youtube {
        width: 100%;
        text-align: center;
    }
}
