/* 공통 좋아요·공유 버튼 */
.board-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.board-title-row > [class*="__title"],
.board-title-row > h2,
.board-title-row > h3 {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.board-title-row .board-actions,
.board-title-row .share-modal__actions,
.board-title-row .festival-modal__actions-row,
.board-title-row .polaroid-detail__actions,
.board-title-row [data-polaroid-actions] {
    flex-shrink: 0;
    margin: 0;
}

.board-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 12px;
}

.board-like__btn,
.board-share__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    background: #fff;
    color: #555;
    font-family: var(--font-sans, 'Noto Sans KR', sans-serif);
    font-size: 0.8125rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.board-like__btn:hover,
.board-share__btn:hover {
    background: #fafafa;
    border-color: rgba(0, 0, 0, 0.2);
}

.board-like__btn.is-liked {
    color: #e25555;
    border-color: rgba(226, 85, 85, 0.35);
    background: #fff5f5;
}

.board-like__btn.is-liked .board-like__icon svg {
    fill: #e25555;
    stroke: #e25555;
}

.share-comment-form[hidden],
.share-comment-form.is-guest-hidden {
    display: none !important;
}

.share-comment-login-hint {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f5f5f5;
    color: #666;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.board-like__stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    background: #fafafa;
    color: #777;
    font-family: var(--font-sans, 'Noto Sans KR', sans-serif);
    font-size: 0.8125rem;
    line-height: 1;
    cursor: default;
    user-select: none;
}

.board-like__icon,
.board-share__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    font-size: 0.95em;
    line-height: 1;
}

.board-share__icon .fa-solid,
.board-share__icon .fa-regular {
    font-size: inherit;
    line-height: 1;
}

.board-share__popover {
    z-index: 10050;
    min-width: min(320px, calc(100vw - 24px));
    padding: 12px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.board-share__popover-label {
    margin: 0 0 8px;
    font-size: 0.8125rem;
    color: #666;
}

.board-share__popover-row {
    display: flex;
    gap: 8px;
}

.board-share__popover-input {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    font-size: 0.8125rem;
    color: #333;
    background: #fafafa;
}

.board-share__popover-copy {
    flex-shrink: 0;
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    background: #333;
    color: #fff;
    font-size: 0.8125rem;
    cursor: pointer;
}

.board-share__popover-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.board-share__popover-kakao,
.board-share__popover-native {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 0.8125rem;
    line-height: 1;
    cursor: pointer;
}

.board-share__popover-kakao {
    flex: 1;
    border-color: #f5e000;
    background: #fee500;
    color: #191919;
    font-weight: 600;
}

.board-share__popover-kakao:disabled {
    opacity: 0.65;
    cursor: wait;
}

.board-share__popover-kakao-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #191919;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3C6.48 3 2 6.58 2 11c0 2.52 1.48 4.76 3.78 6.2-.12.84-.62 3.04-.72 3.5-.12.55.2.54.42.39.17-.11 2.74-1.86 3.16-2.15C9.7 18.98 10.82 19.2 12 19.2c5.52 0 10-3.58 10-8.1S17.52 3 12 3z'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3C6.48 3 2 6.58 2 11c0 2.52 1.48 4.76 3.78 6.2-.12.84-.62 3.04-.72 3.5-.12.55.2.54.42.39.17-.11 2.74-1.86 3.16-2.15C9.7 18.98 10.82 19.2 12 19.2c5.52 0 10-3.58 10-8.1S17.52 3 12 3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.board-share__popover-native {
    flex: 1;
}

.polaroid-detail__actions,
.share-modal__actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.festival-modal__actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.share-stage.has-active .polaroid-wrapper:not(.active) {
    pointer-events: none;
}
