/* ===== GLOBAL FONT ===== */
* {
  box-sizing: border-box;
  font-family: 'Kalam', cursive;
  font-style: normal !important;
}

/* ===== BODY ===== */
body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #222;

  font-size: 19px;
  line-height: 1.5;
  letter-spacing: 0.15px;
  font-weight: 400;

  min-width: 0;
  overflow-x: hidden;
}

/* ===== CANVAS ===== */
.canvas {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

/* ===== MAIN WRAPPER ===== */
.profile-section {
  width: 900px;
  max-width: 100%;
  background: #f3f3f3;
  padding: 20px;
}

/* ===== TOP AREA ===== */
.top-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
}

/* ===== PHOTOS ===== */
.photos {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.photos img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border: 1px solid #222;
  background: #ddd;
}

/* ===== INFO TEXT ===== */
.info-text {
  flex: 1;
}

.info-text p {
  margin: 0 0 10px;
}

/* ===== IDENTITY ===== */
.identity {
  margin: 15px 0 15px;
  font-size: 20px;
}

/* ===== MOOTS CARD ===== */
.moots-card {
  background: #f6e4d3;
  border: 1px solid #cdb7a6;
  padding: 12px 14px;
  margin: 15px 0 20px;
  position: relative;
  width: 100%;
}

.moots-card::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: -6px;
  height: 6px;
  background: #d7c2b0;
}

.moots-card strong {
  font-weight: 700;
  margin-right: 5px;
}

/* ===== BYF / DFI ===== */
.byf-dfi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 15px 0;
}

.panel {
  border: 1px solid #222;
  background: #ededed;
  height: 100%;
}

.panel-title {
  border-bottom: 1px solid #222;
  background: #e0e0e0;
  padding: 8px 10px;
  font-weight: 700;
  font-size: 22px;
}

.panel-body {
  padding: 10px;
}

/* ===== LOVE & LIKE WRAPPER ===== */
.zone-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

/* ===== LOVE / LIKE ZONE ===== */
.love-zone,
.like-zone {
  background: #f3f3f3;
  padding: 15px;
}

/* ===== TITLES ===== */
.love-title,
.like-title {
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  margin: 10px 0;
  letter-spacing: 1px;
}

/* ===== WARNA SELANG-SELING ===== */
.alt-color span:nth-child(odd) { color: #2b2b2b; }
.alt-color span:nth-child(even) { color: #c7b199; }

/* ===== TEXT ===== */
.love-text,
.like-text {
  margin: 0 0 15px;
}

/* ===== IMAGE ROW ===== */
.love-images,
.like-images {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 10px 0;
}

.love-images img,
.like-images img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  background: #ddd;
  border: 1px solid #ccc;
}

/* ===== RESPONSIVE (HP) ===== */
@media (max-width: 768px) {
  body { font-size: 16px; }

  .canvas { padding: 12px 0; }

  .profile-section {
    width: 100%;
    padding: 12px;
  }

  .top-row {
    flex-direction: column;
    gap: 12px;
  }

  .photos {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
  }

  .photos img {
    width: 92px;
    height: 92px;
  }

  .identity { font-size: 18px; }

  .byf-dfi {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .panel-title { font-size: 20px; }

  .zone-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .love-title,
  .like-title {
    font-size: 22px;
  }

  .love-images,
  .like-images {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .love-images img,
  .like-images img {
    width: 90px;
    height: 90px;
  }
}

@media (max-width: 380px) {
  .photos img,
  .love-images img,
  .like-images img {
    width: 78px;
    height: 78px;
  }
}

/* =========================================================
   MUSIC FLOATING BUTTON (Bubble kanan bawah, stay saat scroll)
   ========================================================= */
.music-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 62px;
  height: 62px;
  border-radius: 999px;

  border: 1px solid rgba(34, 34, 34, 0.25);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);

  display: grid;
  place-items: center;

  cursor: pointer;
  z-index: 9999;

  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.music-fab:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.14);
}

.music-fab:active {
  transform: translateY(0px) scale(0.98);
}

.music-fab:focus {
  outline: none;
}

.music-fab:focus-visible {
  outline: 2px solid rgba(199, 177, 153, 0.9);
  outline-offset: 3px;
}

/* vinyl disk */
.music-fab .vinyl {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  position: relative;

  background:
    radial-gradient(circle at center, #f3f3f3 0 15%, transparent 16%),
    radial-gradient(circle at center, transparent 0 52%, rgba(34,34,34,0.12) 53% 56%, transparent 57%),
    radial-gradient(circle at center, transparent 0 68%, rgba(34,34,34,0.10) 69% 72%, transparent 73%),
    radial-gradient(circle at center, #2b2b2b 0 100%);
  border: 1px solid rgba(34,34,34,0.25);
}

/* label tengah */
.music-fab .vinyl::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: #c7b199;
  border: 1px solid rgba(34,34,34,0.18);
}

/* ikon play/pause kecil */
.music-fab .music-state {
  position: absolute;
  bottom: 6px;
  right: 7px;

  width: 22px;
  height: 22px;
  border-radius: 50%;

  display: grid;
  place-items: center;

  font-size: 12px;
  line-height: 1;

  background: #ffffff;
  border: 1px solid rgba(34,34,34,0.18);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

/* muter saat playing */
.music-fab.is-playing .vinyl {
  animation: spin 2.2s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ukuran di HP */
@media (max-width: 768px) {
  .music-fab {
    right: 14px;
    bottom: 14px;
    width: 56px;
    height: 56px;
  }
  .music-fab .vinyl {
    width: 38px;
    height: 38px;
  }
}
