
.grw3{
  position: fixed;
  left: max(28px, env(safe-area-inset-left));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 2147483000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --grw-accent: #0f766e;
  --grw-accent-2: #22c55e;
  --grw-text: #0f172a;
  --grw-muted: #64748b;
  --grw-card-bg: rgba(255,255,255,.82);
  opacity: 0;
  transform: translateX(-42px);
  transition: opacity .52s ease, transform .62s cubic-bezier(.16,1,.3,1);
  -webkit-text-size-adjust: 100%;
}
.grw3, .grw3 *{ box-sizing: border-box; }
.grw3.is-mounted{
  opacity: 1;
  transform: translateX(0);
}

/* Bubble exactly “pill” */
.grw3__bubble{
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.96);
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.grw3__bubbleTitle{
  font-weight: 900;
  font-size: 14px;
  line-height: 1.1;
  color:#111;
}
.grw3__bubbleSub{
  font-weight: 900;
  font-size: 12px;
  line-height: 1.1;
  color:#d10000;
  margin-top: 2px;
}

/* Mini window */
.grw3__mini{
  position: absolute;
  left: 0;
  bottom: 58px;
  width: 170px;
  max-width: min(170px, calc(100vw - 24px));
  background: transparent;
  border-radius: 4px;
  overflow: hidden;

  opacity: 0;
  transform: translateX(-18px) scale(.98);
  pointer-events: none;
  transition: width .42s cubic-bezier(.16,1,.3,1), max-width .42s cubic-bezier(.16,1,.3,1), transform .42s cubic-bezier(.16,1,.3,1), opacity .34s ease;
}
.grw3__mini.is-open{
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}
.grw3__mini.is-expanded{
  width: min(340px, calc(100vw - 24px));
  max-width: min(340px, calc(100vw - 24px));
}
.grw3__mini.is-hidden-for-full{
  display: none !important;
}
.grw3__mini.is-open:hover,
.grw3__mini.is-open:focus-within{
  transform: translateX(0) scale(1.03);
}

.grw3__close{
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 28px;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.grw3__close:hover,
.grw3__close:focus-visible{
  transform: scale(1.04);
  background: rgba(0,0,0,.58);
  box-shadow: 0 8px 18px rgba(2,6,23,.32);
}
.grw3__close:focus-visible{
  outline: 2px solid rgba(255,255,255,.35);
  outline-offset: 2px;
}
.grw3__close--overlay{
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  opacity: 0;
  transform: scale(.9);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.grw3__sound--overlay{
  position: absolute;
  top: 8px;
  right: 42px;
  z-index: 3;
  opacity: 0;
  transform: scale(.9);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  display: grid;
  place-items: center;
}
.grw3__sound--mini{
  right: 42px;
  top: 6px;
}
.grw3__soundSvg{
  width: 15px;
  height: 15px;
}
.grw3__soundBase,
.grw3__soundWave{
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.grw3__soundMute{
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  opacity: 0;
  transition: opacity .16s ease;
}
.grw3__sound--overlay.is-muted .grw3__soundWave{
  opacity: 0;
}
.grw3__sound--overlay.is-muted .grw3__soundMute{
  opacity: 1;
}

.grw3__miniClose{
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 28px;
  opacity: 0;
  transform: scale(.9);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.grw3__mini:hover .grw3__miniClose,
.grw3__mini:focus-within .grw3__miniClose{
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Mini video visible immediately */
.grw3__miniVideoWrap{
  margin: 0;
  border-radius: 4px;
  border: 3px solid #fff;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  position: relative;
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
  transform: translateZ(0);
  transition: box-shadow .22s ease;
  touch-action: manipulation;
}
.grw3__miniVideoWrap::after{
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 4px;
  border: 1px solid rgba(52,211,153,.0);
  box-shadow: 0 0 0 rgba(16,185,129,0);
  transition: box-shadow .22s ease;
  pointer-events: none;
}
.grw3__miniVideo{
  width: 100%;
  aspect-ratio: 9 / 16;
  display: block;
  object-fit: cover;
  background:#000;
}
.grw3__loader{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  margin-left: -17px;
  margin-top: -17px;
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,.28);
  border-top-color: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transition: opacity .14s ease;
}
.grw3__loader.is-visible{
  opacity: 1;
  animation: grw3spin .8s linear infinite;
}
.grw3__loader--full{
  width: 40px;
  height: 40px;
  margin-left: -20px;
  margin-top: -20px;
}
@keyframes grw3spin{
  to { transform: rotate(360deg); }
}
.grw3__tapHint{
  position:absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  background: rgba(0,0,0,.6);
  color:#fff;
  font-weight: 700;
  font-size: 9px;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 6px);
  transition: opacity .3s ease, transform .34s cubic-bezier(.16,1,.3,1);
}
.grw3__mini.is-open .grw3__tapHint{
  opacity: 1;
  transform: translate(-50%, 0);
  transition-delay: .2s;
}
.grw3__miniVideoWrap:hover,
.grw3__miniVideoWrap:focus-visible{
  box-shadow: 0 18px 32px rgba(2,6,23,.30);
}
.grw3__miniVideoWrap:hover::after,
.grw3__miniVideoWrap:focus-visible::after{
  box-shadow: 0 0 0 4px rgba(16,185,129,.12);
}
.grw3__miniVideoWrap:focus-visible{
  outline: none;
}

/* Actions */
.grw3__actions{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 0 14px 14px;
}
.grw3__actions--hidden{
  display: none;
}
.grw3__actionsTitle{
  color: var(--grw-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  padding: 12px 14px 10px;
}
.grw3__btn{
  display: block;
  text-align: left;
  padding: 12px 14px;
  border-radius: 4px;
  text-decoration:none;
  border: 1px solid rgba(15,23,42,.12);
  color: var(--grw-text);
  background: var(--grw-card-bg);
  box-shadow: 0 10px 26px rgba(2,6,23,.08);
  backdrop-filter: blur(8px);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.grw3__btn--primary{
  border-color: transparent;
  color:#fff;
  background:
    linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,0)) padding-box,
    linear-gradient(130deg, var(--grw-accent), var(--grw-accent-2));
}
.grw3__btnTitle{
  display:block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}
.grw3__btnMeta{
  display:block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--grw-muted);
  line-height: 1.2;
}
.grw3__btn--primary .grw3__btnMeta{
  color: rgba(255,255,255,.88);
}
.grw3__btn:hover,
.grw3__btn:focus-visible{
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(2,6,23,.14);
  border-color: rgba(15,23,42,.22);
}
.grw3__btn:focus-visible{
  outline: 2px solid rgba(15,118,110,.45);
  outline-offset: 2px;
}
.grw3__note{
  padding: 0 12px 12px;
  font-size: 12px;
  color:#777;
}

/* Overlay full */
.grw3__overlay{
  position: fixed;
  inset: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity .34s ease;
}
.grw3__overlay.is-open{
  opacity: 1;
  pointer-events: auto;
}
.grw3__sheet{
  position: absolute;
  left: max(28px, env(safe-area-inset-left));
  bottom: max(12px, env(safe-area-inset-bottom));
  width: min(340px, calc(100vw - 24px));
  background: linear-gradient(180deg, rgba(248,250,252,.95), rgba(255,255,255,.96));
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(2,6,23,.40);
  opacity: 0;
  transform: translateY(20px) scale(.97);
  transition: transform .42s cubic-bezier(.16,1,.3,1), opacity .34s ease;
  backdrop-filter: blur(10px);
}
.grw3__overlay.is-open .grw3__sheet{
  opacity: 1;
  transform: translateY(0) scale(1);
}

.grw3__fullWrap{
  background:#000;
  position: relative;
}
.grw3__pauseBadge{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.92);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: rgba(0,0,0,.52);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}
.grw3__pauseBadge.is-visible{
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.grw3__fullWrap:hover .grw3__close--overlay,
.grw3__fullWrap:focus-within .grw3__close--overlay,
.grw3__fullWrap:hover .grw3__sound--overlay,
.grw3__fullWrap:focus-within .grw3__sound--overlay{
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.grw3__progress{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255,255,255,.22);
  z-index: 2;
}
.grw3__progress--mini{
  opacity: 0;
  pointer-events: none;
}
.grw3__progressFill{
  width: 0%;
  height: 100%;
  background: #ce181e;
  transition: width .12s linear;
}
.grw3__fullVideo{
  width: 100%;
  aspect-ratio: 9 / 16;
  display:block;
  background:#000;
  cursor: pointer;
  touch-action: manipulation;
}
.grw3__cta{
  position: absolute;
  left: 50%;
  bottom: 44px;
  transform: translateX(-50%) translateY(8px) scale(.98);
  z-index: 2;
  width: 100%;
  max-width: calc(70% - 28px);
  text-align: center;
  text-decoration: none;
  background: #ce181e;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  padding: 14px 28px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,.28);
  opacity: 1;
  transition: opacity .34s ease, transform .42s cubic-bezier(.16,1,.3,1), box-shadow .18s ease;
}
.grw3__cta:hover,
.grw3__cta:focus-visible{
  box-shadow: 0 12px 26px rgba(0,0,0,.34);
  transform: translateX(-50%) translateY(6px) scale(1);
}
.grw3__cta:focus-visible{
  outline: 2px solid rgba(255,255,255,.45);
  outline-offset: 2px;
}
.grw3__cta--hidden{
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(14px) scale(.96);
}
.grw3__cta--mini{
  bottom: 50px;
  opacity: 0;
  pointer-events: none;
}
.grw3__mini.is-expanded .grw3__cta--mini:not(.grw3__cta--hidden){
  opacity: 1;
  pointer-events: auto;
}
.grw3__time--mini{
  opacity: 0;
}

.grw3__mini.is-expanded .grw3__tapHint{
  opacity: 0;
  transform: translate(-50%, 6px);
  pointer-events: none;
}
.grw3__mini.is-expanded .grw3__progress--mini,
.grw3__mini.is-expanded .grw3__time--mini{
  opacity: 1;
  pointer-events: auto;
}
.grw3__mini.is-expanded .grw3__sound--mini{
  top: 5px;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.grw3__mini.is-expanded .grw3__miniClose{
  top: 8px;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.grw3__time{
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  font-size: 11px;
  line-height: 1;
  color: #fff;
  background: rgba(0,0,0,.55);
  padding: 6px 8px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

/* Mobile: full width bottom-sheet */
@media (max-width: 560px){
  .grw3{
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
  }
  .grw3__bubble{ width: 100%; }
  .grw3__mini{
    left: 0;
    right: 0;
    width: 148px;
    max-width: 148px;
  }
  .grw3__mini.is-expanded{
    width: min(280px, calc(100vw - 32px));
    max-width: min(280px, calc(100vw - 32px));
  }
  .grw3__tapHint{ font-size: 10px; }
  .grw3__cta{
    width: calc(100% - 20px);
    max-width: none;
    font-size: 14px;
    padding: 12px 16px;
  }
  .grw3__time{
    font-size: 10px;
    padding: 5px 7px;
  }
  .grw3__sheet{
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    width: auto;
  }
}

@media (hover: none) and (pointer: coarse){
  .grw3__mini.is-open:hover,
  .grw3__mini.is-open:focus-within{
    transform: translateX(0) scale(1);
  }
  .grw3__miniVideoWrap:hover,
  .grw3__miniVideoWrap:focus-visible{
    box-shadow: 0 12px 30px rgba(0,0,0,.28);
  }
  .grw3__miniVideoWrap:hover::after,
  .grw3__miniVideoWrap:focus-visible::after{
    box-shadow: none;
  }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce){
  .grw3__mini, .grw3__overlay, .grw3__sheet{ transition:none; }
}
