มีผลมาก ความเครียดทำให้หลอดเลือดหดตัวและฮอร์โมนเพศลดลง การนอนน้อยยังลดการฟื้นฟูร่างกายและการผลิตเทสโทสเตอโรน ทำให้การแข็งตัวลดลง
.video-wrapper{position:relative;width:100%;aspect-ratio:16/9;background:#000;overflow:hidden;border-radius:12px}
.video-thumb{all:unset;cursor:pointer;display:block;width:100%;height:100%;position:relative}
.video-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.video-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
font-size:3rem;line-height:1;background:rgba(0,0,0,.5);padding:.4em .6em;border-radius:.6em;color:#fff}
@supports not (aspect-ratio: 16/9){
.video-wrapper{height:0;padding-top:56.25%}
.video-wrapper>*{position:absolute;left:0;top:0;right:0;bottom:0}
}
(function(){
function loadIframe(wrapper){
if (wrapper.dataset.loaded) return;
const id = wrapper.dataset.videoId;
const title = wrapper.dataset.title || ‘Video’;
const iframe = document.createElement(‘iframe’);
iframe.title = title;
iframe.width = ‘560’;
iframe.height = ‘315’;
iframe.allowFullscreen = true;
iframe.loading = ‘lazy’;
iframe.referrerPolicy = ‘strict-origin-when-cross-origin’;
iframe.setAttribute(‘allow’,’accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture’);
iframe.src = ‘https://www.youtube.com/embed/’ + id + ‘?rel=0&modestbranding=1’;
wrapper.innerHTML = ”;
wrapper.appendChild(iframe);
wrapper.dataset.loaded = ‘1’;
}
// สร้าง iframe เมื่อผู้ใช้คลิกปุ่ม
document.addEventListener(‘click’, function(e){
const btn = e.target.closest(‘.video-thumb’);
if (!btn) return;
loadIframe(btn.parentElement);
}, false);
})();