/* Main landing page only. Every selector belongs to the YouTube showcase. */
.bs-yt {
    position: relative;
    isolation: isolate;
    width: 100%;
    padding: clamp(64px, 7vw, 104px) 24px;
    color: #101b16;
}
.bs-yt::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse at 78% 48%, #cbb6ff4d, transparent 64%),
        radial-gradient(ellipse at 16% 60%, #ace4c940, transparent 58%);
    mask-image: linear-gradient(transparent, #000 20% 78%, transparent);
    -webkit-mask-image: linear-gradient(transparent, #000 20% 78%, transparent);
}
.bs-yt .bs-yt__inner { width: 100%; max-width: 1360px; margin-inline: auto; }
.bs-yt .bs-yt__header { margin: 0 auto 48px; text-align: center; }
.bs-yt .bs-yt__header h2 {
    margin: 0 0 20px;
    color: #101b16;
    font-size: clamp(32px, 3.6vw, 50px);
    line-height: 1.12;
    font-weight: 500;
    letter-spacing: -.035em;
}
.bs-yt .bs-yt__header h2 span { color: #8142ff; }
.bs-yt .bs-yt__header p { margin: 0; color: #67736c; font-size: 18px; line-height: 1.5; }
.bs-yt .bs-yt__cards {
    display: grid;
    grid-template-columns: 3.3fr 1fr 1fr 1fr;
    gap: 14px;
    height: clamp(360px, 31vw, 440px);
    transition: grid-template-columns 600ms cubic-bezier(.22, 1, .36, 1);
}
.bs-yt .bs-yt__cards[data-active="1"] { grid-template-columns: 1fr 3.3fr 1fr 1fr; }
.bs-yt .bs-yt__cards[data-active="2"] { grid-template-columns: 1fr 1fr 3.3fr 1fr; }
.bs-yt .bs-yt__cards[data-active="3"] { grid-template-columns: 1fr 1fr 1fr 3.3fr; }
.bs-yt .bs-yt__card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-width: 0;
    border-radius: 18px;
    color: #fff;
    background: #1e1d22;
    box-shadow: 0 16px 30px -22px #30264470;
    text-decoration: none;
    outline-offset: 5px;
}
.bs-yt .bs-yt__card:focus-visible { outline: 2px solid #b893ff; }
.bs-yt .bs-yt__thumbnail {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .55;
    transform: scale(var(--bs-yt-image-scale, 1.035));
    transition: opacity 500ms ease, transform 700ms cubic-bezier(.22, 1, .36, 1);
}
.bs-yt .bs-yt__card.is-active .bs-yt__thumbnail { opacity: 1; transform: scale(var(--bs-yt-image-scale, 1)); }
.bs-yt .bs-yt__decode-veil {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 60%, #191320b3 100%);
    opacity: .9;
    transition: opacity 650ms ease;
}
.bs-yt .bs-yt__card.is-active .bs-yt__decode-veil { opacity: .55; }
.bs-yt .bs-yt__ascii {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    opacity: .42;
    mask-image: linear-gradient(110deg, transparent 58%, #000 92%);
    -webkit-mask-image: linear-gradient(110deg, transparent 58%, #000 92%);
    transition: opacity 650ms ease;
}
.bs-yt .bs-yt__card.is-active .bs-yt__ascii { opacity: .28; }
.bs-yt .bs-yt__veil {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 20%, #0707090a 38%, #070709a6 70%, #070709 100%);
}
.bs-yt .bs-yt__veil::after {
    content: "";
    position: absolute;
    inset: 48% 0 0;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    mask-image: linear-gradient(transparent, #000 92%);
    -webkit-mask-image: linear-gradient(transparent, #000 92%);
}
.bs-yt .bs-yt__play {
    position: absolute;
    top: 22px;
    right: 22px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #ffffff4d;
    border-radius: 50%;
    background: #11111350;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 300ms ease, transform 400ms ease;
}
.bs-yt .bs-yt__card.is-active .bs-yt__play { opacity: 1; transform: translateY(0); }
.bs-yt .bs-yt__caption { position: absolute; inset: auto 18px 24px; }
.bs-yt .bs-yt__creator { display: block; margin-bottom: 8px; overflow: hidden; color: #c6c1cc; font-size: 12px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.bs-yt .bs-yt__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: #f5f5f7;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -.02em;
}
.bs-yt .bs-yt__card.is-active .bs-yt__title { font-size: 23px; }
.bs-yt .bs-yt__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding-top: 10px; }
.bs-yt .bs-yt__watermark { display: block; flex: 0 0 30px; width: 30px; height: 30px; margin-left: auto; object-fit: contain; opacity: .6; }
.bs-yt .bs-yt__watch {
    display: flex;
    gap: 9px;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    opacity: 0;
    color: #c7aaff;
    font-size: 16px;
    line-height: 1.5;
    transform: translateY(6px);
    transition: opacity 350ms ease, transform 400ms ease;
}
.bs-yt .bs-yt__card.is-active .bs-yt__watch { opacity: 1; transform: translateY(0); }
.bs-yt .bs-yt__channel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    width: fit-content;
    margin: 48px auto 0;
    color: #67736c;
    font-size: 16px;
    line-height: 1.5;
    text-decoration: none;
    outline-offset: 8px;
}
.bs-yt .bs-yt__wordmark { display: flex; align-items: center; gap: 9px; color: #101b16; font-size: 26px; font-weight: 500; letter-spacing: -.04em; }
.bs-yt .bs-yt__channel-arrow { margin-left: 4px; color: #8142ff; font-size: 20px; }
.bs-yt .bs-yt__channel:hover .bs-yt__wordmark { color: #8142ff; }
.bs-yt .bs-yt__sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1099.98px) {
    .bs-yt { padding-inline: 20px; }
    .bs-yt .bs-yt__header { margin-bottom: 32px; }
    .bs-yt .bs-yt__header p { max-width: 430px; margin-inline: auto; font-size: 16px; }
    .bs-yt .bs-yt__cards {
        display: flex;
        height: clamp(360px, 72vw, 440px);
        gap: 12px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        overscroll-behavior-y: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
        scrollbar-color: #b5a0dc #e8e4ef;
        padding: 6px 6px 18px;
        margin: -6px;
    }
    .bs-yt .bs-yt__card { flex: 0 0 86%; scroll-snap-align: center; border-radius: 15px; }
    .bs-yt .bs-yt__thumbnail { opacity: 1; transform: scale(var(--bs-yt-image-scale, 1)); }
    .bs-yt .bs-yt__caption { inset-inline: 22px; bottom: 22px; }
    .bs-yt .bs-yt__card .bs-yt__title { font-size: 22px; -webkit-line-clamp: 3; }
    .bs-yt .bs-yt__card .bs-yt__watch { gap: 6px; font-size: 14px; opacity: 1; transform: none; }
    .bs-yt .bs-yt__play { opacity: 1; transform: none; top: 18px; right: 18px; }
    .bs-yt .bs-yt__channel { margin-top: 32px; }
    .bs-yt .bs-yt__ascii { opacity: .28; }
    .bs-yt .bs-yt__decode-veil { opacity: .55; }
}
@media (max-width: 359.98px) {
    .bs-yt .bs-yt__watermark { flex-basis: 26px; width: 26px; height: 26px; }
}
@media (min-width: 600px) and (max-width: 1099.98px) {
    .bs-yt .bs-yt__card { flex-basis: 60%; }
}
@media (prefers-reduced-motion: reduce) {
    .bs-yt .bs-yt__cards, .bs-yt .bs-yt__thumbnail, .bs-yt .bs-yt__ascii, .bs-yt .bs-yt__decode-veil, .bs-yt .bs-yt__play, .bs-yt .bs-yt__watch { transition: none; }
}
