.instagram-view {
  background: #fff;
}

.instagram-brand {
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -1.2px;
}

.instagram-icons {
  justify-self: end;
  display: flex;
  gap: 11px;
}

.instagram-icons svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #222;
  stroke-width: 1.7;
}

.story-row {
  display: flex;
  gap: 13px;
  padding: 4px 14px 13px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid #efefef;
}

.story {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 10px;
}

.story-ring {
  width: 55px;
  height: 55px;
  padding: 2px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75);
}

.story-ring img {
  width: 100%;
  height: 100%;
  border: 3px solid #fff;
  border-radius: 50%;
  object-fit: cover;
}

.story:first-child .story-ring {
  background: #eee;
}

.story:first-child .story-ring::after {
  content: "+";
  position: absolute;
  width: 20px;
  height: 20px;
  margin: 34px 0 0 34px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #0a84ff;
  font-size: 14px;
}

.story:first-child .story-ring img {
  filter: brightness(0.8);
}

.instagram-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 25px;
}

.instagram-featured-post {
  border-bottom: 8px solid #f5f5f7;
}

.instagram-new-avatar {
  width: 34px;
  height: 34px;
  border: 1px solid #ececef;
}

.instagram-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #111;
}

.instagram-carousel-track {
  width: 100%;
  height: 100%;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.instagram-carousel-track::-webkit-scrollbar {
  display: none;
}

.instagram-carousel-track img {
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
  display: block;
  object-fit: cover;
  object-position: center 42%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.instagram-carousel-count {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  min-width: 35px;
  height: 21px;
  padding: 0 7px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: rgba(22, 23, 28, 0.55);
  font-size: 9px;
  font-weight: 620;
  backdrop-filter: blur(8px);
}

.instagram-carousel-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  color: #fff;
  background: rgba(25, 26, 31, 0.34);
  font-size: 24px;
  line-height: 1;
  opacity: 0.82;
  transform: translateY(-50%);
  backdrop-filter: blur(7px);
}

.instagram-carousel-arrow.previous {
  left: 8px;
  padding-right: 2px;
}

.instagram-carousel-arrow.next {
  right: 8px;
  padding-left: 2px;
}

.instagram-carousel-dots {
  height: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.instagram-carousel-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d4d4d8;
  transition: background 0.18s, transform 0.18s;
}

.instagram-carousel-dots span.active {
  background: #0a84ff;
  transform: scale(1.15);
}

.instagram-featured-actions {
  padding-top: 1px;
}

.instagram-featured-actions button {
  width: 28px;
  height: 29px;
  display: grid;
  place-items: center;
  color: #222;
}

.instagram-featured-actions button:last-child {
  margin-left: auto;
}

.instagram-featured-actions svg {
  width: 22px;
  height: 22px;
  margin-left: 0 !important;
}

.instagram-featured-actions button.liked svg {
  fill: #ff3040;
  stroke: #ff3040;
}

.instagram-likes {
  padding: 1px 13px 0;
  font-size: 11px;
}

.instagram-likes strong {
  font-weight: 680;
}

.instagram-post-time {
  margin: 4px 13px 16px;
  color: #99999e;
  font-size: 8px;
}

.instagram-single-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  display: block;
  object-fit: cover;
}

.instagram-second-post {
  margin-top: 0;
}

.instagram-view {
  display: flex;
  flex-direction: column;
}

.instagram-app-header {
  flex: 0 0 auto;
  padding: 52px 16px 10px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  background: #fff;
}

.instagram-top-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #161619;
}

.instagram-top-button:last-child {
  justify-self: end;
}

.instagram-top-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.instagram-logo-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #17171a;
}

.instagram-logo-button .instagram-brand {
  font-size: 25px;
  letter-spacing: -1.4px;
}

.instagram-logo-button > svg {
  width: 12px;
  height: 8px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.instagram-story-row {
  flex: 0 0 auto;
  gap: 17px;
  padding: 2px 12px 10px;
}

.instagram-story {
  width: 67px;
  font-size: 9.5px;
}

.instagram-story-avatar {
  position: relative;
  width: 57px;
  height: 57px;
  padding: 3px;
  display: grid;
  place-items: center;
  overflow: visible;
  border-radius: 50%;
  background: conic-gradient(#feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75);
}

.instagram-story-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
}

.instagram-story-avatar.own-story {
  color: #161619;
  background: #ededf0;
}

.instagram-story-avatar.own-story b {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #b6c4dc, #8093b3);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
}

.instagram-story-avatar.own-story i {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #17171a;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
}

.instagram-scroll {
  padding-bottom: 0;
}

.instagram-post-header {
  min-height: 55px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.instagram-author-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.instagram-author-copy strong {
  font-size: 12px;
  font-weight: 650;
}

.instagram-author-copy strong i {
  color: #1d9bf0;
  font-size: 9px;
  font-style: normal;
}

.instagram-author-copy span {
  color: #929297;
  font-size: 9px;
}

.instagram-follow-button {
  height: 29px;
  padding: 0 12px;
  border-radius: 7px;
  color: #1f1f23;
  background: #f1f1f3;
  font-size: 11px;
  font-weight: 620;
}

.instagram-more-button {
  width: 31px;
  height: 31px;
  color: #29292c;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
}

.instagram-tabbar {
  flex: 0 0 67px;
  margin: 0 9px 17px;
  padding: 5px 14px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  border: 1px solid rgba(225, 225, 228, 0.86);
  border-radius: 28px;
  background: rgba(248, 248, 250, 0.93);
  box-shadow: 0 5px 18px rgba(30, 31, 36, 0.06);
  backdrop-filter: blur(20px);
}

.instagram-tabbar button {
  position: relative;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: #1a1a1d;
}

.instagram-tabbar button.active {
  background: #ececef;
}

.instagram-tabbar svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.instagram-tabbar button > i {
  position: absolute;
  right: 14px;
  bottom: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff3040;
}

.instagram-tab-profile {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid #c9c9ce;
  border-radius: 50%;
  background: linear-gradient(145deg, #b6c4dc, #8093b3);
  color: #fff;
  font-size: 10px;
  font-weight: 650;
}

.post-head {
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 620;
}

.post-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.post-head .post-more {
  margin-left: auto;
  letter-spacing: 2px;
}

.post-image {
  width: 100%;
  aspect-ratio: 1.18;
  display: block;
  object-fit: cover;
}

.post-actions {
  padding: 10px 12px 0;
  display: flex;
  gap: 13px;
  align-items: center;
}

.post-actions svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #222;
  stroke-width: 1.7;
}

.post-actions svg:last-child {
  margin-left: auto;
}

.post-caption {
  margin: 8px 13px 17px;
  font-size: 11px;
  line-height: 1.45;
}

.post-caption strong {
  margin-right: 4px;
}
