/* WTC Games — Game Trailer Production gallery, isolated from checkout styles */
.trailer-examples {
  min-width: 0;
  margin: 44px 0 64px;
  padding-top: 29px;
  border-top: 1px solid rgba(255,255,255,.16);
}
.trailer-examples__header { margin-bottom: 23px; }
.trailer-examples__eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  color: #ffc31a; font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em;
}
.trailer-examples__eyebrow::before { content: ''; width: 24px; height: 2px; background: #ffc31a; }
.trailer-examples__header h2 {
  margin: 13px 0 12px; color: #fff;
  font-family: var(--font-display, 'Molot', sans-serif);
  font-size: 25px; font-weight: 900; line-height: 1.15;
  letter-spacing: .055em; text-transform: uppercase;
}
.trailer-examples__header p {
  color: #cfcfd1; font-size: 16px; line-height: 1.58;
  max-width: 880px; margin: 0;
}
.trailer-examples__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px; min-width: 0;
}
.trailer-example {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  text-align: left; color: #fff; text-decoration: none;
  border-radius: 13px; padding: 0;
  border: 1px solid rgba(255,255,255,.16);
  background: #181a1e; cursor: pointer;
  font-family: inherit;
  transition: border-color .18s ease, transform .18s ease;
}
.trailer-example:hover { border-color: #ffc31a; transform: translateY(-2px); }
.trailer-example:focus-visible, .trailer-lightbox button:focus-visible, .trailer-lightbox a:focus-visible {
  outline: 3px solid #ffc31a; outline-offset: 3px;
}
.trailer-example__image {
  display: block; position: relative; width: 100%; aspect-ratio: 16/9;
  overflow: hidden; background: #16232e;
}
.trailer-example__image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.45), transparent 55%);
  pointer-events: none;
}
.trailer-example__poster-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 23px; text-align: center; font-size: 19px; font-weight: 800;
  background: radial-gradient(circle at 75% 20%, rgba(255,193,7,.17), transparent 40%), linear-gradient(145deg,#26313c,#121820);
  color: rgba(255,255,255,.52); line-height: 1.2;
}
.trailer-example__image img {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform .28s ease;
}
.trailer-example__image img[hidden] { display: none; }
.trailer-example:hover .trailer-example__image img:not([hidden]) { transform: scale(1.045); }
.trailer-example__play {
  position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 58px; height: 58px; display: grid; place-items: center;
  border-radius: 50%; color: #101115;
  background: #ffbf16; border: 2px solid rgba(255,255,255,.3);
  box-shadow: 0 7px 32px rgba(0,0,0,.5);
  transition: transform .2s ease, box-shadow .2s ease;
}
.trailer-example:hover .trailer-example__play { transform: translate(-50%,-50%) scale(1.08); box-shadow: 0 7px 38px rgba(0,0,0,.6); }
.trailer-example__play svg { transform: translateX(2px); }
.trailer-example__type {
  position: absolute; z-index: 1; left: 12px; bottom: 11px;
  border: 1px solid rgba(255,195,26,.35); border-radius: 6px;
  padding: 5px 9px; font-size: 11px; line-height: 1.25;
  font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  color: #ffc31a; background: rgba(0,0,0,.83);
}
.trailer-example__info { display: flex; flex-direction: column; gap: 7px; padding: 15px 16px 17px; }
.trailer-example__info strong { color: #fff; font-size: 17px; line-height: 1.3; font-weight: 800; }
.trailer-example__info span { color: #c7c9cd; font-size: 13px; line-height: 1.5; }
/* Native dialog is moved under body to avoid ancestor transforms/overflow */
.trailer-lightbox {
  position: fixed; inset: 0; margin: auto; padding: 0;
  width: min(94vw, 1000px); max-width: calc(100vw - 16px);
  max-height: calc(100dvh - 16px); box-sizing: border-box;
  overflow: hidden; border: 1px solid #424650; border-radius: 14px;
  background: #191b20; color: #fff;
  box-shadow: 0 22px 100px rgba(0,0,0,.78);
}
.trailer-lightbox[open] { display: flex; flex-direction: column; }
.trailer-lightbox::backdrop { background: rgba(0,0,0,.86); }
.trailer-lightbox__bar, .trailer-lightbox__footer {
  display: flex; flex-shrink: 0; align-items: center; justify-content: space-between;
  padding: 10px 15px; background: #22242c; gap: 12px;
}
.trailer-lightbox__bar { min-height: 55px; border-bottom: 1px solid rgba(255,255,255,.13); }
.trailer-lightbox__heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; min-width: 0; }
.trailer-lightbox__heading strong { font-size: 16px; color: #fff; line-height: 1.3; }
.trailer-lightbox__heading small { color: #adb1bb; font-size: 12px; }
.trailer-lightbox button {
  font: inherit; color: #fff; background: #30343d;
  border: 1px solid #535760; border-radius: 7px;
  padding: 7px 12px; min-width: 37px; min-height: 37px;
  cursor: pointer;
}
.trailer-lightbox button:hover { background: #414651; }
.trailer-lightbox .trailer-lightbox__close { position: relative; width: 38px; height: 38px; padding: 0; flex: none; }
.trailer-lightbox__close::before, .trailer-lightbox__close::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 17px; height: 2px; background: currentColor; transform-origin: center;
}
.trailer-lightbox__close::before { transform: translate(-50%,-50%) rotate(45deg); }
.trailer-lightbox__close::after { transform: translate(-50%,-50%) rotate(-45deg); }
.trailer-lightbox__video { position: relative; width: 100%; aspect-ratio: 16/9; background: #090b0e; min-height: 0; }
.trailer-lightbox__video iframe { display: block; border: 0; width: 100%; height: 100%; }
.trailer-lightbox__footer { justify-content: center; gap: 25px; border-top: 1px solid rgba(255,255,255,.13); }
.trailer-lightbox__external {
  color: #ffca26; text-decoration: underline; text-underline-offset: 3px; font-size: 13px;
}
.trailer-lightbox__hint { color: #adb1bb; text-align: center; font-size: 12px; line-height: 1.45; margin: 0; padding: 8px 16px 12px; }
@media (max-width: 940px) { .trailer-examples__grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 590px) {
  .trailer-examples { margin: 36px 0 44px; padding-top: 23px; }
  .trailer-examples__grid { grid-template-columns: 1fr; gap: 12px; }
  .trailer-examples__header h2 { font-size: 23px; }
  .trailer-examples__header p { font-size: 15px; }
  .trailer-example__info { padding: 12px 13px 14px; }
  .trailer-lightbox__bar { min-height: 49px; padding: 7px 10px; }
  .trailer-lightbox__heading strong { font-size: 13px; }
  .trailer-lightbox__footer { padding: 7px 12px; gap: 12px; }
  .trailer-lightbox__video { aspect-ratio: 16/9; }
}
@media (prefers-reduced-motion: reduce) {
  .trailer-example, .trailer-example__image img, .trailer-example__play { transition: none; }
}
