/* Click-to-play YouTube player (moved from footer.php) */
.yt-video-wrapper{
position:relative;
width:100%;
aspect-ratio:16/9;
background:#000;
overflow:hidden;
border-radius:15px;
cursor:pointer;
}

/* iframe responsive */
.yt-video-wrapper iframe{
width:100%;
height:100%;
border-radius:15px;
}

/* fullscreen fix */
.yt-video-wrapper:fullscreen,
.yt-video-wrapper:-webkit-full-screen{
width:100vw;
height:100vh;
aspect-ratio:unset;
}

.yt-video-wrapper:fullscreen iframe,
.yt-video-wrapper:-webkit-full-screen iframe{
width:100%;
height:100%;
}

/* thumbnail fast blur-up */
.yt-thumbnail img{
width:100%;
height:100%;
object-fit:cover;
filter:blur(12px);
transform:scale(1.05);
transition:filter .4s ease,transform .4s ease;
}

.yt-thumbnail img.loaded{
filter:blur(0);
transform:scale(1);
}

/* play button */
.yt-play-btn{
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
width:80px;
height:80px;
background:rgba(0,0,0,0.8);
border-radius:50%;
border:none;
cursor:pointer;
}

.yt-play-btn::before{
content:"";
position:absolute;
left:30px;
top:24px;
border-style:solid;
border-width:14px 0 14px 22px;
border-color:transparent transparent transparent #fff;
}

/* controls */
.yt-controls{
position:absolute;
bottom:0;
left:0;
width:100%;
background:rgba(0,0,0,0.7);
padding:10px;
display:flex;
align-items:center;
gap:10px;
box-sizing:border-box;
}

.yt-progress{
flex:1;
height:6px;
background:#444;
cursor:pointer;
position:relative;
}

.yt-progress-bar{
height:100%;
width:0%;
background:#00d5ff;
}

.yt-btn{
background:#060992;
border:none;
padding:6px 12px;
cursor:pointer;
font-size:14px;
border-radius:50px;
color:#fff;
}
