.instagram-app {

    position: absolute;

    top: 0;
    left: 0;
    right: 0;
    bottom: 70px;

    overflow-y: auto;

    background: #ffffff;

    color: #000000;

}

.instagram-header {

    position: sticky;

    top: 0;

    z-index: 50;

    height: 54px;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 0 16px;

    background: white;

    border-bottom: 1px solid #dbdbdb;

}

.instagram-header h1 {

    margin: 0;

    font-size: 24px;

    font-weight: 700;

}

.back-button {

    text-decoration: none;

    color: black;

    font-size: 24px;

    line-height: 1;

}

.stories {

    display: flex;

    gap: 14px;

    overflow-x: auto;

    padding: 12px;

    border-bottom: 1px solid #dbdbdb;

}

.stories::-webkit-scrollbar {

    display: none;

}

.story {

    display: flex;

    flex-direction: column;

    align-items: center;

    flex-shrink: 0;

    cursor: pointer;

}

.story img {

    width: 66px;
    height: 66px;

    border-radius: 50%;

    border: 3px solid #e1306c;

    object-fit: cover;

    object-position: center 10%;

    display: block;

}

.story span {

    margin-top: 6px;

    font-size: 12px;

    max-width: 70px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

}

.post {

    margin-bottom: 20px;

}

.post-header {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 10px 12px;

}

.profile-pic {

    width: 34px;
    height: 34px;

    border-radius: 50%;

    object-fit: cover;

    object-position: center 10%;

    display: block;

    flex-shrink: 0;

}

.username {

    text-decoration: none;

    color: black;

    font-size: 14px;

    font-weight: 600;

}

.post-image {

    display: block;

    width: 100%;

    height: auto;

}

.post-actions {

    display: flex;

    gap: 16px;

    padding: 10px 12px;

}

.post-actions button {

    border: none;

    background: transparent;

    cursor: pointer;

    font-size: 24px;

    padding: 0;

}

.post-actions button:active {

    transform: scale(.9);

}

.like-button.liked {

    color: #ed4956;

}

.likes {

    padding: 0 12px;

    font-size: 14px;

    font-weight: 600;

}

.caption {

    padding: 8px 12px 0;

    font-size: 14px;

    line-height: 1.4;

}

.caption strong {

    margin-right: 4px;

}

.profile-header {

    display: flex;

    align-items: center;

    gap: 20px;

    padding: 16px;

}

.profile-avatar {

    width: 86px;

    height: 86px;

    border-radius: 50%;

    object-fit: cover;

    object-position: center 10%;

    display: block;

    flex-shrink: 0;

}

.profile-stats {

    flex: 1;

    display: flex;

    justify-content: space-around;

}

.stat {

    display: flex;

    flex-direction: column;

    align-items: center;

}

.stat strong {

    font-size: 18px;

    font-weight: 700;

}

.stat span {

    font-size: 13px;

}

.profile-bio {

    padding: 0 16px 16px;

    font-size: 14px;

}

.profile-bio p {

    margin: 4px 0;

}

.profile-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 2px;

    width: 100%;

}

.grid-item {

    display: block;

    aspect-ratio: 1 / 1;

    overflow: hidden;

}

.grid-item img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

}

.instagram-app::-webkit-scrollbar {

    width: 6px;

}

.instagram-app::-webkit-scrollbar-thumb {

    background: #cccccc;

    border-radius: 999px;

}

.comments {

    padding: 12px;

}

.comment {

    margin-bottom: 10px;

    font-size: 14px;

    line-height: 1.4;

}

.comment strong {

    margin-right: 4px;

}

.post-date {

    padding: 0 12px;

    margin-top: 10px;

    color: #8e8e8e;

    font-size: 11px;

    text-transform: uppercase;

}

.comment-box {

    display: flex;

    gap: 10px;

    padding: 12px;

    border-top: 1px solid #efefef;

}

.comment-box input {

    flex: 1;

    border: none;

    outline: none;

    font-size: 14px;

}

.comment-box button {

    border: none;

    background: none;

    color: #0095f6;

    font-weight: 600;

    cursor: pointer;

}