/** instagram */
.ig-gelap,
.sheet {
  --ig-teks: #fff;
  --ig-abu: #262626;
  --ig-abu-teks: #a8a8a8;
  --ig-garis: #363636;
}

.layar.ig-gelap {
  background: #000;
  color: #fff;
}

.ig-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  min-height: 44px;
  padding: 6px 14px 8px;
}

.ig-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.ig-kanan {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ig-judul {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
  color: white;
}

.titik-merah {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3040;
}

.ig-scroll {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
}

.ig-scroll::-webkit-scrollbar {
  display: none;
}

/** ig tab bar */
.ig-tab-bar {
  display: flex;
  justify-content: space-around;
  flex-shrink: 0;
  padding: 8px 8px 30px 8px;
  background-color: #000;
  border-top: 1px solid #262626;
}

.ig-tab-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  color: white;
  cursor: pointer;
}

.ig-tab-ikon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 30px;
}

.ig-tab-ikon svg {
  width: 22px;
  height: 22px;
}

.ig-tab-item.aktif svg {
  stroke-width: 2.6;
}

.ig-tab-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

/** ig feeds */
#layar-ig-feed .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  padding: 0 10px;
}

#layar-ig-feed .plus {
  color: white;
  font-size: 35px;
  font-weight: lighter;
  padding: 0 10px 0 4px;
}

#layar-ig-feed .plus p {
  margin: 0;
}

#layar-ig-feed .logo svg {
  width: 100px;
  height: 30px;
  display: block;
}

#layar-ig-feed .header-bar {
  display: flex;
  gap: 10px;
  padding: 0 10px 0 4px;
}

#layar-ig-feed .header-bar svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
  color: white;
}

#layar-ig-feed .feed {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

#layar-ig-feed .feed::-webkit-scrollbar {
  display: none;
}

/** story ring */
#layar-ig-feed .story {
  display: flex;
  gap: 12px;
  padding: 12px;
  overflow-x: auto;
}

#layar-ig-feed .story::-webkit-scrollbar {
  display: none;
}

#layar-ig-feed .story-user {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  color: white;
  cursor: pointer;
}

#layar-ig-feed .story-ring {
  display: flex;
  padding: 3px;
  border-radius: 50%;
}

#layar-ig-feed .story-ring.baru {
  background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
}

#layar-ig-feed .story-ring.teman-dekat {
  background: #22c55e;
}

#layar-ig-feed .story-ring.dilihat {
  background: #3a3b3c;
}

#layar-ig-feed .story-ring.milikku {
  background: transparent;
}

#layar-ig-feed .story-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid black;
}

#layar-ig-feed .story-nama {
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/** ig post */
.daftar-post .post {
  margin-bottom: 18px;
}

.daftar-post .post-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  margin-bottom: 10px;
}

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

.daftar-post .username {
  display: flex;
  flex-direction: column;
}

.daftar-post .nama-post {
  color: white;
  font-size: 13px;
  font-weight: 600;
}

.daftar-post .subjudul {
  color: white;
  font-size: 12px;
  font-weight: lighter;
}

.daftar-post .foto-wadah {
  position: relative;
}

.daftar-post .carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}

.daftar-post .carousel::-webkit-scrollbar {
  display: none;
}

.daftar-post .carousel img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: center;
  display: block;
}

.daftar-post .titik {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
}

.daftar-post .titik span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #555;
}

.daftar-post .titik span.aktif {
  background: #0095f6;
}

.daftar-post .reaction {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px 0 12px;
  color: white;
}

.daftar-post .reaction svg {
  width: 22px;
  height: 22px;
}

.daftar-post .caption {
  padding: 6px 12px 0 12px;
  color: white;
  font-size: 13px;
}

.daftar-post .btn-suka {
  background: none;
  border: none;
  padding: 0;
  color: white;
  cursor: pointer;
  display: flex;
}

.daftar-post .btn-suka.aktif svg {
  fill: #ff3040;
  stroke: #ff3040;
}

.daftar-post .hati-pop {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 90px;
  height: 90px;
  margin: -45px 0 0 -45px;
  pointer-events: none;
  opacity: 0;
}

.daftar-post .hati-pop svg {
  width: 100%;
  height: 100%;
  fill: #fff;
  stroke: #fff;
}

.daftar-post .hati-pop.main {
  animation: hatiPop 0.7s ease;
}

@keyframes hatiPop {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }

  20% {
    opacity: 1;
    transform: scale(1.15);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1);
  }
}

/** music */
.post-media {
  position: relative;
}

.post-suara {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-suara svg {
  width: 16px;
  height: 16px;
}

/** ig profil */
.pf-atas {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 8px 16px 0;
}

.pf-foto {
  position: relative;
  flex-shrink: 0;
}

.pf-foto img {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.pf-plus {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0095f6;
  color: #fff;
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pf-plus .ik {
  width: 14px;
  height: 14px;
}

.pf-info {
  flex: 1;
  min-width: 0;
}

.pf-nama {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
}

.pf-nama span {
  font-weight: 400;
  color: var(--ig-abu-teks);
  margin-left: 4px;
}

.pf-stat {
  display: flex;
  justify-content: space-between;
}

.pf-stat div {
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.pf-stat b {
  font-size: 17px;
  font-weight: 600;
}

.pf-bio {
  padding: 12px 16px 0;
  font-size: 14px;
  line-height: 1.35;
  white-space: pre-line;
}

.pf-chip-baris {
  display: flex;
  gap: 8px;
  padding: 12px 16px 0;
}

.pf-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--ig-garis);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 13px;
}

.pf-chip:empty {
  display: none;
}

.pf-dashboard {
  margin: 12px 16px 0;
  padding: 10px 14px;
  background: white;
  border-radius: 12px;
  color: #000;
}

.pf-dashboard b {
  display: block;
  font-size: 14px;
}

.pf-dashboard span {
  font-size: 13px;
  color: white;
}

.pf-tombol {
  display: flex;
  gap: 6px;
  padding: 12px 16px 0;
}

.pf-tombol button {
  flex: 1;
  border: none;
  border-radius: 10px;
  padding: 8px 0;
  background: white;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pf-tombol button.kecil {
  flex: 0 0 40px;
  padding: 0;
}

.pf-tombol button.mengikuti {
  background: #363636;
  color: #fff;
}

.pf-tombol .ik {
  width: 18px;
  height: 18px;
}

.pf-sorotan {
  display: flex;
  gap: 14px;
  padding: 16px;
  overflow-x: auto;
}

.pf-sorotan::-webkit-scrollbar {
  display: none;
}

.sorot {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.sorot-bulat {
  width: 62px;
  height: 62px;
  padding: 3px;
  border-radius: 50%;
  border: 1px solid var(--ig-garis);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sorot-bulat img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.sorot-nama {
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pf-tab {
  display: flex;
  border-bottom: 1px solid var(--ig-garis);
}

.pf-tab div {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 10px 0;
  color: var(--ig-abu-teks);
  border-bottom: 2px solid transparent;
}

.pf-tab div.aktif {
  color: #fff;
  border-bottom-color: #fff;
}

.pf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
}

.pf-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

/** ig profil lain */
.pl-tertutup {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 46px 24px;
  text-align: center;
  color: #a8a8a8;
  font-size: 14px;
}

.pl-tertutup.tampil {
  display: flex;
}

.pl-tertutup b {
  color: #fff;
  font-size: 16px;
}

.pl-tertutup .ik {
  width: 40px;
  height: 40px;
  color: #fff;
  margin-bottom: 6px;
}

/** fededs gulir */
#ppDaftar {
  position: relative;
  padding-bottom: 12px;
}

.pp-judul {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
}

.pp-judul small {
  font-size: 12px;
  color: var(--ig-abu-teks);
}

.pp-judul b {
  font-size: 17px;
}

/** ig list dm */
.dm-cari {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 14px 0;
  padding: 10px 14px;
  border-radius: 20px;
  background: var(--ig-abu);
  color: var(--ig-abu-teks);
  font-size: 15px;
}

.dm-cari .ik {
  width: 18px;
  height: 18px;
}

.dm-catatan {
  display: flex;
  gap: 14px;
  padding: 46px 14px 6px;
  overflow-x: auto;
}

.dm-catatan::-webkit-scrollbar {
  display: none;
}

.catatan {
  position: relative;
  flex-shrink: 0;
  width: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--ig-abu-teks);
}

.catatan img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
}

.catatan-teks {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  padding: 6px 8px;
  border-radius: 14px;
  background: #262626;
  color: #ddd;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dm-judul-baris {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px 4px;
  font-weight: 600;
  font-size: 16px;
}

.dm-judul-baris span:last-child {
  color: var(--ig-abu-teks);
}

.dm-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  cursor: pointer;
}

.dm-item img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.dm-item-isi {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dm-item-nama {
  font-size: 15px;
}

.dm-item-pesan {
  font-size: 14px;
  color: var(--ig-abu-teks);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dm-item.baru .dm-item-nama,
.dm-item.baru .dm-item-pesan {
  color: #fff;
  font-weight: 600;
}

.dm-titik {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0095f6;
  flex-shrink: 0;
}

/** ig dm chat */
.dmc-header {
  border-bottom: 1px solid var(--ig-garis);
}

.dmc-profil {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  margin-left: 6px;
}

.dmc-profil img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.dmc-profil b {
  display: block;
  font-size: 15px;
}

.dmc-profil small {
  font-size: 12px;
  color: var(--ig-abu-teks);
}

.dmc-pesan {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
}

.dmc-pesan::-webkit-scrollbar {
  display: none;
}

.dmc-pemisah {
  align-self: center;
  margin: 6px 0;
  font-size: 12px;
  color: var(--ig-abu-teks);
  text-transform: uppercase;
}

.dmc-baris {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.dmc-baris.keluar {
  justify-content: flex-end;
}

.dmc-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.dmc-isi {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 72%;
}

.dmc-baris.keluar .dmc-isi {
  align-items: flex-end;
}

.dmc-bubble {
  padding: 10px 14px;
  border-radius: 20px;
  font-size: 15px;
  line-height: 1.3;
  word-break: break-word;
  background: var(--ig-abu);
  color: #fff;
}

.dmc-baris.keluar .dmc-bubble {
  background: linear-gradient(135deg, #a22bd6, #5b51f2);
}

.dmc-gambar {
  max-width: 100%;
  border-radius: 18px;
  display: block;
}

.dmc-mention {
  width: 170px;
}

.dmc-keterangan {
  font-size: 12px;
  color: var(--ig-abu-teks);
  text-align: right;
}

.dmc-mengetik {
  display: flex;
  gap: 4px;
  padding: 14px 16px;
} /* indikator "mengetik" */

.dmc-mengetik span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a8a8a8;
  animation: lompat 1s infinite;
}

.dmc-mengetik span:nth-child(2) {
  animation-delay: .15s;
}

.dmc-mengetik span:nth-child(3) {
  animation-delay: .3s;
}

.dmc-input {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin: 6px 10px 34px;
  padding: 6px;
  border-radius: 24px;
  background: var(--ig-abu);
}

.dmc-kamera {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #5b51f2;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dmc-kamera .ik {
  width: 20px;
  height: 20px;
}

.dmc-input input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: none;
  font-size: 16px;
  color: #fff;
}

.dmc-input input::placeholder {
  color: #a8a8a8;
}

.dmc-input input[readonly] {
  opacity: .6;
}

.dmc-input .ik {
  color: #fff;
}

.dmc-ikon {
  display: flex;
  gap: 10px;
  padding-right: 6px;
}

.dmc-kirim {
  display: none;
  border: none;
  background: none;
  padding: 0 10px;
  color: #0095f6;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

.dmc-input.mengetik .dmc-ikon {
  display: none;
}

.dmc-input.mengetik .dmc-kirim {
  display: block;
}

/** ig login */
.login-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 22px;
  font-weight: 600;
}

.meta-logo {
  color: #0064e0;
  font-size: 28px;
  line-height: 1;
}

.login-isi {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
}

.login-kolom {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  border: 1px solid var(--ig-garis);
  border-radius: 18px;
}

.login-kolom:focus-within {
  border-color: #a8a8a8;
}

.login-kolom small {
  font-size: 12px;
  color: var(--ig-abu-teks);
}

.login-kolom input {
  border: none;
  outline: none;
  background: none;
  padding: 2px 0 0;
  font-size: 16px;
  color: #fff;
}

.login-error {
  min-height: 16px;
  text-align: center;
  font-size: 13px;
  color: #ed4956;
}

.login-lupa {
  margin-top: 6px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}

/** sheet */
.sheet-latar {
  position: absolute;
  inset: 0;
  z-index: 24;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s;
}

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  padding: 10px 16px 44px;
  border-radius: 24px 24px 0 0;
  background: #1c1c1c;
  color: #fff;
  transform: translateY(100%);
  transition: transform 0.25s;
}

.hp.sheet-buka .sheet-latar {
  opacity: 1;
  visibility: visible;
}

.hp.sheet-buka .sheet {
  transform: none;
}

.sheet-pegangan {
  width: 40px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 2px;
  background: #555;
}

.sheet-judul {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.sheet-akun {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  cursor: pointer;
}

.sheet-akun img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.sheet-akun b {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
}

.centang {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #555;
}

.sheet-akun.aktif .centang {
  border-color: #0064e0;
  background: #0064e0;
  box-shadow: inset 0 0 0 3px #1c1c1c;
}

.sheet-btn {
  width: 100%;
  margin-top: 10px;
  padding: 14px 0;
  border-radius: 24px;
  border: 1px solid #363636;
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.sheet-btn.biru {
  background: #0064e0;
  border-color: #0064e0;
  color: #fff;
}

/** ig story */
#layar-ig-story {
  background: #000;
  color: #fff;
}

.st-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  user-select: none;
  touch-action: none;
}

.st-gambar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.st-gambar:not([src]) {
  display: none;
}

.st-atas {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 8px 10px 28px;
  background: linear-gradient(rgba(0, 0, 0, .55), transparent);
}

.st-bar {
  display: flex;
  gap: 4px;
}

.st-bar span {
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .35);
  overflow: hidden;
}

.st-bar i {
  display: block;
  width: 0;
  height: 100%;
  background: #fff;
}

.st-kepala {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.st-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.st-info {
  flex: 1;
  min-width: 0;
}

.st-baris {
  font-size: 14px;
}

.st-baris b {
  font-weight: 600;
}

.st-baris span {
  margin-left: 8px;
  opacity: .7;
}

.st-lagu {
  margin-top: 2px;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st-lagu:empty {
  display: none;
}

.st-lagu .ik {
  width: 12px;
  height: 12px;
  vertical-align: -1px;
  margin-right: 4px;
}

.st-ikon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  flex-shrink: 0;
  border: none;
  background: none;
  color: #fff;
  cursor: pointer;
}

.st-ikon .ik,
.st-ikon svg {
  width: 24px;
  height: 24px;
}

.st-teks {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 22px;
  z-index: 2;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .7);
  pointer-events: none;
}

.st-bawah {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px 34px;
  background: #000;
}

.st-bawah input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 18px;
  border-radius: 24px;
  border: 1px solid #555;
  background: transparent;
  color: #fff;
  font-size: 16px;
  outline: none;
}

.st-bawah input::placeholder {
  color: #cfcfcf;
}

#stHati.suka svg {
  fill: #ff3040;
  stroke: #ff3040;
}