/* Site tweaks on top of the Octarine theme styles. */

/* Julia McKay mega menu in the desktop header: open on click only (see assets/js/site.js).
   !important beats the inline display the theme's hover fadeIn/fadeOut sets. */
#Top_bar #menu-item-25:not(.is-open) > ul.mfn-megamenu { display: none !important; }
#Top_bar #menu-item-25.is-open > ul.mfn-megamenu { display: block !important; opacity: 1 !important; }
#Top_bar #menu-item-25 > a { cursor: pointer; }

/* ---------- Home page: Lucky trailer block (option B, Nov 2026) ----------
   Big trailer with the book cover overlapping its bottom-right corner.
   Markup in index.php (.msl), click-to-play in assets/js/site.js. */
.msl { --msl-pink: #cf4e6c; --msl-pink-dark: #b8445e; --msl-ink: #1d1a1b; padding: 40px 0 70px; font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif; }
.msl *, .msl *::before, .msl *::after { box-sizing: border-box; }
.msl img { display: block; max-width: 100%; }
#Content .msl button { all: unset; box-sizing: border-box; cursor: pointer; }
.msl .msl-kicker { font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--msl-pink); text-align: center; margin: 0 0 16px; }
.msl-stage { position: relative; max-width: 1100px; margin: 0 auto; padding-right: 220px; transition: padding .45s ease; }
.msl-stage.is-playing { padding-right: 0 !important; } /* video takes the cover's space while it plays */
.msl-video { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; cursor: pointer; box-shadow: 0 30px 70px -25px rgba(40,10,20,.45); }
.msl-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.msl-video:hover img { transform: scale(1.03); }
.msl-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
#Content .msl .msl-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%;
  background: rgba(207, 78, 108, .92); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: transform .25s ease, background .25s ease;
}
#Content .msl .msl-play svg { width: 34px; height: 34px; margin-left: 4px; }
#Content .msl .msl-play:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.msl-video:hover .msl-play { transform: translate(-50%, -50%) scale(1.08) !important; background: var(--msl-pink) !important; }
#Content .msl .msl-play::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); animation: msl-pulse 2.4s ease-out infinite; }
@keyframes msl-pulse { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.msl-cover { display: block; position: absolute; right: 0; bottom: -56px; width: 300px; z-index: 2; transform: rotate(2deg); box-shadow: 0 30px 60px -12px rgba(0,0,0,.55); transition: opacity .4s ease, transform .4s ease; }
.msl-cover:hover { transform: rotate(0deg) translateY(-4px); }
.msl-stage.is-playing .msl-cover { opacity: 0; transform: rotate(2deg) translateY(24px); pointer-events: none; } /* keep YouTube's controls clear */
.msl-foot { max-width: 1100px; margin: 0 auto; padding: 32px 330px 0 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.msl-foot p { margin: 0; font-size: 16px; color: var(--msl-ink); }
.msl-btns { display: flex; flex-wrap: wrap; gap: 12px; }
#Content .msl .msl-btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 26px; border-radius: 2px; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; line-height: 1.2; text-decoration: none !important; background-image: none; transition: background .2s, color .2s, transform .2s; }
#Content .msl .msl-btn:hover { transform: translateY(-1px); }
#Content .msl .msl-btn-fill { background: var(--msl-pink); color: #fff; border: 1px solid var(--msl-pink); }
#Content .msl .msl-btn-fill:hover { background: var(--msl-pink-dark); border-color: var(--msl-pink-dark); }
#Content .msl .msl-btn-line { border: 1px solid var(--msl-ink); color: var(--msl-ink); }
#Content .msl .msl-btn-line:hover { background: var(--msl-ink); color: #fff; }
@media (prefers-reduced-motion: reduce) { #Content .msl .msl-play::after { animation: none; } .msl-video:hover img { transform: none; } }
@media (max-width: 1100px) {
  .msl-stage { padding-right: 170px; }
  .msl-cover { width: 240px; bottom: -44px; }
  .msl-foot { padding-right: 260px; }
}
@media (max-width: 767px) {
  .msl { padding: 0 16px 40px; }
  .msl-stage { padding-right: 0; }
  .msl-cover { position: relative; right: auto; bottom: auto; width: 230px; margin: 28px auto 0; transform: none; }
  .msl-cover:hover { transform: none; }
  .msl-stage.is-playing .msl-cover { opacity: 1; transform: none; pointer-events: auto; } /* sits below the video on phones */
  #Content .msl .msl-play { width: 68px; height: 68px; }
  #Content .msl .msl-play svg { width: 26px; height: 26px; }
  .msl-foot { padding: 20px 0 0; flex-direction: column; align-items: stretch; }
  .msl-foot p { text-align: center; }
  .msl-btns { flex-direction: column; }
}
