
.after-close:focus-visible { outline: 3px solid #e4a824; outline-offset: 3px; }
.after-dialog {
  box-sizing: border-box;
  width: min(960px, calc(100% - 28px));
  max-width: none;
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 0;
  border: 1px solid #3e4467;
  border-radius: 12px;
  background: #101226;
  color: #fff;
  box-shadow: 0 24px 80px #080914b3;
}
.after-dialog::backdrop { background: #080a17d9; }
.after-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 4px solid #d6192b; }
.after-dialog-head p { margin: 0 0 2px; font-size: .68rem; font-weight: 800; color: #b8bcff; letter-spacing: .12em; }
.after-dialog-head h2 { margin: 0; font-size: clamp(1.23rem, 3vw, 1.8rem); line-height: 1; letter-spacing: -.025em; font-style: italic; }
.after-close { width: 40px; height: 40px; border-radius: 5px; color: white; background: #262a46; border: 1px solid #424867; cursor: pointer; font: 1.5rem/1 system-ui; }
.after-close:hover { background: #b91526; }
.after-dialog video { display: block; width: 100%; max-height: calc(100dvh - 105px); aspect-ratio: 16/9; background: #050608; object-fit: contain; }
body:has(.after-dialog[open]) { overflow: hidden; }



.pst-thanks {
  --thanks-ink: #171832;
  --thanks-lavender: #b8bcff;
  --thanks-gold: #ffd17b;
  top: clamp(84px, 8vw, 125px);
  width: min(47%, 550px);
}
.pst-thanks::before { inset: -42px -34px -38px -40px; }
.pst-thanks-content {
  padding: clamp(17px, 2vw, 28px);
  border-left: 3px solid #e1a021;
  border-top: 1px solid #b8bcff3b;
  background: linear-gradient(112deg, #171832f7 0%, #20213fed 65%, #212342b0 100%);
  box-shadow: 0 12px 28px #10112538;
}
.pst-thanks-kicker {
  margin: 0 0 9px;
  color: #fff;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .12em;
  line-height: 1.35;
}
.pst-thanks-kicker > span:first-child { color: var(--thanks-gold); }
.pst-thanks-kicker .pst-thanks-place { color: var(--thanks-lavender); }
.pst-thanks h2 {
  margin: 0 0 10px;
  color: var(--thanks-lavender);
  font-size: clamp(1.9rem, 3.2vw, 3.1rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -.055em;
  line-height: 1.02;
}
.pst-thanks-copy {
  max-width: 46ch;
  margin: 0;
  color: #f0f0fa;
  font-size: clamp(.88rem, 1.15vw, 1rem);
  line-height: 1.48;
}
.pst-thanks-film {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid #b8bcff4d;
}
.pst-thanks-film div { display: grid; gap: 2px; line-height: 1.25; }
.pst-thanks-film strong { color: #fff; font-size: .9rem; }
.pst-thanks-film div span { color: var(--thanks-lavender); font-size: .73rem; }
.pst-thanks-play {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 6px 15px 6px 7px;
  border: 1px solid #ff858066;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(125deg, #d81f32, #b9142d);
  box-shadow: inset 0 1px 0 #ffffff23, 0 5px 14px #0e0f2490;
  font: 800 .91rem/1.2 Arial, sans-serif;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .18s, box-shadow .18s, transform .18s;
}
.pst-thanks-play:hover {
  background: linear-gradient(125deg, #e52b3e, #bd152f);
  box-shadow: inset 0 1px 0 #ffffff2c, 0 7px 16px #0e0f2490;
  transform: translateY(-1px);
}
.pst-thanks-play:focus-visible { outline: 3px solid var(--thanks-gold); outline-offset: 4px; }
.pst-play-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border: 1px solid #ffffff44;
  border-radius: 50%;
  background: #ffffff24;
}
.pst-play-icon::before {
  content: "";
  margin-left: 2px;
  border-block: 4.5px solid transparent;
  border-left: 7px solid #fff;
}
@media (prefers-reduced-motion: reduce) {
  .pst-thanks-play { transition: none; }
  .pst-thanks-play:hover { transform: none; }
}
@media (max-width: 1060px) {
  .pst-thanks { top: auto; width: min(100%, 515px); }
}

.after-dialog video { max-height: calc(100dvh - 180px); }
.after-player-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; padding:10px 16px; }
.after-player-actions button { min-height:44px; }
.after-player-actions button[hidden] { display:none; }
.after-player-actions a { color:#b8bcff; font-size:.85rem; text-decoration:underline; }
.after-player-actions p { margin:0; font-size:.85rem; }
.after-player-actions p:empty { display:none; }

.after-inline-link { display:inline; padding:0; border:0; background:none; color:inherit; font:inherit; text-decoration:underline; cursor:pointer; }
.after-inline-link:focus-visible { outline:2px solid #ffd17b; outline-offset:3px; }
