:root {
  --bg: #f0f2f5;
  --card: #fff;
  --accent: #1877f2;
  --muted: #6b7280;
  --header-bg: #fff;
}

* {
  box-sizing: border-box;
}

body {
  font-family: Inter, system-ui, Arial;
  background: var(--bg);
  margin: 0;
  color: #111;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 12px;
}

.app-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.logo-small {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.site-title {
  font-size: 16px;
  font-weight: 600;
}

.small {
  font-size: 13px;
  color: var(--muted);
}

.btn {
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.carousel {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 4px;
  margin-top: 12px;
}

.carousel-card {
  min-width: 140px;
  height: 240px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.06);
}

.carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.albums-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

.album-card {
  width: 160px;
  border-radius: 10px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.album-cover {
  height: 90px;
  border-radius: 8px;
  background: linear-gradient(90deg, #eee, #f5f5f5);
  overflow: hidden;
}

.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}

@media (min-width: 640px) {
  .feed-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.post img {
  width: 100%;
  height: auto;
  display: block;
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hidden {
  display: none;
}

/* ================================================================
== BLOK CSS BARU YANG SUDAH DIREVISI DAN DIGABUNGKAN ==
================================================================
*/
.post {
  background: var(--card);
  border: 1px solid #dbdbdb;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
}

.post-header {
  padding: 8px 12px;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-content {
  padding: 8px 12px 12px 12px;
}

.post-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
}

.share-group {
  display: flex;
  gap: 12px;
}

.post-actions button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.post-actions svg {
  width: 24px;
  height: 24px;
  stroke: #262626;
  stroke-width: 1.5;
  fill: none;
}

.like-btn.liked svg {
  fill: red;
  stroke: red;
}

.like-count {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: #111;
}

.caption-text {
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}

.caption-text strong {
  margin-right: 5px;
}

/* Styling untuk tombol admin (edit/hapus) */
.admin-controls {
  display: flex;
  gap: 8px; /* Jarak antar ikon */
  margin-top: 12px; /* Jarak dari teks caption di atasnya */
}

/* Menghilangkan gaya default tombol agar terlihat seperti ikon */
.admin-controls button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #6c757d; /* Warna ikon yang soft */
}

.admin-controls button:hover {
  color: #212529; /* Warna ikon menjadi lebih gelap saat disentuh mouse */
}

.admin-controls svg {
  width: 18px; /* Ukuran ikon */
  height: 18px;
  stroke: currentColor; /* Mengambil warna dari parent (.admin-controls button) */
}