/* GameTracker V4 interaction/details layer — NOT WIRED TO PRODUCTION. */

.gtv4-lock { overflow: hidden; }

/* The base Quick View shell declares display:grid, so explicitly restore the
   semantic hidden state instead of relying on the UA [hidden] rule. */
.gtv4-quickview[hidden] { display: none !important; }

.gtv4-qv__loading,
.gtv4-qv__error {
  min-height: 320px;
  display: grid;
  place-content: center;
  gap: 14px;
  padding: 32px;
  color: var(--gtv4-muted);
  text-align: center;
}

.gtv4-qv__error strong { color: var(--gtv4-text); font-size: 18px; }

.gtv4-qv__play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 18px;
  background: rgba(5,8,13,.78);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 40px rgba(0,0,0,.36);
  transition: transform 140ms var(--gtv4-ease), background 140ms ease;
}

.gtv4-qv__play svg { width: 27px; height: 27px; }
.gtv4-qv__play:active { transform: translate(-50%, -50%) scale(.96); }
.gtv4-qv__play:focus-visible { outline: 2px solid var(--gtv4-cyan); outline-offset: 3px; }

.gtv4-qv__media { position: relative; margin-top: 14px; }
.gtv4-qv__media iframe { width: 100%; height: 100%; min-height: 220px; border: 0; display: block; }

.gtv4-qv__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--gtv4-line);
  border-radius: 14px;
  background: var(--gtv4-line);
}

.gtv4-qv__facts > div {
  min-height: 76px;
  padding: 13px;
  background: var(--gtv4-panel);
}

.gtv4-qv__facts span,
.gtv4-qv__editorial strong {
  display: block;
  color: var(--gtv4-muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.gtv4-qv__facts strong {
  display: block;
  margin-top: 7px;
  color: var(--gtv4-text);
  font-size: 11px;
  line-height: 1.4;
}

.gtv4-qv__editorial strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--gtv4-amber);
}

.gtv4-qv__editorial strong svg { width: 17px; height: 17px; }
.gtv4-qv__editorial p { margin: 8px 0 0; color: #d7dfe7; font-size: 11px; line-height: 1.5; }

.gtv4-state-control { position: relative; min-width: 0; }
.gtv4-state-control > .gtv4-action {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
}
.gtv4-state-control > .gtv4-action svg { width: 19px; height: 19px; }

.gtv4-state-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 9px);
  z-index: 15;
  width: min(290px, calc(100vw - 28px));
  padding: 7px;
  border: 1px solid var(--gtv4-line);
  border-radius: 16px;
  background: rgba(10,16,23,.98);
  box-shadow: 0 22px 60px rgba(0,0,0,.54);
  backdrop-filter: blur(18px);
  transform-origin: bottom left;
  animation: gtv4-menu-in 150ms var(--gtv4-ease) both;
}
.gtv4-state-menu[hidden] { display: none; }

.gtv4-state-menu button {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: 22px 1fr 18px;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--gtv4-text);
  font: 700 11px/1 Inter, sans-serif;
  text-align: left;
  cursor: pointer;
}
.gtv4-state-menu button svg { width: 18px; height: 18px; color: var(--gtv4-muted); }
.gtv4-state-menu button:hover,
.gtv4-state-menu button:focus-visible { outline: none; background: rgba(22,217,255,.08); }
.gtv4-state-menu button[aria-checked="true"] { color: var(--gtv4-cyan); background: rgba(22,217,255,.08); }
.gtv4-state-menu button[aria-checked="true"] svg { color: var(--gtv4-cyan); }
.gtv4-state-menu button:disabled { opacity: .35; cursor: not-allowed; }
.gtv4-state-menu button.is-remove { grid-template-columns: 1fr; margin-top: 4px; border-top: 1px solid var(--gtv4-line-soft); color: var(--gtv4-red); }

.gtv4-action--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  cursor: pointer;
}
.gtv4-action--primary svg { width: 19px; height: 19px; }

.gtv4-section__link[type="button"] {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@keyframes gtv4-menu-in {
  from { opacity: 0; transform: translateY(6px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 820px) {
  .gtv4-qv__media iframe { min-height: 160px; }
  .gtv4-qv__facts { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gtv4-qv__facts > div { min-height: 66px; padding: 11px; }
  .gtv4-state-menu { position: fixed; left: 14px; right: 14px; bottom: calc(88px + env(safe-area-inset-bottom)); width: auto; }
}

/* At <=430px the V4 shell switches from 16px to 14px horizontal padding.
   Keep edge-to-edge rails aligned to that same inset to avoid a 2px document
   overflow on iPhone-sized viewports. */
@media (max-width: 430px) {
  .gtv4-rail { margin-inline: -14px; padding-inline: 14px; }
}

@media (max-width: 380px) {
  .gtv4-qv__facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .gtv4-state-menu { animation: none; }
  .gtv4-qv__play { transition: none; }
}
