/* ============================================================================
   GoldenPort v68 — video player + contact phones
   Replaces gp67-drive-video.css
   ========================================================================= */

/* ------------------------------------------------------- contact phones
   (carried over unchanged from v67)
---------------------------------------------------------------------- */
.gp67-phone-list{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.gp67-phone{display:inline-flex;align-items:center;gap:9px;padding:11px 14px;border:1px solid rgba(255,255,255,.14);border-radius:999px;color:#f2f4f7!important;background:rgba(255,255,255,.055);font-size:13px;font-weight:750;letter-spacing:.01em;transition:.2s ease}
.gp67-phone:hover{border-color:rgba(240,200,107,.45);background:rgba(240,200,107,.09);transform:translateY(-1px)}
.gp67-phone::before{content:"☎";color:#efc766;font-size:13px}
.footer .gp67-footer-phone{color:#b9c0ca!important;text-decoration:none!important}
.footer .gp67-footer-phone:hover{color:#efc766!important}

/* --------------------------------------------------------- trigger cards
   Covers both the v68 class and the v67 one still present in markup.
---------------------------------------------------------------------- */
button.gp68-video-trigger,
button.gp67-drive-video-trigger{font:inherit;color:inherit;text-align:left;border:0}

.product-section .video-card.gp68-video-trigger,
.product-section .video-card.gp67-drive-video-trigger{
  position:relative;display:block;width:100%;min-height:300px;padding:0;overflow:hidden;
  cursor:pointer;border:1px solid rgba(255,255,255,.095)!important;border-radius:22px;
  background:#0d131c!important
}
.product-section .video-card.gp68-video-trigger img,
.product-section .video-card.gp67-drive-video-trigger img{
  display:block;width:100%;height:300px;object-fit:cover;
  filter:brightness(.72) saturate(.9);transition:transform .45s ease,filter .45s ease
}
.product-section .video-card.gp68-video-trigger:hover img,
.product-section .video-card.gp67-drive-video-trigger:hover img{
  transform:scale(1.025);filter:brightness(.82) saturate(1)
}
.product-section .video-card.gp68-video-trigger::after,
.product-section .video-card.gp67-drive-video-trigger::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.62));pointer-events:none
}
.gp68-video-trigger .gp68-video-play,
.gp67-drive-video-trigger .gp67-video-play{
  position:absolute;z-index:3;left:50%;top:50%;transform:translate(-50%,-50%);
  width:68px;height:68px;border-radius:50%;display:grid;place-items:center;
  background:rgba(255,255,255,.94);color:#080b10;font-size:20px;padding-left:4px;
  box-shadow:0 18px 50px rgba(0,0,0,.32)
}
.product-section .gp68-video-trigger .video-label,
.product-section .gp67-drive-video-trigger .video-label{z-index:3!important}

/* Visible keyboard focus — the v67 player had none. */
.gp68-video-trigger:focus-visible,
.gp67-drive-video-trigger:focus-visible{outline:2px solid #efc766;outline-offset:3px}

/* ------------------------------------------------- opens-in-Drive cards
   A video with only a Google Drive id cannot stream into the page (Google
   answers 403 to any cross-site request), so its card opens Drive in a new
   tab. Say so on the card rather than surprising the visitor.
---------------------------------------------------------------------- */
.gp68-video-external{
  position:absolute;z-index:4;left:14px;top:14px;
  display:inline-flex;align-items:center;gap:6px;
  padding:6px 11px;border-radius:999px;
  border:1px solid rgba(240,200,107,.42);background:rgba(8,12,18,.82);
  color:#efc766;font-size:10.5px;font-weight:800;letter-spacing:.04em;
  backdrop-filter:blur(6px);pointer-events:none
}
.gp68-video-external::before{content:"↗";font-size:11px}

/* Industry pages render the same idea as a linked poster. */
.case-video-media.case-video-external{
  position:relative;display:block;overflow:hidden;background:#0d131c;cursor:pointer
}
.case-video-media.case-video-external img{
  display:block;width:100%;height:100%;object-fit:cover;
  filter:brightness(.74) saturate(.92);transition:transform .45s ease,filter .45s ease
}
.case-video-media.case-video-external:hover img{transform:scale(1.03);filter:brightness(.85) saturate(1)}
.case-video-media.case-video-external .case-video-play{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  width:62px;height:62px;border-radius:50%;display:grid;place-items:center;
  background:rgba(255,255,255,.94);color:#080b10;font-size:19px;padding-left:4px;
  box-shadow:0 18px 50px rgba(0,0,0,.32)
}
.case-video-media.case-video-external:focus-visible{outline:2px solid #efc766;outline-offset:3px}

@media(max-width:767px){
  .gp68-video-external{left:10px;top:10px;padding:5px 9px;font-size:10px}
  .case-video-media.case-video-external .case-video-play{width:52px;height:52px;font-size:16px}
}

/* ---------------------------------------------------------------- modal */

.gp68-video-modal{
  position:fixed;inset:0;z-index:2147483000;
  display:none;align-items:center;justify-content:center;
  padding:18px;
  /* Respect the iPhone notch / home indicator. */
  padding:max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right))
          max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));
}
.gp68-video-modal[hidden]{display:none!important}
.gp68-video-modal.is-open{display:flex}

.gp68-video-backdrop{position:absolute;inset:0;background:rgba(2,5,9,.88);backdrop-filter:blur(10px)}

.gp68-video-panel{
  position:relative;z-index:2;width:min(980px,100%);
  max-height:calc(100vh - 28px);
  max-height:calc(100dvh - 28px);
  overflow:auto;-webkit-overflow-scrolling:touch;
  border:1px solid rgba(255,255,255,.12);border-radius:24px;background:#080c12;
  box-shadow:0 30px 120px rgba(0,0,0,.55);padding:14px
}

.gp68-video-close{
  position:absolute;z-index:5;right:20px;top:20px;width:42px;height:42px;
  border:1px solid rgba(255,255,255,.18);border-radius:50%;
  background:rgba(4,7,11,.78);color:#fff;font-size:27px;line-height:1;
  display:grid;place-items:center;cursor:pointer
}
.gp68-video-close:focus-visible{outline:2px solid #efc766;outline-offset:2px}

/* ---------------------------------------------------------------- stage */

.gp68-video-stage{
  position:relative;width:100%;aspect-ratio:16/9;
  border-radius:16px;overflow:hidden;background:#000;
  display:grid;place-items:center
}
/* Never let the player grow taller than the viewport on short/landscape
   screens, or the native controls end up off-screen. */
.gp68-video-el{
  display:block;width:100%;height:100%;
  max-height:calc(100vh - 150px);
  max-height:calc(100dvh - 150px);
  border:0;background:#000;object-fit:contain
}

.gp68-video-status{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  margin:0;padding:10px 16px;max-width:min(90%,420px);
  border-radius:12px;background:rgba(4,7,11,.82);
  color:#e7eaf0;font-size:13px;font-weight:650;text-align:center;
  opacity:0;visibility:hidden;transition:opacity .2s ease;pointer-events:none
}
.gp68-video-status.is-visible{opacity:1;visibility:visible}
.gp68-video-status.is-error{color:#ffd9d9;background:rgba(60,10,10,.9)}

/* When every source failed, drop the black box and lean on the link. */
.gp68-video-modal.has-error .gp68-video-stage{aspect-ratio:auto;min-height:150px;background:#0b0f15}
.gp68-video-modal.has-error .gp68-video-el{display:none}
.gp68-video-modal.has-error .gp68-video-link{
  background:rgba(240,200,107,.12);border:1px solid rgba(240,200,107,.4);
  padding:10px 15px;border-radius:999px
}

/* ----------------------------------------------------------------- meta */

.gp68-video-meta{display:grid;grid-template-columns:1fr auto;align-items:end;gap:8px 18px;padding:16px 6px 5px}
.gp68-video-meta small{grid-column:1;color:#d9b45a;font-size:10px;letter-spacing:.16em;font-weight:850}
.gp68-video-meta h3{grid-column:1;margin:0;color:#f2f4f7;font-size:20px}
.gp68-video-meta a{grid-column:2;grid-row:1/3;color:#efc766;font-size:12px;font-weight:750;text-decoration:none}
.gp68-video-meta a:hover{text-decoration:underline}

body.gp68-modal-lock{overflow:hidden!important}

/* ------------------------------------------------------------ responsive */

@media(max-width:767px){
  .gp67-phone-list{display:grid;grid-template-columns:1fr;gap:8px;margin-top:18px}
  .gp67-phone{justify-content:center;width:100%}

  .product-section .video-card.gp68-video-trigger,
  .product-section .video-card.gp67-drive-video-trigger{min-height:230px}
  .product-section .video-card.gp68-video-trigger img,
  .product-section .video-card.gp67-drive-video-trigger img{height:230px}

  .gp68-video-modal{padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}
  .gp68-video-panel{padding:8px;border-radius:17px;max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px)}
  .gp68-video-stage{border-radius:12px}
  .gp68-video-el{max-height:calc(100vh - 120px);max-height:calc(100dvh - 120px)}
  .gp68-video-close{right:13px;top:13px;width:38px;height:38px;font-size:24px}
  .gp68-video-meta{display:block;padding:13px 5px 7px}
  .gp68-video-meta h3{font-size:16px;margin:3px 0 9px}
  .gp68-video-meta a{display:inline-block}
}

/* Phones held sideways: the panel chrome has to shrink or the video
   cannot fit at all. */
@media(max-height:500px) and (orientation:landscape){
  .gp68-video-panel{padding:6px;border-radius:12px}
  .gp68-video-meta{display:none}
  .gp68-video-el{max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px)}
  .gp68-video-close{right:8px;top:8px;width:32px;height:32px;font-size:21px}
}

@media(prefers-reduced-motion:reduce){
  .product-section .video-card.gp68-video-trigger img,
  .product-section .video-card.gp67-drive-video-trigger img{transition:none}
  .product-section .video-card.gp68-video-trigger:hover img,
  .product-section .video-card.gp67-drive-video-trigger:hover img{transform:none}
}
