lite-youtube {
    background-color: #000;
    position: relative;
    display: block;
    contain: content;
    background-position: center center;
    background-size: cover;
    cursor: pointer;
    max-width: 100%;
}

/* gradient */
lite-youtube::before {
    content: attr(data-title);
    display: block;
    position: absolute;
    top: 0;
    background-image: linear-gradient(180deg, rgb(0 0 0 / 80%) 0%, rgb(0 0 0 / 60%) 14%, rgb(0 0 0 / 15%) 54%, rgb(0 0 0 / 5%) 72%, rgb(0 0 0 / 0%) 94%);
    height: 99px;
    width: 100%;
    font-family: "Chakra Petch", -apple-system, system-ui, sans-serif;
    color: hsl(0deg 0% 96%);
    text-shadow: 0 0 3px rgba(0,0,0,.7);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 16px 20px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

lite-youtube:hover::before {
    color: white;
}

/* 16:9 aspect (default) */
lite-youtube::after {
    content: "";
    display: block;
    padding-bottom: calc(100% / (16 / 9));
}

/* 9:16 aspect variant for Shorts */
lite-youtube.aspect-short::after {
    padding-bottom: calc(100% / (9 / 16));
}

lite-youtube > iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border: 0;
}

/* play button — Wager brand orange with hazard-style ring */
lite-youtube > .lyt-playbtn {
    display: block;
    width: 100%;
    height: 100%;
    background: no-repeat center/72px 72px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 72 72"><circle cx="36" cy="36" r="34" fill="%23F66332" stroke="white" stroke-width="2"/><path d="M48 36 28 24v24z" fill="white"/></svg>');
    position: absolute;
    cursor: pointer;
    z-index: 1;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.4));
    transition: transform .15s cubic-bezier(0, 0, 0.2, 1);
    border: 0;
}

lite-youtube:hover > .lyt-playbtn,
lite-youtube .lyt-playbtn:focus {
    transform: scale(1.08);
}

lite-youtube.lyt-activated {
    cursor: unset;
}

lite-youtube.lyt-activated::before,
lite-youtube.lyt-activated > .lyt-playbtn {
    opacity: 0;
    pointer-events: none;
}

.lyt-visually-hidden {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}
