No more quirky JS-based workarounds!
From Academind · · 2 min

The player loads from YouTube only when you click. It uses YouTube's privacy-enhanced mode.
If the video does not play, the owner may have turned off embedding. Watch it on YouTube instead.
Description
The :has selector is a game-changer! It allows you to style elements based on the condition of their child or sibling elements WITHOUT using any JS workarounds or anything like that!
🖥️ Official Website & Courses https://academind.com/courses/
💬 Academind Community https://academind.com/community
👋 Social Media https://twitter.com/maxedapps https://twitter.com/academind_real https://www.instagram.com/academind_real/ https://www.facebook.com/academindchannel/ https://www.linkedin.com/in/maximilian-schwarzmueller/ https://www.linkedin.com/in/manuel-lorenz-808b5185/ https://www.linkedin.com/company/academind-gmbh https://www.linkedin.com/school/academind-pro https://www.tiktok.com/@academind_real