#lorena-lesson-movies {
width: 100%;
padding: 50px 28px 54px;
background: #fff;
color: #333;
font-family: "Noto Serif JP", "Yu Mincho",
"Hiragino Mincho ProN", serif;
}
#lorena-lesson-movies,
#lorena-lesson-movies * {
box-sizing: border-box;
}
#lorena-lesson-movies .lm-heading {
max-width: 900px;
margin: 0 auto 36px;
text-align: center;
}
#lorena-lesson-movies .lm-heading h2 {
margin: 0;
color: #333;
font-family: "Noto Serif JP", "Yu Mincho",
"Hiragino Mincho ProN", serif;
font-size: 30px;
font-weight: 400;
line-height: 1.8;
letter-spacing: 0.08em;
text-align: center;
text-wrap: balance;
}
#lorena-lesson-movies .lm-heading h2::after {
content: "";
display: block;
width: 70%;
height: 4px;
margin: 20px auto 24px;
background: linear-gradient(
to right,
#ff6875 0%,
#ffb9c1 55%,
rgba(255, 185, 193, 0) 100%
);
}
#lorena-lesson-movies .lm-heading p {
margin: 0;
color: #555;
font-size: 16px;
line-height: 1.9;
letter-spacing: 0.045em;
text-wrap: balance;
}
#lorena-lesson-movies .lm-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 56px;
max-width: 640px;
margin: 0 auto;
}
#lorena-lesson-movies .lm-item {
min-width: 0;
margin: 0;
}
#lorena-lesson-movies .lm-item h3 {
margin: 0 0 17px;
color: #333;
font-family: inherit;
font-size: 20px;
font-weight: 400;
line-height: 1.8;
letter-spacing: 0.08em;
text-align: center;
}
#lorena-lesson-movies .lm-player {
position: relative;
overflow: hidden;
border: 7px solid #fce5eb;
border-radius: 23px;
background: #fce5eb;
box-shadow: 0 8px 28px rgba(196, 71, 102, 0.08);
}
#lorena-lesson-movies video {
display: block;
width: 100%;
height: auto;
aspect-ratio: 9 / 16;
object-fit: contain;
background: #f7f7f7;
}
#lorena-lesson-movies .lm-play {
position: absolute;
top: 50%;
left: 50%;
display: flex;
align-items: center;
justify-content: center;
width: 66px;
height: 66px;
margin: 0;
padding: 0;
transform: translate(-50%, -50%);
border: 2px solid #fff;
border-radius: 50%;
background: rgba(30, 25, 25, 0.22);
color: #fff;
cursor: pointer;
appearance: none;
}
#lorena-lesson-movies .lm-play::before {
content: "";
width: 0;
height: 0;
margin-left: 5px;
border-top: 12px solid transparent;
border-bottom: 12px solid transparent;
border-left: 19px solid #fff;
}
#lorena-lesson-movies .lm-play:hover {
background: rgba(30, 25, 25, 0.4);
}
#lorena-lesson-movies .lm-play[hidden] {
display: none;
}
#lorena-lesson-movies .lm-book {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
min-height: 56px;
margin-top: 23px;
padding: 13px 12px;
border-radius: 999px;
background: #c44766;
color: #fff;
font-family: inherit;
font-size: 14px;
font-weight: 400;
line-height: 1.6;
letter-spacing: 0.015em;
text-align: center;
text-decoration: none;
box-shadow: 0 4px 12px rgba(196, 71, 102, 0.12);
transition: background-color 0.2s;
}
#lorena-lesson-movies .lm-book:hover {
background: #ad3653;
color: #fff;
}
#lorena-lesson-movies .lm-arrow {
flex-shrink: 0;
font-family: Arial, sans-serif;
font-size: 19px;
}
#lorena-lesson-movies .lm-book:focus-visible,
#lorena-lesson-movies .lm-play:focus-visible {
outline: 3px solid #333;
outline-offset: 4px;
}
@media (max-width: 580px) {
#lorena-lesson-movies {
padding: 36px 20px 44px;
}
#lorena-lesson-movies .lm-heading {
margin-bottom: 30px;
}
#lorena-lesson-movies .lm-heading h2 {
font-size: 24px;
letter-spacing: 0.035em;
}
#lorena-lesson-movies .lm-heading p {
font-size: 14px;
}
#lorena-lesson-movies .lm-grid {
grid-template-columns: 1fr;
gap: 36px;
max-width: 300px;
}
#lorena-lesson-movies .lm-item h3 {
margin-bottom: 16px;
font-size: 19px;
}
#lorena-lesson-movies .lm-book {
margin-top: 19px;
}
}
@media (prefers-reduced-motion: reduce) {
#lorena-lesson-movies .lm-book {
transition: none;
}
}
(() => {
const section = document.getElementById("lorena-lesson-movies");
if (!section || section.dataset.initialized === "true") return;
section.dataset.initialized = "true";
const videos = section.querySelectorAll("video");
section.querySelectorAll(".lm-player").forEach((player) => {
const video = player.querySelector("video");
const button = player.querySelector(".lm-play");
video.controls = false;
button.hidden = false;
button.addEventListener("click", async () => {
video.controls = true;
try {
await video.play();
button.hidden = true;
} catch {
button.hidden = false;
}
});
video.addEventListener("play", () => {
button.hidden = true;
video.controls = true;
videos.forEach((other) => {
if (other !== video) other.pause();
});
});
video.addEventListener("ended", () => {
button.hidden = false;
});
video.addEventListener("error", () => {
video.controls = true;
button.hidden = true;
});
});
})();