/* ===== Guestbook Section ===== */
.guestbook-container {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  border-radius: 15px;
  padding: 30px;
  margin-top: 30px;
  position: relative;
  overflow: visible;  
  min-height: 450px;
  box-sizing: border-box;

  /* ▼ 완전 고정 폭 */
  width: 420px !important;
  min-width: 420px;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  flex: 0 0 420px;
}

.guestbook-header {
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  margin-bottom: 30px;
}

.guestbook-title {
  color: #ecf0f1; 
  font-size: 1.3rem; 
  font-weight: 600; 
  margin: 0;
}

.write-message-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none; 
  color: white; 
  border-radius: 25px;
  padding: 12px 24px; 
  font-size: 0.9rem; 
  font-weight: 600;
  transition: all 0.3s ease; 
  cursor: pointer;
}
.write-message-btn:hover {
  transform: translateY(-2px); 
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.messages-display { 
  height: 350px; 
  position: relative; 
  overflow: hidden; 
}
.messages-list { 
  position: absolute; 
  width: 100%; 
  transition: transform 1.2s ease; 
}

.credit-message {
  background: rgba(255, 255, 255, 0.1); 
  backdrop-filter: blur(10px);
  border-radius: 12px; 
  padding: 20px; 
  margin-bottom: 15px;
  border-left: 4px solid transparent; 
  transition: all 0.8s ease;
}
.credit-message.family { border-left-color: #e74c3c; }
.credit-message.friend { border-left-color: #3498db; }
.credit-message.colleague { border-left-color: #2ecc71; }
.credit-message.other { border-left-color: #9b59b6; }

.credit-header { 
  display: flex; 
  align-items: center; 
  margin-bottom: 10px; 
}
.credit-avatar {
  width: 35px; 
  height: 35px; 
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center;
  color: white; 
  font-weight: 600; 
  font-size: 0.9rem; 
  margin-right: 12px;
}
.credit-avatar.family { background: #e74c3c; }
.credit-avatar.friend { background: #3498db; }
.credit-avatar.colleague { background: #2ecc71; }
.credit-avatar.other { background: #9b59b6; }

.credit-name { 
  color: #ecf0f1; 
  font-weight: 600; 
  font-size: 1rem; 
}
.credit-relationship { 
  color: #bdc3c7; 
  font-size: 0.8rem; 
  margin-left: auto; 
}
.credit-text { 
  color: #ecf0f1; 
  line-height: 1.6; 
  font-size: 0.95rem; 
}

/* --- movie-credit visual touches --- */
.messages-display {
  height: 350px;
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to bottom, 
    transparent 0, 
    black 20px, 
    black calc(100% - 20px), 
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom, 
    transparent 0, 
    black 20px, 
    black calc(100% - 20px), 
    transparent 100%
  );
}
.messages-list {
  position: absolute;
  width: 100%;
  will-change: transform;
  transition: transform 0.2s linear;
}
.messages-display:hover .credit-message {
  filter: brightness(1.05);
}

/* 방명록 구역에서 bootstrap col 폭/제한 해제 + 중앙정렬 */
#guestbook .row {
  justify-content: center;
}
#guestbook .col-lg-8 {
  display: flex !important;
  justify-content: center;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
}

/* 반응형에서 폭을 100%로 바꾸던 규칙 삭제됨 */
