/* Small static badges and bounded, single-run heading effects. */
.quick-nav .blog-nav-link { position: relative; }
.blog-nav-badge {
  position: absolute; top: -9px; right: 9px; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 19px; padding: 2px 7px; border: 1px solid #ffffff50; border-radius: 999px;
  color: #20121b; background: var(--accent-soft,#ff9bc4);
  font: 800 9px/1.25 "DM Sans",sans-serif; letter-spacing: .04em; white-space: nowrap;
  pointer-events: none;
}
.blog-nav-badge[hidden] { display: none; }
.content-new-badge, .video-state-badge {
  display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto;
  padding: 5px 8px; border: 1px solid #ff9cc54d; border-radius: 7px;
  color: #ffc1dc; background: #341f30; font: 800 .62rem/1.15 "DM Sans",sans-serif;
  letter-spacing: .075em; white-space: nowrap;
}
.content-new-badge[hidden], .video-state-badge[hidden], .video-memory-progress[hidden], .video-resume-note[hidden] { display: none; }
.video-state-badge { position: absolute; top: 12px; left: 12px; z-index: 3; pointer-events: none; }
.video-state-badge.is-watched { color: #c2e7d6; background: #17332bf2; border-color: #b4d9c52b; font-weight: 600; letter-spacing: .02em; }
.video-memory-progress { position: absolute; bottom: 0; left: 0; z-index: 3; height: 3px; width: 100%; background: #f6a4c5; transform-origin: left; pointer-events: none; }
.georgia-video-card-copy .video-memory-action { display: block; font-size: .69rem; line-height: 1.35; letter-spacing: .015em; text-transform: none; font-weight: 650; color: #e8d9e1; }
.video-resume-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -3px 0 12px; color: #d0c1cc; font-size: .72rem; line-height: 1.35; }
.video-resume-note button { min-height: 44px; flex: 0 0 auto; padding: 8px 12px; border: 1px solid #e7c2d33b; border-radius: 10px; color: #f9d2e3; background: #b66b8b14; font: 700 .72rem/1.3 "DM Sans",sans-serif; cursor: pointer; }
.video-resume-note button:focus-visible { outline: 2px solid #ffc1dc; outline-offset: 3px; }
.qr-modal .video-modal-card { overflow-y: auto; overscroll-behavior: contain; }
.hero-name { position: relative; isolation: isolate; }
.hero-name.name-shine::after {
  content: attr(data-shine-text); position: absolute; inset: -.18em -.22em; padding: .18em .22em;
  color: transparent; background: linear-gradient(108deg,transparent 38%,#ffe3b788 47%,#fff7e8 50%,#ffd9a570 53%,transparent 62%) 160% 0 / 280% 100%;
  -webkit-background-clip: text; background-clip: text; pointer-events: none;
  animation: name-light-pass 1.7s ease-in-out .2s both;
}
.name-touch-glow { position: absolute; z-index: 1; display: block; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: radial-gradient(circle,#fff6da70 0,#ffdca12b 32%,transparent 68%); pointer-events: none; animation: name-touch-light .75s ease-out both; }
@keyframes name-light-pass { from { background-position: 160% 0; opacity: 0; } 20%,75% { opacity: .8; } to { background-position: -60% 0; opacity: 0; } }
@keyframes name-touch-light { from { transform: scale(.35); opacity: .7; } to { transform: scale(1.15); opacity: 0; } }
html[data-season-paused="true"] .hero-name.name-shine::after,
html[data-season-paused="true"] .name-touch-glow { animation-play-state: paused; }
@media (max-width:720px) {
  .video-state-badge { top: 9px; left: 8px; max-width: calc(100% - 56px); font-size: .52rem; padding: 4px 6px; white-space: normal; line-height: 1.2; }
  .georgia-video-item .georgia-video-card { aspect-ratio: 4 / 3; }
  .georgia-video-card-copy .video-memory-action { display: block; font-size: .62rem; line-height: 1.25; }
  .video-resume-note { gap: 6px; margin-bottom: 8px; }
}
@media (prefers-reduced-motion:reduce) {
  .hero-name.name-shine::after, .name-touch-glow { display: none; animation: none; }
}
html[data-season-motion="still"] .hero-name.name-shine::after,
html[data-season-motion="still"] .name-touch-glow { display: none; animation: none; }

/* Android video compositing: one opaque, untransformed surface, one scroll owner.
   Background effects return immediately when the player closes. */
@media (pointer: coarse), (max-width:720px) {
  #video-modal {
    background: #0d0f16 !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
  }
  #video-modal[hidden] { display: none !important; }
  #video-modal .video-modal-card {
    margin: auto;
    max-height: none;
    overflow: visible;
    transform: none !important;
    transition: none !important;
    animation: none !important;
    filter: none !important;
    box-shadow: none;
  }
  #video-modal .video-modal-frame {
    width: min(100%, 340px, max(120px, calc((100svh - 230px) * .5625)));
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
  }
  #video-modal video { transform: none !important; filter: none !important; }
  body.video-playing :is(main, main *, #georgia-ambient, #georgia-ambient *, .site-controls, .site-controls *, #night-owl, #night-owl *) {
    visibility: hidden !important;
    animation-play-state: paused !important;
  }
  body.video-playing :is(main, main *, #georgia-ambient, #georgia-ambient *, .site-controls, .site-controls *)::before,
  body.video-playing :is(main, main *, #georgia-ambient, #georgia-ambient *, .site-controls, .site-controls *)::after {
    animation-play-state: paused !important;
  }
}
