/* YELLA v1.2.99 — VERIFIED CARD BORDER / PHOTO GEOMETRY FIX.
   The previous v1.2.96–98 frame used an absolutely positioned nine-slice
   pseudo-element extending 20px beyond the card. Its bright edge was NOT the
   photo's clipping boundary, so photos looked outside/misaligned at different
   widths. The actual card now owns the neon rim and clips ALL content.
   No changes to live photo sources, standings, click targets or swipe JS. */
html body #page-reports .yc84-showcase #yella-record-carousel .yc36-card.rank-1 {
  --yc99-rim:#ffd354;
  --yc99-highlight:#fff3ae;
  --yc99-rim-dark:#b97503;
  --yc99-glow:rgba(255,178,26,.62);
}
html body #page-reports .yc84-showcase #yella-record-carousel .yc36-card.rank-2 {
  --yc99-rim:#a8e9ff;
  --yc99-highlight:#f2fcff;
  --yc99-rim-dark:#4f8dc2;
  --yc99-glow:rgba(91,205,255,.60);
}
html body #page-reports .yc84-showcase #yella-record-carousel .yc36-card.rank-3 {
  --yc99-rim:#ffae67;
  --yc99-highlight:#ffe2b6;
  --yc99-rim-dark:#a95222;
  --yc99-glow:rgba(255,122,42,.64);
}
/* One structural border and ONE rounded clipping edge; no overlaid image frame. */
html body #page-reports .yc84-showcase #yella-record-carousel .yc36-card.yella-verified-photo-card,
html[data-yella-theme="dark"] body #page-reports .yc84-showcase #yella-record-carousel .yc36-card.yella-verified-photo-card {
  position:relative!important;
  box-sizing:border-box!important;
  display:block!important;
  padding:0!important;
  border:3px solid var(--yc99-rim)!important;
  border-image:none!important;
  border-radius:19px!important;
  background:#021c29!important;
  background-image:none!important;
  overflow:hidden!important;
  isolation:isolate!important;
  box-shadow:
    0 12px 25px rgba(0,4,12,.64),
    0 0 0 1px var(--yc99-rim-dark),
    0 0 8px 1px var(--yc99-glow),
    0 0 19px 2px var(--yc99-glow),
    inset 0 0 0 1px var(--yc99-highlight)!important;
  transform:none!important;
}
/* Delete the old, independently sized frame image and old pseudo-rims. */
html body #page-reports .yc84-showcase #yella-record-carousel .yc36-card.yella-verified-photo-card::before,
html body #page-reports .yc84-showcase #yella-record-carousel .yc36-card.yella-verified-photo-card::after,
html[data-yella-theme="dark"] body #page-reports .yc84-showcase #yella-record-carousel .yc36-card.yella-verified-photo-card::before,
html[data-yella-theme="dark"] body #page-reports .yc84-showcase #yella-record-carousel .yc36-card.yella-verified-photo-card::after {
  content:none!important;
  display:none!important;
  border:0!important;
  border-image:none!important;
  background:none!important;
}
/* Button, image and overlays use the card's INNER padding box. The border
   itself is the boundary; no guessed inset, stretched artwork or magic width. */
html body #page-reports .yc84-showcase #yella-record-carousel .yc36-card .yc36-surface.yella-verified-photo-surface,
html[data-yella-theme="dark"] body #page-reports .yc84-showcase #yella-record-carousel .yc36-card .yc36-surface.yella-verified-photo-surface {
  display:block!important;
  position:absolute!important;
  inset:0!important;
  box-sizing:border-box!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  flex:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:15px!important;
  overflow:hidden!important;
  background:#041c2a!important;
  z-index:1!important;
}
html body #page-reports .yc84-showcase #yella-record-carousel .yc36-card .yc36-photo {
  display:block!important;
  position:absolute!important;
  inset:0!important;
  box-sizing:border-box!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  flex:none!important;
  border:0!important;
  border-radius:15px!important;
  overflow:hidden!important;
  clip-path:none!important;
  background:#051e2b!important;
}
html body #page-reports .yc84-showcase #yella-record-carousel .yc36-photo .yella-verified-catch-image,
html body #page-reports .yc84-showcase #yella-record-carousel .yc36-photo .yella-verified-catch-image.yc36-portrait {
  display:block!important;
  position:absolute!important;
  inset:0!important;
  box-sizing:border-box!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:cover!important;
  object-position:center!important;
  border:0!important;
  border-radius:0!important;
  transform:none!important;
}
html body #page-reports .yc84-showcase #yella-record-carousel .yc36-photo::after {
  content:""!important;
  position:absolute!important;
  inset:0!important;
  z-index:2!important;
  display:block!important;
  pointer-events:none!important;
  border-radius:inherit!important;
  background:linear-gradient(180deg,rgba(0,10,20,.18) 0%,transparent 31%,rgba(0,14,23,.14) 49%,rgba(0,14,24,.76) 82%,rgba(0,14,24,.93) 100%)!important;
}
html body #page-reports .yc84-showcase #yella-record-carousel .yc36-card .yc36-details {
  position:absolute!important;
  inset:auto 0 49px!important;
  box-sizing:border-box!important;
  display:grid!important;
  width:100%!important;
  max-width:100%!important;
  height:80px!important;
  min-height:0!important;
  flex:none!important;
  margin:0!important;
  padding:10px 17px 8px!important;
  border:0!important;
  border-radius:0!important;
  overflow:hidden!important;
  background:linear-gradient(180deg,transparent,rgba(0,15,25,.32))!important;
  z-index:4!important;
}
html body #page-reports .yc84-showcase #yella-record-carousel .yc36-card .yc84-footer {
  position:absolute!important;
  inset:auto 0 0!important;
  box-sizing:border-box!important;
  display:flex!important;
  width:100%!important;
  max-width:100%!important;
  height:49px!important;
  min-height:0!important;
  flex:none!important;
  margin:0!important;
  padding:5px 13px!important;
  border:0!important;
  border-top:1px solid rgba(190,233,242,.23)!important;
  border-radius:0 0 15px 15px!important;
  background:linear-gradient(90deg,rgba(0,19,30,.93),rgba(1,26,37,.90))!important;
  z-index:5!important;
  overflow:hidden!important;
}
html body #page-reports .yc84-showcase #yella-record-carousel .yc36-medal {z-index:9!important;}
html body #page-reports .yc84-showcase #yella-record-carousel .yc85-photo-wave{display:none!important;content:none!important;}
html body #page-reports .yc84-showcase #yella-record-carousel .yc36-surface:focus-visible {
  outline:2px solid var(--yc99-highlight)!important;
  outline-offset:-7px!important;
}
@media(max-width:700px) {
  html body #page-reports .yc84-showcase #yella-record-carousel .yc36-card.yella-verified-photo-card,
  html[data-yella-theme="dark"] body #page-reports .yc84-showcase #yella-record-carousel .yc36-card.yella-verified-photo-card {
    border-radius:17px!important;
  }
  html body #page-reports .yc84-showcase #yella-record-carousel .yc36-card .yc36-details {
    inset:auto 0 48px!important;
    height:75px!important;
    padding:9px 13px!important;
  }
  html body #page-reports .yc84-showcase #yella-record-carousel .yc36-card .yc84-footer {
    height:48px!important;
    padding:4px 11px!important;
    border-radius:0 0 13px 13px!important;
  }
}
@media (prefers-reduced-motion:reduce) {
  html body #page-reports .yc84-showcase #yella-record-carousel .yc36-card {transition:none!important;}
}
