/* ===== COMMENT PANEL ===== */
.comment-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.comment-panel {
    background: #fff;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.comment-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f1f4;
    flex-shrink: 0;
}
.comment-panel-title {
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a2e;
}
.comment-panel-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #8e8e9a;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.comment-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 100px;
    max-height: 50vh;
}
.comment-item {
    display: flex;
    gap: 10px;
}
.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e8eaed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: #6b7280;
    flex-shrink: 0;
    overflow: hidden;
}
.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.comment-body {
    flex: 1;
    min-width: 0;
}
.comment-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}
.comment-user {
    font-weight: 600;
    font-size: 0.8rem;
    color: #1a1a2e;
}
.comment-text {
    font-size: 0.85rem;
    color: #1a1a2e;
    line-height: 1.4;
    word-break: break-word;
}
.comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
    font-size: 0.7rem;
    color: #8e8e9a;
}
.comment-like-btn {
    background: none;
    border: none;
    color: #8e8e9a;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 2px 4px;
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
    transition: color 0.15s;
}
.comment-like-btn:hover { color: #e63946; }
.comment-like-btn.liked { color: #e63946; }
.comment-like-btn.liked i { font-weight: 900; }
.comment-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-top: 1px solid #f0f1f4;
    flex-shrink: 0;
}
.comment-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1a1a2e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
    flex-shrink: 0;
}
.comment-input {
    flex: 1;
    border: none;
    background: #f0f1f4;
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    outline: none;
}
.comment-post-btn {
    background: #1a1a2e;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}
.comment-post-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.comment-login-prompt {
    padding: 16px 20px;
    text-align: center;
    border-top: 1px solid #f0f1f4;
    font-size: 0.85rem;
    color: #8e8e9a;
}
.comment-login-prompt a { color: #2563eb; font-weight: 600; text-decoration: none; }
.comment-empty {
    text-align: center;
    color: #8e8e9a;
    padding: 30px 0;
    font-size: 0.85rem;
}