.detail-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin: 1.5rem 0;
}

.detail-main {
  flex: 2;
  min-width: 0;
}

.detail-sidebar {
  flex: 1;
  min-width: 240px;
  position: sticky;
  top: 20px;
  align-self: flex-start;
}

.breadcrumb {
  font-size: 0.85rem;
  color: #8a8a9e;
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: #bc6c3b;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.article-header h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin: 0.5rem 0;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: #6c6c80;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
}

.author-link {
  color: #bc6c3b;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
}

.author-link:hover {
  color: #9b4b2e;
}

.article-content {
  font-size: 1rem;
  line-height: 1.65;
  color: #2d2d3a;
}

.article-content p {
  margin: 1.2rem 0;
}

.author-bio-box {
  background: #f8f1ea;
  border-radius: 24px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.share-section {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 1.8rem 0 1.5rem;
}

.share-btn {
  background: #eee;
  padding: 8px 16px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: 0.2s;
  border: none;
  font-family: inherit;
}

.share-btn:hover {
  background: #e0d6ce;
  transform: translateY(-2px);
}

.share-btn svg {
  width: 18px;
  height: 18px;
}

.comment-form-area {
  margin-top: 2rem;
}

.comment-form-area h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 12px;
  margin: 8px 0 12px;
  border: 1px solid #e2dcd5;
  border-radius: 20px;
  font-family: inherit;
  background: #fff;
  transition: border 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: #bc6c3b;
}

.comment-form button {
  background: #bc6c3b;
  border: none;
  color: white;
  padding: 10px 24px;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.comment-form button:hover {
  background: #9b4b2e;
}

.toast-msg {
  background: #30a46c;
  color: white;
  padding: 10px 16px;
  border-radius: 50px;
  margin-top: 12px;
  text-align: center;
  font-size: 0.9rem;
  animation: fadeOut 2.5s ease forwards;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  70% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    visibility: hidden;
    display: none;
  }
}

.rec-list {
  background: #fff9f4;
  border-radius: 28px;
  padding: 1.2rem;
  border: 1px solid #f0e4d8;
}

.rec-list h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.rec-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: 0.2s;
  padding: 6px;
  border-radius: 16px;
}

.rec-item:hover {
  background: #f0e4d8;
  transform: translateX(4px);
}

.rec-item img {
  width: 75px;
  height: 75px;
  object-fit: cover;
  border-radius: 20px;
}

.rec-item h4 {
  max-height: 68px;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 768px) {
  .detail-sidebar {
    position: static;
  }

  .detail-wrapper {
    flex-direction: column;
  }

  .article-header h1 {
    font-size: 1.6rem;
  }
}