* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: #202020; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button { font: inherit; cursor: pointer; }
button:focus-visible { outline: 3px solid #c70029; outline-offset: -3px; }
main { max-width: 900px; margin: auto; padding: 0 20px 40px; }
.profile { display: flex; align-items: center; gap: 24px; padding: 36px 0 30px; }
.avatar { width: 84px; height: 84px; flex: none; border-radius: 50%; object-fit: cover; }
.handle { font-size: 1.4rem; font-weight: 600; margin: 0 0 4px; }
.name { font-weight: 600; margin: 0; }
.bio { margin: 2px 0 0; color: #555; }
.label { margin: 0; border-top: 1px solid #e5e5e5; text-align: center; padding: 14px 0 12px; font-size: .875rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 500; color: #666; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.tile { position: relative; display: block; padding: 0; border: 0; background: #eee; aspect-ratio: 4 / 5; overflow: hidden; }
.tile img { width: 100%; height: 100%; display: block; object-fit: cover; }
.tile:hover img { filter: brightness(.91); }
.video-mark { position: absolute; top: 10px; right: 10px; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 5px; background: #161515a0; }
.video-mark::before { content: ""; border-left: 9px solid #fff; border-block: 6px solid transparent; transform: translateX(1px); }
footer { text-align: center; font-size: .875rem; color: #666; padding: 19px 12px 0; }
dialog { padding: 0; border: 0; width: min(620px, 100vw); max-height: 94dvh; background: white; color: #202020; overflow: auto; }
dialog::backdrop { background: #000b; }
.post-head { min-height: 56px; display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: white; border-bottom: 1px solid #eee; }
.mini { width: 30px; height: 30px; }
.post-head form { margin-left: auto; }
.close { width: 38px; height: 38px; border: 0; background: none; color: #202020; font-size: 1.65rem; line-height: 1; }
dialog video { display: block; width: 100%; height: min(74dvh, 850px); background: #111; }
.caption { padding: 14px 16px 20px; margin: 0; font-size: .9375rem; }
.caption strong { margin-right: 4px; }
@media (max-width: 600px) {
  main { padding: 0 0 24px; }
  .profile { padding: 24px 18px; gap: 16px; }
  .avatar { width: 68px; height: 68px; }
  .handle { font-size: 1.22rem; }
  .grid { gap: 3px; }
  .label { padding: 11px; }
  .video-mark { top: 6px; right: 6px; }
  dialog { max-height: 100dvh; }
  .mini { width: 30px; height: 30px; }
}
