/* Movies You'll Love — the movie popup (js/movies-youll-love/movies-youll-love.js,
   document/modules/movies-youll-love.md, 2026-12-04).
   Two looks: the normal one (dark, like the rest of the site) and the cartoon one
   for the World of Wonders games page (.tgv-myl-pop--wow). Buttons are the global
   .tgv-btn; the close button is the global .tgv-modal-close (in-flow, first child). */

html.tgv-myl-open { overflow: hidden; }

/* tgv-modal-overlay (style.css) adds the navbar clearance; the rest is here. */
.tgv-myl-pop {
  position: fixed;
  inset: 0;
  z-index: 20000; /* above the navbar (10000) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 14px;
  padding-right: 14px;
  padding-bottom: 14px;
  background: rgba(0, 0, 0, 0.78);
}
.tgv-myl-pop[hidden] { display: none; }

.tgv-myl-pop-card {
  display: flex;
  flex-direction: column;
  width: min(100%, 940px);
  max-height: 100%;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 14px 22px 26px;
  border-radius: 16px;
  background: #121212;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}

/* poster | details, trailer underneath */
.tgv-myl-main {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
.tgv-myl-poster {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 436 / 650;
  object-fit: cover;
  border-radius: 10px;
}
.tgv-myl-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.tgv-myl-title {
  margin: 0;
  font-size: clamp(22px, 4vw, 32px);
  line-height: 1.2;
  font-weight: 700;
  color: #fff;
}
.tgv-myl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tgv-myl-chip {
  padding: 3px 11px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.5;
}
.tgv-myl-row {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}
.tgv-myl-row strong { color: #fff; }
.tgv-myl-synopsis {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}
.tgv-myl-synopsis p,
.tgv-myl-synopsis div { margin: 0 0 8px; }
.tgv-myl-synopsis ul,
.tgv-myl-synopsis ol { margin: 0 0 8px 20px; }
/* The button stays in view while a long synopsis scrolls under it. */
.tgv-myl-actions {
  position: sticky;
  bottom: 0;
  z-index: 1;
  margin-top: 4px;
  padding-top: 18px;
  background: linear-gradient(to bottom, rgba(18, 18, 18, 0), #121212 14px);
}
.tgv-myl-trailer {
  position: relative;
  width: 100%;
  margin-top: 22px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}
.tgv-myl-trailer iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 720px) {
  .tgv-myl-pop-card { padding: 12px 16px 22px; }
  .tgv-myl-main { grid-template-columns: 1fr; gap: 16px; }
  .tgv-myl-poster { width: min(60%, 240px); margin: 0 auto; }
  .tgv-myl-actions .tgv-btn { width: 100%; justify-content: center; }
}

/* ───────────── the cartoon popup (World of Wonders) ───────────── */
.tgv-myl-pop--wow {
  background: rgba(23, 31, 84, 0.72);
}
.tgv-myl-pop--wow .tgv-myl-pop-card {
  width: min(100%, 720px);
  gap: 16px;
  padding: 12px 22px 28px;
  border: 5px solid #1d1d3b;
  border-radius: 34px;
  background: #fff3c4;
  color: #1d1d3b;
  box-shadow: 0 10px 0 #1d1d3b, 0 26px 60px rgba(0, 0, 0, 0.45);
}
/* only colours on the global close button — its shape stays (CLAUDE.md, Modal Close Buttons) */
.tgv-myl-pop--wow .tgv-myl-pop-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tgv-myl-pop--wow .tgv-modal-close {
  background: #ffd23f;
  color: #1d1d3b;
}
.tgv-myl-pop--wow .tgv-myl-trailer {
  margin-top: 0;
  border: 5px solid #1d1d3b;
  border-radius: 24px;
  background: #1d1d3b;
  box-shadow: 0 7px 0 #1d1d3b;
}
.tgv-myl-pop--wow .tgv-myl-poster {
  width: min(60%, 260px);
  margin: 0 auto;
  border: 5px solid #1d1d3b;
  border-radius: 24px;
  box-shadow: 0 7px 0 #1d1d3b;
}
.tgv-myl-pop--wow .tgv-myl-info { gap: 14px; text-align: center; align-items: center; }
.tgv-myl-pop--wow .tgv-myl-title {
  color: #ff4f81;
  font-weight: 800;
  font-size: clamp(26px, 6vw, 38px);
  letter-spacing: 0.01em;
  /* outlined, sticker-like letters */
  text-shadow: 2px 2px 0 #1d1d3b, -2px 2px 0 #1d1d3b, 2px -2px 0 #1d1d3b, -2px -2px 0 #1d1d3b, 0 5px 0 #1d1d3b;
}
.tgv-myl-pop--wow .tgv-myl-chips { justify-content: center; }
.tgv-myl-pop--wow .tgv-myl-chip {
  border: 3px solid #1d1d3b;
  color: #1d1d3b;
  font-weight: 700;
  padding: 3px 13px;
  background: #7bdff2;
  transform: rotate(-2deg);
}
.tgv-myl-pop--wow .tgv-myl-chip:nth-child(2n) { background: #b8f2a6; transform: rotate(2deg); }
.tgv-myl-pop--wow .tgv-myl-chip:nth-child(3n) { background: #ffb3c6; transform: rotate(-1deg); }
.tgv-myl-pop--wow .tgv-myl-chip:nth-child(4n) { background: #ffd23f; }
.tgv-myl-pop--wow .tgv-myl-row,
.tgv-myl-pop--wow .tgv-myl-row strong,
.tgv-myl-pop--wow .tgv-myl-synopsis {
  color: #1d1d3b;
  font-size: 16px;
  font-weight: 600;
}
.tgv-myl-pop--wow .tgv-myl-actions {
  padding-bottom: 8px;
  background: linear-gradient(to bottom, rgba(255, 243, 196, 0), #fff3c4 14px);
}
.tgv-myl-pop--wow .tgv-myl-actions .tgv-btn {
  min-width: 190px;
  padding: 12px 30px;
  border: 4px solid #1d1d3b;
  border-radius: 999px;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 6px 0 #1d1d3b;
  justify-content: center;
}
.tgv-myl-pop--wow .tgv-myl-actions .tgv-btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #1d1d3b;
}

/* a bouncy pop-in, only for people who have not asked for less motion */
@media (prefers-reduced-motion: no-preference) {
  .tgv-myl-pop--wow:not([hidden]) .tgv-myl-pop-card {
    animation: tgv-myl-bounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
}
@keyframes tgv-myl-bounce {
  0%   { transform: scale(0.6) rotate(-3deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
