/*
 * TailCache lazy-load frontend styles.
 *
 * Loaded conditionally when any of `assets.lazy_youtube`, `assets.lazy_videos`,
 * or `assets.lazy_bg_images` is on. Served via /tailcache/assets/lazyload.css.
 */

.tc-lazy-yt {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    border-radius: 6px;
}

.tc-lazy-yt img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.2s ease, transform 0.4s ease;
}

.tc-lazy-yt:hover img {
    filter: brightness(0.75);
    transform: scale(1.02);
}

.tc-lazy-yt__play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 68px;
    height: 48px;
    background-color: rgba(33, 33, 33, 0.8);
    border-radius: 14px;
    pointer-events: none;
}

.tc-lazy-yt__play::before {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 11px 0 11px 19px;
    border-color: transparent transparent transparent #fff;
}

.tc-lazy-yt:hover .tc-lazy-yt__play {
    background-color: #ff0000;
}

.tc-lazy-bg {
    background-color: rgba(0, 0, 0, 0.04);
    transition: background-image 0.2s ease;
}

.tc-lazy-bg--loaded {
    background-color: transparent;
}

.tc-lazy-video {
    background: rgba(0, 0, 0, 0.04);
}
