<!-- wp:html --> <!DOCTYPE html> <html lang="id"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <style> body{ font-family:"Georgia", serif; background:#f4f4f4; margin:0; } /* CONTAINER */ .container{ max-width:760px; margin:40px auto; background:#fff; padding:30px; box-shadow:0 4px 15px rgba(0,0,0,0.08); border-radius:6px; } /* JUDUL TEMPO */ .title{ font-size:2.2rem; font-weight:bold; border-left:5px solid #d60000; padding-left:15px; margin-bottom:25px; line-height:1.3; } /* LABEL */ .video-label{ display:inline-block; font-size:11px; font-weight:700; color:#fff; background:#d60000; padding:4px 8px; border-radius:3px; margin-bottom:10px; letter-spacing:.08em; } /* VIDEO PREMIUM */ .video-thumb{ position:relative; border-radius:6px; overflow:hidden; cursor:pointer; box-shadow:0 6px 18px rgba(0,0,0,0.12); } .video-thumb img{ width:100%; display:block; } /* PLAY BUTTON */ .play-button{ position:absolute; top:50%; left:50%; transform:translate(-50%, -50%); width:65px; height:65px; background:rgba(0,0,0,0.6); border-radius:50%; } .play-button::before{ content:""; position:absolute; left:26px; top:20px; border-style:solid; border-width:12px 0 12px 18px; border-color:transparent transparent transparent #fff; } /* HOVER HALUS */ .video-thumb:hover{ transform:translateY(-2px); transition:.25s; } /* CAPTION TEMPO */ .video-caption{ font-size:1rem; font-style:italic; color:#555; border-left:3px solid #ccc; padding-left:12px; margin-top:12px; line-height:1.6; } </style> </head> <body> <div class="container"> <div class="title">The Cheerest Magazine</div> <div class="video-label">VIDEO</div> <div class="video-premium" data-video="9p0SNkifBUw"> <div class="video-thumb"> <img src="https://i.ytimg.com/vi/9p0SNkifBUw/hqdefault.jpg" alt="Video berita"> <div class="play-button"></div> </div> <div class="video-caption"> The cheerest magazine. </div> </div> </div> <script> document.querySelectorAll('.video-premium').forEach(function(el){ el.querySelector('.video-thumb').addEventListener('click', function(){ const id = el.getAttribute('data-video'); el.innerHTML = ` <div style="position:relative;padding-top:56.25%;border-radius:6px;overflow:hidden;"> <iframe src="https://www.youtube.com/embed/${id}?autoplay=1" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen style="position:absolute;top:0;left:0;width:100%;height:100%;"> </iframe> </div> `; }); }); </script> </body> </html> <!-- /wp:html -->